replaced with NDW_VERIFY_USER. Added barcode scan function to NDW_VERIFY_USER. fixed two instances of ohms square unit characters being garbled by git minor modification to NDW_VERIFY_USER_EVENTS lost focus events minor change to gotfocus event logic
		
			
				
	
	
		
			11 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "header": {
 | |
|         "version": 1,
 | |
|         "type": "record"
 | |
|     },
 | |
|     "body": {
 | |
|         "record1": {
 | |
|             "<1>": "declare function fieldcount, msg, dialog_box\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 car_equ\r\nequ CrLf$ to char(13):char(10)\r\n\r\nRespUser = .resp_user_id->text\r\nRespSig  = .resp_signature->text\r\nif RespSig <> '' then\r\n    MsgInfo = ''\r\n    MsgInfo<mtext$> = 'This CAR has already been signed by the responsible person.'\r\n    MsgInfo<micon$> = '!'\r\n    Void = msg( '', MsgInfo )\r\nend else\r\n\tif @user4 = RespUser then\r\n\t    if .confirm_status->value <> '' then\r\n          Valid = Dialog_Box('NDW_VERIFY_USER', @Window, @User4)\r\n          Valid = Valid<1>\r\n         if Valid then\r\n\t\t\t   .resp_signature->text = @user4\r\n\t\t\t   .resp_signature_name->text = oconv( @user4, '[XLATE_CONV,LSL_USERS*FIRST_LAST]' )\r\n\t\t\t   @@window->savewarn = 1\r\n\t\t\t   if .vip_mfg_signature->text <> '' then\r\n\t\t\t      EntryId = xlate( 'CAR', .car_ref_id->text, car_entry_id$, 'X' )\r\n\t\t\t      if .confirm_status->value = 'C' then\r\n\t\t\t\t      * both responsible person and vip of manufacturing have signed so\r\n\t\t\t\t      * set to form complete status\r\n\t\t\t\t      .status->value = 'F'\r\n\t\t\t\t      * now send message to entry person\r\n\t\t\t\t      if EntryId then\r\n\t\t                 MsgToSend = 'Signed by ':oconv( .resp_signature->text, '[XLATE_CONV,LSL_USERS*FIRST_LAST]' ):' on ':oconv( date(), 'D2/' ):' at ':oconv( time(), 'MTH' ):'.'\t\t      \r\n\t\t\t             create_note( EntryId, 'System', 'CAR#':.car_ref_id->text:' signed for \"Form Complete\" status', MsgToSend, 'CAR', .car_ref_id->text )\t        \t\r\n\t\t\t\t      end\r\n\t\t\t      end else\r\n\t\t\t\t      * both responsible person and vip of manufacturing have signed so\r\n\t\t\t\t      * but it is unconfirmed so set to verified to end the CAR\r\n\t\t\t\t      .status->value = 'V'\t\t\t\t      \r\n\t\t\t\t      if EntryId then\r\n\t\t                 MsgToSend = 'Signed by ':oconv( .resp_signature->text, '[XLATE_CONV,LSL_USERS*FIRST_LAST]' ):' on ':oconv( date(), 'D2/' ):' at ':oconv( time(), 'MTH' ):'. '\r\n\t\t                 MsgToSend:= 'It was set to \"Verified\" status due to it being unconfirmed.'\r\n\t\t\t             create_note( EntryId, 'System', 'CAR#':.car_ref_id->text:' signed for \"Verified\" status', MsgToSend, 'CAR', .car_ref_id->text )\t        \t\r\n\t\t\t\t      end\r\n\t\t\t      end\r\n\t  \t\t   end else\r\n\t\t\t      * send a message to the vip of manufacturing that is has been signed by the\r\n\t\t\t      * responsible user\r\n\t\t\t\t  SignatureInfo = xlate( 'CONFIG', 'QUOTE_SIGS', '', 'X' )\r\n\t\t\t\t  VipMfg          = SignatureInfo<VipMfg$>\r\n\t              MsgToSend = 'This CAR was signed by ':oconv( .resp_signature->text, '[XLATE_CONV,LSL_USERS*FIRST_LAST]' ):' on ':oconv( date(), 'D2/' ):' at ':oconv( time(), 'MTH' ):'.'\t\t\t  \r\n\t              create_note( VipMfg, 'System', 'CAR#':.car_ref_id->text:' signed by responsible person', MsgToSend, 'CAR', .car_ref_id->text )\t        \t\r\n\t\t\t   end\r\n\t\t\tend\r\n\t\tend else\r\n\t\t\tMsgInfo = ''\r\n\t\t\tMsgInfo<mtext$> = 'You must select a confirmation status of \"Confirmed\" or \"Unconfirmed\"...'\r\n\t\t\tMsgInfo<micon$> = 'H'\r\n\t\t\tVoid = msg( '', MsgInfo )\r\n\t\tend\r\n\tend else\r\n\t\tMsgInfo = ''\r\n\t\tMsgInfo<mtext$> = 'You are not the responsible person...'\r\n\t\tMsgInfo<micon$> = 'H'\r\n\t\tVoid = msg( '', MsgInfo )\r\n\tend\r\nend\r\nreturn 0\r\n"
 | |
|         }
 | |
|     }
 | |
| } |