merge page board
This commit is contained in:
commit
1516ff2616
426 changed files with 94322 additions and 115895 deletions
|
|
@ -10,6 +10,8 @@
|
|||
; tab_menu hide
|
||||
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
|
||||
|
||||
RootLayoutVisible 3 "hide"
|
||||
|
||||
DEBUGVAR LangProcess
|
||||
|
||||
Var ToggleAfterEventProfileOff = 0
|
||||
|
|
@ -32,6 +34,7 @@
|
|||
Var credit_card_enable = ""
|
||||
READ_FILE "/mnt/sdcard/credit_card_enable" credit_card_enable
|
||||
|
||||
Var BaseOnPageBoard = 1
|
||||
|
||||
Var eng_enable = "true"
|
||||
Var thai_enable = "true"
|
||||
|
|
@ -42,10 +45,12 @@
|
|||
Var Seeker = "next"
|
||||
Var Seeker.thankLidFlag = 0
|
||||
Var Seeker.thankStrawFlag = 0
|
||||
Var Seeker.SmoothieToPayment = 0
|
||||
|
||||
Var Seeker = "curr"
|
||||
Var Seeker.thankLidFlag = 0
|
||||
Var Seeker.thankStrawFlag = 0
|
||||
Var Seeker.SmoothieToPayment = 0
|
||||
|
||||
DEBUGVAR web_ref
|
||||
DEBUGVAR web_payment
|
||||
|
|
@ -134,6 +139,8 @@
|
|||
Var ShowButtonClick_WTC = "Invisible"
|
||||
Var ShowButtonClickFull_WTC = "Invisible"
|
||||
|
||||
Var BtnLangToggleIndex = "Invisible"
|
||||
|
||||
;SAVELOG DisplayType
|
||||
|
||||
If DisplayType = "2" Then
|
||||
|
|
@ -592,10 +599,24 @@
|
|||
EndIf
|
||||
|
||||
If ConnectWithPOSMachine = 1 Then
|
||||
OpenInst 0 "ROOT/taobin_project/xml/page_network_down_pos_machine.xml"
|
||||
OpenInst 0 "ROOT/taobin_project/xml/page_pos_machine_network_down.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If ConnectWithPOSMachine = 1 Then
|
||||
DEBUGVAR POS_SELL_MODE
|
||||
Var POSSellCountdown = 5
|
||||
If POS_SELL_MODE = "NORMAL" Then
|
||||
|
||||
Else
|
||||
Var BackgroundColor = "0x2C2F4E"
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
|
||||
Open "ROOT/taobin_project/xml/page_pos_machine_midnight_close.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR ButtontoTopupMenu
|
||||
STRCONTAIN "taobin_notopup" XMLProfile taobin_notopup
|
||||
STRCONTAIN "taobin_notopping" XMLProfile taobin_notopping
|
||||
|
|
@ -1120,7 +1141,7 @@
|
|||
EnableLanguage "MTC"
|
||||
EnableLanguage "MSC"
|
||||
EnableLanguage "ENG"
|
||||
|
||||
|
||||
Var LanguageShow = "MTC"
|
||||
SetLanguage "MTC"
|
||||
LanguageControl "UpdateList" "-"
|
||||
|
|
@ -1136,8 +1157,14 @@
|
|||
|
||||
Var TextPriceMenuSize = 12
|
||||
Var TextPriceMenuY = 266
|
||||
Var TextPriceMenuColdx = 113
|
||||
Var TextPriceMenuBlendX = 180
|
||||
Var TextPriceMenuHotX = 48
|
||||
|
||||
Var TextHotMenuX = 19
|
||||
Var TextColdMenuX = 84
|
||||
Var TextBlendMenuX = 148
|
||||
|
||||
Var ShowButtonClick2 = "Invisible"
|
||||
Var ButtontoTopupMenu = "Invisible"
|
||||
|
||||
|
|
@ -1318,22 +1345,67 @@
|
|||
|
||||
If EnableMultiInstanceFromBoxID = 1 Then
|
||||
If CountryName = "Thailand" Then
|
||||
|
||||
|
||||
|
||||
; enable helper
|
||||
Var EnableHelperShow = 0
|
||||
;Var FromDrinkOk = 1
|
||||
If EnableHelperShow = 1 Then
|
||||
; enable btn_change_langs
|
||||
Var EnableBtnLangWithHelper = 1
|
||||
Var LanguageButtonEnable = "Enable"
|
||||
Var ButtonLanguageCurrentXPosition = 990
|
||||
Var ButtonLanguageCurrentYPosition = 608
|
||||
Var ButtonLanguageListXPosition = 970
|
||||
Var ButtonLanguageListYPosition = 590
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
RootLayoutVisible 3 "show"
|
||||
|
||||
If FromDrinkOk = 1 Then
|
||||
Var TimeOutShowHelpCenter = 15
|
||||
|
||||
Var FromSmoothieProcess = "Invisible"
|
||||
Var FromPaymentCash = "Invisible"
|
||||
Var FromBrewingProcess = "Enable"
|
||||
|
||||
RootLayoutVisible 14 "show"
|
||||
If CurrHelpCenter = 1 Then
|
||||
;do not thing
|
||||
Else
|
||||
OpenInst 14 "ROOT/taobin_project/inter/tha/xml/topview_helper.lxml"
|
||||
EndIf
|
||||
Else
|
||||
RootLayoutVisible 14 "hide"
|
||||
EndIf
|
||||
Else
|
||||
RootLayoutVisible 3 "hide"
|
||||
EndIf
|
||||
|
||||
Var EnableMultiInstance = "true"
|
||||
Var MyanmarLangEnable = "true"
|
||||
Var InternationalShow = 0
|
||||
|
||||
Var CatalogLayoutV3 = 1
|
||||
|
||||
|
||||
|
||||
If BoxID = 123456 Then
|
||||
Var SpiralOnline = "true"
|
||||
|
||||
|
||||
Var InternationalShow = 0
|
||||
EndIf
|
||||
|
||||
|
||||
If BoxID = 210699 Then
|
||||
Var SpiralOnline = "true"
|
||||
Var SpiralModeFrozenFruit = 1
|
||||
Var InternationalShow = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 105005 Then
|
||||
Var SpiralOnline = "true"
|
||||
Var SpiralModeFrozenFruit = 1
|
||||
Var InternationalShow = 1
|
||||
EndIf
|
||||
|
||||
; test payment
|
||||
Var New_Payment = 1
|
||||
|
|
@ -1464,7 +1536,17 @@
|
|||
;DEBUGVAR LivenessControlVersion
|
||||
;DEBUGVAR Not#CameraSettingStatus
|
||||
|
||||
RootLayoutVisible 3 "hide"
|
||||
If EnableMultiInstanceFromBoxID = 1 Then
|
||||
If CountryName = "Thailand" Then
|
||||
If EnableHelperShow = 1 Then
|
||||
RootLayoutVisible 3 "show"
|
||||
Else
|
||||
RootLayoutVisible 3 "hide"
|
||||
EndIf
|
||||
Else
|
||||
RootLayoutVisible 3 "hide"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SELLSTATUS = "DEACTIVE" Then
|
||||
OpenInst 0 "/ROOT/xml/offline.xml"
|
||||
|
|
@ -1656,7 +1738,7 @@
|
|||
|
||||
Machine NewPaymentOpenBrewingXMLEnable
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
|
||||
|
||||
|
||||
If EnablePepsiFullscreen = 1 Then
|
||||
DEBUGVAR EnablePepsiFullscreen
|
||||
|
|
@ -1840,6 +1922,7 @@ PRICE "Reset" "-"
|
|||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
|
||||
|
||||
If CNTDOWN_PROTECT_SCREEN_BLANK > 0 Then
|
||||
|
|
@ -2059,45 +2142,57 @@ PRICE "Reset" "-"
|
|||
|
||||
Var OpenFromPageBoard = 1
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
If CupOnArm = "true" Then
|
||||
|
||||
Else
|
||||
__CMD "CLI" "arm_id=3,arm_position=posi_espresso_ii" "-" "-"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
DEBUGVAR InternationalEnable
|
||||
DEBUGVAR CountryName
|
||||
If InternationalEnable = 1 Then
|
||||
If CountryName = "Thailand" Then
|
||||
SAVELOG " Thailand Thailand Thailand Thailand Pooon Pooon Pooon Pooon Pooon"
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
Else
|
||||
; show language icon
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
RootLayoutVisible 3 "show"
|
||||
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
TRY OpenFileXML
|
||||
EndIf
|
||||
|
||||
If CurrHelpCenter = 1 Then
|
||||
OpenInst 0 "ROOT/taobin_project/xml/page_board.xml"
|
||||
Else
|
||||
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"
|
||||
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
If CupOnArm = "true" Then
|
||||
|
||||
Else
|
||||
__CMD "CLI" "arm_id=3,arm_position=posi_espresso_ii" "-" "-"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Machine DoorClose
|
||||
|
||||
TopView "show"
|
||||
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
||||
Var BaseOnPageBoard = 0
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
|
||||
|
||||
If InternationalEnable = 1 Then
|
||||
If CountryName = "Thailand" Then
|
||||
SAVELOG " Thailand Thailand Thailand Thailand Pooon Pooon Pooon Pooon Pooon"
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
Else
|
||||
; show language icon
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
RootLayoutVisible 3 "show"
|
||||
|
||||
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
TRY OpenFileXML
|
||||
EndIf
|
||||
|
||||
Else
|
||||
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
|
||||
EndIf
|
||||
|
||||
Machine DoorClose
|
||||
|
||||
TopView "show"
|
||||
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
|
@ -2110,11 +2205,11 @@ PRICE "Reset" "-"
|
|||
Var CountUpReloadAll = CountUpReloadAll + 1
|
||||
|
||||
DEBUGVAR CountUpReloadAll
|
||||
; setvarint CountUpReloadAll 49
|
||||
; setvarint CountUpReloadAll 200
|
||||
; Original value is 40
|
||||
If EnableMultiInstance = "true" Then
|
||||
|
||||
If CountUpReloadAll > 300 Then
|
||||
If CountUpReloadAll > 100 Then
|
||||
Var NeedReboot = "false"
|
||||
|
||||
Var StartUpExt = "-"
|
||||
|
|
@ -2123,21 +2218,9 @@ PRICE "Reset" "-"
|
|||
ReloadAll
|
||||
EndIf
|
||||
|
||||
If CountUpReloadAll = 50 Then
|
||||
Var SlientRefreshIndex = 2
|
||||
EndIf
|
||||
If CountUpReloadAll = 150 Then
|
||||
Var SlientRefreshIndex = 2
|
||||
EndIf
|
||||
If CountUpReloadAll = 200 Then
|
||||
Var SlientRefreshIndex = 2
|
||||
EndIf
|
||||
If CountUpReloadAll = 250 Then
|
||||
Var SlientRefreshIndex = 2
|
||||
EndIf
|
||||
|
||||
Else
|
||||
If CountUpReloadAll > 100 Then
|
||||
If CountUpReloadAll > 50 Then
|
||||
Var NeedReboot = "false"
|
||||
|
||||
Var StartUpExt = "-"
|
||||
|
|
@ -2282,11 +2365,57 @@ PRICE "Reset" "-"
|
|||
Open "ROOT/taobin_project/xml/page_sleepmode.xml"
|
||||
EndIf
|
||||
|
||||
If ConnectWithPOSMachine = 1 Then
|
||||
If POSSellCountdown > 0 Then
|
||||
Var POSSellCountdown = POSSellCountdown - 1
|
||||
Else
|
||||
DEBUGVAR POS_SELL_MODE
|
||||
Var POSSellCountdown = 5
|
||||
If POS_SELL_MODE = "NORMAL" Then
|
||||
|
||||
Else
|
||||
Var BackgroundColor = "0x2C2F4E"
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
|
||||
Open "ROOT/taobin_project/xml/page_pos_machine_midnight_close.xml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
; for count helper show
|
||||
If EnableHelperShow = 1 Then
|
||||
If FromDrinkOk = 1 Then
|
||||
If TimeOutShowHelpCenter > 0 Then
|
||||
Var TimeOutShowHelpCenter = TimeOutShowHelpCenter - 1
|
||||
EndIf
|
||||
|
||||
If TimeOutShowHelpCenter = 0 Then
|
||||
Var FromDrinkOk = 0
|
||||
If CurrHelpCenter = 1 Then
|
||||
;do not thing
|
||||
Else
|
||||
OpenInst 14 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/page_instance_empty.lxml"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Refresh
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<EventLanguageOnChange>
|
||||
|
||||
Var LanguageButtonEnable = "Enable"
|
||||
Var ButtonLanguageCurrentXPosition = 990
|
||||
Var ButtonLanguageCurrentYPosition = 608
|
||||
Var ButtonLanguageListXPosition = 970
|
||||
Var ButtonLanguageListYPosition = 590
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
|
||||
RefreshAll
|
||||
</EventLanguageOnChange>
|
||||
|
||||
<EventEnd>
|
||||
SAVELOG "EVENT END"
|
||||
|
||||
|
|
@ -2358,6 +2487,8 @@ PRICE "Reset" "-"
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
||||
Var BaseOnPageBoard = 0
|
||||
|
||||
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
||||
If CocktailShow = "true" Then
|
||||
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
|
||||
|
|
@ -2405,6 +2536,7 @@ PRICE "Reset" "-"
|
|||
<EventClick>
|
||||
|
||||
Var NextPage = "-"
|
||||
Var BaseOnPageBoard = 0
|
||||
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
||||
|
||||
|
|
@ -2464,6 +2596,7 @@ PRICE "Reset" "-"
|
|||
SAVELOG "click ShowButtonClickFull"
|
||||
|
||||
Var NextPage = "-"
|
||||
Var BaseOnPageBoard = 0
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
||||
If SpiralOnline = "true" Then
|
||||
If InternationalEnable = 1 Then
|
||||
|
|
@ -2546,7 +2679,7 @@ PRICE "Reset" "-"
|
|||
<EventClick>
|
||||
|
||||
Var NextPage = "ROOT/taobin_project/xml/page_back_to_main.xml"
|
||||
|
||||
SAVELOG " NEXT PAGE NEXT PAGE NEXT PAGE "
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
||||
|
||||
If DoorCupPosition = "bottom" Then
|
||||
|
|
@ -2560,32 +2693,37 @@ PRICE "Reset" "-"
|
|||
|
||||
Var OpenFromPageBoard = 1
|
||||
|
||||
If InternationalEnable = 1 Then
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
SAVELOG " Thailand Thailand Thailand Thailand Pooon Pooon Pooon Pooon Pooon"
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
Else ; show language icon
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
RootLayoutVisible 3 "show"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
TRY OpenFileXML
|
||||
EndIf
|
||||
If CurrHelpCenter = 1 Then
|
||||
OpenInst 0 "ROOT/taobin_project/xml/page_board.xml"
|
||||
Else
|
||||
Var BaseOnPageBoard = 0
|
||||
|
||||
If CocktailShow = "true" Then
|
||||
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
|
||||
If InternationalEnable = 1 Then
|
||||
|
||||
If CountryName = "Thailand" Then
|
||||
SAVELOG " Thailand Thailand Thailand Thailand Pooon Pooon Pooon Pooon Pooon"
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
Else ; show language icon
|
||||
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
||||
RootLayoutVisible 3 "show"
|
||||
|
||||
Var OpenFileXML = CountryRootPath + "xml/event/script_common_for_open_promotion_xml.ev"
|
||||
TRY OpenFileXML
|
||||
EndIf
|
||||
Else
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/script_common_for_open_promotion_xml.ev"
|
||||
|
||||
If CocktailShow = "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
|
||||
EndIf
|
||||
|
||||
Machine DoorClose
|
||||
|
||||
TopView "show"
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
||||
EndIf
|
||||
|
||||
Machine DoorClose
|
||||
|
||||
TopView "show"
|
||||
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue