Files
open-insight/LSL2/OIEVENT/CLICK/RDS_SUPPL.OP_SIG_BUTTON.json
2024-03-25 15:12:53 -07:00

11 lines
1.3 KiB
JSON

{
"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 lsl_users_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 .op_sig->text <> '' then\r\n\t MsgInfo = ''\r\n\t MsgInfo<mtext$> = 'This RDS Supplement form has already been signed by a technician.'\r\n\t MsgInfo<micon$> = '!'\r\n\t Void = msg( '', MsgInfo )\r\n\tend else\r\n\t Valid = dialog_box( 'QUOTE_SIG_PWD_ENTRY', @window, @user4:@vm:xlate( 'LSL_USERS', @user4, lsl_users_password$, 'X' ) )\r\n\t\tif Valid then\r\n\t\t .save->enabled = 1\r\n\t .op_sig->text = @user4\r\n\t .op_sig_name->text = xlate( 'LSL_USERS', @user4, 'FIRST_LAST', 'X' )\r\n\t .op_sig_date->text = oconv( date(), 'D2/' )\t \r\n\t .op_sig_time->text = oconv( time(), 'MTH' )\r\n\t @@window->savewarn = 1\r\n\t end\r\n end\r\nend else\r\n MsgInfo = ''\r\n MsgInfo<micon$> = '!'\r\n MsgInfo<mtext$> = '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"
}
}
}