{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare subroutine rlist, set_list_box_data, security_err_msg, sendmessage\r\ndeclare function send_event, set_property, end_window, security_check, post_event\r\ndeclare function center_window, getwindow, fieldcount, msg, next_mesa_wo_log_key\r\ndeclare function memberof\r\n$insert security_rights_equ\r\n$insert rlist_equates\r\n$insert lsl_common\r\n$insert logical\r\nequ QbfOccurred$ to 1126\r\n\r\nif memberof(@user4,'MASTER_SCHED' ) or ( @user4 = 'RICK_A' ) then\r\n .menu.edit.change_wo->enabled = 1\r\nend else\r\n .menu.edit.change_wo->enabled = 0\r\nend\r\nReadOk = true$\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\nKeys = field( CreateParam, '*', 1 )\r\nif Keys then\r\n if fieldcount( Keys, @vm ) > 1 then\r\n * need to send to qbf\r\n\t convert @vm to @fm in Keys\r\n\t Void = set_property( @window, 'QBFLIST', Keys )\r\n\t Void = set_property( @window, '@NoRead', 1 ) \r\n\t .wo_no->text = Keys<1>\r\n\t Void = send_event( @window, 'READ' )\r\n\t Void = set_property( @window, '@NoRead', 0 )\r\n end else\r\n .wo_no->text = Keys\r\n Void = send_event( @window:'.WO_NO', 'LOSTFOCUS', '' )\r\n end\r\nend\r\n\r\nif security_check( 'WO Log', Read$ ) then\r\n set_list_box_data( @window )\r\nend else\r\n security_err_msg( 'WO Log', Read$ )\r\n Void = end_window( @window, '' )\r\n ReadOk = false$\r\nend\r\nif security_check( 'WO Log', Edit$ ) else\r\n security_err_msg( 'WO Log', Edit$ )\r\n .view_quote->visible = 1\r\nend\r\nVoid = set_property( @window, '@NoRead', 0 )\r\nRETURN 0\r\n*===========================================================================*" } } }