{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function fieldcount, msg, dialog_box, memberof, wo_verify_comm\r\ndeclare subroutine create_note\r\n$insert logical\r\n$insert msg_equates\r\n$insert lsl_users_equ\r\n$insert ncr_equ\r\nequ CrLf$ to char(13):char(10)\r\n\r\nif memberof( @user4, 'DATA_ENTRY' ) or memberof( @user4, 'SUPERVISOR' ) then\r\n\tif .tech_sig->text <> '' then\r\n\t MsgInfo = ''\r\n\t MsgInfo = 'This WO has already been signed by a technician.'\r\n\t MsgInfo = '!'\r\n\t Void = msg( '', MsgInfo )\r\n\tend else\r\n\t DopantChk = .dopant_chk->check\r\n\t RecipeChk = .recipe_chk->check\r\n\t InstructionsChk = .instructions_chk->check\r\n\t SPCChk = .spc_chk->check\r\n\t RecipeChk = .recipe_param_chk->check\r\n\t if ( DopantChk ) and ( RecipeChk ) and ( InstructionsChk ) and ( SPCChk ) and ( RecipeChk ) then\r\n\t\t Valid = dialog_box( 'QUOTE_SIG_PWD_ENTRY', @window, @user4:@vm:xlate( 'LSL_USERS', @user4, lsl_users_password$, 'X' ) )\r\n\t\t\tif Valid then\r\n\t\t .tech_sig->text = @user4\r\n\t\t .tech_sig_name->text = xlate( 'LSL_USERS', @user4, 'FIRST_LAST', 'X' )\r\n\t\t .tech_sig_time->text = oconv( time(), 'MTH' )\r\n\t\t @@window->savewarn = 1\r\n\t\t Void = wo_verify_comm( 'STATUS_CHECK' )\r\n\t\t end\r\n\t\tend else\r\n\t\t MsgInfo = ''\r\n\t\t MsgInfo = 'You must check every item on the Work Order Verification Check List.'\r\n\t\t MsgInfo = '!'\r\n\t\t Void = msg( '', MsgInfo )\r\n\t\tend\r\n\t\t\r\n end\r\nend else\r\n MsgInfo = ''\r\n MsgInfo = '!'\r\n MsgInfo = 'You must be a cleanroom personnel to sign the work order verification.'\r\n Void = msg( '', MsgInfo )\r\n return 0\r\nend\r\nreturn 0\r\n" } } }