added remaining LSL2 entities
This commit is contained in:
11
LSL2/OIEVENT/CLICK/ANNUAL_CONTRACTS.RET_AC_BUTTON.json
Normal file
11
LSL2/OIEVENT/CLICK/ANNUAL_CONTRACTS.RET_AC_BUTTON.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"header": {
|
||||
"version": 1,
|
||||
"type": "record"
|
||||
},
|
||||
"body": {
|
||||
"record1": {
|
||||
"<1>": "declare function end_window, msg, send_event, post_event\r\ndeclare subroutine record_lock\r\n\r\nopen 'SYSLISTS' to SysListsTable else\r\n Void = msg( '', 'Unable to open SYSLISTS...' )\r\n return 0\r\nend\r\nPrevWindow = set_property( @window, '@PrevWindow' )\r\nRecordId = 'AC_ID*':@station\r\nACID = .contract_no->text\r\nrecord_lock( SysListsTable, 'SysLists', RecordId )\r\nwritev ACID on SysListsTable, RecordId, 1 else\r\n Void = msg( '', 'Unable to write ':ACID:' on SYSLISTS ':RecordId )\r\n return 0\r\nend\r\nunlock SysListsTable, RecordId else\r\n Void = msg( '', 'Unable to unlock SYSLISTS ':RecordId )\r\n return 0\r\nend\r\nopen 'ANNUAL_CONTRACTS' to ACTable else\r\n Void = msg( '', 'Unable to open ANNUAL_CONTRACTS...' )\r\n return 0\r\nend\r\nunlock ACTable, ACID else\r\n Void = msg( '', 'Unable to unlock ANNUAL_CONTRACTS ':ACID )\r\n return 0\r\nend\r\nVoid = send_event( @window, 'WRITE' )\r\nVoid = end_window( @window, '' )\r\nbegin case\r\n case PrevWindow = 'Order'\r\n Void = post_event( 'ORDER.AC_ID', 'OMNIEVENT' )\r\nend case\r\nRETURN 0"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user