Do multi-topping

This commit is contained in:
kong 2021-10-14 13:53:05 +07:00
parent 85395cd47b
commit 16c9dcd10e
16 changed files with 96 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -13,16 +13,15 @@
12-11-02-0001
12-03-02-0002
12-03-02-0003
12-02-01-0017
12-02-02-0002
12-02-02-0018
12-05-02-0028
12-05-02-0010
12-05-02-0025
12-04-02-0002
12-04-02-0003
12-05-02-0011
12-05-02-0012
12-05-02-0009
12-05-02-0030
14-05-02-0035
12-03-02-0006
12-02-02-0004
12-05-02-0007
12-04-02-0002
Grand Total 1342

Can't render this file because it has a wrong number of fields in line 2.

View file

@ -13,7 +13,7 @@
Var GetFreeFromError = 0
Var taobin_version = "1.51"
Var taobin_version = "1.53"
; On open
Var menu_back_to_main = "ROOT/taobin_project/xml/page_back_to_main.xml"

View file

@ -134,6 +134,11 @@
DEBUGVAR backGroundAddExtra
DEBUGVAR backGroundAddShotPremium
DEBUGVAR MultiPayEnable
Var btnAddCart = "Invisible"
If MultiPayEnable = "true" Then
Var btnAddCart = "Enable"
EndIf
</EventOpen>
<Timeout> 2000 </Timeout>
<EventTimeout>
@ -225,6 +230,7 @@
<EventMachine>
DEBUGVAR SubMenuProductCode1
DEBUGVAR SubMenuName11
DEBUGVAR SubMenuPrice1
@ -288,7 +294,9 @@
Var h_block_of_sugar = 210
STRCONTAIN "Smoothie" SubMenuName11 HaveSmoothie
;STRCONTAIN "Smoothie" SubMenuName11 HaveSmoothie
STRCONTAIN "Smoothie" MenuCodeName HaveSmoothie
If HaveSmoothie = "true" Then
Var blendedState = "Enable"
Var blendedStateShow = "Enable"
@ -430,6 +438,8 @@
If TOPPING1 = "Powder Sugar Premix 50" Then
Var BGSugar = "Enable"
Var ShiftSugarStep = 3
Var SugarState1 = "Disable"
Var SugarState2 = "Disable"
Var SugarState3 = "Enable"
Var SugarState4 = "Enable"
Var SugarState5 = "Enable"
@ -1385,6 +1395,76 @@
</EventClick>
</Button>
; add cart
<Button>
<State> btnAddCart </State>
<X> 285 </X>
<Y> 1785 </Y>
<Filename> Var( DirImage + "/bn_add.png" ) </Filename>
<FilenamePress> Var( DirImage + "/bp_add.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var PriceDrink = PriceDrinkTmp
SAVELOG "USER press next ( topping ) - new"
DEBUGVAR topping1
DEBUGVAR topping2
DEBUGVAR topping3
DEBUGVAR LidState
DEBUGVAR StarwState
DEBUGVAR UserSelectProductCode
DEBUGVAR HAVE_UV_DOOR_LID
If HAVE_UV_DOOR_LID = "true" Then
If StarwState = "Press" Then
Machine StrawOrder
Var LedLidBlink = "true"
EndIf
If LidState = "Press" Then
Machine LidOrder
Var LedLidBlink = "true"
EndIf
Var StarwState = "Enable"
Var LidState = "Enable"
;
EndIf
Var SelectDrink = UserSelectProductCode
; Set drink
Topping "Select" UserSelectProductCode
; Set option toppinng and pack
Topping "Select1-ID" topping1
Topping "Select2-ID" topping2
Topping "Select3-ID" topping3
; Pack
Topping "Pack" ExtendData
If CART1 = "clear" Then
Topping "AddCart" 1
Else
If CART2 = "clear" Then
Topping "AddCart" 2
Else
If CART3 = "clear" Then
Topping "AddCart" 3
EndIf
EndIf
EndIf
;Open "ROOT/taobin_project/xml/page_catalog.xml"
</EventClick>
</Button>
; next
<Button>
<X> 673 </X>

View file

@ -78,6 +78,10 @@
var Text2_7 = Text2_7 + " ["
var Text2_7 = Text2_7 + SignalStrengthLevel
var Text2_7 = Text2_7 + "]"
Topping "DeleteCart" 1
Topping "DeleteCart" 2
Topping "DeleteCart" 3
</EventOpen>
<Timeout> 1000 </Timeout>

View file

@ -46,8 +46,11 @@
</EventClickLong>
<EventClick>
Var ClickCountMainTe = ClickCountMainTe + 1
If ClickCountMainTe == 2 Then
OpenInst 0 "//mnt/sdcard/coffeevending/taobin_project/xml/vending_info.xml"
DEBUGVAR ClickCountMainTe
If ClickCountMainTe = 2 Then
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/vending_info.xml"
EndIf
;OpenInst 0 "//mnt/sdcard/coffeevending/taobin_project/xml/page_remove_cup.xml"