Files
open-insight/LSL2/OIEVENT/CLICK/RDS_RPT3.RUN_REPORT_BUTTON.json
2024-03-25 15:12:53 -07:00

11 lines
1.1 KiB
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function sched_rpt1, send_event, msg\r\ndeclare subroutine end_dialog\r\n$insert msg_equates\r\n$insert logical\r\n\r\nDateInFrom = .date_in_from->text\r\nDateInThru = .date_in_thru->text\r\nReactor = .reactor->text\r\nRecipe = .recipe->text\r\nDirToPrint = .send_to_printer->text\r\nInjector = ''\r\nOffset = ''\r\nRptType = .rpt_type->value\r\nif RptType then\r\n\tif RptType = 'I' then\r\n\t Injector = true$\r\n\tend else\r\n\t Offset = true$\r\n\tend\r\nend \r\nif ( DateInFrom ) and ( DateInThru ) and ( Reactor ) and ( RptType ) then\r\n\tRetVal = Recipe:'*':Reactor:'*':Offset:'*':Injector:'*':DateInFrom:'*':DateInThru:'*':DirToPrint\r\n\tend_dialog( @window, RetVal )\r\nend else\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = 'You must enter data into every field except recipe for the report to work properly...'\r\n MsgInfo<micon$> = '!'\r\n Void = msg( '', MsgInfo )\r\nend\r\nreturn 0\r\n"
}
}
}