do between order
This commit is contained in:
parent
8991619abd
commit
8b4dfb62d9
17 changed files with 2690 additions and 351 deletions
215
xml/page_pickup_cup_between_order.xml
Normal file
215
xml/page_pickup_cup_between_order.xml
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
Var Timeout2 = 0
|
||||
SAVELOG "open page_pickup_cup_between_order.xml"
|
||||
|
||||
DEBUGVAR EnableDoubleCupNoError
|
||||
DEBUGVAR HURR_FOREVER
|
||||
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/user_take_cup_en/"
|
||||
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/user_take_cup_th/"
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Seeker.showname
|
||||
DEBUGVAR UserSelectProductCode
|
||||
DEBUGVAR topping1
|
||||
DEBUGVAR topping2
|
||||
DEBUGVAR topping3
|
||||
DEBUGVAR topping4
|
||||
DEBUGVAR topping5
|
||||
DEBUGVAR topping6
|
||||
DEBUGVAR topping7
|
||||
DEBUGVAR topping8
|
||||
DEBUGVAR topping9
|
||||
DEBUGVAR topping10
|
||||
|
||||
Var PayCredit = 1
|
||||
Var TimeoutForReCheckCup = 0
|
||||
|
||||
SAVELOG "version 0.9"
|
||||
|
||||
Var MenuReadyForCup = "#"
|
||||
Var MenuReOrder = "-"
|
||||
Var RequestPickupCupAlert = "-"
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var TimeoutForReCheckCup = TimeoutForReCheckCup + 1
|
||||
DEBUGVAR MachineStage
|
||||
|
||||
DEBUGVAR HaveCup
|
||||
DEBUGVAR CHECKCUP
|
||||
DEBUGVAR DoorCupPosition
|
||||
DEBUGVAR RequestPickupCupAlert
|
||||
DEBUGVAR ProductCodeBrewing
|
||||
DEBUGVAR MenuReadyForCup
|
||||
DEBUGVAR TimeoutForReCheckCup
|
||||
|
||||
If TimeoutForReCheckCup > 3 Then
|
||||
Var TimeoutForReCheckCup = 0
|
||||
Var MenuReadyForCup = "#"
|
||||
__CMD "check-cup" ProductCodeBrewing "-" "-"
|
||||
EndIf
|
||||
|
||||
If MenuReadyForCup = "YES" Then
|
||||
__CMD "re-order" ProductCodeBrewing "-" "XML page_pickup_cup_between_order"
|
||||
EndIf
|
||||
|
||||
; Set stage machine come back to between order
|
||||
If MachineStage = "remove-cup" Then
|
||||
__CMD "set-stage-to-between-cup" "-" "-" "-"
|
||||
EndIf
|
||||
|
||||
If MenuReOrder = "success" Then
|
||||
|
||||
SAVELOG " MenuReOrder MenuReOrder success "
|
||||
Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
; any with timeout and arm cup ready.
|
||||
If RequestPickupCupAlert = "brewing" Then
|
||||
|
||||
SAVELOG " RequestPickupCupAlert is brewing3 "
|
||||
Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
; no take cup. forward to page_NewBrewing3Conti.xml
|
||||
If RequestPickupCupAlert = "fail" Then
|
||||
|
||||
SAVELOG " RequestPickupCupAlert is fail "
|
||||
Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml"
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
; Do not change
|
||||
;
|
||||
If MachineStage = "show-menu" Then
|
||||
If HaveCup = "false" Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
Var Timeout2 = Timeout2 + 1
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If Timeout2 > 5 Then
|
||||
SAVELOG " Timeout2 > 5 "
|
||||
Open "ROOT/taobin_project/xml/page_NewBrewing3Conti.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
DEBUGVAR Timeout
|
||||
DEBUGVAR Timeout2
|
||||
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
Else
|
||||
If HaveCup = "true" Then
|
||||
|
||||
If InternationalEnable = 1 Then
|
||||
|
||||
Else
|
||||
If Timeout = 4 Then
|
||||
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
|
||||
EndIf
|
||||
If Timeout = 54 Then
|
||||
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
|
||||
EndIf
|
||||
If Timeout = 90 Then
|
||||
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If Timeout > 240 Then
|
||||
SAVELOG "Timeout 240 from can not close door"
|
||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
; move to remove_cup_step Timeout = Timeout + 1
|
||||
;include=ROOT/taobin_project/inc/remove_cup_step.inc
|
||||
|
||||
If Timeout = 3 Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
Machine RemoveCup
|
||||
Var buttonRemoveCup = "Invisible"
|
||||
; override for buttonRemoveCup Invisible away
|
||||
Var CheckCupStateDoorCupClose = "-"
|
||||
Var DoorCupPosition = "-"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
|
||||
</EventTimeout>
|
||||
|
||||
<EventChangeStatus>
|
||||
If ChangeStatus = "payout-end" Then
|
||||
Var MultiGo = 1
|
||||
EndIf
|
||||
</EventChangeStatus>
|
||||
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 335 </X>
|
||||
<Y> 1090 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/user_take_cup_th/img_take_cup.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 609 </Y>
|
||||
<Filename> Var(DirImage + "/img_take_cup_for_next_brew.png") </Filename>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 212 </X>
|
||||
<Y> 1673 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
<Filename> Var( DirImage + "/bn_door_open_take_double_cup.png" ) </Filename>
|
||||
<FilenamePress> Var( DirImage + "/bp_door_open_take_double_cup.png" ) </FilenamePress>
|
||||
<FilenameDisable> Var( DirImage + "/bd_door_open_take_double_cup.png" ) </FilenameDisable>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<EventUnitTest1>
|
||||
Open CurrentXMLFileName2
|
||||
</EventUnitTest1>
|
||||
|
||||
</Popup>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue