{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function fieldcount, msg, dialog_box, memberof\r\ndeclare subroutine create_note\r\n$insert logical\r\n$insert msg_equates\r\n$insert quote_sigs_equ\r\n$insert lsl_users_equ\r\n$insert ncr_equ\r\nequ CrLf$ to char(13):char(10)\r\n\r\n\r\nif memberof( @user4, 'SUPERVISOR' ) or memberof( @user4, 'ENGINEERING' ) then\r\n * OK\r\nend else\r\n MsgInfo = ''\r\n MsgInfo = '!'\r\n MsgInfo = 'You must be a supervisor or an engineer to sign for rework material.'\r\n Void = msg( '', MsgInfo )\r\n return 0\r\nend\r\nAuthReworkSig = .auth_rework_sig->text\r\nAuthReworkSigName = .auth_rework_sig_name->text\r\n*CurStatus = .status->value\r\n*if CurStatus = 'O' then\r\n if AuthReworkSigName <> '' then\r\n MsgInfo = ''\r\n MsgInfo = 'This NCR has already been signed for rework material.'\r\n MsgInfo = '!'\r\n Void = msg( '', MsgInfo )\r\n end else\r\n if .auth_rej_sig->text <> '' 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 .auth_rework_sig->text = @user4\r\n\t\t .auth_rework_sig_name->text = xlate( 'LSL_USERS', @user4, 'FIRST_LAST', 'X' )\r\n\t\t @@window->savewarn = 1\r\n\t\t end\r\n\t end else\r\n\t MsgInfo = ''\r\n\t MsgInfo = 'This NCR must be signed for rejected material before reworking material.'\r\n\t MsgInfo = '!'\r\n\t Void = msg( '', MsgInfo )\r\n\t end\r\n end\r\n*end else\r\n* if CurStatus = 'C' then\r\n* CurStatus = 'Closed'\r\n* end else\r\n* CurStatus = 'Verified' \r\n* end\r\n* MsgExtension = ''\r\n* if AuthReworkSig <> '' then\r\n* MsgExtension = ' and has already been signed for rework material.'\r\n* end\r\n* MsgInfo = ''\r\n* MsgInfo = 'This NCR is ':CurStatus:MsgExtension\r\n* MsgInfo = '!'\r\n* Void = msg( '', MsgInfo )\r\n*end\r\nreturn 0" } } }