taobin_project/xml/page_catalog.xml

541 lines
12 KiB
XML
Raw Normal View History

2020-09-14 19:47:50 +07:00
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
2020-09-16 15:32:44 +07:00
<Background> "0xeae6e1" </Background>
2020-09-14 19:47:50 +07:00
<Volume> SoundVolume </Volume>
<EventOpen>
TopView "show"
; On open
2021-08-27 11:46:18 +07:00
2022-05-01 10:57:47 +07:00
Var NextPage = "-"
2022-01-19 14:32:30 +07:00
Var Seeker.thankLidFlag = 0
Var Seeker.thankStrawFlag = 0
2021-12-01 13:05:56 +07:00
WEB "DISABLE"
2021-11-26 15:53:14 +07:00
Var web_readyOK = "false"
2021-11-25 15:56:33 +07:00
Var web_telnumOK = ""
2021-12-09 15:24:23 +07:00
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
2020-09-14 19:47:50 +07:00
2020-12-16 09:50:26 +07:00
If CocktailShow = "true" Then
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
EndIf
2021-04-21 16:13:29 +07:00
If TermTemOnline = "true" Then
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_tt_catalog.xml"
EndIf
2021-05-12 11:53:54 +07:00
2021-10-29 18:02:29 +07:00
;Machine DoorLidClose
2020-09-14 19:47:50 +07:00
2020-09-16 15:32:44 +07:00
Var GetPayInfoFlag = 0
2020-10-12 19:09:05 +07:00
Var countDownRetrun = 30
2020-09-16 15:32:44 +07:00
2020-10-12 19:09:05 +07:00
CoinVending OFF
2022-02-23 10:10:52 +07:00
2020-10-12 19:09:05 +07:00
2020-10-16 16:40:36 +07:00
; Clear value
Topping "clear" "-"
2020-10-27 16:25:17 +07:00
2020-10-28 16:32:20 +07:00
If show_eng = "true" Then
2020-10-29 16:34:12 +07:00
Var DirImage = "ROOT/taobin_project/image/page2_en/page2"
2020-10-28 16:32:20 +07:00
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
2021-01-08 13:04:13 +07:00
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
Play PlaySoundLag
2021-10-15 15:30:55 +07:00
Var DirImageCart = "ROOT/taobin_project/image/cart_en"
2021-01-08 13:04:13 +07:00
2020-10-28 16:32:20 +07:00
Else
2020-10-29 16:34:12 +07:00
Var DirImage = "ROOT/taobin_project/image/page2"
2020-10-28 16:32:20 +07:00
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
2021-01-19 23:43:43 +07:00
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/taobin_sawade.mp3"
Play PlaySoundLag
2021-10-15 15:30:55 +07:00
Var DirImageCart = "ROOT/taobin_project/image/cart_th"
2020-10-28 16:32:20 +07:00
EndIf
2020-10-27 16:25:17 +07:00
2021-01-23 17:48:02 +07:00
Var StrawAutoRelease1 = "false"
Var StrawAutoRelease2 = "false"
2021-01-19 23:43:43 +07:00
2021-08-16 11:24:01 +07:00
If NetworkStatus = "ACTIVATE" Then
Var ShowButtonClick2 = "Enable"
Else
Var ShowButtonClick2 = "Invisible"
2022-01-27 11:12:24 +07:00
Var ButtontoTopupMenu = "Invisible"
2021-08-16 11:24:01 +07:00
EndIf
2021-08-27 11:46:18 +07:00
If NetworkStatus = "ACTIVATE" Then
Var ShowNetworkProblem = "Invisible"
Var ShowNetworkProblemText = ""
2021-11-25 17:58:37 +07:00
;GenHashWithTimeStamp QRCODE99x
2021-11-25 17:58:37 +07:00
WEB "ENABLE"
2021-08-27 11:46:18 +07:00
Else
Var ShowNetworkProblem = "Enable"
Var ShowButtonClick2 = "Invisible"
2022-01-27 11:12:24 +07:00
Var ButtontoTopupMenu = "Invisible"
2021-08-27 11:46:18 +07:00
Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
2021-11-25 17:58:37 +07:00
Var QRCODE99 = ""
WEB "DISABLE"
2021-08-27 11:46:18 +07:00
EndIf
2021-09-06 11:57:37 +07:00
; 1035 is Coke.
STRCONTAIN "1035" MaterialAvailable CokeUI
2021-09-21 23:59:04 +07:00
Var bnSodaAndOther = DirImage + "/bn_soda_coke.png"
Var bpSodaAndOther = DirImage + "/bp_soda_coke.png"
2021-08-16 11:24:01 +07:00
2021-09-22 20:37:09 +07:00
Var countClick = 0
2021-10-15 15:30:55 +07:00
2021-10-15 17:07:29 +07:00
DEBUGVAR CART_COUNT
2021-11-25 17:58:37 +07:00
Var QRCODE99_Y = 1718
2021-10-15 15:30:55 +07:00
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"
2021-11-25 17:58:37 +07:00
Var QRCODE99_Y = 1580
2021-10-15 15:30:55 +07:00
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"
2021-11-25 17:58:37 +07:00
Var QRCODE99_Y = 1580
2021-10-15 15:30:55 +07:00
EndIf
2021-10-15 17:07:29 +07:00
If CART_COUNT = 3 Then
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
EndIf
2021-10-18 11:29:44 +07:00
2021-10-15 15:30:55 +07:00
EndIf
2022-01-11 13:41:12 +07:00
If Seeker = "next" Then
Var ShowButtonClick2 = "Invisible"
2022-01-27 11:12:24 +07:00
Var ButtontoTopupMenu = "Invisible"
2022-01-11 13:41:12 +07:00
EndIf
2022-01-20 14:54:14 +07:00
2022-02-03 21:03:39 +07:00
If XMLProfile = "taobin_notopup" Then
Var ButtontoTopupMenu = "Disable"
EndIf
2022-03-06 23:56:08 +07:00
2022-04-20 15:38:07 +07:00
2022-04-04 16:15:05 +07:00
Var menu_name_eng_hot = ""
Var menu_desc_eng_hot = ""
Var menu_name_thai_hot = ""
Var menu_desc_thai_hot = ""
Var menu_name_eng_cold = ""
Var menu_desc_eng_cold = ""
Var menu_name_thai_cold = ""
Var menu_desc_thai_cold = ""
Var menu_name_eng_blender = ""
Var menu_desc_eng_blender = ""
Var menu_name_thai_blender = ""
Var menu_desc_thai_blender = ""
2022-03-06 23:56:08 +07:00
2020-09-14 19:47:50 +07:00
</EventOpen>
2020-10-12 19:09:05 +07:00
<Timeout> 1000 </Timeout>
2020-09-14 19:47:50 +07:00
<EventTimeout>
2020-11-02 18:05:29 +07:00
2020-10-30 18:21:06 +07:00
;SAVELOG SoundPlaying
2020-11-02 18:05:29 +07:00
2020-10-12 19:09:05 +07:00
If countDownRetrun > 0 Then
Var countDownRetrun = countDownRetrun - 1
EndIf
If countDownRetrun = 0 Then
2022-01-11 13:41:12 +07:00
If Seeker = "next" Then
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
2020-10-12 19:09:05 +07:00
EndIf
2021-01-08 13:04:13 +07:00
2021-10-15 15:30:55 +07:00
2020-10-12 19:09:05 +07:00
Refresh
2020-09-14 19:47:50 +07:00
TimerReset
</EventTimeout>
2020-10-12 19:09:05 +07:00
<EventChangeStatus>
2020-10-26 21:00:16 +07:00
;If ChangeStatus = "payout-end" Then
; Var ChangeOK = 1
;EndIf
2020-10-12 19:09:05 +07:00
</EventChangeStatus>
2020-09-14 19:47:50 +07:00
2021-11-25 15:56:33 +07:00
<EventWebApp>
DEBUGVAR web_ready
If web_ready = "true" Then
If web_ref = QRCODE99 Then
2021-11-25 17:58:37 +07:00
Cart "DeleteMenuID" "ALL"
2021-11-26 15:53:14 +07:00
Var web_readyOK = web_ready
2021-11-25 15:56:33 +07:00
Var web_telnumOK = web_telnum
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
EndIf
Else
EndIf
</EventWebApp>
2020-11-22 21:50:53 +07:00
<Video>
2020-09-14 19:47:50 +07:00
<X> 0 </X>
<Y> 0 </Y>
2020-11-22 21:50:53 +07:00
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
2021-05-12 11:53:54 +07:00
<Filename> video_menu_0 </Filename>
2021-01-08 13:04:13 +07:00
2020-11-22 21:50:53 +07:00
</Video>
2020-09-14 19:47:50 +07:00
2021-01-08 13:04:13 +07:00
2020-09-14 19:47:50 +07:00
; back
<Button>
<X> 19 </X>
<Y> 420 </Y>
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2021-12-23 18:41:56 +07:00
If Seeker = "next" Then
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
Else
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
2020-09-14 19:47:50 +07:00
</EventClick>
</Button>
<Button>
<X> 990 </X>
<Y> 438 </Y>
2020-10-28 16:32:20 +07:00
<Filename> show_btn </Filename>
<FilenamePress> show_btp </FilenamePress>
2020-09-14 19:47:50 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
2020-10-28 16:32:20 +07:00
If show_eng = "true" Then
Var show_eng = "false"
Else
Var show_eng = "true"
EndIf
Open CurrentXMLFileName2
2020-09-14 19:47:50 +07:00
</EventClick>
</Button>
<Image>
2020-10-28 16:32:20 +07:00
<X> 70 </X>
<Y> 583 </Y>
2020-10-29 16:34:12 +07:00
<Filename> Var(DirImage + "/text1.png") </Filename>
2020-09-14 19:47:50 +07:00
</Image>
2020-10-27 16:25:17 +07:00
2020-09-16 15:32:44 +07:00
; menu row 1
<Button>
<X> 205 </X>
<Y> 849 </Y>
2020-10-29 16:34:12 +07:00
<Filename> Var(DirImage + "/bn_diy.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_diy.png") </FilenamePress>
2020-09-16 15:32:44 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
2022-04-03 11:01:43 +07:00
If new_layout = "true" Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_choose_drink1.xml"
EndIf
2020-09-16 15:32:44 +07:00
</EventClick>
</Button>
<Button>
<X> 579 </X>
<Y> 849 </Y>
2020-10-29 16:34:12 +07:00
<Filename> Var(DirImage + "/bn_coffee.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_coffee.png") </FilenamePress>
2020-09-16 15:32:44 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2022-03-06 23:56:08 +07:00
If new_layout = "true" Then
Open "ROOT/taobin_project/xml/page_catalog_group_coffee.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_choose_drink2.xml"
EndIf
2020-09-16 15:32:44 +07:00
</EventClick>
</Button>
; menu row 2
<Button>
<X> 205 </X>
<Y> 1191 </Y>
2020-10-29 16:34:12 +07:00
<Filename> Var(DirImage + "/bn_tea.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_tea.png") </FilenamePress>
2020-09-16 15:32:44 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2022-03-21 16:36:20 +07:00
If new_layout = "true" Then
Open "ROOT/taobin_project/xml/page_catalog_group_tea.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
EndIf
2020-09-16 15:32:44 +07:00
</EventClick>
</Button>
<Button>
<X> 579 </X>
<Y> 1191 </Y>
2020-10-29 16:34:12 +07:00
<Filename> Var(DirImage + "/bn_cho_caramel.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_cho_caramel.png") </FilenamePress>
2020-09-16 15:32:44 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2022-03-21 16:36:20 +07:00
If new_layout = "true" Then
Open "ROOT/taobin_project/xml/page_catalog_group_milk.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_choose_drink4.xml"
EndIf
2020-09-16 15:32:44 +07:00
</EventClick>
</Button>
; menu row 3
2020-12-05 22:46:39 +07:00
;<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>
2020-09-16 15:32:44 +07:00
<Button>
<X> 205 </X>
<Y> 1533 </Y>
2022-02-15 10:29:57 +07:00
<State>WheyButtonState</State>
2020-12-05 22:46:39 +07:00
<Filename> Var(DirImage + "/bn_protein.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_protein.png") </FilenamePress>
2020-09-16 15:32:44 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2022-03-21 16:36:20 +07:00
If new_layout = "true" Then
Open "ROOT/taobin_project/xml/page_catalog_group_whey.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
EndIf
2020-09-16 15:32:44 +07:00
</EventClick>
</Button>
2022-02-15 10:29:57 +07:00
<Button>
<X> 205 </X>
<Y> 1533 </Y>
<State>AppFastButtonState</State>
<Filename> Var(DirImage + "/bn_appfast.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_appfast.png") </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2022-03-21 16:36:20 +07:00
If new_layout = "true" Then
Open "ROOT/taobin_project/xml/page_catalog_group_appfast.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_choose_drink11.xml"
EndIf
2022-02-15 10:29:57 +07:00
</EventClick>
</Button>
2020-12-05 22:46:39 +07:00
2020-09-16 15:32:44 +07:00
<Button>
<X> 579 </X>
<Y> 1533 </Y>
2021-09-06 11:57:37 +07:00
<Filename> bnSodaAndOther </Filename>
<FilenamePress> bpSodaAndOther </FilenamePress>
2020-09-16 15:32:44 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2022-03-21 16:36:20 +07:00
If new_layout = "true" Then
Open "ROOT/taobin_project/xml/page_catalog_group_other.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_choose_drink6.xml"
EndIf
2020-09-16 15:32:44 +07:00
</EventClick>
</Button>
2020-09-14 19:47:50 +07:00
2020-10-27 21:00:50 +07:00
<Button>
2021-09-21 14:32:02 +07:00
<X> 225 </X>
2020-10-27 21:00:50 +07:00
<Y> 424 </Y>
2021-08-16 11:24:01 +07:00
<State> ShowButtonClick2 </State>
2020-10-29 16:34:12 +07:00
<Filename> Var(DirImage + "/bn_main_page_member.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_page_member.png") </FilenamePress>
2020-10-27 21:00:50 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
2021-01-28 13:41:28 +07:00
Open "ROOT/taobin_project/xml/page_check_member.xml"
2020-10-27 21:00:50 +07:00
</EventClick>
</Button>
<Button>
<X> 696 </X>
<Y> 424 </Y>
2022-01-20 14:54:14 +07:00
<State> ButtontoTopupMenu </State>
2020-10-29 16:34:12 +07:00
<Filename> Var(DirImage + "/bn_main_page_topup.png") </Filename>
<FilenamePress> Var(DirImage + "/bp_main_page_topup.png") </FilenamePress>
2022-02-03 21:03:39 +07:00
<FilenameDisable> Var(DirImage + "/bp_main_page_topup.png") </FilenameDisable>
2020-10-27 21:00:50 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; eng
2022-01-11 15:33:46 +07:00
Var PayDetail=""
2020-10-27 21:00:50 +07:00
Open "ROOT/taobin_project/xml/page_back_to_topup.xml"
</EventClick>
</Button>
2021-08-27 11:46:18 +07:00
<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>
2021-09-15 16:06:13 +07:00
<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
2021-09-22 20:37:09 +07:00
If ToppingNewEnable = "false" Then
Var ToppingNewEnable = "true"
Else
Var ToppingNewEnable = "false"
EndIf
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
2021-09-15 16:06:13 +07:00
EndIf
Refresh
</EventClick>
</Button>
2020-10-27 21:00:50 +07:00
2021-11-30 14:58:53 +07:00
;<QRCode>
;<X> 895 </X>
;<Y> QRCODE99_Y</Y>
;<Width> 178 </Width>
;<Height> 178 </Height>
;<State> "Enable" </State>
;<Service> testservice </Service>
;</QRCode>
2021-11-25 17:58:37 +07:00
2021-09-21 14:32:02 +07:00
2021-10-15 15:30:55 +07:00
; Cart
<Button>
<X> 915 </X>
<Y> 1769 </Y>
<State> showCart </State>
<Filename> cart_image_bn </Filename>
2021-11-24 23:28:56 +07:00
<Filename> cart_image_bp </Filename>
2021-10-15 15:30:55 +07:00
<FilenamePress> cart_image_bp </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
2021-11-24 23:28:56 +07:00
<Interval> 400</Interval>
2021-10-15 15:30:55 +07:00
<EventClick>
2021-10-18 16:01:33 +07:00
2021-11-10 15:33:47 +07:00
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
2021-10-18 11:29:44 +07:00
2021-10-15 15:30:55 +07:00
</EventClick>
</Button>
2021-12-01 14:38:03 +07:00
<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>
2021-09-21 14:32:02 +07:00
2021-11-25 15:56:33 +07:00
2020-09-14 19:47:50 +07:00
</Popup>