Coffee-Multi
This commit is contained in:
parent
6190f8ad3a
commit
7b8d71b08a
62 changed files with 3674 additions and 177 deletions
335
xml/page_drinkfail2Multi.xml
Normal file
335
xml/page_drinkfail2Multi.xml
Normal file
|
|
@ -0,0 +1,335 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xEFEDEA" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Refresh> "Partial" </Refresh>
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/complete_en/"
|
||||
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/complete/"
|
||||
EndIf
|
||||
|
||||
Var Timeout = 0
|
||||
Var Timeout2 = 0
|
||||
StopLongPlay
|
||||
|
||||
|
||||
Var FailedCount = FailedCount + 1
|
||||
|
||||
Var MachineErrorDetailAll = MachineErrorDetail + " / "
|
||||
Var MachineErrorDetailAll = MachineErrorDetailAll + MachineErrorDetailEng
|
||||
|
||||
Var ServiceAmountSum = ServiceAmountSum - ServiceAmount2
|
||||
|
||||
Var sendPayMultiFlag = 0
|
||||
Var next_pic = ""
|
||||
Var next_name = ""
|
||||
Var nextCount = ""
|
||||
Var next_pic_bg = ""
|
||||
Var next_ready = "true"
|
||||
Var cart_next = 0
|
||||
|
||||
If show_eng = "true" Then
|
||||
If CART_COUNT > 0 Then
|
||||
If CART_INDEX < CART_COUNT Then
|
||||
|
||||
Var next_pic_bg = DirImage + "/Preparing.png"
|
||||
|
||||
Var cart_next = CART_INDEX + 1
|
||||
Var nextCount = "" + cart_next
|
||||
Var nextCount = nextCount + "/"
|
||||
Var nextCount = nextCount + CART_COUNT
|
||||
|
||||
If cart_next = 2 Then
|
||||
Var next_pic = "ROOT/taobin_project/image/page_drink/" + CART2_PICTURE
|
||||
Var next_name = CART2_NAME_ENG
|
||||
Var next_ready = CART2_READY
|
||||
|
||||
SAVELOG cart_next
|
||||
|
||||
EndIf
|
||||
|
||||
If cart_next = 3 Then
|
||||
Var next_pic = "ROOT/taobin_project/image/page_drink/" + CART3_PICTURE
|
||||
Var next_name = CART3_NAME_ENG
|
||||
Var next_ready = CART3_READY
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
If CART_COUNT > 0 Then
|
||||
If CART_INDEX < CART_COUNT Then
|
||||
|
||||
Var next_pic_bg = DirImage + "/Preparing.png"
|
||||
|
||||
Var cart_next = CART_INDEX + 1
|
||||
Var nextCount = "" + cart_next
|
||||
Var nextCount = nextCount + "/"
|
||||
Var nextCount = nextCount + CART_COUNT
|
||||
|
||||
If cart_next = 2 Then
|
||||
Var next_pic = "ROOT/taobin_project/image/page_drink/" + CART2_PICTURE
|
||||
Var next_name = CART2_NAME_THAI
|
||||
Var next_ready = CART2_READY
|
||||
|
||||
SAVELOG cart_next
|
||||
|
||||
EndIf
|
||||
|
||||
If cart_next = 3 Then
|
||||
Var next_pic = "ROOT/taobin_project/image/page_drink/" + CART3_PICTURE
|
||||
Var next_name = CART3_NAME_THAI
|
||||
Var next_ready = CART3_READY
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
SAVELOG next_ready
|
||||
|
||||
|
||||
|
||||
If next_ready = "false" Then
|
||||
Var next_pic = ""
|
||||
Var next_name = ""
|
||||
Var nextCount = ""
|
||||
Var next_pic_bg = ""
|
||||
|
||||
|
||||
If cart_next = 2 Then
|
||||
If TNumberTaobinCredit = "" Then
|
||||
Var TelephoneNumber = "0899999999"
|
||||
Var PayO2 = ""
|
||||
If TNumberTaobinMember = "" Then
|
||||
Else
|
||||
Var TelephoneNumber = TNumberTaobinMember
|
||||
EndIf
|
||||
Else
|
||||
Var TelephoneNumber = TNumberTaobinCredit
|
||||
Var PayO2 = CoffeePinNumber
|
||||
EndIf
|
||||
|
||||
Var PayDetail="1/F:0/0/"
|
||||
Var ServiceType = "coffee"
|
||||
Var ServiceCredit = CART2_PDCODE
|
||||
Var SuggestID = ""
|
||||
Var SessionID2 =
|
||||
|
||||
Var ServiceAmount2 = CART2_PRICE
|
||||
|
||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||
EndIf
|
||||
|
||||
If cart_next < CART_COUNT Then
|
||||
Var cart_next = cart_next + 1
|
||||
EndIf
|
||||
|
||||
If cart_next = 3 Then
|
||||
If TNumberTaobinCredit = "" Then
|
||||
Var TelephoneNumber = "0899999999"
|
||||
Var PayO2 = ""
|
||||
If TNumberTaobinMember = "" Then
|
||||
Else
|
||||
Var TelephoneNumber = TNumberTaobinMember
|
||||
EndIf
|
||||
Else
|
||||
Var TelephoneNumber = TNumberTaobinCredit
|
||||
Var PayO2 = CoffeePinNumber
|
||||
EndIf
|
||||
|
||||
Var PayDetail="1/F:0/0/"
|
||||
Var ServiceType = "coffee"
|
||||
Var ServiceCredit = CART3_PDCODE
|
||||
Var SuggestID = ""
|
||||
Var SessionID2 =
|
||||
|
||||
Var ServiceAmount2 = CART3_PRICE
|
||||
|
||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Var CART_INDEX = CART_COUNT
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
If CART_INDEX = CART_COUNT Then
|
||||
|
||||
;Pay Multi
|
||||
If sendPayMultiFlag = 0 Then
|
||||
|
||||
If PayWithQR = 0 Then
|
||||
Var ServiceType = "coffee-multi"
|
||||
Else
|
||||
Var ServiceType = "coffee-multiQR"
|
||||
EndIf
|
||||
|
||||
If TNumberTaobinCredit = "" Then
|
||||
Var TelephoneNumber = "0899999999"
|
||||
Var PayO2 = ""
|
||||
If TNumberTaobinMember = "" Then
|
||||
Else
|
||||
Var TelephoneNumber = TNumberTaobinMember
|
||||
EndIf
|
||||
Else
|
||||
Var TelephoneNumber = TNumberTaobinCredit
|
||||
Var PayO2 = CoffeePinNumber
|
||||
EndIf
|
||||
|
||||
Var ServiceCredit = "00-00-00-0000"
|
||||
Var SuggestID = ""
|
||||
Var PayDetail="1/S:0/0/"
|
||||
Var SessionID3 = "" + CART_COUNT
|
||||
Var SessionID3 = SessionID3 + ":00000"
|
||||
|
||||
|
||||
SAVELOG PayO2
|
||||
|
||||
Var PayType = ""
|
||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID3 ServiceAmountSum ServiceCharge Donate
|
||||
|
||||
|
||||
Var sendPayMultiFlag = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
SAVELOG MachineStage
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
|
||||
If MachineStage = "show-menu" Then
|
||||
|
||||
If CART_INDEX < CART_COUNT Then
|
||||
|
||||
Var CART_INDEX = CART_INDEX + 1
|
||||
Cart "PreparID" CART_INDEX
|
||||
Open "ROOT/taobin_project/xml/page_thankyouMore.xml"
|
||||
|
||||
Else
|
||||
If sendPayMultiFlag = 1 Then
|
||||
Var TNumberTaobinMember = ""
|
||||
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If MachineStage = "remove-cup" Then
|
||||
;Open "ROOT/taobin_project/xml/page_drinkfail3.xml"
|
||||
|
||||
Var Timeout2 = Timeout2 + 1
|
||||
|
||||
If Timeout2 > 15 Then
|
||||
Play "/mnt/sdcard/coffeevending/taobin_project/sound_thai/remove_cup.mp3"
|
||||
Var Timeout2 = 0
|
||||
EndIf
|
||||
|
||||
Else
|
||||
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 380 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> video_menu_0 </Filename>
|
||||
</Video>
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 46 </X>
|
||||
<Y> 592 </Y>
|
||||
<Filename> Var( DirImage + "/imgDrinkFailed.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 22 </X>
|
||||
<Y> 1384 </Y>
|
||||
<Filename> Var( DirImage + "/txtDrinkFailed.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 757 </X>
|
||||
<Y> 424 </Y>
|
||||
<Filename> next_pic_bg </Filename>
|
||||
</Image>
|
||||
|
||||
<Text>
|
||||
<X> 757 </X>
|
||||
<Y> 448 </Y>
|
||||
<Size> 20 </Size>
|
||||
<Width> 280</Width>
|
||||
<Align> Center </Align>
|
||||
<Font> RobotoBlack </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> nextCount </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 757 </X>
|
||||
<Y> 538 </Y>
|
||||
<Size> 20 </Size>
|
||||
<Width> 280</Width>
|
||||
<Align> Center </Align>
|
||||
<Font> RobotoBlack </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> next_name </Value>
|
||||
</Text>
|
||||
|
||||
<Image>
|
||||
<X> 823 </X>
|
||||
<Y> 600 </Y>
|
||||
<Width> 148 </Width>
|
||||
<Height> 200 </Height>
|
||||
<Filename> next_pic </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
Loading…
Add table
Add a link
Reference in a new issue