11 lines
1.3 KiB
JSON
11 lines
1.3 KiB
JSON
{
|
|
"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\nRecordId = 'RECIPE_ID*':@station\r\nrecord_lock( SysListsTable, 'SysLists', RecordId )\r\nwritev .recipe_no->text on SysListsTable, RecordId, 1 else\r\n Void = msg( '', 'Unable to write ':.recipe_id->text:' 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 'RECIPE' to RecipeTable else\r\n Void = msg( '', 'Unable to open RECIPE...' )\r\n return 0\r\nend\r\nRecipeNo = .recipe_no->text\r\nunlock RecipeTable, RecipeNo else\r\n * HAD A BUG WHERE IT COULD NOT ULOCK WHEN CANCELING THE SAVE\r\n * WARN MESSAGE CHECK INTO LATER\r\n *Void = msg( '', 'Unable to unlock RECIPE ':RecipeNo )\r\n *return 0\r\nend\r\nVoid = send_event( @window, 'WRITE' )\r\nVoid = send_event( @window, 'CLOSE' )\r\nVoid = post_event( 'PROD_SPEC_SI.EPI_RECIPE', 'OMNIEVENT' )\r\nRETURN 0"
|
|
}
|
|
}
|
|
} |