2020-09-14 15:09:29 +07:00
|
|
|
<Page>
|
2020-09-14 19:07:20 +07:00
|
|
|
<X> 0 </X>
|
|
|
|
|
<Y> 608 </Y>
|
2020-09-14 15:09:29 +07:00
|
|
|
<Cache> "Enable" </Cache>
|
|
|
|
|
<Width> 1080 </Width>
|
|
|
|
|
<Height> 1312 </Height>
|
2024-03-24 14:37:28 +07:00
|
|
|
<Background> "0xeae6e1" </Background>
|
2020-09-14 15:09:29 +07:00
|
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
|
<EventOpen>
|
2024-04-05 10:32:52 +07:00
|
|
|
;TopView "hide"
|
|
|
|
|
;OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/topview_blank_main.xml"
|
2020-12-16 09:50:26 +07:00
|
|
|
Var FileNumber = 1
|
2020-10-28 11:31:11 +07:00
|
|
|
|
2023-05-23 08:11:55 +07:00
|
|
|
Var img_press_main_page = "ROOT/taobin_project/image/main_page/bp_main_page_start.png"
|
2024-03-24 14:37:28 +07:00
|
|
|
|
|
|
|
|
Var img_rest_main_page = ""
|
|
|
|
|
Var MemberButtonFileNameRest = ""
|
|
|
|
|
Var img_reset_topup = ""
|
|
|
|
|
|
2024-01-22 13:06:50 +07:00
|
|
|
Var CNTDOWN_PROTECT_SCREEN_BLANK = 120
|
2021-10-29 18:02:29 +07:00
|
|
|
DEBUGVAR SoundVolume
|
2021-07-23 17:27:25 +07:00
|
|
|
|
2022-11-11 14:45:27 +07:00
|
|
|
Var credit_card_enable = ""
|
|
|
|
|
READ_FILE "/mnt/sdcard/credit_card_enable" credit_card_enable
|
|
|
|
|
|
2022-02-28 22:33:45 +07:00
|
|
|
|
2022-10-27 14:02:58 +07:00
|
|
|
Var eng_enable = "true"
|
|
|
|
|
Var thai_enable = "true"
|
|
|
|
|
|
2022-04-04 17:44:14 +07:00
|
|
|
Var show_eng = "false"
|
2022-01-19 14:32:30 +07:00
|
|
|
Var NextOrder = "false"
|
|
|
|
|
|
|
|
|
|
Var Seeker = "next"
|
|
|
|
|
Var Seeker.thankLidFlag = 0
|
|
|
|
|
Var Seeker.thankStrawFlag = 0
|
2021-11-25 15:56:33 +07:00
|
|
|
|
2021-12-09 15:29:52 +07:00
|
|
|
Var Seeker = "curr"
|
2022-01-19 14:32:30 +07:00
|
|
|
Var Seeker.thankLidFlag = 0
|
|
|
|
|
Var Seeker.thankStrawFlag = 0
|
2021-12-09 15:15:11 +07:00
|
|
|
|
2021-11-25 15:56:33 +07:00
|
|
|
DEBUGVAR web_ref
|
|
|
|
|
DEBUGVAR web_payment
|
|
|
|
|
DEBUGVAR web_telnum
|
|
|
|
|
DEBUGVAR web_code
|
|
|
|
|
DEBUGVAR web_pin
|
|
|
|
|
|
|
|
|
|
Var web_telnumOK = ""
|
2021-11-26 15:53:14 +07:00
|
|
|
Var web_readyOK = "false"
|
2021-11-25 15:56:33 +07:00
|
|
|
|
2021-07-23 17:27:25 +07:00
|
|
|
Var GetFreeFromError = 0
|
2022-06-20 12:22:14 +07:00
|
|
|
|
2021-10-18 16:01:33 +07:00
|
|
|
|
|
|
|
|
Cart "DeleteMenuID" "ALL"
|
2022-03-24 11:33:05 +07:00
|
|
|
Var MultiPayEnable = "false"
|
|
|
|
|
;Var MultiPayEnable = "true"
|
2021-12-01 11:41:52 +07:00
|
|
|
Var ShoppyPayEnable = "true"
|
2021-11-30 13:52:43 +07:00
|
|
|
Var WebAppEnable = "true"
|
|
|
|
|
Var WebAppShow = "Enable"
|
2021-11-10 15:33:47 +07:00
|
|
|
Var PayType = ""
|
2020-10-28 11:31:11 +07:00
|
|
|
|
2022-05-24 14:07:55 +07:00
|
|
|
Var Seeker.CurrCreditAmount = 0
|
|
|
|
|
Var Seeker.CurrCreditUse = 0
|
|
|
|
|
Var Seeker.CurrCreditTelNum = ""
|
|
|
|
|
Var Seeker.CurrCreditPinNum = ""
|
|
|
|
|
|
2022-08-23 16:48:41 +07:00
|
|
|
DEBUGVAR PaySuccessWithDaemonTask
|
|
|
|
|
|
|
|
|
|
Var PaidPaymentFromNextStage = 0
|
|
|
|
|
Var DrinkPaid = "-"
|
2022-07-04 15:06:36 +07:00
|
|
|
|
|
|
|
|
|
2020-09-14 15:09:29 +07:00
|
|
|
; On open
|
2020-10-15 13:14:09 +07:00
|
|
|
Var menu_back_to_main = "ROOT/taobin_project/xml/page_back_to_main.xml"
|
2020-09-29 17:02:36 +07:00
|
|
|
|
2020-09-16 18:42:32 +07:00
|
|
|
Var charOfBaht = "฿"
|
2020-09-16 22:15:42 +07:00
|
|
|
Var KanitTTF = "ROOT/taobin_project/font/Kanit/Kanit-Light.ttf"
|
2020-09-17 17:35:58 +07:00
|
|
|
Var KanitMediaTTF = "ROOT/taobin_project/font/Kanit/Kanit-Medium.ttf"
|
2020-10-15 18:29:38 +07:00
|
|
|
Var KanitBoldTTF = "ROOT/taobin_project/font/Kanit/Kanit-Bold.ttf"
|
|
|
|
|
|
2020-09-17 12:39:18 +07:00
|
|
|
Var RobotoBold = "ROOT/taobin_project/font/Roboto/Roboto-Bold.ttf"
|
2020-09-17 19:08:21 +07:00
|
|
|
Var RobotoBlack = "ROOT/taobin_project/font/Roboto/Roboto-Black.ttf"
|
2020-10-15 18:29:38 +07:00
|
|
|
Var RobotoRegular = "ROOT/taobin_project/font/Roboto/Roboto-Regular.ttf"
|
2023-09-26 17:04:50 +07:00
|
|
|
Var RobotoThin = "ROOT/taobin_project/font/Roboto/Roboto-Thin.ttf"
|
2020-09-18 15:24:35 +07:00
|
|
|
|
2024-03-28 16:51:17 +07:00
|
|
|
Var RobotoCondensedRegular = "ROOT/taobin_project/font/Roboto/RobotoCondensed-Regular.ttf"
|
|
|
|
|
|
2020-09-25 12:59:30 +07:00
|
|
|
Var KanitMediumTTF = "ROOT/taobin_project/font/Kanit/Kanit-Regular.ttf"
|
|
|
|
|
Var KanitRegularTTF = "ROOT/taobin_project/font/Kanit/Kanit-Regular.ttf"
|
|
|
|
|
Var KanitThinTTF = "ROOT/taobin_project/font/Kanit/Kanit-Thin.ttf"
|
|
|
|
|
Var KanitLightTTF = "ROOT/taobin_project/font/Kanit/Kanit-Light.ttf"
|
2022-05-01 10:57:47 +07:00
|
|
|
|
|
|
|
|
Var OpunMediumTTF = "ROOT/taobin_project/font/Opun/Opun-Medium.ttf"
|
|
|
|
|
Var OpunThinTTF = "ROOT/taobin_project/font/Opun/Opun-Thin.ttf"
|
2024-05-18 23:22:55 +07:00
|
|
|
Var OpunBoldTTF = "ROOT/taobin_project/font/Opun/Opun-Bold.ttf"
|
2020-09-25 12:59:30 +07:00
|
|
|
|
|
|
|
|
Var KanitSemiBoldTTF = "ROOT/taobin_project/font/Kanit/Kanit-Medium.ttf"
|
|
|
|
|
|
2020-12-15 10:56:08 +07:00
|
|
|
Var BlinkStar = "ROOT/taobin_project/image/animation/blink_star.gif"
|
|
|
|
|
|
2022-09-11 00:03:11 +07:00
|
|
|
Var MITRegularTTF = "ROOT/taobin_project/font/Mitr/Mitr-Regular.ttf"
|
|
|
|
|
|
2024-03-28 16:51:17 +07:00
|
|
|
Var DinCondensedRegular = "ROOT/taobin_project/font/Din/DIN-Regular.ttf"
|
|
|
|
|
Var DinCondensedBold = "ROOT/taobin_project/font/Din/DIN-Condensed-Bold.ttf"
|
|
|
|
|
|
2024-04-22 14:51:26 +07:00
|
|
|
Var ChivoMonoBold = "ROOT/taobin_project/font/ChivoMono/ChivoMono-Bold.ttf"
|
|
|
|
|
Var ChivoMonoSemiBold = "ROOT/taobin_project/font/ChivoMono/ChivoMono-SemiBold.ttf"
|
|
|
|
|
|
2024-05-17 11:19:10 +07:00
|
|
|
Var InterRegular = "ROOT/taobin_project/font/Inter/Inter-Regular.ttf"
|
|
|
|
|
|
2022-09-11 00:03:11 +07:00
|
|
|
|
2020-09-18 15:24:35 +07:00
|
|
|
Var countClick = 0
|
2020-10-08 11:54:55 +07:00
|
|
|
|
2020-11-05 12:56:04 +07:00
|
|
|
Var RoadShow = "false"
|
2020-10-12 19:09:05 +07:00
|
|
|
Var IgnorePoint = "true"
|
|
|
|
|
|
|
|
|
|
Var ShowButtonClick = "Enable"
|
|
|
|
|
Var ShowButtonClickFull = "Invisible"
|
2021-08-16 11:24:01 +07:00
|
|
|
Var ShowButtonClick2 = "Enable"
|
2020-10-14 17:33:55 +07:00
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
;SAVELOG DisplayType
|
2020-11-01 22:09:26 +07:00
|
|
|
|
|
|
|
|
If DisplayType = "2" Then
|
|
|
|
|
Var XPosiShowCountDownBrew = 693
|
2021-02-05 13:53:17 +07:00
|
|
|
Var WQR = 185
|
|
|
|
|
Var HQR = 185
|
2020-11-01 22:09:26 +07:00
|
|
|
Else
|
|
|
|
|
Var XPosiShowCountDownBrew = 768
|
2021-02-05 13:53:17 +07:00
|
|
|
Var WQR = 290
|
|
|
|
|
Var HQR = 290
|
|
|
|
|
|
2020-11-01 22:09:26 +07:00
|
|
|
EndIf
|
2020-10-15 14:04:35 +07:00
|
|
|
|
2023-06-30 15:04:02 +07:00
|
|
|
|
2023-12-15 18:11:14 +07:00
|
|
|
|
2024-05-23 15:07:36 +07:00
|
|
|
Var MinPhoneNumber = 10
|
|
|
|
|
Var MaxPhoneNumber = 10
|
2020-12-26 01:33:30 +07:00
|
|
|
|
|
|
|
|
|
2020-12-04 13:35:13 +07:00
|
|
|
Var TestLoopMakeDrink = 0
|
|
|
|
|
Var TestLoopSuccess = 0
|
|
|
|
|
Var TestLoopFailed = 0
|
|
|
|
|
|
2021-12-16 10:30:57 +07:00
|
|
|
Var cock_tail_str = ""
|
2024-06-06 18:54:33 +07:00
|
|
|
|
|
|
|
|
READ_FILE "/mnt/sdcard/coffeevending/cock_tail_enable" cock_tail_str
|
2021-12-16 10:30:57 +07:00
|
|
|
STRCONTAIN "1" cock_tail_str cock_tail_enable
|
2024-06-06 18:54:33 +07:00
|
|
|
|
2021-12-16 10:30:57 +07:00
|
|
|
If cock_tail_enable = "true" Then
|
|
|
|
|
Var WheyShow = "false"
|
|
|
|
|
Var CocktailShow = "true"
|
2022-12-22 18:41:47 +07:00
|
|
|
Var RoadShow = "true"
|
2023-10-25 18:02:34 +07:00
|
|
|
|
|
|
|
|
STRCONTAIN "1401" MaterialAvailable BeerTrapEnable
|
|
|
|
|
|
2022-06-10 10:54:24 +07:00
|
|
|
Else
|
|
|
|
|
Var WheyShow = "true"
|
|
|
|
|
Var CocktailShow = "false"
|
|
|
|
|
Var RoadShow = "false"
|
2021-12-16 10:30:57 +07:00
|
|
|
EndIf
|
2023-06-16 15:33:37 +07:00
|
|
|
|
2023-08-04 15:29:38 +07:00
|
|
|
|
2024-07-02 14:58:16 +07:00
|
|
|
|
2023-06-16 15:33:37 +07:00
|
|
|
|
2023-10-30 22:50:45 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-04 15:29:38 +07:00
|
|
|
|
2023-08-10 10:02:05 +07:00
|
|
|
; take a look file page_board_1.xml
|
2023-08-04 15:29:38 +07:00
|
|
|
|
2023-06-26 10:21:54 +07:00
|
|
|
|
|
|
|
|
If XMLProfile = "" Then
|
|
|
|
|
CacheVarStr "get" XMLProfile
|
|
|
|
|
Else
|
|
|
|
|
CacheVarStr "put" XMLProfile
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-06-16 15:33:37 +07:00
|
|
|
|
2021-04-06 14:50:53 +07:00
|
|
|
Var TermTemOnline = "false"
|
|
|
|
|
Var TaobinOnline = "false"
|
2023-06-15 09:56:20 +07:00
|
|
|
|
|
|
|
|
If MaterialAvailable = "" Then
|
|
|
|
|
CacheVarStr "get" MaterialAvailable
|
|
|
|
|
Else
|
|
|
|
|
CacheVarStr "put" MaterialAvailable
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-09-15 17:05:15 +07:00
|
|
|
|
2024-02-16 11:28:49 +07:00
|
|
|
DEBUGVAR MaterialAvailable
|
|
|
|
|
|
2021-04-06 14:50:53 +07:00
|
|
|
STRCONTAIN "9501" MaterialAvailable TaobinOnline
|
|
|
|
|
STRCONTAIN "9505" MaterialAvailable TermTemOnline
|
2021-08-16 11:24:01 +07:00
|
|
|
|
2022-02-15 10:29:57 +07:00
|
|
|
; App fast
|
|
|
|
|
STRCONTAIN "1063" MaterialAvailable AppFastEnable
|
2022-07-25 16:34:59 +07:00
|
|
|
STRCONTAIN "1046" MaterialAvailable WheyEnable
|
2023-01-06 13:16:06 +07:00
|
|
|
|
|
|
|
|
STRCONTAIN "1208" MaterialAvailable PromoteYuzuEnable
|
2023-03-14 22:07:46 +07:00
|
|
|
STRCONTAIN "1058" MaterialAvailable OreoEnable
|
2023-08-10 10:02:05 +07:00
|
|
|
|
|
|
|
|
STRCONTAIN "1068" MaterialAvailable JasmineTeaEnable
|
2023-09-05 09:09:08 +07:00
|
|
|
STRCONTAIN "1210" MaterialAvailable MelonSyrupEnable
|
2023-11-27 16:22:32 +07:00
|
|
|
STRCONTAIN "1212" MaterialAvailable MintSyrupEnable
|
2024-02-05 21:48:02 +07:00
|
|
|
STRCONTAIN "1213" MaterialAvailable PeachSyrupEnable
|
2024-02-11 21:53:30 +07:00
|
|
|
STRCONTAIN "1211" MaterialAvailable BananaSyrupEnable
|
2024-02-05 21:48:02 +07:00
|
|
|
|
2024-02-16 11:28:49 +07:00
|
|
|
STRCONTAIN "1215" MaterialAvailable SugarZeroCalEnable
|
2024-03-08 13:39:14 +07:00
|
|
|
STRCONTAIN "1206" MaterialAvailable EnergyDrinkEnable
|
2024-05-13 11:06:29 +07:00
|
|
|
STRCONTAIN "1216" MaterialAvailable CoconutSyrupEnable
|
2024-07-01 09:47:07 +07:00
|
|
|
STRCONTAIN "1042" MaterialAvailable CocoaPowderEnable
|
2022-02-15 10:29:57 +07:00
|
|
|
|
|
|
|
|
;Var AppFastEnable = "false"
|
|
|
|
|
If AppFastEnable = "true" Then
|
|
|
|
|
Var AppFastButtonState = "Enable"
|
|
|
|
|
Var WheyButtonState = "Invisible"
|
2022-07-25 16:34:59 +07:00
|
|
|
Var MenuKidButtonState ="Invisible"
|
2022-02-15 10:29:57 +07:00
|
|
|
Else
|
2022-07-25 16:34:59 +07:00
|
|
|
If WheyEnable = "true" Then
|
|
|
|
|
Var AppFastButtonState = "Invisible"
|
|
|
|
|
Var WheyButtonState = "Enable"
|
|
|
|
|
Var MenuKidButtonState ="Invisible"
|
2024-04-30 13:26:57 +07:00
|
|
|
Var MenuKidEnable = "false"
|
2022-07-25 16:34:59 +07:00
|
|
|
Else
|
|
|
|
|
Var MenuKidEnable = "true"
|
|
|
|
|
Var AppFastButtonState = "Invisible"
|
|
|
|
|
Var WheyButtonState = "Invisible"
|
|
|
|
|
Var MenuKidButtonState ="Enable"
|
|
|
|
|
EndIf
|
2022-02-15 10:29:57 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2022-11-09 15:35:58 +07:00
|
|
|
If CocktailShow = "true" Then
|
|
|
|
|
|
|
|
|
|
Var WheyEnable = "false"
|
|
|
|
|
Var MenuKidEnable = "false"
|
|
|
|
|
Var MenuKidButtonState = "Invisible"
|
|
|
|
|
Var WheyShow = "false"
|
|
|
|
|
Var WheyButtonState = "Invisible"
|
2023-10-26 15:27:32 +07:00
|
|
|
Var WebAppShow = "Invisible"
|
2022-11-09 15:35:58 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2023-12-07 15:19:34 +07:00
|
|
|
|
2021-08-16 11:24:01 +07:00
|
|
|
Var TaobinOnlineX = "true"
|
2021-04-06 14:50:53 +07:00
|
|
|
|
2024-04-30 13:26:57 +07:00
|
|
|
DEBUGVAR AppFastButtonState
|
|
|
|
|
DEBUGVAR MenuKidButtonState
|
2021-04-06 14:50:53 +07:00
|
|
|
DEBUGVAR TaobinOnline
|
2024-04-30 13:26:57 +07:00
|
|
|
DEBUGVAR WheyButtonState
|
2022-07-25 16:34:59 +07:00
|
|
|
DEBUGVAR WheyEnable
|
2020-10-16 16:40:36 +07:00
|
|
|
|
2021-05-12 11:53:54 +07:00
|
|
|
; Dtac.
|
2022-10-24 15:26:43 +07:00
|
|
|
|
2021-05-17 22:41:06 +07:00
|
|
|
Var CAMPAIGN1 = "false"
|
2021-05-12 11:53:54 +07:00
|
|
|
|
2021-05-24 13:38:59 +07:00
|
|
|
|
2021-08-16 11:24:01 +07:00
|
|
|
If TaobinOnlineX = "true" Then
|
2022-10-14 22:33:23 +07:00
|
|
|
Var EventTurnOn = 0
|
2023-04-04 20:06:37 +07:00
|
|
|
; CountDownShowButton must value 35
|
|
|
|
|
Var CountDownShowButton = 35
|
2022-10-04 22:00:33 +07:00
|
|
|
Var ShowButtonClickFull = "Invisible"
|
2023-03-07 17:39:10 +07:00
|
|
|
|
|
|
|
|
If LanguageInit = "ENG" Then
|
|
|
|
|
Var VideoMainPage = "ROOT/taobin_project/video/main_page_en.mp4"
|
|
|
|
|
Var show_eng = "true"
|
|
|
|
|
Else
|
|
|
|
|
Var VideoMainPage = "ROOT/taobin_project/video/main_page.mp4"
|
|
|
|
|
Var show_eng = "false"
|
|
|
|
|
EndIf
|
2022-10-04 22:00:33 +07:00
|
|
|
|
2022-11-25 17:00:53 +07:00
|
|
|
DEBUGVAR SystemDateMonthInt
|
|
|
|
|
DEBUGVAR SystemDateDayInt
|
2022-10-13 23:19:45 +07:00
|
|
|
|
2022-12-27 22:24:34 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2021-08-16 11:24:01 +07:00
|
|
|
If TaobinOnlineX = "false" Then
|
2021-04-21 18:31:59 +07:00
|
|
|
If TermTemOnline = "false" Then
|
|
|
|
|
; TODO
|
|
|
|
|
Machine Initial
|
|
|
|
|
Open "/ROOT/xml/outservice.xml"
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
2021-08-16 11:24:01 +07:00
|
|
|
|
2021-10-15 15:30:55 +07:00
|
|
|
|
2022-08-01 16:00:47 +07:00
|
|
|
DEBUGVAR SELLSTATUS
|
|
|
|
|
DEBUGVAR NetworkStatus
|
2021-11-25 15:56:33 +07:00
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
If SELLSTATUS = "" Then
|
|
|
|
|
CacheVarStr "get" SELLSTATUS
|
|
|
|
|
Else
|
|
|
|
|
CacheVarStr "put" SELLSTATUS
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
DEBUGVAR SELLSTATUS
|
|
|
|
|
DEBUGVAR AdvertiseProfile
|
|
|
|
|
|
2022-08-01 16:00:47 +07:00
|
|
|
Var SELLONLINE = 0
|
|
|
|
|
If SELLSTATUS = "SELLONLINE" Then
|
|
|
|
|
Var SELLONLINE = 1
|
|
|
|
|
EndIf
|
|
|
|
|
If SELLSTATUS = "SELLNOCASH" Then
|
|
|
|
|
Var SELLONLINE = 1
|
|
|
|
|
EndIf
|
2021-11-25 15:56:33 +07:00
|
|
|
|
2024-03-24 14:37:28 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
If IgnoreNetCore = "true" Then
|
|
|
|
|
Var SELLONLINE = 1
|
|
|
|
|
Var ButtontoTopupMenu = "Enable"
|
|
|
|
|
Var ShowButtonClick2 = "Enable"
|
|
|
|
|
|
|
|
|
|
; for test press button
|
|
|
|
|
Var ShowNetworkProblem = "Enable"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 16:00:47 +07:00
|
|
|
If SELLONLINE = 1 Then
|
2021-08-25 16:59:01 +07:00
|
|
|
Var ShowNetworkProblem = "Invisible"
|
|
|
|
|
Var ShowNetworkProblemText = ""
|
2021-09-10 11:50:59 +07:00
|
|
|
Machine NetworkUp
|
2021-11-25 15:56:33 +07:00
|
|
|
|
2021-11-30 14:58:53 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Var QRCODE99x = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GenHashWithTimeStamp QRCODE99x
|
|
|
|
|
Var QRCODE99 = "https://taobin-beverage.web.app/" + QRCODE99x
|
2021-11-30 15:17:14 +07:00
|
|
|
;Var QRCODE99 = "https://uat-taobin-beverage.firebaseapp.com/" + QRCODE99x
|
2021-11-25 15:56:33 +07:00
|
|
|
WEB "ENABLE"
|
2021-08-16 11:24:01 +07:00
|
|
|
|
|
|
|
|
Else
|
2022-08-01 16:00:47 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-25 16:59:01 +07:00
|
|
|
Var ShowNetworkProblem = "Enable"
|
2021-08-16 11:24:01 +07:00
|
|
|
Var ShowButtonClick2 = "Invisible"
|
2021-08-25 16:59:01 +07:00
|
|
|
Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
|
2022-07-16 10:12:31 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
If NetworkStatus = "DOWN" Then
|
|
|
|
|
Machine NetworkDown
|
|
|
|
|
EndIf
|
2021-11-25 15:56:33 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Var QRCODE99 = ""
|
|
|
|
|
WEB "DISABLE"
|
2022-08-01 16:00:47 +07:00
|
|
|
|
2021-08-16 11:24:01 +07:00
|
|
|
EndIf
|
2021-08-25 16:59:01 +07:00
|
|
|
|
|
|
|
|
|
2021-08-16 11:24:01 +07:00
|
|
|
|
2021-04-21 18:31:59 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
|
2021-07-27 13:10:10 +07:00
|
|
|
Var ShowPrice = "Enable"
|
2020-12-16 09:50:26 +07:00
|
|
|
If RoadShow = "true" Then
|
|
|
|
|
Var ShowPrice = "Invisible"
|
2023-10-26 15:27:32 +07:00
|
|
|
Var WebAppShow = "Invisible"
|
2020-12-16 09:50:26 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
;SAVELOG WheyShow
|
|
|
|
|
;SAVELOG CocktailShow
|
2022-03-19 21:57:29 +07:00
|
|
|
DEBUGVAR RoadShow
|
2021-01-19 23:43:43 +07:00
|
|
|
;SAVELOG ShowPrice
|
2020-12-16 09:50:26 +07:00
|
|
|
|
|
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
Var CountDownPauseVideo = 0
|
|
|
|
|
Var NextPage = "-"
|
|
|
|
|
|
|
|
|
|
If StartUpExt = "false" Then
|
|
|
|
|
|
|
|
|
|
Else
|
2023-06-27 16:33:31 +07:00
|
|
|
Var OreoGuarantee = 0
|
2021-01-19 23:43:43 +07:00
|
|
|
Machine Initial
|
|
|
|
|
Var StartUpExt = "false"
|
2023-04-04 20:06:37 +07:00
|
|
|
Var CameraSettingStatus = ""
|
2022-08-01 16:00:47 +07:00
|
|
|
;DEBUGVAR "FlushTxRef1"
|
|
|
|
|
;FlushTxRef1
|
2022-12-05 20:59:56 +07:00
|
|
|
|
2023-08-23 13:00:51 +07:00
|
|
|
;If JXMLVersionInt > 428 Then
|
|
|
|
|
; LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/ui/lang.tsv"
|
|
|
|
|
;EndIf
|
2023-03-22 22:59:14 +07:00
|
|
|
|
|
|
|
|
Var SoundThaiIndex = 0
|
2021-01-19 23:43:43 +07:00
|
|
|
EndIf
|
2022-08-01 16:00:47 +07:00
|
|
|
|
2023-05-31 15:06:34 +07:00
|
|
|
DEBUGVAR Not#LanguageLoaded
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 16:00:47 +07:00
|
|
|
;DEBUGVAR "FlushTxRef1"
|
|
|
|
|
;FlushTxRef1
|
|
|
|
|
|
|
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
|
|
|
|
|
StopLongPlay
|
|
|
|
|
|
2021-02-05 13:53:17 +07:00
|
|
|
|
|
|
|
|
Var TimerFirst = "true"
|
|
|
|
|
|
|
|
|
|
|
2021-03-12 15:39:02 +07:00
|
|
|
Var buttonRemoveCup = "Invisible"
|
|
|
|
|
|
2022-02-08 22:58:19 +07:00
|
|
|
Var led_new = "0"
|
|
|
|
|
READ_FILE "/mnt/sdcard/coffeevending/led_new" led_new
|
|
|
|
|
DEBUGVAR led_new
|
|
|
|
|
If led_new = "1" Then
|
|
|
|
|
|
2022-04-01 10:42:00 +07:00
|
|
|
LEDv2 LedDoorCupV2 Off 255 194 166 20 6
|
2022-02-08 22:58:19 +07:00
|
|
|
|
|
|
|
|
LEDv2 LedDoorLidV2 Off 255 255 255 20 6
|
|
|
|
|
Else
|
|
|
|
|
|
2022-04-01 10:42:00 +07:00
|
|
|
LED LedDoorCup Off 255 255 255 255
|
2021-05-04 00:40:17 +07:00
|
|
|
|
2022-02-08 22:58:19 +07:00
|
|
|
LED LedDoorLid Off 255 255 255 255
|
2021-05-12 11:53:54 +07:00
|
|
|
|
2022-02-08 22:58:19 +07:00
|
|
|
EndIf
|
2022-01-14 13:54:47 +07:00
|
|
|
|
2022-07-18 21:38:55 +07:00
|
|
|
|
2022-07-16 10:12:31 +07:00
|
|
|
|
2021-06-25 17:14:12 +07:00
|
|
|
|
2024-03-26 13:43:17 +07:00
|
|
|
|
2021-05-12 11:53:54 +07:00
|
|
|
|
2021-11-15 21:59:48 +07:00
|
|
|
|
|
|
|
|
Var showCart = "Invisible"
|
2022-02-03 21:03:39 +07:00
|
|
|
|
|
|
|
|
Var LedLidBlink = "no"
|
2021-11-15 21:59:48 +07:00
|
|
|
|
2021-12-23 18:41:56 +07:00
|
|
|
|
2022-02-03 21:03:39 +07:00
|
|
|
Var EnableSelectMenuBetweenBrew = "Enable"
|
2022-02-17 22:16:11 +07:00
|
|
|
|
|
|
|
|
|
2022-09-11 23:20:12 +07:00
|
|
|
If JXMLVersionInt > 412 Then
|
|
|
|
|
Var ToppingNewShow = "true"
|
|
|
|
|
EndIf
|
2021-11-25 15:56:33 +07:00
|
|
|
|
2022-01-20 14:54:14 +07:00
|
|
|
DEBUGVAR XMLProfile
|
|
|
|
|
|
2021-12-01 11:41:52 +07:00
|
|
|
Machine CancelWepApp
|
2021-11-25 15:56:33 +07:00
|
|
|
|
2022-01-14 13:54:47 +07:00
|
|
|
|
2022-05-05 23:15:44 +07:00
|
|
|
StrLen AdvertiseProfile AdvertiseProfileLen
|
|
|
|
|
|
2022-01-14 13:54:47 +07:00
|
|
|
|
2024-05-03 10:22:23 +07:00
|
|
|
STRCONTAIN "taobin_notopup" XMLProfile taobin_notopup
|
|
|
|
|
|
|
|
|
|
DEBUGVAR taobin_notopup
|
|
|
|
|
If taobin_notopup = "true" Then
|
2022-02-03 21:03:39 +07:00
|
|
|
Var ButtontoTopupMenu = "Disable"
|
2022-01-20 14:54:14 +07:00
|
|
|
Else
|
2024-05-23 11:25:16 +07:00
|
|
|
If SELLSTATUS = "SELLNOCASH" Then
|
|
|
|
|
Var ButtontoTopupMenu = "Disable"
|
|
|
|
|
Else
|
|
|
|
|
Var ButtontoTopupMenu = "Enable"
|
|
|
|
|
EndIf
|
2022-01-20 14:54:14 +07:00
|
|
|
EndIf
|
2022-01-14 13:54:47 +07:00
|
|
|
|
2022-02-17 22:16:11 +07:00
|
|
|
If NetworkStatus = "DOWN" Then
|
|
|
|
|
Var WebAppShow = "Invisible"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-03-24 14:37:28 +07:00
|
|
|
|
2022-05-11 15:57:41 +07:00
|
|
|
DEBUGVAR XMLPageVersionInt
|
2022-04-20 15:38:07 +07:00
|
|
|
|
2022-07-18 21:38:55 +07:00
|
|
|
; forever
|
|
|
|
|
Var new_layout = "true"
|
|
|
|
|
Machine MenuLayoutNew
|
2022-04-17 21:48:43 +07:00
|
|
|
|
2022-02-17 22:16:11 +07:00
|
|
|
DEBUGVAR SpiralOnline
|
2022-03-31 17:27:41 +07:00
|
|
|
|
2022-03-14 17:09:05 +07:00
|
|
|
Topping "ClearNextOrder" "-"
|
2022-04-01 10:42:00 +07:00
|
|
|
|
2023-05-05 23:18:22 +07:00
|
|
|
|
2022-05-05 23:15:44 +07:00
|
|
|
|
|
|
|
|
If AdvertiseProfileLen = 0 Then
|
|
|
|
|
CacheVarStr "get" AdvertiseProfile
|
|
|
|
|
Else
|
2024-04-02 14:28:24 +07:00
|
|
|
CacheVarStr "put" AdvertiseProfile
|
2022-05-05 23:15:44 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
DEBUGVAR AdvertiseProfile
|
|
|
|
|
|
2022-06-20 12:22:14 +07:00
|
|
|
Var show_lang = "THAI"
|
|
|
|
|
|
2022-07-04 15:06:36 +07:00
|
|
|
|
|
|
|
|
Var NETCORE_EVENT_CNT_TMP = NCIC07_EVENT_CNT
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 16:00:47 +07:00
|
|
|
|
2022-07-18 21:38:55 +07:00
|
|
|
DEBUGVAR CameraCount
|
|
|
|
|
If CameraCount = 0 Then
|
|
|
|
|
CameraService "Start"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If CameraCount = "" Then
|
|
|
|
|
CameraService "Start"
|
|
|
|
|
EndIf
|
2022-10-28 17:34:57 +07:00
|
|
|
|
|
|
|
|
DEBUGVAR CountryName
|
2023-02-14 17:09:30 +07:00
|
|
|
DEBUGVAR LanguageListEnable
|
2022-10-28 17:34:57 +07:00
|
|
|
DEBUGVAR DisplayFormat
|
2022-12-02 23:09:23 +07:00
|
|
|
DEBUGVAR ScaleValueForCalculation
|
2022-12-01 22:37:25 +07:00
|
|
|
DEBUGVAR PreScaleConvertShow
|
2022-11-07 14:13:14 +07:00
|
|
|
DEBUGVAR UnitPostDisplay
|
2022-11-10 14:00:56 +07:00
|
|
|
|
2022-12-19 13:59:02 +07:00
|
|
|
DEBUGVAR LanguageInit
|
|
|
|
|
|
|
|
|
|
|
2022-11-10 14:00:56 +07:00
|
|
|
Var TextPriceMenuSize = 14
|
2022-11-29 09:56:30 +07:00
|
|
|
Var TextPriceMenuY = 264
|
2023-06-15 09:56:20 +07:00
|
|
|
Var TextPriceMenuBlendX = 174
|
|
|
|
|
Var TextPriceMenuHotX = 50
|
2023-05-31 15:06:34 +07:00
|
|
|
|
|
|
|
|
; zone init lang
|
2023-06-15 09:56:20 +07:00
|
|
|
; CountryName
|
2023-05-31 15:06:34 +07:00
|
|
|
Var show_eng_button_stage = "Enable"
|
|
|
|
|
|
2023-12-04 14:37:09 +07:00
|
|
|
Var MemberButtonFileName = "ROOT/taobin_project/image/TermTempage2/bp_main_page_member.png"
|
2022-11-29 09:56:30 +07:00
|
|
|
|
2022-11-17 00:25:45 +07:00
|
|
|
|
2023-06-13 15:54:54 +07:00
|
|
|
|
2022-11-17 00:25:45 +07:00
|
|
|
Machine __arm_toggle
|
2022-11-10 14:00:56 +07:00
|
|
|
|
2022-11-29 21:46:59 +07:00
|
|
|
GetLongTimeInMinute CurrentTime
|
|
|
|
|
|
|
|
|
|
DEBUGVAR LastTimeClickOrder
|
|
|
|
|
DEBUGVAR CurrentTime
|
2022-12-01 22:37:25 +07:00
|
|
|
|
2022-12-19 13:59:02 +07:00
|
|
|
If LastTimeClickOrder = "" Then
|
|
|
|
|
GetLongTimeInMinute LastTimeClickOrder
|
|
|
|
|
EndIf
|
|
|
|
|
|
2022-11-29 21:46:59 +07:00
|
|
|
Var DiffTimeInMinute = CurrentTime - LastTimeClickOrder
|
2022-12-01 22:37:25 +07:00
|
|
|
|
2022-11-29 21:46:59 +07:00
|
|
|
DEBUGVAR DiffTimeInMinute
|
|
|
|
|
|
|
|
|
|
If DiffTimeInMinute > 120 Then
|
|
|
|
|
GetLongTimeInMinute LastTimeClickOrder
|
|
|
|
|
ScreenRefresh
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
; zone config language
|
|
|
|
|
|
|
|
|
|
SetLanguage LanguageInit
|
|
|
|
|
|
2023-02-17 17:50:13 +07:00
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
Var InternationalEnable = 0
|
|
|
|
|
Var InternationalEnableStr = "false"
|
2024-04-05 17:15:02 +07:00
|
|
|
Var cups_sold_text = "เสิร์ฟแล้ว ( CUPS SOLD )"
|
2023-12-04 14:37:09 +07:00
|
|
|
Var XButtonMember = 212
|
|
|
|
|
Var YButtonMember = 1695
|
2023-06-15 09:56:20 +07:00
|
|
|
|
|
|
|
|
; CountryName
|
|
|
|
|
If CountryName = "" Then
|
|
|
|
|
READ_FILE "/mnt/sdcard/coffeevending/country/short" StrCountryShort
|
|
|
|
|
DEBUGVAR StrCountryShort
|
|
|
|
|
If StrCountryShort = "MYS" Then
|
|
|
|
|
Var CountryName = "Malaysia"
|
|
|
|
|
EndIf
|
|
|
|
|
If StrCountryShort = "MYR" Then
|
|
|
|
|
Var CountryName = "Malaysia"
|
|
|
|
|
EndIf
|
2023-05-23 08:11:55 +07:00
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
If StrCountryShort = "AUS" Then
|
|
|
|
|
Var CountryName = "Australia"
|
2023-05-23 08:11:55 +07:00
|
|
|
EndIf
|
2023-07-12 22:17:28 +07:00
|
|
|
|
2024-01-16 16:31:09 +07:00
|
|
|
If StrCountryShort = "SGP" Then
|
|
|
|
|
Var CountryName = "Singapore"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-02-21 11:12:38 +07:00
|
|
|
If StrCountryShort = "UAE_DUBAI" Then
|
|
|
|
|
Var CountryName = "UnitedArabEmirates Dubai"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-03-24 14:37:28 +07:00
|
|
|
If StrCountryShort = "" Then
|
|
|
|
|
Var CountryName = "Thailand"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-02-21 11:12:38 +07:00
|
|
|
;
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
|
|
|
|
|
EndIf
|
2023-02-17 17:50:13 +07:00
|
|
|
|
2023-12-05 16:03:13 +07:00
|
|
|
; Zone set video main page.
|
|
|
|
|
|
2024-04-24 17:41:06 +07:00
|
|
|
; ignore collection point
|
|
|
|
|
Var SettingIgnoreCollectPoint = 0
|
2024-04-29 13:44:59 +07:00
|
|
|
Var SettingVideoBrewingUseCommon = 0
|
2024-04-24 17:41:06 +07:00
|
|
|
|
2023-12-05 16:03:13 +07:00
|
|
|
Var adver_brewing_en = 1
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-xml-open
|
2023-12-05 16:03:13 +07:00
|
|
|
If CountryName = "Australia" Then
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/aus/video/script_video.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-xml-open
|
2023-12-05 16:03:13 +07:00
|
|
|
If CountryName = "Malaysia" Then
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/mys/video/script_video.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-xml-open
|
2023-12-05 16:03:13 +07:00
|
|
|
If CountryName = "Thailand" Then
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/video/script1.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-xml-open
|
2023-12-05 16:03:13 +07:00
|
|
|
If CountryName = "USANewYork" Then
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/usaNY/video/script_video.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-xml-open
|
2024-01-16 16:31:09 +07:00
|
|
|
If CountryName = "Singapore" Then
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/sgp/video/script_video.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-02-21 11:12:38 +07:00
|
|
|
|
2023-12-05 16:03:13 +07:00
|
|
|
|
2024-05-14 23:49:14 +07:00
|
|
|
|
|
|
|
|
DEBUGVAR CountDownShowButton
|
|
|
|
|
DEBUGVAR EventTurnOn
|
2023-05-31 15:06:34 +07:00
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-page-board
|
2023-06-15 09:56:20 +07:00
|
|
|
If CountryName = "Malaysia" Then
|
2023-12-05 16:03:13 +07:00
|
|
|
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/mys/video/script_video.ev"
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
Var WebAppShow = "Invisible"
|
|
|
|
|
EnableLanguage "ENG"
|
|
|
|
|
EnableLanguage "MALAY"
|
2024-04-30 14:25:42 +07:00
|
|
|
SetLanguage "ENG"
|
2023-06-15 09:56:20 +07:00
|
|
|
LanguageControl "UpdateList" "-"
|
|
|
|
|
Var InternationalEnable = 1
|
|
|
|
|
Var show_eng = "true"
|
2023-10-16 17:27:52 +07:00
|
|
|
;Var VideoMainPage = "ROOT/taobin_project/inter/common/video/video_main.mp4"
|
2023-06-15 09:56:20 +07:00
|
|
|
Var img_press_main_page = "ROOT/taobin_project/image/main_page_en/bp_main_page_start.png"
|
|
|
|
|
|
|
|
|
|
Var ShowNetworkProblemText = "Network error. Payment Cash only."
|
2023-02-17 17:50:13 +07:00
|
|
|
|
2024-05-13 11:16:45 +07:00
|
|
|
Var CountryRootPath = "ROOT/taobin_project/inter/mys/"
|
|
|
|
|
Var CountryShortName = "mys"
|
2023-02-17 17:50:13 +07:00
|
|
|
|
2023-10-12 13:52:25 +07:00
|
|
|
Var PriceUnitText = "Prices in MYR"
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
Var TextPriceMenuSize = 12
|
|
|
|
|
Var TextPriceMenuY = 266
|
|
|
|
|
Var ShowButtonClick2 = "Enable"
|
|
|
|
|
Var ButtontoTopupMenu = "Invisible"
|
2023-05-15 21:57:44 +07:00
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
Var MemberButtonFileName = "ROOT/taobin_project/image/main_page_en/bp_main_page_member.png"
|
|
|
|
|
Var show_eng_button_stage = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var CountDownShowButton = 35
|
2023-07-12 22:17:28 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Var XButtonMember = 384
|
|
|
|
|
Var YButtonMember = 1695
|
2023-08-23 13:00:51 +07:00
|
|
|
|
|
|
|
|
If Not#LanguageLoaded = "" Then
|
|
|
|
|
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/inter/mys/menu/lang.tsv"
|
|
|
|
|
EndIf
|
2024-01-31 13:31:04 +07:00
|
|
|
|
|
|
|
|
; load credit
|
|
|
|
|
|
|
|
|
|
If EnableCreditCard = "" Then
|
|
|
|
|
CacheVarStr "get" EnableCreditCard
|
|
|
|
|
Else
|
|
|
|
|
CacheVarStr "put" EnableCreditCard
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
DEBUGVAR EnableCreditCard
|
|
|
|
|
|
2024-02-16 11:28:49 +07:00
|
|
|
STRCONTAIN "1215" MaterialAvailable SugarZeroCalEnable
|
|
|
|
|
|
2024-05-23 15:33:30 +07:00
|
|
|
Var MinPhoneNumber = 10
|
|
|
|
|
Var MaxPhoneNumber = 11
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-page-board
|
2023-06-15 09:56:20 +07:00
|
|
|
If CountryName = "Indonesia" Then
|
2023-12-05 16:03:13 +07:00
|
|
|
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/idr/video/script_video.ev"
|
2023-06-15 09:56:20 +07:00
|
|
|
Var TextPriceMenuSize = 14
|
|
|
|
|
Var show_eng_button_stage = "Invisible"
|
|
|
|
|
Var MemberButtonFileName = "ROOT/taobin_project/image/main_page_en/bp_main_page_member.png"
|
|
|
|
|
|
2023-08-19 22:16:27 +07:00
|
|
|
Var CountryRootPath = "ROOT/taobin_project/inter/ids/"
|
2023-06-15 09:56:20 +07:00
|
|
|
Var CountDownShowButton = 35
|
2023-08-23 13:00:51 +07:00
|
|
|
|
2024-05-13 11:16:45 +07:00
|
|
|
Var CountryShortName = "ids"
|
|
|
|
|
|
2023-08-23 13:00:51 +07:00
|
|
|
If Not#LanguageLoaded = "" Then
|
|
|
|
|
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/inter/ids/menu/lang.tsv"
|
|
|
|
|
EndIf
|
2023-09-21 20:42:16 +07:00
|
|
|
|
2023-10-12 13:52:25 +07:00
|
|
|
Var PriceUnitText = ""
|
|
|
|
|
|
2023-09-21 20:42:16 +07:00
|
|
|
Var XButtonMember = 212
|
|
|
|
|
Var YButtonMember = 1695
|
2024-02-16 11:28:49 +07:00
|
|
|
|
2024-05-23 15:07:36 +07:00
|
|
|
Var MinPhoneNumber = 11
|
|
|
|
|
Var MaxPhoneNumber = 12
|
|
|
|
|
|
2024-02-16 11:28:49 +07:00
|
|
|
STRCONTAIN "1215" MaterialAvailable SugarZeroCalEnable
|
2023-06-15 09:56:20 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-page-board
|
2023-06-15 09:56:20 +07:00
|
|
|
If CountryName = "Australia" Then
|
2024-05-21 13:28:26 +07:00
|
|
|
|
|
|
|
|
Var SettingVideoBrewingUseCommon = 1
|
2023-12-05 16:03:13 +07:00
|
|
|
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/aus/video/script_video.ev"
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
Var WebAppShow = "Invisible"
|
|
|
|
|
EnableLanguage "ENG"
|
|
|
|
|
SetLanguage "ENG"
|
|
|
|
|
LanguageControl "UpdateList" "-"
|
|
|
|
|
|
|
|
|
|
Var InternationalEnable = 1
|
|
|
|
|
Var show_eng = "true"
|
2023-10-16 17:27:52 +07:00
|
|
|
;Var VideoMainPage = "ROOT/taobin_project/inter/aus/video/video_main.mp4"
|
2023-06-15 09:56:20 +07:00
|
|
|
Var img_press_main_page = "ROOT/taobin_project/image/main_page_en/bp_main_page_start.png"
|
|
|
|
|
|
|
|
|
|
Var ShowNetworkProblemText = "Network error. Payment Cash only."
|
|
|
|
|
|
2023-08-19 22:16:27 +07:00
|
|
|
Var CountryRootPath = "ROOT/taobin_project/inter/aus/"
|
2024-05-13 11:16:45 +07:00
|
|
|
Var CountryShortName = "aus"
|
2023-08-19 22:16:27 +07:00
|
|
|
|
2024-05-14 23:49:14 +07:00
|
|
|
Var TextPriceMenuSize = 12
|
2023-06-15 09:56:20 +07:00
|
|
|
Var TextPriceMenuY = 264
|
|
|
|
|
Var TextPriceMenuBlendX = 180
|
|
|
|
|
Var TextPriceMenuHotX = 48
|
|
|
|
|
Var ShowButtonClick2 = "Enable"
|
|
|
|
|
Var ButtontoTopupMenu = "Invisible"
|
|
|
|
|
|
2023-10-12 13:52:25 +07:00
|
|
|
Var PriceUnitText = ""
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
Var MemberButtonFileName = "ROOT/taobin_project/image/main_page_en/bp_main_page_member.png"
|
|
|
|
|
Var show_eng_button_stage = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var CountDownShowButton = 35
|
|
|
|
|
|
2023-11-24 17:45:47 +07:00
|
|
|
Var XButtonMember = 384
|
2023-09-21 20:42:16 +07:00
|
|
|
Var YButtonMember = 1695
|
|
|
|
|
|
2023-08-23 13:00:51 +07:00
|
|
|
If Not#LanguageLoaded = "" Then
|
|
|
|
|
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/inter/aus/menu/lang.tsv"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-02-16 11:28:49 +07:00
|
|
|
DEBUGVAR MaterialAvailable
|
|
|
|
|
STRCONTAIN "511215" MaterialAvailable SugarZeroCalEnable
|
2024-04-05 17:15:02 +07:00
|
|
|
|
|
|
|
|
Var cups_sold_text = "CUPS SOLD"
|
2024-05-23 15:07:36 +07:00
|
|
|
|
2024-07-01 09:47:07 +07:00
|
|
|
Var MinPhoneNumber = 10
|
|
|
|
|
Var MaxPhoneNumber = 10
|
2024-05-23 15:07:36 +07:00
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-page-board
|
2023-12-05 16:03:13 +07:00
|
|
|
If CountryName = "USANewYork" Then
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/usaNY/video/script_video.ev"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Var WebAppShow = "Invisible"
|
|
|
|
|
EnableLanguage "ENG"
|
|
|
|
|
SetLanguage "ENG"
|
|
|
|
|
LanguageControl "UpdateList" "-"
|
|
|
|
|
|
|
|
|
|
Var InternationalEnable = 1
|
|
|
|
|
Var show_eng = "true"
|
|
|
|
|
;Var VideoMainPage = "ROOT/taobin_project/inter/usaNY/video/video_main.mp4"
|
|
|
|
|
Var img_press_main_page = "ROOT/taobin_project/image/main_page_en/bp_main_page_start.png"
|
|
|
|
|
|
|
|
|
|
Var ShowNetworkProblemText = "Network error. Payment Cash only."
|
|
|
|
|
|
|
|
|
|
Var CountryRootPath = "ROOT/taobin_project/inter/usaNY/"
|
2024-05-13 11:16:45 +07:00
|
|
|
Var CountryShortName = "usaNY"
|
2023-12-05 16:03:13 +07:00
|
|
|
|
|
|
|
|
ar TextPriceMenuSize = 12
|
|
|
|
|
Var TextPriceMenuY = 264
|
|
|
|
|
Var TextPriceMenuBlendX = 180
|
|
|
|
|
Var TextPriceMenuHotX = 48
|
|
|
|
|
Var ShowButtonClick2 = "Enable"
|
|
|
|
|
Var ButtontoTopupMenu = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var PriceUnitText = ""
|
|
|
|
|
|
|
|
|
|
Var MemberButtonFileName = "ROOT/taobin_project/image/main_page_en/bp_main_page_member.png"
|
|
|
|
|
Var show_eng_button_stage = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var CountDownShowButton = 35
|
|
|
|
|
|
|
|
|
|
Var XButtonMember = 212
|
|
|
|
|
Var YButtonMember = 1695
|
|
|
|
|
|
|
|
|
|
If Not#LanguageLoaded = "" Then
|
|
|
|
|
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/inter/usaNY/menu/lang.tsv"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-02-16 11:28:49 +07:00
|
|
|
STRCONTAIN "1215" MaterialAvailable SugarZeroCalEnable
|
|
|
|
|
|
2024-05-23 15:33:30 +07:00
|
|
|
Var MinPhoneNumber = 10
|
|
|
|
|
Var MaxPhoneNumber = 11
|
|
|
|
|
|
2023-12-05 16:03:13 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-page-board
|
2024-01-16 16:31:09 +07:00
|
|
|
If CountryName = "Singapore" Then
|
|
|
|
|
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/sgp/video/script_video.ev"
|
|
|
|
|
|
|
|
|
|
Var WebAppShow = "Invisible"
|
|
|
|
|
EnableLanguage "ENG"
|
|
|
|
|
SetLanguage "ENG"
|
|
|
|
|
LanguageControl "UpdateList" "-"
|
|
|
|
|
|
|
|
|
|
Var InternationalEnable = 1
|
|
|
|
|
Var show_eng = "true"
|
|
|
|
|
Var img_press_main_page = "ROOT/taobin_project/image/main_page_en/bp_main_page_start.png"
|
|
|
|
|
|
|
|
|
|
Var ShowNetworkProblemText = "Network error. Payment Cash only."
|
|
|
|
|
|
|
|
|
|
Var CountryRootPath = "ROOT/taobin_project/inter/sgp/"
|
2024-05-13 11:16:45 +07:00
|
|
|
Var CountryShortName = "sgp"
|
2024-01-16 16:31:09 +07:00
|
|
|
|
2024-07-05 08:31:35 +07:00
|
|
|
Var TextPriceMenuSize = 12
|
2024-01-16 16:31:09 +07:00
|
|
|
Var TextPriceMenuY = 264
|
|
|
|
|
Var TextPriceMenuBlendX = 180
|
|
|
|
|
Var TextPriceMenuHotX = 48
|
2024-07-09 11:31:08 +07:00
|
|
|
Var ShowButtonClick2 = "Enable"
|
2024-01-16 16:31:09 +07:00
|
|
|
Var ButtontoTopupMenu = "Invisible"
|
|
|
|
|
|
2024-01-18 14:55:27 +07:00
|
|
|
Var PriceUnitText = "Price in SGD"
|
2024-01-16 16:31:09 +07:00
|
|
|
|
|
|
|
|
Var MemberButtonFileName = "ROOT/taobin_project/image/main_page_en/bp_main_page_member.png"
|
2024-07-09 11:31:08 +07:00
|
|
|
Var MemberButtonFileNameRest = "ROOT/taobin_project/image/main_page_en/bn_main_page_member.png"
|
2024-01-16 16:31:09 +07:00
|
|
|
Var show_eng_button_stage = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var CountDownShowButton = 35
|
|
|
|
|
|
|
|
|
|
Var XButtonMember = 384
|
|
|
|
|
Var YButtonMember = 1695
|
|
|
|
|
|
|
|
|
|
If Not#LanguageLoaded = "" Then
|
|
|
|
|
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/inter/sgp/menu/lang.tsv"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-02-16 11:28:49 +07:00
|
|
|
STRCONTAIN "521215" MaterialAvailable SugarZeroCalEnable
|
|
|
|
|
|
2024-04-26 17:06:31 +07:00
|
|
|
Var SettingDisableTaobinCredit = "true"
|
2024-07-09 11:31:08 +07:00
|
|
|
;Var SettingDisableTaobinCode = "false"
|
2024-04-04 16:44:22 +07:00
|
|
|
|
2024-04-24 17:41:06 +07:00
|
|
|
; Singapore disable point
|
2024-07-05 08:31:35 +07:00
|
|
|
;Var SettingIgnoreCollectPoint = 1
|
2024-04-24 17:41:06 +07:00
|
|
|
|
2024-04-29 13:44:59 +07:00
|
|
|
Var SettingVideoBrewingUseCommon = 1
|
|
|
|
|
|
2024-05-23 15:33:30 +07:00
|
|
|
Var MinPhoneNumber = 8
|
|
|
|
|
Var MaxPhoneNumber = 8
|
|
|
|
|
|
2024-07-05 08:31:35 +07:00
|
|
|
Var ShowCountDownAsPercent = 1
|
|
|
|
|
|
2024-07-09 11:31:08 +07:00
|
|
|
DEBUGVAR ShowButtonClick2
|
|
|
|
|
|
2024-04-29 13:44:59 +07:00
|
|
|
|
2024-01-16 16:31:09 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-page-board
|
2024-02-21 11:12:38 +07:00
|
|
|
; wait
|
2024-05-14 23:49:14 +07:00
|
|
|
|
2024-02-21 11:12:38 +07:00
|
|
|
If CountryName = "UnitedArabEmirates Dubai" Then
|
2024-05-14 23:49:14 +07:00
|
|
|
|
|
|
|
|
SAVELOG "UnitedArabEmirates Dubai UnitedArabEmirates Dubai UnitedArabEmirates Dubai"
|
|
|
|
|
|
2024-04-02 14:41:43 +07:00
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/uae_dubai/video/script_video.ev"
|
2024-02-21 11:12:38 +07:00
|
|
|
|
2024-05-14 23:49:14 +07:00
|
|
|
|
2024-02-21 11:12:38 +07:00
|
|
|
Var WebAppShow = "Invisible"
|
|
|
|
|
EnableLanguage "ENG"
|
2024-04-02 14:41:43 +07:00
|
|
|
EnableLanguage "UAE_DUBAI"
|
2024-02-21 11:12:38 +07:00
|
|
|
SetLanguage "ENG"
|
|
|
|
|
LanguageControl "UpdateList" "-"
|
|
|
|
|
|
|
|
|
|
Var InternationalEnable = 1
|
|
|
|
|
Var show_eng = "true"
|
|
|
|
|
Var img_press_main_page = "ROOT/taobin_project/image/main_page_en/bp_main_page_start.png"
|
|
|
|
|
|
|
|
|
|
Var ShowNetworkProblemText = "Network error. Payment Cash only."
|
|
|
|
|
|
2024-04-02 14:41:43 +07:00
|
|
|
Var CountryRootPath = "ROOT/taobin_project/inter/uae_dubai/"
|
2024-05-13 11:16:45 +07:00
|
|
|
Var CountryShortName = "uae_dubai"
|
2024-04-02 14:41:43 +07:00
|
|
|
|
|
|
|
|
Var TextPriceMenuSize = 12
|
2024-05-14 23:49:14 +07:00
|
|
|
Var TextPriceMenuY = 266
|
2024-02-21 11:12:38 +07:00
|
|
|
Var TextPriceMenuBlendX = 180
|
|
|
|
|
Var TextPriceMenuHotX = 48
|
|
|
|
|
Var ShowButtonClick2 = "Enable"
|
|
|
|
|
Var ButtontoTopupMenu = "Invisible"
|
|
|
|
|
|
2024-04-05 14:29:47 +07:00
|
|
|
Var PriceUnitText = "Price in DH"
|
2024-02-21 11:12:38 +07:00
|
|
|
|
|
|
|
|
Var MemberButtonFileName = "ROOT/taobin_project/image/main_page_en/bp_main_page_member.png"
|
|
|
|
|
Var show_eng_button_stage = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var CountDownShowButton = 35
|
|
|
|
|
|
|
|
|
|
Var XButtonMember = 384
|
|
|
|
|
Var YButtonMember = 1695
|
|
|
|
|
|
|
|
|
|
If Not#LanguageLoaded = "" Then
|
2024-04-02 14:41:43 +07:00
|
|
|
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/inter/uae_dubai/menu/lang.tsv"
|
2024-02-21 11:12:38 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2024-04-26 17:06:31 +07:00
|
|
|
Var SettingDisableTaobinCredit = "true"
|
2024-05-10 09:09:46 +07:00
|
|
|
Var SettingDisableTaobinCode = "false"
|
|
|
|
|
|
|
|
|
|
; Dubai disable point
|
|
|
|
|
Var SettingIgnoreCollectPoint = 1
|
|
|
|
|
|
|
|
|
|
Var SettingVideoBrewingUseCommon = 1
|
2024-04-04 16:44:22 +07:00
|
|
|
|
2024-05-23 15:33:30 +07:00
|
|
|
Var MinPhoneNumber = 9
|
|
|
|
|
Var MaxPhoneNumber = 9
|
|
|
|
|
|
2024-02-21 11:12:38 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
DEBUGVAR InternationalEnable
|
2024-04-02 14:41:43 +07:00
|
|
|
DEBUGVAR CountryRootPath
|
2023-06-15 09:56:20 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If InternationalEnable = 1 Then
|
|
|
|
|
Var LanguageObjectShow = "Enable"
|
|
|
|
|
Var NoLangObjectShow = "Invisible"
|
2024-03-19 11:17:15 +07:00
|
|
|
Var XMLLiveInfoEnable = 0
|
2023-06-15 09:56:20 +07:00
|
|
|
|
2023-08-23 13:00:51 +07:00
|
|
|
If Not#LanguageResult = "false" Then
|
2023-06-15 09:56:20 +07:00
|
|
|
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/ui/lang.tsv"
|
2023-02-17 17:50:13 +07:00
|
|
|
EndIf
|
2023-09-15 13:45:44 +07:00
|
|
|
|
|
|
|
|
Var RootPath = "ROOT/taobin_project/inter/common/"
|
2023-08-19 22:16:27 +07:00
|
|
|
|
|
|
|
|
Var OpenFileXML = CountryRootPath + "xml/event/tricker.ev"
|
|
|
|
|
DEBUGVAR OpenFileXML
|
|
|
|
|
TRY OpenFileXML
|
|
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
Else
|
|
|
|
|
Var LanguageObjectShow = "Invisible"
|
|
|
|
|
Var NoLangObjectShow = "Enable"
|
2023-08-19 22:16:27 +07:00
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
|
|
|
|
|
|
2023-09-15 13:45:44 +07:00
|
|
|
Var RootPath = "ROOT/taobin_project/"
|
|
|
|
|
|
2023-08-19 22:16:27 +07:00
|
|
|
|
2022-12-21 22:54:09 +07:00
|
|
|
EndIf
|
2024-03-26 13:43:17 +07:00
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/multi_ads/ads_path.ev"
|
2023-02-17 17:50:13 +07:00
|
|
|
|
2023-05-15 21:57:44 +07:00
|
|
|
|
2023-05-05 23:18:22 +07:00
|
|
|
Var StrXMLPageVer = "ver=" + XMLPageVersionInt
|
|
|
|
|
WRITE_FILE "/mnt/sdcard/coffeevending/version/xml_page_version.int" StrXMLPageVer
|
2023-03-14 22:07:46 +07:00
|
|
|
|
2023-02-17 17:50:13 +07:00
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
If SELLONLINE = 1 Then
|
|
|
|
|
Else
|
|
|
|
|
|
|
|
|
|
Var ShowNetworkProblem = "Enable"
|
|
|
|
|
Var ShowButtonClick2 = "Invisible"
|
|
|
|
|
|
|
|
|
|
If NetworkStatus = "DOWN" Then
|
|
|
|
|
Machine NetworkDown
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Var QRCODE99 = ""
|
|
|
|
|
WEB "DISABLE"
|
|
|
|
|
|
|
|
|
|
EndIf
|
2023-08-25 21:27:45 +07:00
|
|
|
|
|
|
|
|
If GameInstalled = "" Then
|
|
|
|
|
CheckApp "com.NDF.taobin" GameInstalled
|
|
|
|
|
EndIf
|
2023-05-10 21:40:13 +07:00
|
|
|
|
|
|
|
|
Var CountDownCheckCamera = 10
|
2023-04-04 20:06:37 +07:00
|
|
|
|
2023-06-02 14:10:34 +07:00
|
|
|
;DEBUGVAR EnableLiveness
|
2023-05-05 23:18:22 +07:00
|
|
|
DEBUGVAR LivenessLicenseFailNumber
|
2023-06-02 14:10:34 +07:00
|
|
|
;DEBUGVAR LivenessControlVersion
|
|
|
|
|
;DEBUGVAR Not#CameraSettingStatus
|
2023-04-16 22:14:50 +07:00
|
|
|
|
2023-02-20 15:44:57 +07:00
|
|
|
RootLayoutVisible 3 "hide"
|
2023-05-01 21:39:17 +07:00
|
|
|
|
2023-05-05 23:18:22 +07:00
|
|
|
If SELLSTATUS = "DEACTIVE" Then
|
|
|
|
|
Open "/ROOT/xml/offline.xml"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-05-16 22:35:46 +07:00
|
|
|
Var CheckCupStateDoorCupClose = ""
|
2023-05-15 21:57:44 +07:00
|
|
|
|
2023-05-12 15:49:12 +07:00
|
|
|
; zone cup on arm
|
|
|
|
|
If CupOnArm = "true" Then
|
|
|
|
|
|
|
|
|
|
If CheckCupStateDoorCupClose = "" Then
|
|
|
|
|
Var buttonRemoveCup = "Enable"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If CheckCupStateDoorCupClose = "done" Then
|
|
|
|
|
Var buttonRemoveCup = "Enable"
|
|
|
|
|
EndIf
|
|
|
|
|
Else
|
|
|
|
|
If buttonRemoveCup = "Enable" Then
|
|
|
|
|
Var buttonRemoveCup = "Invisible"
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-11-21 17:20:20 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/profile/run.ev"
|
2023-10-31 16:30:47 +07:00
|
|
|
|
2023-10-05 08:43:58 +07:00
|
|
|
Var NETCORE_LOST_COUNT_UP = 0
|
2023-05-01 21:39:17 +07:00
|
|
|
|
2024-02-21 11:12:38 +07:00
|
|
|
Var NoWaitMachineEnable = 1
|
|
|
|
|
DEBUGVAR NeedUpgrade
|
|
|
|
|
|
|
|
|
|
If NoWaitMachineEnable = 1 Then
|
|
|
|
|
If stop_now = "true" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2024-02-21 11:12:38 +07:00
|
|
|
EndIf
|
|
|
|
|
Else
|
|
|
|
|
|
|
|
|
|
If MachineStage = "close-maintenance" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2024-02-21 11:12:38 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If MachineStage = "mcu-upgrade" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2024-02-21 11:12:38 +07:00
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If NeedUpgrade = "true" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2024-02-21 11:12:38 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2023-10-30 22:50:45 +07:00
|
|
|
If RoadShow = "true" Then
|
|
|
|
|
Var ShowNetworkProblem = "Invisible"
|
|
|
|
|
Var ShowNetworkProblemText = ""
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-02-22 19:01:12 +07:00
|
|
|
Var SlientRefreshEnable = 0
|
2024-04-30 09:35:55 +07:00
|
|
|
|
2024-05-15 13:05:23 +07:00
|
|
|
Var ShouldShowNamHomCoconutRemainReward = 0
|
2024-05-18 23:22:55 +07:00
|
|
|
Var ShowNamHomCoconutRemainReward = "Invisible"
|
|
|
|
|
Var GetNamHomCoconutRemainReward = 0
|
|
|
|
|
Var NamHomCoconutRemainReward_Y = 1071
|
|
|
|
|
Var NamHomCoconutRemainRewardNumber_Y = 1130
|
2024-06-10 15:55:59 +07:00
|
|
|
Var dummyPhone = "089999999"
|
|
|
|
|
|
|
|
|
|
If GetNamHomCoconutRemainRewardLastTime = "" Then
|
|
|
|
|
Var GetNamHomCoconutRemainRewardLastTime = 0
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-05-18 23:22:55 +07:00
|
|
|
DEBUGVAR NamHomCoconutPro
|
|
|
|
|
DEBUGVAR CurrentMainVideo
|
2024-05-15 13:05:23 +07:00
|
|
|
If NamHomCoconutPro = 1 Then
|
2024-05-18 23:22:55 +07:00
|
|
|
If CurrentMainVideo = 2 Then
|
2024-05-15 13:05:23 +07:00
|
|
|
Var ShouldShowNamHomCoconutRemainReward = 1
|
2024-06-10 15:55:59 +07:00
|
|
|
DEBUGVAR GetNamHomCoconutRemainRewardLastTime
|
|
|
|
|
DEBUGVAR SystemTimeMinuteInt
|
|
|
|
|
Var TimeDiff = SystemTimeMinuteInt - GetNamHomCoconutRemainRewardLastTime
|
|
|
|
|
DEBUGVAR TimeDiff
|
|
|
|
|
If TimeDiff >= 15 Then
|
|
|
|
|
DEBUGVAR "update nam hom coconut remain reward!!!"
|
|
|
|
|
DEBUGVAR GetNamHomCoconutRemainReward
|
|
|
|
|
If GetNamHomCoconutRemainReward = 0 Then
|
|
|
|
|
GETACCEXT dummyPhone 34
|
|
|
|
|
Var GetNamHomCoconutRemainReward = 1
|
|
|
|
|
EndIf
|
|
|
|
|
Else
|
|
|
|
|
If TimeDiff <= -15 Then
|
|
|
|
|
DEBUGVAR "update nam hom coconut remain reward!!!"
|
|
|
|
|
If GetNamHomCoconutRemainReward = 0 Then
|
|
|
|
|
GETACCEXT dummyPhone 34
|
|
|
|
|
Var GetNamHomCoconutRemainReward = 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
2024-05-15 13:05:23 +07:00
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-04-30 09:35:55 +07:00
|
|
|
If EnergyDrink1BathPro = 1 Then
|
|
|
|
|
If CurrentMainVideo = 1 Then
|
|
|
|
|
Var VideoMainPage = "ROOT/taobin_project/video/main_page_event_pro2.mp4"
|
|
|
|
|
Var CurrentMainVideoTemp = 2
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If CoffeeDrink1BathPro = 1 Then
|
|
|
|
|
If CurrentMainVideo = 1 Then
|
|
|
|
|
Var VideoMainPage = "ROOT/taobin_project/video/main_page_event_pro3.mp4"
|
|
|
|
|
Var CurrentMainVideoTemp = 2
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Var CurrentMainVideo = CurrentMainVideoTemp
|
|
|
|
|
|
2024-07-09 11:31:08 +07:00
|
|
|
DEBUGVAR SettingDisableTaobinCredit
|
2024-05-08 13:36:45 +07:00
|
|
|
If SettingDisableTaobinCredit = "true" Then
|
|
|
|
|
Var ShowButtonClick2 = "Invisible"
|
2024-07-09 11:31:08 +07:00
|
|
|
If CountryName = "Singapore" Then
|
|
|
|
|
Var ShowButtonClick2 = "Enable"
|
|
|
|
|
EndIf
|
2024-05-08 13:36:45 +07:00
|
|
|
EndIf
|
2024-07-09 11:31:08 +07:00
|
|
|
DEBUGVAR ShowButtonClick2
|
2024-05-08 13:36:45 +07:00
|
|
|
|
2024-05-27 11:35:01 +07:00
|
|
|
DEBUGVAR CLOSE_ORDER_NOW
|
|
|
|
|
|
2024-07-02 14:58:16 +07:00
|
|
|
; move to TRY actoin.
|
|
|
|
|
; Move to end of EventOpen for override war
|
|
|
|
|
Var RoadShow = "false"
|
|
|
|
|
TRY "ROOT/taobin_project/xml/sometime/RoadShow.ev"
|
|
|
|
|
|
2020-09-14 15:09:29 +07:00
|
|
|
</EventOpen>
|
2020-10-12 19:09:05 +07:00
|
|
|
|
2024-05-18 23:22:55 +07:00
|
|
|
<EventActionOk>
|
|
|
|
|
If GetNamHomCoconutRemainReward = 1 Then
|
|
|
|
|
If Ext1a = "" Then
|
|
|
|
|
SAVELOG "Get Nam hom coconut remain reward error Ext1a is empty."
|
|
|
|
|
Else
|
|
|
|
|
DEBUGVAR Ext1a
|
|
|
|
|
|
|
|
|
|
SPLIT2 Ext1a "/" RemainRewardSpl
|
|
|
|
|
|
|
|
|
|
Var SuperSetRemain = RemainRewardSpl[0]
|
|
|
|
|
Var BalanceEssenceTonerRemain = RemainRewardSpl[1]
|
|
|
|
|
Var CleansingGalRemain = RemainRewardSpl[2]
|
|
|
|
|
Var TumbleBottleRemain = RemainRewardSpl[3]
|
2024-06-05 16:57:20 +07:00
|
|
|
Var ClearGelRemain = RemainRewardSpl[4]
|
|
|
|
|
Var E_GiftCard100BathRemain = RemainRewardSpl[5]
|
|
|
|
|
Var ClearGel4mlRemain = RemainRewardSpl[6]
|
2024-05-18 23:22:55 +07:00
|
|
|
|
|
|
|
|
INT SuperSetRemain
|
|
|
|
|
INT BalanceEssenceTonerRemain
|
|
|
|
|
INT CleansingGalRemain
|
|
|
|
|
INT TumbleBottleRemain
|
2024-06-05 16:57:20 +07:00
|
|
|
INT ClearGelRemain
|
|
|
|
|
INT E_GiftCard100BathRemain
|
|
|
|
|
INT ClearGel4mlRemain
|
2024-05-18 23:22:55 +07:00
|
|
|
|
|
|
|
|
Var SumNamHomCoconutRemainReward = SuperSetRemain
|
|
|
|
|
Var SumNamHomCoconutRemainReward = SumNamHomCoconutRemainReward + BalanceEssenceTonerRemain
|
|
|
|
|
Var SumNamHomCoconutRemainReward = SumNamHomCoconutRemainReward + CleansingGalRemain
|
|
|
|
|
Var SumNamHomCoconutRemainReward = SumNamHomCoconutRemainReward + TumbleBottleRemain
|
2024-06-05 16:57:20 +07:00
|
|
|
Var SumNamHomCoconutRemainReward = SumNamHomCoconutRemainReward + ClearGelRemain
|
|
|
|
|
Var SumNamHomCoconutRemainReward = SumNamHomCoconutRemainReward + E_GiftCard100BathRemain
|
|
|
|
|
Var SumNamHomCoconutRemainReward = SumNamHomCoconutRemainReward + ClearGel4mlRemain
|
2024-05-18 23:22:55 +07:00
|
|
|
|
|
|
|
|
If ShouldShowNamHomCoconutRemainReward = 1 Then
|
|
|
|
|
Var ShowNamHomCoconutRemainReward = "Enable"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
;DEBUG
|
|
|
|
|
;Var SumNamHomCoconutRemainReward = 200
|
|
|
|
|
|
|
|
|
|
If SumNamHomCoconutRemainReward > 500 Then
|
|
|
|
|
Var ShowNamHomCoconutRemainReward = "Invisible"
|
|
|
|
|
Else
|
|
|
|
|
If SumNamHomCoconutRemainReward = 0 Then
|
|
|
|
|
SAVELOG "NamHomCoconutPro: All reward out of stock"
|
|
|
|
|
|
|
|
|
|
WRITE_FILE "/mnt/sdcard/nam_hom_coconut_reward_out_of_stock" "1"
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Var NamHomCoconutRemainReward = SumNamHomCoconutRemainReward
|
|
|
|
|
DEBUGVAR NamHomCoconutRemainReward
|
2024-06-10 15:55:59 +07:00
|
|
|
Var GetNamHomCoconutRemainRewardLastTime = SystemTimeMinuteInt
|
2024-05-18 23:22:55 +07:00
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
</EventActionOk>
|
|
|
|
|
|
|
|
|
|
<EventActionError>
|
|
|
|
|
If GetNamHomCoconutRemainReward = 1 Then
|
|
|
|
|
SAVELOG "Get Nam hom coconut remain reward requet error."
|
|
|
|
|
EndIf
|
|
|
|
|
</EventActionError>
|
|
|
|
|
|
2023-02-21 11:34:32 +07:00
|
|
|
<EventUnitTest1>
|
2024-02-08 13:25:14 +07:00
|
|
|
Var XMLProfile = "AllPriceUp05"
|
2024-02-05 21:48:02 +07:00
|
|
|
Open CurrentXMLFileName0
|
2023-02-21 11:34:32 +07:00
|
|
|
</EventUnitTest1>
|
2023-06-20 22:52:11 +07:00
|
|
|
|
2023-02-21 11:34:32 +07:00
|
|
|
<EventUnitTest2>
|
2023-05-23 08:11:55 +07:00
|
|
|
Var NextPage = "ROOT/taobin_project/xml/page_back_to_main.xml"
|
|
|
|
|
|
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Var OpenFromPageBoard = 1
|
|
|
|
|
|
|
|
|
|
If InternationalEnable = 1 Then
|
|
|
|
|
|
|
|
|
|
; show language icon
|
|
|
|
|
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
|
|
|
|
RootLayoutVisible 3 "show"
|
|
|
|
|
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend.lxml"
|
|
|
|
|
Else
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Machine DoorClose
|
|
|
|
|
|
|
|
|
|
TopView "show"
|
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
2023-02-21 11:34:32 +07:00
|
|
|
</EventUnitTest2>
|
2023-02-17 17:50:13 +07:00
|
|
|
|
2023-06-20 22:52:11 +07:00
|
|
|
<EventUnitTest3>
|
2024-06-20 17:37:53 +07:00
|
|
|
;Var XMLProfile = "AllPriceUp10"
|
|
|
|
|
;Open CurrentXMLFileName0
|
2024-06-24 19:11:17 +07:00
|
|
|
|
2024-06-27 11:08:41 +07:00
|
|
|
__CMD "SetPay" "Coffee" "123456789123456789" "3000100617001201234"
|
|
|
|
|
;PRICE "Reload" "-"
|
2023-06-20 22:52:11 +07:00
|
|
|
</EventUnitTest3>
|
|
|
|
|
|
2023-11-15 21:26:52 +07:00
|
|
|
<EventUnitTest4>
|
2024-06-20 17:37:53 +07:00
|
|
|
PRICE "Load" "-"
|
|
|
|
|
PRICE "Check" XMLProfile
|
2023-11-15 21:26:52 +07:00
|
|
|
</EventUnitTest4>
|
|
|
|
|
|
2024-05-31 16:14:45 +07:00
|
|
|
<EventDrink>
|
2024-06-05 15:35:36 +07:00
|
|
|
SAVELOG "EventDrink EventDrink EventDrink EventDrink EventDrink "
|
2024-05-31 16:14:45 +07:00
|
|
|
</EventDrink>
|
|
|
|
|
|
2020-12-05 22:46:39 +07:00
|
|
|
<Timeout> 1000 </Timeout>
|
2020-10-12 19:09:05 +07:00
|
|
|
<EventTimeout>
|
2023-11-06 10:42:33 +07:00
|
|
|
|
2023-12-11 16:06:47 +07:00
|
|
|
If CNTDOWN_PROTECT_SCREEN_BLANK > 0 Then
|
|
|
|
|
Var CNTDOWN_PROTECT_SCREEN_BLANK = CNTDOWN_PROTECT_SCREEN_BLANK - 1
|
|
|
|
|
EndIf
|
2023-11-06 10:42:33 +07:00
|
|
|
|
2023-12-11 16:06:47 +07:00
|
|
|
If CNTDOWN_PROTECT_SCREEN_BLANK = 0 Then
|
2023-12-13 15:36:58 +07:00
|
|
|
|
|
|
|
|
SAVELOG "CNTDOWN_PROTECT_SCREEN_BLANK"
|
2024-01-03 21:36:23 +07:00
|
|
|
Open "ROOT/taobin_project/xml/page_board.xml"
|
2023-12-11 16:06:47 +07:00
|
|
|
EndIf
|
2023-11-06 10:42:33 +07:00
|
|
|
|
2020-12-03 14:21:46 +07:00
|
|
|
If IgnoreNetCore = "true" Then
|
2020-12-05 22:46:39 +07:00
|
|
|
|
|
|
|
|
Else
|
2020-12-03 14:21:46 +07:00
|
|
|
If NetworkStatus = "DOWN" Then
|
2022-07-06 10:33:35 +07:00
|
|
|
|
2022-02-17 22:16:11 +07:00
|
|
|
Var WebAppShow = "Invisible"
|
2020-12-03 14:21:46 +07:00
|
|
|
EndIf
|
2022-08-01 16:00:47 +07:00
|
|
|
If SELLSTATUS = "DEACTIVE" Then
|
2020-12-03 14:21:46 +07:00
|
|
|
Open "/ROOT/xml/offline.xml"
|
2020-12-26 01:33:30 +07:00
|
|
|
EndIf
|
2020-12-04 13:35:13 +07:00
|
|
|
|
2023-06-20 22:52:11 +07:00
|
|
|
If NoWaitMachineEnable = 1 Then
|
2024-01-22 13:06:50 +07:00
|
|
|
If RecoveryRunning = "true" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2024-01-22 13:06:50 +07:00
|
|
|
|
|
|
|
|
EndIf
|
2023-06-20 22:52:11 +07:00
|
|
|
If stop_now = "true" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2024-01-22 13:06:50 +07:00
|
|
|
EndIf
|
2023-06-20 22:52:11 +07:00
|
|
|
Else
|
|
|
|
|
If MachineStage = "close-maintenance" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2020-10-20 11:54:27 +07:00
|
|
|
|
2023-06-20 22:52:11 +07:00
|
|
|
EndIf
|
2020-12-03 14:21:46 +07:00
|
|
|
EndIf
|
2023-06-20 22:52:11 +07:00
|
|
|
|
2024-05-27 11:35:01 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
If CLOSE_ORDER_NOW = "true" Then
|
|
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2020-12-26 01:33:30 +07:00
|
|
|
If MachineStage = "mcu-upgrade" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2020-12-26 01:33:30 +07:00
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2022-04-01 10:42:00 +07:00
|
|
|
;stop_now
|
2022-04-17 21:48:43 +07:00
|
|
|
If NETCORE_LOST_CNT > 120 Then
|
2022-04-01 10:42:00 +07:00
|
|
|
Var stop_now = "true"
|
|
|
|
|
Var MachineErrorDetailAll = "???"
|
2022-04-17 21:48:43 +07:00
|
|
|
SAVELOG "NETCORE_LOST_CNT"
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2022-04-01 10:42:00 +07:00
|
|
|
EndIf
|
2022-07-04 15:06:36 +07:00
|
|
|
|
|
|
|
|
|
2022-07-12 12:19:44 +07:00
|
|
|
;DEBUGVAR NETCORE_EVENT_CNT_X
|
2022-07-04 15:06:36 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
If NCIC07_EVENT_CNT = NETCORE_EVENT_CNT_TMP Then
|
2023-10-06 10:03:10 +07:00
|
|
|
If NETCORE_EVENT_CNT_X = "" Then
|
|
|
|
|
Var NETCORE_EVENT_CNT_X = 0
|
|
|
|
|
EndIf
|
|
|
|
|
|
2022-07-04 15:06:36 +07:00
|
|
|
Var NETCORE_EVENT_CNT_X = NETCORE_EVENT_CNT_X + 1
|
2023-10-05 08:43:58 +07:00
|
|
|
|
2023-10-09 14:59:58 +07:00
|
|
|
If NETCORE_EVENT_CNT_X = 30 Then
|
|
|
|
|
DEBUGVAR NETCORE_EVENT_CNT_X
|
|
|
|
|
EndIf
|
|
|
|
|
If NETCORE_EVENT_CNT_X = 90 Then
|
|
|
|
|
DEBUGVAR NETCORE_EVENT_CNT_X
|
|
|
|
|
EndIf
|
2022-07-04 15:06:36 +07:00
|
|
|
|
2023-11-01 10:39:31 +07:00
|
|
|
If NETCORE_EVENT_CNT_X > 3600 Then
|
2022-07-04 15:06:36 +07:00
|
|
|
Var stop_now = "true"
|
2023-10-05 08:43:58 +07:00
|
|
|
Var stop_now_from_netcore_event = 1
|
2022-07-04 15:06:36 +07:00
|
|
|
Var MachineErrorDetailAll = "Netcore Lost"
|
2022-07-13 09:44:29 +07:00
|
|
|
SAVELOG "Netcore Lost NCIC07_EVENT_CNT"
|
2022-07-04 15:06:36 +07:00
|
|
|
DEBUGVAR NCIC07_EVENT_CNT
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2022-07-04 15:06:36 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Else
|
|
|
|
|
Var NETCORE_EVENT_CNT_X = 0
|
|
|
|
|
Var NETCORE_EVENT_CNT_TMP = NCIC07_EVENT_CNT
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-03 14:21:46 +07:00
|
|
|
EndIf
|
2020-10-20 11:54:27 +07:00
|
|
|
|
2020-10-20 13:58:08 +07:00
|
|
|
If MachineStage = "drink-failed" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2020-10-20 13:58:08 +07:00
|
|
|
|
|
|
|
|
EndIf
|
2020-12-05 22:46:39 +07:00
|
|
|
|
|
|
|
|
If MachineStage = "remove-cup" Then
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_remove_cup.xml"
|
|
|
|
|
|
|
|
|
|
EndIf
|
2020-10-20 13:58:08 +07:00
|
|
|
|
2024-01-25 21:18:04 +07:00
|
|
|
If BrewTimeoutExtend = 1 Then
|
|
|
|
|
DEBUGVAR BrewTimeoutExtend
|
2024-01-29 14:54:48 +07:00
|
|
|
DEBUGVAR DoorCupPosition
|
|
|
|
|
If DoorCupPosition = "bottom" Then
|
2024-01-25 21:18:04 +07:00
|
|
|
SAVELOG "BrewTimeoutExtend = 0 Clear Error Flag"
|
|
|
|
|
Var BrewTimeoutExtend = 0
|
|
|
|
|
; clear stage
|
|
|
|
|
|
|
|
|
|
Else
|
|
|
|
|
|
|
|
|
|
Var stop_now = "true"
|
|
|
|
|
Var stop_now_from_door_cup = 1
|
|
|
|
|
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2024-01-25 21:18:04 +07:00
|
|
|
EndIf
|
|
|
|
|
Else
|
2024-01-29 14:54:48 +07:00
|
|
|
If DoorCupPosition = "Bottom" Then
|
2024-01-25 21:18:04 +07:00
|
|
|
Var BrewTimeoutExtend = 0
|
2024-01-29 14:54:48 +07:00
|
|
|
|
2024-01-25 21:18:04 +07:00
|
|
|
Else
|
|
|
|
|
Var BrewTimeoutExtend = 0
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
2021-01-22 13:12:30 +07:00
|
|
|
|
2022-04-01 10:42:00 +07:00
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
If NeedUpgrade = "true" Then
|
2024-05-07 11:22:47 +07:00
|
|
|
TRY "ROOT/taobin_project/xml/sometime/script_open_page_show_error.ev"
|
2021-01-19 23:43:43 +07:00
|
|
|
EndIf
|
2020-10-12 19:09:05 +07:00
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
If CountDownShowButton > 0 Then
|
|
|
|
|
Var CountDownShowButton = CountDownShowButton - 1
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-04-04 20:06:37 +07:00
|
|
|
|
|
|
|
|
|
2024-02-05 21:48:02 +07:00
|
|
|
;DEBUGVAR MachineStage
|
2020-11-25 15:27:13 +07:00
|
|
|
;SAVELOG CountDownShowButton
|
|
|
|
|
;SAVELOG ShowButtonClickFull
|
2021-04-21 16:13:29 +07:00
|
|
|
|
2021-08-16 11:24:01 +07:00
|
|
|
If TaobinOnlineX = "true" Then
|
2020-10-12 19:09:05 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
If CountDownShowButton = 31 Then
|
|
|
|
|
Var ShowButtonClickFull = "Enable"
|
|
|
|
|
Var ShowButtonClick = "Invisible"
|
2024-07-09 11:31:08 +07:00
|
|
|
If CountryName = "Singapore" Then
|
|
|
|
|
Var ShowButtonClick2 = "Invisible"
|
|
|
|
|
EndIf
|
2021-04-21 16:13:29 +07:00
|
|
|
Refresh
|
|
|
|
|
EndIf
|
2020-10-12 19:09:05 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
If CountDownShowButton = 3 Then
|
|
|
|
|
|
|
|
|
|
Var ShowButtonClick = "Enable"
|
2024-07-09 11:31:08 +07:00
|
|
|
If CountryName = "Singapore" Then
|
|
|
|
|
Var ShowButtonClick2 = "Enable"
|
|
|
|
|
EndIf
|
2021-04-21 16:13:29 +07:00
|
|
|
Var ShowButtonClickFull = "Invisible"
|
|
|
|
|
Refresh
|
|
|
|
|
EndIf
|
2020-10-12 19:09:05 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
If CountDownPauseVideo > 0 Then
|
|
|
|
|
; ignore
|
2021-05-24 13:38:59 +07:00
|
|
|
Var CountDownPauseVideo = CountDownPauseVideo - 1
|
2023-04-04 20:06:37 +07:00
|
|
|
|
2024-05-16 16:54:11 +07:00
|
|
|
If CountDownPauseVideo = 2 Then
|
|
|
|
|
|
|
|
|
|
TapScreen 30 638
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2023-07-12 22:17:28 +07:00
|
|
|
If CountDownPauseVideo = 1 Then
|
2023-11-06 10:42:33 +07:00
|
|
|
|
2024-05-16 16:54:11 +07:00
|
|
|
TapScreen 860 1004
|
2023-11-06 10:42:33 +07:00
|
|
|
|
2023-07-12 22:17:28 +07:00
|
|
|
EndIf
|
2024-05-16 16:54:11 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
If CountDownPauseVideo = 0 Then
|
2021-01-19 23:43:43 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
Var NextPage = "ROOT/taobin_project/xml/page_back_to_main.xml"
|
2021-01-19 23:43:43 +07:00
|
|
|
|
2022-06-20 12:22:14 +07:00
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
2023-02-21 11:34:32 +07:00
|
|
|
|
2023-05-01 21:39:17 +07:00
|
|
|
|
|
|
|
|
Var OpenFromPageBoard = 1
|
2023-05-11 21:58:34 +07:00
|
|
|
|
2024-05-16 16:54:11 +07:00
|
|
|
|
|
|
|
|
|
2023-05-11 21:58:34 +07:00
|
|
|
If InternationalEnable = 1 Then
|
2023-05-15 21:57:44 +07:00
|
|
|
|
|
|
|
|
; show language icon
|
|
|
|
|
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
|
|
|
|
RootLayoutVisible 3 "show"
|
|
|
|
|
|
2023-08-23 13:00:51 +07:00
|
|
|
|
|
|
|
|
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
|
|
|
|
TRY OpenFileXML
|
|
|
|
|
;OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend.lxml"
|
|
|
|
|
|
2023-05-11 21:58:34 +07:00
|
|
|
Else
|
2023-10-25 18:02:34 +07:00
|
|
|
If BeerTrapEnable = "true" Then
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
|
|
|
|
|
Else
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
|
|
|
|
|
EndIf
|
2023-05-11 21:58:34 +07:00
|
|
|
EndIf
|
2023-04-21 11:04:06 +07:00
|
|
|
|
2022-10-11 13:28:43 +07:00
|
|
|
Machine DoorClose
|
2022-04-03 11:01:43 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
TopView "show"
|
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
2021-02-05 13:53:17 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
If TimerFirst = "true" Then
|
|
|
|
|
Var TimerFirst = "false"
|
|
|
|
|
Var CountUpReloadAll = CountUpReloadAll + 1
|
|
|
|
|
|
|
|
|
|
DEBUGVAR CountUpReloadAll
|
|
|
|
|
|
2023-06-30 15:04:02 +07:00
|
|
|
; Original value is 40
|
2024-02-11 21:53:30 +07:00
|
|
|
If EnableMultiInstance = "true" Then
|
|
|
|
|
|
|
|
|
|
If CountUpReloadAll > 300 Then
|
|
|
|
|
Var NeedReboot = "false"
|
|
|
|
|
|
|
|
|
|
Var StartUpExt = "-"
|
|
|
|
|
Var CountUpReloadAll = 0
|
|
|
|
|
|
|
|
|
|
ReloadAll
|
|
|
|
|
EndIf
|
2021-02-05 13:53:17 +07:00
|
|
|
|
2024-02-11 21:53:30 +07:00
|
|
|
Else
|
|
|
|
|
If CountUpReloadAll > 100 Then
|
|
|
|
|
Var NeedReboot = "false"
|
|
|
|
|
|
|
|
|
|
Var StartUpExt = "-"
|
|
|
|
|
Var CountUpReloadAll = 0
|
|
|
|
|
|
|
|
|
|
ReloadAll
|
|
|
|
|
EndIf
|
2021-02-05 13:53:17 +07:00
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
2021-03-19 08:27:10 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
|
2021-03-12 15:39:02 +07:00
|
|
|
If CupOnArm = "true" Then
|
2023-04-27 22:20:59 +07:00
|
|
|
|
|
|
|
|
If CheckCupStateDoorCupClose = "" Then
|
|
|
|
|
Var buttonRemoveCup = "Enable"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If CheckCupStateDoorCupClose = "done" Then
|
|
|
|
|
Var buttonRemoveCup = "Enable"
|
|
|
|
|
EndIf
|
2021-03-12 15:39:02 +07:00
|
|
|
Else
|
2023-04-27 22:20:59 +07:00
|
|
|
If buttonRemoveCup = "Enable" Then
|
|
|
|
|
Var buttonRemoveCup = "Invisible"
|
|
|
|
|
EndIf
|
2021-03-12 15:39:02 +07:00
|
|
|
EndIf
|
2022-02-28 22:33:45 +07:00
|
|
|
|
|
|
|
|
|
2022-03-06 23:56:08 +07:00
|
|
|
|
2022-02-28 22:33:45 +07:00
|
|
|
|
|
|
|
|
If Seeker = "curr" Then
|
|
|
|
|
If DoorCupPosition = "bottom" Then
|
|
|
|
|
; It normal
|
|
|
|
|
Var EmergencyStop = "false"
|
|
|
|
|
Else
|
|
|
|
|
Var EmergencyStop = "true"
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-03-24 14:37:28 +07:00
|
|
|
If MainPageEventWithTimeout = "" Then
|
|
|
|
|
|
|
|
|
|
Else
|
|
|
|
|
If MainPageEventWithTimeout > 0 Then
|
|
|
|
|
Var MainPageEventWithTimeout = MainPageEventWithTimeout - 1
|
|
|
|
|
EndIf
|
2023-04-27 22:20:59 +07:00
|
|
|
|
2024-03-24 14:37:28 +07:00
|
|
|
;DEBUGVAR MainPageEventWithTimeout
|
|
|
|
|
If MainPageEventWithTimeout = 1 Then
|
|
|
|
|
Var CountDownPauseVideo = 4
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
2023-05-31 15:06:34 +07:00
|
|
|
|
2024-03-28 22:03:49 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
Refresh
|
2021-02-05 13:53:17 +07:00
|
|
|
|
2020-09-14 15:09:29 +07:00
|
|
|
TimerReset
|
|
|
|
|
</EventTimeout>
|
2020-09-14 19:07:20 +07:00
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
<EventEnd>
|
2022-10-04 22:00:33 +07:00
|
|
|
SAVELOG "EVENT END"
|
2021-07-03 23:19:20 +07:00
|
|
|
|
2021-08-16 11:24:01 +07:00
|
|
|
If TaobinOnlineX = "true" Then
|
2021-07-03 23:19:20 +07:00
|
|
|
Var CountDownShowButton = 35
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If TermTemOnline = "true" Then
|
|
|
|
|
Var CountDownShowButton = 28
|
|
|
|
|
EndIf
|
|
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
Var CountDownPauseVideo = 6
|
2021-08-16 11:24:01 +07:00
|
|
|
If TaobinOnlineX = "true" Then
|
2023-10-18 11:15:28 +07:00
|
|
|
;TouchTapClose
|
2021-04-21 16:13:29 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2021-05-24 13:38:59 +07:00
|
|
|
;Open CurrentXMLFileName0
|
2020-10-12 19:09:05 +07:00
|
|
|
Refresh
|
2021-02-05 14:11:05 +07:00
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
</EventEnd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EventNetDown>
|
2020-12-26 01:33:30 +07:00
|
|
|
SAVELOG NetworkStatus
|
2021-08-16 11:44:14 +07:00
|
|
|
;Open "/mnt/sdcard/coffeevending/xml/main.xml"
|
2020-10-12 19:09:05 +07:00
|
|
|
</EventNetDown>
|
2020-12-26 01:33:30 +07:00
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
<EventNetDeactive>
|
2020-12-26 01:33:30 +07:00
|
|
|
SAVELOG NetworkStatus
|
2022-08-01 16:00:47 +07:00
|
|
|
If SELLSTATUS = "DEACTIVE" Then
|
|
|
|
|
Open "/mnt/sdcard/coffeevending/xml/main.xml"
|
|
|
|
|
EndIf
|
2020-10-12 19:09:05 +07:00
|
|
|
</EventNetDeactive>
|
|
|
|
|
|
2021-11-25 15:56:33 +07:00
|
|
|
<EventWebApp>
|
|
|
|
|
|
|
|
|
|
DEBUGVAR web_ready
|
|
|
|
|
If web_ready = "true" Then
|
2021-11-30 15:42:42 +07:00
|
|
|
If web_ref = QRCODE99x Then
|
2021-11-25 15:56:33 +07:00
|
|
|
|
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
|
|
|
|
|
|
2021-11-30 16:16:44 +07:00
|
|
|
Var web_app_prepar = "true"
|
2021-11-25 15:56:33 +07:00
|
|
|
|
2023-11-17 08:41:15 +07:00
|
|
|
; Handle penetrator
|
|
|
|
|
|
2023-11-22 15:52:40 +07:00
|
|
|
If Only18 = "true" Then
|
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
|
|
|
OpenInst 2 "ROOT/taobin_project/xml/page_identity18_verification.xml"
|
2023-11-17 08:41:15 +07:00
|
|
|
Else
|
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2021-11-25 15:56:33 +07:00
|
|
|
|
|
|
|
|
TopView "show"
|
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
|
|
|
|
EndIf
|
|
|
|
|
Else
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
</EventWebApp>
|
|
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
|
|
|
|
|
<Video>
|
|
|
|
|
<X> 0 </X>
|
|
|
|
|
<Y> 0 </Y>
|
2021-02-05 13:53:17 +07:00
|
|
|
;<Loop>"true"</Loop>
|
2020-12-03 14:21:46 +07:00
|
|
|
;<Volume> 80 </Volume>
|
2021-04-21 16:13:29 +07:00
|
|
|
<Filename> VideoMainPage </Filename>
|
2023-03-07 17:39:10 +07:00
|
|
|
<FilenameAlternate> "ROOT/taobin_project/video/main_page_en.mp4" </FilenameAlternate>
|
2020-10-12 19:09:05 +07:00
|
|
|
</Video>
|
|
|
|
|
|
|
|
|
|
|
2024-05-18 23:22:55 +07:00
|
|
|
<Image>
|
|
|
|
|
<X> 224 </X>
|
|
|
|
|
<Y> NamHomCoconutRemainReward_Y </Y>
|
|
|
|
|
<State> ShowNamHomCoconutRemainReward </State>
|
|
|
|
|
<Filename> "ROOT/taobin_project/image/event/nam_hom_coconut/reward_remain.png" </Filename>
|
|
|
|
|
</Image>
|
|
|
|
|
|
|
|
|
|
<Text>
|
|
|
|
|
<X> 379 </X>
|
|
|
|
|
<Y> NamHomCoconutRemainRewardNumber_Y </Y>
|
|
|
|
|
<State> ShowNamHomCoconutRemainReward </State>
|
|
|
|
|
<Width> 224 </Width>
|
|
|
|
|
<Height> 112 </Height>
|
|
|
|
|
<Font> OpunBoldTTF </Font>
|
|
|
|
|
<Size> 100 </Size>
|
|
|
|
|
<Color> 0xFF0000 </Color>
|
|
|
|
|
<Align> center-vertical-horizontal </Align>
|
|
|
|
|
<Value> NamHomCoconutRemainReward </Value>
|
|
|
|
|
</Text>
|
|
|
|
|
|
|
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
|
2020-09-14 19:07:20 +07:00
|
|
|
|
|
|
|
|
<Button>
|
|
|
|
|
<X> 212 </X>
|
|
|
|
|
<Y> 1481 </Y>
|
2020-10-12 19:09:05 +07:00
|
|
|
<State> ShowButtonClick </State>
|
2021-02-05 13:53:17 +07:00
|
|
|
;<Color> "0x00BDFF" </Color>
|
2024-03-24 14:37:28 +07:00
|
|
|
<Filename> img_rest_main_page </Filename>
|
2023-05-23 08:11:55 +07:00
|
|
|
<FilenamePress> img_press_main_page </FilenamePress>
|
2021-10-25 15:53:30 +07:00
|
|
|
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
2020-09-14 19:07:20 +07:00
|
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
|
<EventClick>
|
2023-02-14 17:09:30 +07:00
|
|
|
|
2022-05-05 23:15:44 +07:00
|
|
|
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
2020-12-16 09:50:26 +07:00
|
|
|
If CocktailShow = "true" Then
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
|
|
|
|
|
Else
|
2022-02-17 22:16:11 +07:00
|
|
|
|
|
|
|
|
If SpiralOnline = "true" Then
|
2021-04-06 14:50:53 +07:00
|
|
|
|
2022-02-17 22:16:11 +07:00
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_with_vending.xml"
|
|
|
|
|
Else
|
2023-05-11 21:58:34 +07:00
|
|
|
If InternationalEnable = 1 Then
|
2023-05-15 21:57:44 +07:00
|
|
|
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
2023-05-11 21:58:34 +07:00
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.lxml"
|
|
|
|
|
Else
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
|
|
|
|
|
EndIf
|
2022-02-17 22:16:11 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
EndIf
|
2021-04-06 14:50:53 +07:00
|
|
|
|
2020-12-16 09:50:26 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2020-09-14 19:47:50 +07:00
|
|
|
TopView "show"
|
2020-10-15 13:14:09 +07:00
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
2020-09-14 19:07:20 +07:00
|
|
|
</EventClick>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button>
|
2023-07-12 22:17:28 +07:00
|
|
|
<X> XButtonMember </X>
|
|
|
|
|
<Y> YButtonMember </Y>
|
2021-08-25 16:59:01 +07:00
|
|
|
<State> ShowButtonClick2 </State>
|
2021-02-05 13:53:17 +07:00
|
|
|
;<Color> "0x00BDFF" </Color>
|
2024-03-24 14:37:28 +07:00
|
|
|
<Filename> MemberButtonFileNameRest </Filename>
|
2023-05-31 15:06:34 +07:00
|
|
|
<FilenamePress> MemberButtonFileName </FilenamePress>
|
2020-09-14 19:07:20 +07:00
|
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
|
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
|
<EventClick>
|
2021-02-05 13:53:17 +07:00
|
|
|
|
2022-05-01 10:57:47 +07:00
|
|
|
Var NextPage = "-"
|
|
|
|
|
|
2021-02-05 13:53:17 +07:00
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
2023-11-24 17:45:47 +07:00
|
|
|
|
|
|
|
|
If InternationalEnable = 1 Then
|
2024-03-21 09:40:19 +07:00
|
|
|
;inter-xml-open
|
2024-07-09 11:31:08 +07:00
|
|
|
|
|
|
|
|
DEBUGVAR CountryName
|
|
|
|
|
|
|
|
|
|
If CountryName = "UnitedArabEmirates Dubai" Then
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_check_member.xml"
|
|
|
|
|
Else
|
2023-11-24 17:45:47 +07:00
|
|
|
Var ChackMemberPage = CountryRootPath + "xml/page_check_member.lxml"
|
|
|
|
|
OpenInst 2 ChackMemberPage
|
|
|
|
|
EndIf
|
|
|
|
|
Else
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_check_member.xml"
|
|
|
|
|
EndIf
|
2020-09-14 19:07:20 +07:00
|
|
|
|
2021-02-05 13:53:17 +07:00
|
|
|
TopView "show"
|
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
|
|
|
|
|
|
|
|
|
|
2020-09-14 19:07:20 +07:00
|
|
|
</EventClick>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button>
|
|
|
|
|
<X> 556 </X>
|
|
|
|
|
<Y> 1695 </Y>
|
2022-01-20 14:54:14 +07:00
|
|
|
<State> ButtontoTopupMenu </State>
|
2021-02-05 13:53:17 +07:00
|
|
|
;<Color> "0x00BDFF" </Color>
|
2024-03-24 14:37:28 +07:00
|
|
|
<Filename> img_reset_topup </Filename>
|
2020-09-14 19:07:20 +07:00
|
|
|
<FilenamePress> "ROOT/taobin_project/image/main_page/bp_main_page_topup.png" </FilenamePress>
|
|
|
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
|
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
|
<EventClick>
|
2022-01-14 17:41:20 +07:00
|
|
|
Var PayDetail=""
|
2022-05-01 10:57:47 +07:00
|
|
|
Var NextPage = "-"
|
2020-09-14 19:47:50 +07:00
|
|
|
Open "ROOT/xml/service_menu.xml"
|
2020-09-14 19:07:20 +07:00
|
|
|
</EventClick>
|
|
|
|
|
</Button>
|
|
|
|
|
|
2020-09-18 15:24:35 +07:00
|
|
|
<Button>
|
2020-10-12 19:09:05 +07:00
|
|
|
<X> 2 </X>
|
2021-02-05 13:53:17 +07:00
|
|
|
<Y> 609 </Y>
|
2020-10-12 19:09:05 +07:00
|
|
|
<State> ShowButtonClickFull </State>
|
2021-02-05 13:53:17 +07:00
|
|
|
;<Color> "0x00BDFF" </Color>
|
2020-10-14 17:33:55 +07:00
|
|
|
<Width> 1070 </Width>
|
2021-02-05 13:53:17 +07:00
|
|
|
<Height> 1310 </Height>
|
2020-09-18 15:24:35 +07:00
|
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
|
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
|
<EventClick>
|
2022-05-01 10:57:47 +07:00
|
|
|
|
2023-06-13 13:23:22 +07:00
|
|
|
SAVELOG "click ShowButtonClickFull"
|
|
|
|
|
|
2022-05-01 10:57:47 +07:00
|
|
|
Var NextPage = "-"
|
2020-10-15 13:14:09 +07:00
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
2022-02-18 22:23:47 +07:00
|
|
|
If SpiralOnline = "true" Then
|
|
|
|
|
|
2023-05-11 21:58:34 +07:00
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_with_vending.xml"
|
|
|
|
|
Else
|
|
|
|
|
If InternationalEnable = 1 Then
|
2023-05-15 21:57:44 +07:00
|
|
|
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
2023-05-11 21:58:34 +07:00
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.lxml"
|
2022-02-18 22:23:47 +07:00
|
|
|
Else
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
|
|
|
|
|
EndIf
|
2023-05-11 21:58:34 +07:00
|
|
|
EndIf
|
2021-04-06 14:50:53 +07:00
|
|
|
If TermTemOnline = "true" Then
|
2021-04-27 23:13:40 +07:00
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/termtem_project/xml/page_tt_catalog.xml"
|
2021-04-06 14:50:53 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
TopView "show"
|
2020-10-15 13:14:09 +07:00
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
2021-03-12 15:39:02 +07:00
|
|
|
</EventClick>
|
2020-09-18 15:24:35 +07:00
|
|
|
</Button>
|
|
|
|
|
|
2020-11-15 23:14:16 +07:00
|
|
|
|
|
|
|
|
|
2021-12-16 10:30:57 +07:00
|
|
|
<Image>
|
|
|
|
|
<X> 778 </X>
|
|
|
|
|
<Y> 632 </Y>
|
2021-12-17 14:06:46 +07:00
|
|
|
<State>WebAppShow</State>
|
2021-12-16 10:30:57 +07:00
|
|
|
<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>
|
2023-07-25 14:07:57 +07:00
|
|
|
<QRColor> "0x000000" </QRColor>
|
2021-12-16 10:30:57 +07:00
|
|
|
<Height> 150 </Height>
|
|
|
|
|
<State> WebAppShow </State>
|
|
|
|
|
<Service> testservice </Service>
|
|
|
|
|
</QRCode>
|
|
|
|
|
|
|
|
|
|
|
2021-03-12 15:39:02 +07:00
|
|
|
<Button>
|
2021-08-25 22:42:18 +07:00
|
|
|
<X> 780 </X>
|
|
|
|
|
<Y> 630 </Y>
|
2021-03-12 15:39:02 +07:00
|
|
|
<State> buttonRemoveCup </State>
|
|
|
|
|
;<Color> "0x00BDFF" </Color>
|
2021-08-25 22:42:18 +07:00
|
|
|
<Interval> 500 </Interval>
|
2023-09-15 13:45:44 +07:00
|
|
|
<Filename> Var(RootPath + "image/main_page/bn_remove_cup.png") </Filename>
|
|
|
|
|
<Filename> Var(RootPath + "image/main_page/bp_remove_cup.png") </Filename>
|
2021-03-12 15:39:02 +07:00
|
|
|
<EventClick>
|
|
|
|
|
Machine RemoveCup
|
2021-05-04 00:40:17 +07:00
|
|
|
Machine DoorLidOpen
|
2023-04-27 22:20:59 +07:00
|
|
|
|
|
|
|
|
Var CheckCupStateDoorCupClose = "reset"
|
2023-05-12 15:49:12 +07:00
|
|
|
Var buttonRemoveCup = "Invisible"
|
2021-03-12 15:39:02 +07:00
|
|
|
</EventClick>
|
|
|
|
|
</Button>
|
2020-09-18 15:24:35 +07:00
|
|
|
|
2021-08-25 16:59:01 +07:00
|
|
|
<Button>
|
|
|
|
|
<X> 0 </X>
|
|
|
|
|
<Y> 1870 </Y>
|
|
|
|
|
<State> ShowNetworkProblem </State>
|
|
|
|
|
<Color> "0xFF0000" </Color>
|
|
|
|
|
<Width> 1080 </Width>
|
|
|
|
|
<Height> 60 </Height>
|
2022-06-20 12:22:14 +07:00
|
|
|
<EventClick>
|
2022-12-09 17:13:41 +07:00
|
|
|
If IgnoreNetCore = "true" Then
|
2022-07-16 10:12:31 +07:00
|
|
|
|
2022-12-09 17:13:41 +07:00
|
|
|
Var NextPage = "-"
|
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
2022-06-20 12:22:14 +07:00
|
|
|
|
2022-12-09 17:13:41 +07:00
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.lxml"
|
2022-06-20 12:22:14 +07:00
|
|
|
|
|
|
|
|
|
2022-12-09 17:13:41 +07:00
|
|
|
TopView "show"
|
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
|
|
|
|
|
|
|
|
|
EndIf
|
2022-06-20 12:22:14 +07:00
|
|
|
</EventClick>
|
2021-08-25 16:59:01 +07:00
|
|
|
</Button>
|
|
|
|
|
|
2023-07-12 22:17:28 +07:00
|
|
|
|
|
|
|
|
<Button>
|
|
|
|
|
<X> 0 </X>
|
|
|
|
|
<Y> 608 </Y>
|
|
|
|
|
<State> "Enable" </State>
|
|
|
|
|
<Width> 120 </Width>
|
|
|
|
|
<Height> 120 </Height>
|
|
|
|
|
<EventClick>
|
|
|
|
|
|
|
|
|
|
Var NextPage = "ROOT/taobin_project/xml/page_back_to_main.xml"
|
|
|
|
|
|
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
2024-03-28 22:03:49 +07:00
|
|
|
|
2023-07-12 22:17:28 +07:00
|
|
|
|
|
|
|
|
Var OpenFromPageBoard = 1
|
|
|
|
|
|
|
|
|
|
If InternationalEnable = 1 Then
|
|
|
|
|
|
|
|
|
|
; show language icon
|
|
|
|
|
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
|
|
|
|
RootLayoutVisible 3 "show"
|
|
|
|
|
|
2023-08-23 13:00:51 +07:00
|
|
|
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
|
|
|
|
TRY OpenFileXML
|
|
|
|
|
|
|
|
|
|
;OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_group_recommend.lxml"
|
2023-07-12 22:17:28 +07:00
|
|
|
Else
|
2023-10-25 18:02:34 +07:00
|
|
|
|
|
|
|
|
If BeerTrapEnable = "true" Then
|
|
|
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
|
|
|
|
|
Else
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
|
|
|
|
|
EndIf
|
2023-07-12 22:17:28 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Machine DoorClose
|
|
|
|
|
|
|
|
|
|
TopView "show"
|
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
|
|
|
|
|
|
|
|
|
</EventClick>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
2021-08-25 16:59:01 +07:00
|
|
|
<Text>
|
2023-06-06 15:20:51 +07:00
|
|
|
<State> ShowNetworkProblem </State>
|
2021-08-25 16:59:01 +07:00
|
|
|
<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
|
|
|
|
2020-09-14 15:09:29 +07:00
|
|
|
</Page>
|