release 5.87 removecup
This commit is contained in:
parent
e07d9ec840
commit
bc7813d74c
7 changed files with 314 additions and 61 deletions
|
|
@ -99,11 +99,21 @@
|
|||
Var TestLoopFailed = 0
|
||||
|
||||
;Var IgnoreNetCore = "false"
|
||||
;SAVELOG SaleProfile
|
||||
;DEBUGVAR SaleProfile
|
||||
|
||||
STRCONTAIN "whey" SaleProfile WheyShow
|
||||
STRCONTAIN "cocktail" SaleProfile CocktailShow
|
||||
;STRCONTAIN "roadshow" SaleProfile RoadShow
|
||||
;STRCONTAIN "roadshow" SaleProfile RoadShow
|
||||
|
||||
Var cock_tail_str = ""
|
||||
READ_FILE "/mnt/sdcard/cock_tail_enable" cock_tail_str
|
||||
STRCONTAIN "1" cock_tail_str cock_tail_enable
|
||||
If cock_tail_enable = "true" Then
|
||||
Var WheyShow = "false"
|
||||
Var CocktailShow = "true"
|
||||
Var roadshow = "true"
|
||||
EndIf
|
||||
|
||||
|
||||
Var TermTemOnline = "false"
|
||||
Var TaobinOnline = "false"
|
||||
|
|
@ -651,6 +661,25 @@
|
|||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 778 </X>
|
||||
<Y> 632 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/home/home/qr_bg.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<QRCode>
|
||||
<X> 843 </X>
|
||||
<Y> 98 </Y>
|
||||
<Width> 150 </Width>
|
||||
<Color> "0xeae6e1" </Color>
|
||||
<QRColor> "0x000000" </Color>
|
||||
<Height> 150 </Height>
|
||||
<State> WebAppShow </State>
|
||||
<Service> testservice </Service>
|
||||
</QRCode>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 630 </Y>
|
||||
|
|
@ -685,17 +714,6 @@
|
|||
<Value> ShowNetworkProblemText </Value>
|
||||
</Text>
|
||||
|
||||
<QRCode>
|
||||
<X> 895 </X>
|
||||
<Y> 1110 </Y>
|
||||
<Width> 178 </Width>
|
||||
<Color> "0xeae6e1" </Color>
|
||||
<QRColor> "0x000000" </Color>
|
||||
<Height> 178 </Height>
|
||||
<State> WebAppShow </State>
|
||||
<Service> testservice </Service>
|
||||
</QRCode>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
|
|
|
|||
|
|
@ -105,6 +105,21 @@
|
|||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
|
|
|
|||
|
|
@ -2024,6 +2024,21 @@
|
|||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 780 </X>
|
||||
<Y> 500 </Y>
|
||||
<State> buttonRemoveCup </State>
|
||||
;<Color> "0x00BDFF" </Color>
|
||||
<Interval> 500 </Interval>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bn_remove_cup.png" </Filename>
|
||||
<Filename> "ROOT/taobin_project/image/main_page/bp_remove_cup.png" </Filename>
|
||||
<EventClick>
|
||||
Machine RemoveCup
|
||||
Machine DoorLidOpen
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
|
|
|
|||
|
|
@ -4,11 +4,19 @@
|
|||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Sound> "ROOT/sounds/selectDrink.wav" </Sound>
|
||||
<EventOpen>
|
||||
TopView "show"
|
||||
; On open
|
||||
|
||||
WEB "DISABLE"
|
||||
|
||||
Var web_readyOK = "false"
|
||||
Var web_telnumOK = ""
|
||||
|
||||
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
|
||||
|
||||
|
||||
;Machine DoorLidClose
|
||||
|
||||
Var GetPayInfoFlag = 0
|
||||
Var countDownRetrun = 30
|
||||
|
|
@ -22,14 +30,93 @@
|
|||
Var DirImage = "ROOT/taobin_project/image/page2_en/page2"
|
||||
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
||||
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
||||
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
|
||||
Play PlaySoundLag
|
||||
|
||||
Var DirImageCart = "ROOT/taobin_project/image/cart_en"
|
||||
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/page2"
|
||||
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
||||
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
||||
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/taobin_sawade.mp3"
|
||||
Play PlaySoundLag
|
||||
|
||||
Var DirImageCart = "ROOT/taobin_project/image/cart_th"
|
||||
EndIf
|
||||
|
||||
|
||||
Var StrawAutoRelease1 = "false"
|
||||
Var StrawAutoRelease2 = "false"
|
||||
|
||||
|
||||
If NetworkStatus = "ACTIVATE" Then
|
||||
Var ShowButtonClick2 = "Enable"
|
||||
Else
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
EndIf
|
||||
|
||||
If NetworkStatus = "ACTIVATE" Then
|
||||
Var ShowNetworkProblem = "Invisible"
|
||||
Var ShowNetworkProblemText = ""
|
||||
|
||||
GenHashWithTimeStamp QRCODE99
|
||||
WEB "ENABLE"
|
||||
|
||||
Else
|
||||
Var ShowNetworkProblem = "Enable"
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
|
||||
|
||||
Var QRCODE99 = ""
|
||||
WEB "DISABLE"
|
||||
|
||||
EndIf
|
||||
|
||||
; 1035 is Coke.
|
||||
STRCONTAIN "1035" MaterialAvailable CokeUI
|
||||
|
||||
Var bnSodaAndOther = DirImage + "/bn_soda_coke.png"
|
||||
Var bpSodaAndOther = DirImage + "/bp_soda_coke.png"
|
||||
|
||||
|
||||
Var countClick = 0
|
||||
|
||||
|
||||
DEBUGVAR CART_COUNT
|
||||
|
||||
|
||||
Var QRCODE99_Y = 1718
|
||||
|
||||
Var showCart = "Invisible"
|
||||
If MultiPayEnable = "true" Then
|
||||
|
||||
If CART_COUNT = 1 Then
|
||||
Var showCart = "Enable"
|
||||
Var cart_image_bn = DirImageCart + "/bn_cart1.png"
|
||||
Var cart_image_bp = DirImageCart + "/bp_cart1.png"
|
||||
|
||||
Var QRCODE99_Y = 1580
|
||||
|
||||
EndIf
|
||||
|
||||
If CART_COUNT = 2 Then
|
||||
Var showCart = "Enable"
|
||||
Var cart_image_bn = DirImageCart + "/bn_cart2.png"
|
||||
Var cart_image_bp = DirImageCart + "/bp_cart2.png"
|
||||
|
||||
Var QRCODE99_Y = 1580
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If CART_COUNT = 3 Then
|
||||
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
|
@ -44,6 +131,8 @@
|
|||
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
|
@ -54,11 +143,25 @@
|
|||
;EndIf
|
||||
</EventChangeStatus>
|
||||
|
||||
;<Image>
|
||||
;<X> 0 </X>
|
||||
;<Y> 0 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
|
||||
;</Image>
|
||||
<EventWebApp>
|
||||
|
||||
DEBUGVAR web_ready
|
||||
If web_ready = "true" Then
|
||||
If web_ref = QRCODE99 Then
|
||||
Cart "DeleteMenuID" "ALL"
|
||||
Var web_readyOK = web_ready
|
||||
Var web_telnumOK = web_telnum
|
||||
|
||||
|
||||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
EndIf
|
||||
|
||||
</EventWebApp>
|
||||
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
|
|
@ -67,8 +170,11 @@
|
|||
<Height> 380 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> video_menu_0 </Filename>
|
||||
|
||||
</Video>
|
||||
|
||||
|
||||
|
||||
; back
|
||||
<Button>
|
||||
<X> 19 </X>
|
||||
|
|
@ -165,6 +271,19 @@
|
|||
</Button>
|
||||
|
||||
|
||||
; menu row 3
|
||||
;<Button>
|
||||
;<X> 205 </X>
|
||||
;<Y> 1533 </Y>
|
||||
;<Filename> Var(DirImage + "/bn_fruit.png") </Filename>
|
||||
;<FilenamePress> Var(DirImage + "/bp_fruit.png") </FilenamePress>
|
||||
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
;<Volume> SoundVolume </Volume>
|
||||
;<EventClick>
|
||||
; Open "ROOT/taobin_project/xml/page_catalog_choose_drink5.xml"
|
||||
;</EventClick>
|
||||
;</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 205 </X>
|
||||
|
|
@ -178,12 +297,11 @@
|
|||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 579 </X>
|
||||
<Y> 1533 </Y>
|
||||
<Filename> Var(DirImage + "/bn_soda.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_soda.png") </FilenamePress>
|
||||
<Filename> bnSodaAndOther </Filename>
|
||||
<FilenamePress> bpSodaAndOther </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
|
@ -191,28 +309,18 @@
|
|||
</EventClick>
|
||||
</Button>
|
||||
|
||||
;<Text>
|
||||
;<X> 0 </X>
|
||||
;<Y> 1886 </Y>
|
||||
;<Size> 20 </Size>
|
||||
;<Width> 1080</Width>
|
||||
;<Align> Center </Align>
|
||||
;<Font> RobotoBlack </Font>
|
||||
;<Color> 0x513C2F </Color>
|
||||
;<Value> countDownRetrun </Value>
|
||||
;</Text>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 392 </X>
|
||||
<X> 225 </X>
|
||||
<Y> 424 </Y>
|
||||
<State> ShowButtonClick2 </State>
|
||||
<Filename> Var(DirImage + "/bn_main_page_member.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_main_page_member.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; eng
|
||||
;Open "ROOT/xml/service_menu.xml"
|
||||
Open "ROOT/taobin_project/xml/page_check_member.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
|
@ -220,6 +328,7 @@
|
|||
<Button>
|
||||
<X> 696 </X>
|
||||
<Y> 424 </Y>
|
||||
<State> ShowButtonClick2 </State>
|
||||
<Filename> Var(DirImage + "/bn_main_page_topup.png") </Filename>
|
||||
<FilenamePress> Var(DirImage + "/bp_main_page_topup.png") </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
|
|
@ -231,5 +340,104 @@
|
|||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 1870 </Y>
|
||||
<State> ShowNetworkProblem </State>
|
||||
<Color> "0xFF0000" </Color>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 60 </Height>
|
||||
</Button>
|
||||
|
||||
<Text>
|
||||
<X> 5 </X>
|
||||
<Y> 1880 </Y>
|
||||
<Size> 24 </Size>
|
||||
<Align> Center </Align>
|
||||
<Width> 1080 </Width>
|
||||
<Font> RobotoRegular </Font>
|
||||
<Color> 0xFFFFFF </Color>
|
||||
<Value> ShowNetworkProblemText </Value>
|
||||
</Text>
|
||||
|
||||
<Button>
|
||||
<X> 0 </X>
|
||||
<Y> 1860 </Y>
|
||||
<Width> 200 </Width>
|
||||
<Height> 50 </Height>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var countClick = countClick + 1
|
||||
If countClick = 3 Then
|
||||
|
||||
;Var TestLoopMakeDrink = 1
|
||||
|
||||
EndIf
|
||||
DEBUGVAR countClick
|
||||
|
||||
If countClick = 5 Then
|
||||
If ToppingNewEnable = "false" Then
|
||||
Var ToppingNewEnable = "true"
|
||||
Else
|
||||
Var ToppingNewEnable = "false"
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
|
||||
EndIf
|
||||
|
||||
Refresh
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
;<QRCode>
|
||||
;<X> 895 </X>
|
||||
;<Y> QRCODE99_Y</Y>
|
||||
;<Width> 178 </Width>
|
||||
;<Height> 178 </Height>
|
||||
;<State> "Enable" </State>
|
||||
;<Service> testservice </Service>
|
||||
;</QRCode>
|
||||
|
||||
|
||||
|
||||
; Cart
|
||||
<Button>
|
||||
<X> 915 </X>
|
||||
<Y> 1769 </Y>
|
||||
<State> showCart </State>
|
||||
<Filename> cart_image_bn </Filename>
|
||||
<Filename> cart_image_bp </Filename>
|
||||
<FilenamePress> cart_image_bp </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Interval> 400</Interval>
|
||||
<EventClick>
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
||||
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<EventWebApp>
|
||||
|
||||
DEBUGVAR web_ready
|
||||
If web_ready = "true" Then
|
||||
If web_ref = QRCODE99x Then
|
||||
|
||||
Var web_readyOK = web_ready
|
||||
Var web_telnumOK = web_telnum
|
||||
|
||||
Var web_app_prepar = "true"
|
||||
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
||||
|
||||
EndIf
|
||||
Else
|
||||
EndIf
|
||||
|
||||
</EventWebApp>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
|
|
|
|||
|
|
@ -225,6 +225,11 @@
|
|||
<EventClick>
|
||||
|
||||
|
||||
Var seeker = "next"
|
||||
DEBUGVAR seeker
|
||||
DEBUGVAR seeker.productCode
|
||||
DEBUGVAR seeker.productPrice
|
||||
|
||||
Var seeker = "prev"
|
||||
DEBUGVAR seeker
|
||||
DEBUGVAR seeker.productCode
|
||||
|
|
@ -232,6 +237,7 @@
|
|||
|
||||
TransferVar "prev" "next"
|
||||
|
||||
Var seeker = "next"
|
||||
DEBUGVAR seeker
|
||||
DEBUGVAR seeker.productCode
|
||||
DEBUGVAR seeker.productPrice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue