Renew make drink / next order
This commit is contained in:
parent
fbbabcfb06
commit
a54978e5c6
4 changed files with 176 additions and 184 deletions
|
|
@ -250,33 +250,6 @@
|
|||
Open "ROOT/taobin_project/xml/page_drink_stuck.xml"
|
||||
EndIf
|
||||
|
||||
; obsolete
|
||||
If Timeout > TimeDelayDefault Then
|
||||
SAVELOG "Longer Time out"
|
||||
DEBUGVAR TimeDelayDefault
|
||||
|
||||
If NextOrder = "true" Then
|
||||
|
||||
Var NextOrder = "false"
|
||||
TransferVar "next" "curr"
|
||||
Var Seeker = "curr"
|
||||
SAVELOG "Make next order by take-cup with close-maintenance"
|
||||
|
||||
Var error_code_stop_now = 1221
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
|
||||
Else
|
||||
Var error_code_stop_now = 1296
|
||||
__CMD "error-code-1296" 0 "-" "-"
|
||||
EndIf
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_cannotConti.xml"
|
||||
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
If Timeout = 2 Then
|
||||
RefreshAll
|
||||
EndIf
|
||||
|
|
@ -293,161 +266,54 @@
|
|||
Var next_pic_bg = DirImage + "/Preparing.png"
|
||||
Var BlinkImg = 1
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
; Do not change
|
||||
;
|
||||
If MachineStage = "show-menu" Then
|
||||
|
||||
If CART_INDEX < CART_COUNT Then
|
||||
|
||||
If HaveCup = "false" Then
|
||||
If CupChecking = "false" Then
|
||||
Var Seeker.TNumberTaobinMember = ""
|
||||
|
||||
Var CART_INDEX = CART_INDEX + 1
|
||||
Cart "PreparID" CART_INDEX
|
||||
Cart "MakeID" CART_INDEX
|
||||
Open "ROOT/taobin_project/xml/page_thankyouMore.xml"
|
||||
If NextOrder = "true" Then
|
||||
|
||||
; Fast-forward to page_cannotConti
|
||||
If RejectOrder = "true" Then
|
||||
; BEGIN
|
||||
Var NextOrder = "false"
|
||||
|
||||
TransferVar "next" "curr"
|
||||
Var Seeker = "curr"
|
||||
|
||||
SAVELOG "Make next order by RejectOrder"
|
||||
Open "ROOT/taobin_project/xml/page_cannotConti.xml"
|
||||
; END
|
||||
EndIf
|
||||
|
||||
; next order set. Havecup and checkup value must false. Certain cup not on any arm.
|
||||
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
; BEGIN
|
||||
Var NextOrder = "false"
|
||||
|
||||
TransferVar "next" "curr"
|
||||
Var Seeker = "curr"
|
||||
SAVELOG "Make next order by take-cup"
|
||||
Open "ROOT/taobin_project/xml/page_thankyouConti.xml"
|
||||
; END
|
||||
|
||||
EndIf
|
||||
Else
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
If HaveCup = "true" Then
|
||||
If MaybeHaveCup = "true" Then
|
||||
|
||||
Else
|
||||
If CupChecking = "true" Then
|
||||
|
||||
Else
|
||||
Var buttonRemoveCup = "Enable"
|
||||
Var txtDrinkOKState = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CupOnArm = "true" Then
|
||||
If MaybeHaveCup = "true" Then
|
||||
|
||||
Else
|
||||
If CupChecking = "true" Then
|
||||
|
||||
Else
|
||||
Var buttonRemoveCup = "Enable"
|
||||
Var txtDrinkOKState = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
EndIf
|
||||
|
||||
Machine DoorClose
|
||||
EndIf
|
||||
|
||||
Else
|
||||
If sendPayMultiFlag = 1 Then
|
||||
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
If HaveCup = "true" Then
|
||||
If MaybeHaveCup = "true" Then
|
||||
|
||||
Else
|
||||
If CupChecking = "true" Then
|
||||
|
||||
Else
|
||||
Var buttonRemoveCup = "Enable"
|
||||
Var txtDrinkOKState = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CupOnArm = "true" Then
|
||||
If MaybeHaveCup = "true" Then
|
||||
|
||||
Else
|
||||
If CupChecking = "true" Then
|
||||
|
||||
Else
|
||||
Var buttonRemoveCup = "Enable"
|
||||
Var txtDrinkOKState = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
EndIf
|
||||
|
||||
Var Seeker.TNumberTaobinMember = ""
|
||||
|
||||
If FailedCount > 0 Then
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
Else
|
||||
If NextOrder = "true" Then
|
||||
|
||||
; Fast-forward to page_cannotConti
|
||||
If RejectOrder = "true" Then
|
||||
; BEGIN
|
||||
Var NextOrder = "false"
|
||||
|
||||
TransferVar "next" "curr"
|
||||
Var Seeker = "curr"
|
||||
|
||||
SAVELOG "Make next order by RejectOrder"
|
||||
Open "ROOT/taobin_project/xml/page_cannotConti.xml"
|
||||
; END
|
||||
EndIf
|
||||
|
||||
; next order set. Havecup and checkup value must false. Certain cup not on any arm.
|
||||
|
||||
If PaySuccessWithDaemonTask = 1 Then
|
||||
Var NextOrder = "false"
|
||||
SAVELOG "Make next order by pass"
|
||||
Open "ROOT/taobin_project/xml/page_thankyouConti.xml"
|
||||
Else
|
||||
If HaveCup = "false" Then
|
||||
If MaybeHaveCup = "true" Then
|
||||
|
||||
Else
|
||||
If CupChecking = "true" Then
|
||||
|
||||
Else
|
||||
If CupOnArm = "false" Then
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
; BEGIN
|
||||
Var NextOrder = "false"
|
||||
|
||||
TransferVar "next" "curr"
|
||||
Var Seeker = "curr"
|
||||
SAVELOG "Make next order by take-cup"
|
||||
Open "ROOT/taobin_project/xml/page_thankyouConti.xml"
|
||||
; END
|
||||
|
||||
Else
|
||||
Machine DoorClose
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
;
|
||||
|
||||
; this stage for remove cup
|
||||
If MachineStage = "remove-cup" Then
|
||||
If CART_COUNT = 0 Then
|
||||
If NextOrder = "false" Then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue