Commit to save progress.
Feature complete. Ready for UAT. Minor changes to ZPL Hold header and darkness. Implement post UAT changes. fixed small bug in WMO reprint event logic formatted code and removed commented out code
This commit is contained in:
committed by
Infineon\StieberD
parent
6050b346a5
commit
507c6bffba
@ -19,6 +19,7 @@ DECLARE SUBROUTINE Btree.Extract, Send_Event, Security_Err_Msg, Forward_Event, E
|
||||
DECLARE SUBROUTINE Send_Message, Print_Cass_Out, obj_WM_Out, obj_Notes, obj_WO_Mat, obj_Tables, Set_Property, obj_WO_Wfr
|
||||
DECLARE SUBROUTINE Start_Window, Obj_RDS, Database_Services, Rds_Services, Signature_Services, Wm_Out_Services, Sleepery
|
||||
DECLARE SUBROUTINE Logging_Services, Wo_Mat_Qa_Services, Error_Services, Post_Event, Wafer_Counter_Services, Hold_Services
|
||||
Declare subroutine Labeling_Services
|
||||
|
||||
DECLARE FUNCTION Get_Property, Get_Status, Popup, Send_Message, Msg, Security_Check, Dialog_Box, RowExists, obj_Tables
|
||||
DECLARE FUNCTION Dialog_Box, obj_WO_Log, MemberOf, obj_NCR, Send_Message, MemberOf, obj_WM_Out, NextKey, obj_MUWafers
|
||||
@ -177,6 +178,7 @@ BEGIN CASE
|
||||
CASE Instruction = 'CIClick' ; GOSUB CIClick
|
||||
CASE Instruction = 'AddComment' ; GOSUB AddComment
|
||||
CASE Instruction = 'ViewComments' ; GOSUB ViewComments
|
||||
CASE Instruction = 'ReprintHold' ; GOSUB ReprintHold
|
||||
|
||||
CASE 1
|
||||
ErrorMsg = 'Unknown Instruction ':QUOTE(Instruction):' passed to routine'
|
||||
@ -392,6 +394,20 @@ WONoLF:
|
||||
|
||||
RETURN
|
||||
|
||||
|
||||
* * * * * * *
|
||||
ReprintHold:
|
||||
* * * * * * *
|
||||
|
||||
WONo = Get_Property(@WINDOW:'.WO_NO','DEFPROP')
|
||||
CassNo = Get_Property(@WINDOW:'.OUT_CASS_NO','DEFPROP')
|
||||
WOStep = Get_Property(@WINDOW:'.PROC_STEP_NO','DEFPROP')
|
||||
WMOKey = WONo:'*':WOStep:'*':CassNo
|
||||
Labeling_Services('ReprintHoldLabel', 'WM_OUT', WMOKey)
|
||||
|
||||
RETURN
|
||||
|
||||
|
||||
********
|
||||
Refresh:
|
||||
********
|
||||
@ -404,8 +420,10 @@ Refresh:
|
||||
|
||||
IF Get_Property(@WINDOW:'.HOLD_CHECKBOX','CHECK') THEN
|
||||
Set_Property(@WINDOW:'.HOLD_BUTTON','TEXT','Remove Hold')
|
||||
Set_Property(@Window:'.MENU.PRINT.REPRINT_HOLD_LABEL', 'ENABLED', True$)
|
||||
END ELSE
|
||||
Set_Property(@WINDOW:'.HOLD_BUTTON','TEXT','Place on Hold')
|
||||
Set_Property(@Window:'.MENU.PRINT.REPRINT_HOLD_LABEL', 'ENABLED', False$)
|
||||
END
|
||||
|
||||
QuoteSigs = XLATE('CONFIG','QUOTE_SIGS','','X')
|
||||
@ -1530,6 +1548,10 @@ HoldClick:
|
||||
WOMatKey = WONo:'*':CassNo
|
||||
HoldEntity = 'WM_OUT'
|
||||
HoldEntityID = WMOutKey
|
||||
Stage = Xlate('WO_MAT', WOMatKey, WO_MAT_HOLD_STAGE$, 'X')
|
||||
Interrupted = Xlate('WO_MAT', WOMatKey, WO_MAT_HOLD_INTERRUPTED$, 'X')
|
||||
Reactor = 'EPP'
|
||||
PSN = Get_Property(@Window:'.PS_NO', 'TEXT')
|
||||
|
||||
Send_Event(@WINDOW,'WRITE')
|
||||
|
||||
@ -1539,12 +1561,28 @@ HoldClick:
|
||||
Transition = Hold_Services('CheckForHold', WOMatKey, CtrlEnt)
|
||||
HoldType = 'HOLD'
|
||||
HoldData = ''
|
||||
HoldData = Dialog_Box('DIALOG_HOLD',@WINDOW,Transition:@FM:@FM:HoldType)
|
||||
HoldData = Dialog_Box('DIALOG_HOLD',@WINDOW,Transition:@FM:@FM:HoldType:@FM:Stage:@FM:Interrupted)
|
||||
If HoldData NE 'Cancel' then
|
||||
Hold_Services('ToggleHold', WOMatKey, HoldEntity, HoldEntityID, CtrlEnt, '', HoldData)
|
||||
IF Error_Services("HasError") THEN
|
||||
ErrCode = Error_Services("GetMessage")
|
||||
ErrMsg(errCode)
|
||||
end else
|
||||
If Transition EQ False$ then
|
||||
MsgInfo = ''
|
||||
MsgInfo<MTYPE$> = 'BNY'
|
||||
MsgInfo<MTEXT$> = 'Hold Successful. Would you like to print label(s)?'
|
||||
MsgInfo<MICON$> = '!'
|
||||
PrintLabel = Msg(@WINDOW,MsgInfo,'')
|
||||
HoldBy = HoldData<1>
|
||||
Reason = HoldData<2>
|
||||
Stage = HoldData<4>
|
||||
Interrupted = HoldData<5>
|
||||
DTM = Datetime()
|
||||
If PrintLabel EQ True$ then
|
||||
Labeling_Services('PrintHoldLabel', HoldEntity, HoldEntityID, Stage, Reason, HoldBy, DTM, PSN, Reactor, Interrupted)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -2297,5 +2335,3 @@ RefreshWaferCounterData:
|
||||
|
||||
return
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user