This commit is contained in:
kong 2022-07-16 10:12:31 +07:00
parent f11db1069e
commit 0d2d5b8298
11 changed files with 136 additions and 62 deletions

View file

@ -207,7 +207,11 @@
Var ShowNetworkProblem = "Enable"
Var ShowButtonClick2 = "Invisible"
Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
Machine NetworkDown
If NetworkStatus = "DOWN" Then
Machine NetworkDown
EndIf
Var QRCODE99 = ""
@ -263,7 +267,6 @@
EndIf
SPLIT AdvertiseProfile "/" 1 AdvertiseProfile1
SPLIT AdvertiseProfile "/" 2 AdvertiseProfile2
SPLIT AdvertiseProfile "/" 3 AdvertiseProfile3
@ -299,8 +302,14 @@
Var video_main_4 = video_main_4 + ".mp4"
Var video_main_5 = AdvTaobinHome + AdvertiseProfile12
Var video_main_5 = video_main_5 + ".mp4"
Var video_main_5 = AdvTaobinHome + AdvertiseProfile13
Var video_main_6 = AdvTaobinHome + AdvertiseProfile13
Var video_main_6 = video_main_6 + ".mp4"
Var video_main_7 = AdvTaobinHome + AdvertiseProfile14
Var video_main_7 = video_main_7 + ".mp4"
Var video_main_8 = AdvTaobinHome + AdvertiseProfile15
Var video_main_8 = video_main_8 + ".mp4"
Var video_main_9 = AdvTaobinHome + AdvertiseProfile16
Var video_main_9 = video_main_9 + ".mp4"
If AdvertiseProfile7 = "00" Then
Var video_main_count = 1
@ -356,6 +365,19 @@
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile13
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 7 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile14
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 8 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile15
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 9 Then
Var video_menu_0 = AdvTaobinMenu + AdvertiseProfile16
Var video_menu_0 = video_menu_0 + ".mp4"
EndIf
If VideoAdvIndex = 0 Then
Var video_menu2_1 = AdvTaobinMenu2 + AdvertiseProfile7
@ -385,6 +407,18 @@
Var video_menu2_1 = AdvTaobinMenu2 + AdvertiseProfile13
Var video_menu2_1 = video_menu2_1 + ".mp4"
EndIf
If VideoAdvIndex = 7 Then
Var video_menu2_1 = AdvTaobinMenu2 + AdvertiseProfile14
Var video_menu2_1 = video_menu2_1 + ".mp4"
EndIf
If VideoAdvIndex = 8 Then
Var video_menu2_1 = AdvTaobinMenu2 + AdvertiseProfile15
Var video_menu2_1 = video_menu2_1 + ".mp4"
EndIf
If VideoAdvIndex = 9 Then
Var video_menu2_1 = AdvTaobinMenu2 + AdvertiseProfile16
Var video_menu2_1 = video_menu2_1 + ".mp4"
EndIf
DEBUGVAR video_menu2_1
@ -478,6 +512,7 @@
;CameraService "Start"
</EventOpen>
<Timeout> 1000 </Timeout>
@ -890,7 +925,7 @@
<Width> 1080 </Width>
<Height> 60 </Height>
<EventClick>
Var NextPage = "-"
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"

View file

@ -14,7 +14,7 @@
DEBUGVAR CameraStatus
READCARDID
@ -151,9 +151,11 @@
Var menu_name_thai_blender = ""
Var menu_desc_thai_blender = ""
CameraReload
CameraSetting "usb1" "default" "Rotate=270,Resolution=1280x720,scaleX=1.0,scaleY=1.0"
If CameraCount = 0 Then
CameraSetting "usb1" "default" "Rotate=270,Resolution=1280x720,scaleX=1.0,scaleY=1.0"
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>

View file

@ -9902,15 +9902,15 @@ Kokuto syrup" </Value>
<Value> ice_show_open </Value>
</Text>
</Block>
; 12-03-01-0022 12-03-02-0022 -
; 12-01-01-0039 12-01-02-0039 -
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-01-0022.Button,12-03-02-0022.Button,$Sum12030100221203020022) </State>
<State> Flag( 12-01-01-0039.Button,12-01-02-0039.Button,$Sum12010100391201020039) </State>
<Button>
<State> $Sum12030100221203020022 </State>
<State> $Sum12010100391201020039 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_melon_americano.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_melon_americano.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n//bn_melon_americano.png" </FilenameDisable>
@ -9923,14 +9923,14 @@ Kokuto syrup" </Value>
Var DrinkDescription = "Espresso, Melon, Milk, Sugar"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_melon_americano.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-03-01-0022.Price
Var PriceD2 = $12-03-02-0022.Price
Var PriceD1 = $12-01-01-0039.Price
Var PriceD2 = $12-01-02-0039.Price
Var PriceD3 = $-.Price
Var PD_CODE1 = "12-03-01-0022"
Var PD_CODE2 = "12-03-02-0022"
Var PD_CODE1 = "12-01-01-0039"
Var PD_CODE2 = "12-01-02-0039"
Var PD_CODE3 = "##-##-##-####"
Var PD_STAGE_1 = $12-03-01-0022.Button
Var PD_STAGE_2 = $12-03-02-0022.Button
Var PD_STAGE_1 = $12-01-01-0039.Button
Var PD_STAGE_2 = $12-01-02-0039.Button
Var PD_STAGE_3 = "Disable2"
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
@ -9947,23 +9947,23 @@ Kokuto syrup" </Value>
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "12-03-02-0022"
Topping "Load" "12-01-02-0039"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-03-01-0022"
Topping "Load" "12-01-01-0039"
Else
Topping "Load" "-"
EndIf
EndIf
Var menu_name_eng_hot = $12-03-01-0022.NameE
Var menu_desc_eng_hot = $12-03-01-0022.descriptionE
Var menu_name_thai_hot = $12-03-01-0022.Name
Var menu_desc_thai_hot = $12-03-01-0022.description
Var menu_name_eng_hot = $12-01-01-0039.NameE
Var menu_desc_eng_hot = $12-01-01-0039.descriptionE
Var menu_name_thai_hot = $12-01-01-0039.Name
Var menu_desc_thai_hot = $12-01-01-0039.description
Var menu_name_eng_cold = $12-03-02-0022.NameE
Var menu_desc_eng_cold = $12-03-02-0022.descriptionE
Var menu_name_thai_cold = $12-03-02-0022.Name
Var menu_desc_thai_cold = $12-03-02-0022.description
Var menu_name_eng_cold = $12-01-02-0039.NameE
Var menu_desc_eng_cold = $12-01-02-0039.descriptionE
Var menu_name_thai_cold = $12-01-02-0039.Name
Var menu_desc_thai_cold = $12-01-02-0039.description
Var menu_name_eng_blender = $##-##-##-####.NameE
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
@ -10031,7 +10031,7 @@ CAFÉ LATTE" </Value>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<State> $12-03-01-0022.Button </State>
<State> $12-01-01-0039.Button </State>
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
</Image>
@ -10043,15 +10043,15 @@ CAFÉ LATTE" </Value>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-01-0022.Button </State>
<Value> Var( "฿" + $12-03-01-0022.Price ) </Value>
<State> $12-01-01-0039.Button </State>
<Value> Var( "฿" + $12-01-01-0039.Price ) </Value>
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
<State> $12-03-02-0022.Button </State>
<State> $12-01-02-0039.Button </State>
</Image>
<Text>
<X> 115 </X>
@ -10061,8 +10061,8 @@ CAFÉ LATTE" </Value>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-02-0022.Button </State>
<Value> Var( "฿" + $12-03-02-0022.Price ) </Value>
<State> $12-01-02-0039.Button </State>
<Value> Var( "฿" + $12-01-02-0039.Price ) </Value>
</Text>
<Image>
<X> 146 </X>
@ -10089,7 +10089,7 @@ CAFÉ LATTE" </Value>
eval(
If ICE_PROCESS_STATUS = 2 Then
If $Sum12030100221203020022 = "Disable" Then
If $Sum12010100391201020039 = "Disable" Then
Var ice_tab_process_show = "Disable"
Else
Var ice_tab_process_show = "Enable"
@ -10109,9 +10109,9 @@ CAFÉ LATTE" </Value>
<Y> 117 </Y>
<State>
eval(
If $Sum12030100221203020022 = "Disable" Then
STRCONTAIN "ERR" $12-03-01-0022.TAG tag1_is_disable
STRCONTAIN "ERR" $12-03-02-0022.TAG tag2_is_disable
If $Sum12010100391201020039 = "Disable" Then
STRCONTAIN "ERR" $12-01-01-0039.TAG tag1_is_disable
STRCONTAIN "ERR" $12-01-02-0039.TAG tag2_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then

View file

@ -24,7 +24,6 @@
DEBUGVAR video_main_2
EndIf
If VideoAdvIndex = 4 Then
Var HeadVideoFilename = video_main_3
DEBUGVAR video_main_3

View file

@ -50,9 +50,9 @@
Var ice_version_text = " ICE version " + IceVersion
Var brew_version_text = "Main version " + MainboardVersion
Var brew_version_text = "Server status " + NetworkStatus
Var show_version = brew_version_text + ice_version_text
Var show_version = brew_version_text
Var show_boxid = "[ " + BoxID
Var show_boxid = show_boxid + " ]"
@ -82,16 +82,8 @@
Cart "DeleteMenuID" "ALL"
Var birthday = "25280905"
DEBUGVAR birthday
SUBSTRING birthday 0 4 StrYear
SUBSTRING birthday 4 6 StrMon
SUBSTRING birthday 6 8 StrDay
DEBUGVAR StrYear
DEBUGVAR StrMon
DEBUGVAR StrDay
Var Text1_8 = "IP " MobileIPNetwork
</EventOpen>
<Timeout> 1000 </Timeout>
@ -104,6 +96,8 @@
DEBUGVAR AdvertiseProfile
Var Text1_8 = "IP " MobileIPNetwork
Refresh
TimerReset
@ -402,9 +396,44 @@
<Image>
<X> info1_startX </X>
<Y> info_8Y </Y>
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
</Image>
<Image>
<X> info2_startX </X>
<Y> info_8Y </Y>
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
</Image>
<Text>
<X> info_text_startX </X>
<Y> info_text_8Y </Y>
<Size> 30 </Size>
<Font> fontType1 </Font>
<Color> 0x000000 </Color>
<Value> Text1_8 </Value>
</Text>
<Text>
<X> info2_text_startX </X>
<Y> info_text_8Y </Y>
<Size> 30 </Size>
<Font> fontType1 </Font>
<Color> 0x000000 </Color>
<Value> Text2_8 </Value>
</Text>
<Button>
<X> 431 </X>
<Y> 805 </Y>
<Y> 875 </Y>
<Filename> "ROOT/taobin_project/image//bp_cancel.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/bp_cancel.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>