open-insight/LSL2/OIEVENT/CREATE/RECIPE_BROWSE2..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 scroll_enable, center_window, recipe_browse_comm\r\n\r\n$insert quote_spec_equ\r\n$insert prod_spec_equates\r\n$insert recipe_equ\r\n\r\nequ CrLf$ to char(13):char(10)\r\n\r\n\r\nif index( CreateParam, 'CENTER', 1 ) then\r\n void = center_window( @window )\r\nend else\r\n Void = set_property( @window, 'VISIBLE', 1 )\r\nend\r\n\r\nPSNId = field( CreateParam, '*', 1 )\r\nRecipeID = xlate( 'PROC_SPEC', PSNId, 'RECIPE_NO_L1', 'X' )\r\nSpecAddtl = xlate( 'PROD_SPEC', PSNId, prod_spec_spec_addtl$, 'X' )\r\nProveInInst = SpecAddtl<1,QSAddProveInInst$>\r\nswap @tm with CrLf$ in ProveInInst\r\n.provein_inst->text = ProveInInst\r\nSpecialInst = xlate( 'PROD_SPEC', PSNId, 'SPECIAL_INST', 'X' )\r\nswap @tm with CrLF$ in SpecialInst\r\n.special_inst->text = SpecialInst\r\nVoid = scroll_enable()\r\nCurTitle = @@window->text\r\nswap 'PSN' with 'PSN ':PSNId in CurTitle\r\n@@window->text = CurTitle\r\nVoid = recipe_browse_comm( 'SET_ADJUST_PARAMS', PSNId )\r\nRETURN 1"
}
}
}