added remaining LSL2 entities
This commit is contained in:
11
LSL2/OIEVENT/CLICK/WO_MAST_SCHED.NEW_WO.json
Normal file
11
LSL2/OIEVENT/CLICK/WO_MAST_SCHED.NEW_WO.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user