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

11 lines
898 B
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function msg, repository, entid, start_window, memberof\r\n$insert msg_equates\r\n\r\n\r\nif memberof(@user4,'MASTER_SCHED' ) then\r\n * NO MORE TEMP WORK ORDERS\r\n *PopRec = entid( @appid<1>, 'POPUP', '', 'INVOICE_PLANT_OPTS' )\r\n *PlantCode = repository( 'EXECUTE', PopRec, @window, '' )\r\n *if PlantCode else\r\n * return 0 ;* user canceled\r\n *end \r\n *Misc@<CenterWindow$> = true$\r\n Void = start_window( 'WO_LOG', @window, '*CREATE*CENTER', '', '' )\r\n *Misc@<CenterWindow$> = false$\r\nend else\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = 'You do not have proper security to create Work Order Entries...' \r\n MsgInfo<micon$> = 'H'\r\n Void = msg( '', MsgInfo )\r\nend\r\nRETURN 0"
}
}
}