taobin_project/xml/page_drinkok.xml

705 lines
14 KiB
XML
Raw Normal View History

2020-09-16 18:42:32 +07:00
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
2024-08-13 14:43:45 +07:00
<Background> BackgroundColor </Background>
2020-09-16 18:42:32 +07:00
<Volume> SoundVolume </Volume>
2021-01-08 13:04:13 +07:00
<Sound> "ROOT/sounds/Ding-dong.wav" </Sound>
2020-09-16 18:42:32 +07:00
<EventOpen>
DEBUGVAR StarwState
DEBUGVAR LidState
2024-01-03 11:23:28 +07:00
DEBUGVAR Seeker.PictureDrink
DEBUGVAR Seeker.showname
2023-10-16 15:23:29 +07:00
WRITE_FILE "/mnt/sdcard/coffeevending/log/drink-success" "0"
2024-09-22 00:27:03 +07:00
2022-05-01 10:57:47 +07:00
Var buttonRemoveCup = "Invisible"
2022-06-23 13:11:38 +07:00
Var TextBottomShow = "Enable"
2024-09-22 00:27:03 +07:00
If show_eng = "true" Then
2022-03-03 11:30:03 +07:00
Var DirImage2 = "ROOT/taobin_project/image/topping2_en"
Else
Var DirImage2 = "ROOT/taobin_project/image/topping2"
EndIf
Var bg_strawlid_ST = "Enable"
Var bg_strawProblem_ST = "Invisible"
2022-10-14 22:33:23 +07:00
;Var bg_strawProblem_Y = 1470
2022-03-03 11:30:03 +07:00
Var bg_strawProblem = DirImage2 + "/bg_strawProblem.png"
Var straw_problem_flag = 0
If Seeker.strawAction = 1 Then
Machine Straw
;Var bg_strawlid = DirImage2 + "/bg_strawProblem.png"
Var bg_strawProblem_ST = "Enable"
2024-09-22 00:27:03 +07:00
If Seeker.lidAction = 0 Then
2022-03-03 11:30:03 +07:00
Else
2022-10-14 22:33:23 +07:00
;Var bg_strawProblem_Y = 1680
2022-03-03 11:30:03 +07:00
Var bg_strawlid_ST = "Invisible"
Var LidStateX = "Invisible"
Var StrawStateX = "Invisible"
EndIf
EndIf
2022-06-23 13:11:38 +07:00
If Seeker.lidAction = 1 Then
2022-03-03 11:30:03 +07:00
Machine Lid
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
EndIf
2022-05-20 10:27:08 +07:00
Var ExtendData = Seeker.ExtendData
2020-09-16 18:42:32 +07:00
; On open
Var LidState = "Enable"
Var StarwState = "Enable"
2020-10-08 10:01:31 +07:00
Var videoEnd = 0
2020-09-16 18:42:32 +07:00
2024-09-22 00:27:03 +07:00
If show_eng = "true" Then
2020-10-30 18:21:06 +07:00
Var DirImage = "ROOT/taobin_project/image/complete_en/"
Else
Var DirImage = "ROOT/taobin_project/image/complete/"
EndIf
2024-04-05 14:23:46 +07:00
2024-09-23 18:44:54 +07:00
Var text_bottom = DirImage + "text_bottom.png"
2024-04-05 14:23:46 +07:00
2024-09-23 18:44:54 +07:00
If InternationalEnable = 1 Then
If LanguageShow = "UAE_DUBAI" Then
Var text_bottom = CountryRootPath + "/image/complete_en/text_bottom.png"
2024-04-05 14:23:46 +07:00
2024-09-23 18:44:54 +07:00
EndIf
2024-04-05 14:23:46 +07:00
EndIf
2024-08-13 14:43:45 +07:00
If UsePepsiTheme = 1 Then
Var text_bottom = "ROOT/taobin_project/inter/whatthecup/" + CountryShortName
Var text_bottom = text_bottom + "/image/complete_en/text_bottom.png"
EndIf
2024-04-05 14:23:46 +07:00
DEBUGVAR text_bottom
2020-12-03 14:21:46 +07:00
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + "24"
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
2021-01-08 13:04:13 +07:00
Var Timeout = 0
2021-11-10 15:33:47 +07:00
Var Timeout2 = 0
2021-01-19 23:43:43 +07:00
2021-11-10 15:33:47 +07:00
StopLongPlay
2024-09-22 00:27:03 +07:00
;Var show_eng = "false"
2021-01-21 15:18:23 +07:00
2021-11-10 15:33:47 +07:00
Var sendPayMultiFlag = 0
Var next_pic = ""
Var next_name = ""
Var nextCount = ""
Var next_pic_bg = ""
2021-11-25 15:56:33 +07:00
Var BlinkImg = 0
Var txtDrinkOKState = "Invisible"
2024-09-22 00:27:03 +07:00
If show_eng = "true" Then
2022-10-14 22:33:23 +07:00
Var bnStrawProblemReport = "ROOT/taobin_project/image/page_doing/bn_send_report_straw_en.png"
Var bpStrawProblemReport = "ROOT/taobin_project/image/page_doing/bp_send_report_straw_en.png"
2021-11-10 15:33:47 +07:00
If CART_COUNT > 0 Then
2024-09-22 00:27:03 +07:00
If CART_INDEX < CART_COUNT Then
2021-11-10 15:33:47 +07:00
Var next_pic_bg = DirImage + "/Preparing.png"
2021-11-25 15:56:33 +07:00
Var BlinkImg = 1
Var txtDrinkOKState = "Enable"
2021-01-21 15:18:23 +07:00
2024-09-22 00:27:03 +07:00
Var cart_next = CART_INDEX + 1
2021-11-10 15:33:47 +07:00
Var nextCount = "" + cart_next
Var nextCount = nextCount + "/"
Var nextCount = nextCount + CART_COUNT
If cart_next = 2 Then
Var next_pic = "ROOT/taobin_project/image/page_drink/" + CART2_PICTURE
Var next_name = CART2_NAME_ENG
2024-09-22 00:27:03 +07:00
2021-11-10 15:33:47 +07:00
EndIf
If cart_next = 3 Then
Var next_pic = "ROOT/taobin_project/image/page_drink/" + CART3_PICTURE
Var next_name = CART3_NAME_ENG
2024-09-22 00:27:03 +07:00
2021-11-10 15:33:47 +07:00
EndIf
EndIf
2021-02-05 14:11:05 +07:00
2021-02-02 13:33:11 +07:00
EndIf
2021-11-10 15:33:47 +07:00
Else
2022-10-14 22:33:23 +07:00
Var bnStrawProblemReport = "ROOT/taobin_project/image/page_doing/bn_send_report_straw.png"
Var bpStrawProblemReport = "ROOT/taobin_project/image/page_doing/bp_send_report_straw.png"
2021-11-10 15:33:47 +07:00
If CART_COUNT > 0 Then
2024-09-22 00:27:03 +07:00
If CART_INDEX < CART_COUNT Then
2021-11-10 15:33:47 +07:00
Var next_pic_bg = DirImage + "/Preparing.png"
2021-11-25 15:56:33 +07:00
Var BlinkImg = 1
Var txtDrinkOKState = "Enable"
2021-11-10 15:33:47 +07:00
2024-09-22 00:27:03 +07:00
Var cart_next = CART_INDEX + 1
2021-11-10 15:33:47 +07:00
Var nextCount = "" + cart_next
Var nextCount = nextCount + "/"
Var nextCount = nextCount + CART_COUNT
If cart_next = 2 Then
Var next_pic = "ROOT/taobin_project/image/page_drink/" + CART2_PICTURE
Var next_name = CART2_NAME_THAI
2024-09-22 00:27:03 +07:00
2021-11-10 15:33:47 +07:00
EndIf
If cart_next = 3 Then
Var next_pic = "ROOT/taobin_project/image/page_drink/" + CART3_PICTURE
Var next_name = CART3_NAME_THAI
2024-09-22 00:27:03 +07:00
2021-11-10 15:33:47 +07:00
EndIf
EndIf
2021-03-18 15:42:04 +07:00
EndIf
2021-11-10 15:33:47 +07:00
2021-01-21 15:18:23 +07:00
EndIf
2021-02-05 14:11:05 +07:00
2024-09-22 00:27:03 +07:00
Var MultiGo = 1
2021-11-15 19:41:38 +07:00
2021-11-10 15:33:47 +07:00
If CART_COUNT = 0 Then
Var sendPayMultiFlag = 1
Else
2021-11-15 19:41:38 +07:00
2024-09-22 00:27:03 +07:00
If CART_INDEX = CART_COUNT Then
2021-11-15 19:41:38 +07:00
If ChangeAmountSum > 0 Then
Change ChangeAmountSum
2024-09-22 00:27:03 +07:00
Var MultiGo = 0
2021-11-15 19:41:38 +07:00
EndIf
EndIf
2024-09-22 00:27:03 +07:00
EndIf
2022-03-13 10:29:55 +07:00
Var bg_strawlid_ST = "Invisible"
Var bg_strawProblem_ST = "Invisible"
Var StrawStateX = "Invisible"
Var LidStateX = "Invisible"
2021-11-15 19:41:38 +07:00
2022-04-01 10:42:00 +07:00
LED LedDoorCup 1 255 255 255 255
2022-04-18 09:27:08 +07:00
Var DelayButton = 0
2022-05-01 10:57:47 +07:00
2022-10-17 19:34:27 +07:00
DEBUGVAR GetMoreStrawCount
If GetMoreStrawCount <= 0 Then
If StrawProblemStatus = 1 Then
Var bg_strawProblem_ST = "Enable"
EndIf
2022-10-14 22:33:23 +07:00
EndIf
2024-10-10 15:07:46 +07:00
2022-10-14 22:33:23 +07:00
2024-01-22 13:06:50 +07:00
Var TimeDelayDefault = 1200
2022-05-01 10:57:47 +07:00
2024-08-01 12:58:47 +07:00
DEBUGVAR Seeker
DEBUGVAR Seeker.BuyMomCocoaProFlag
If Seeker.BuyMomCocoaProFlag = 1 Then
Var dummyPhone = "0899999999"
Var param1 = "1"
Var param2 = ""
Var param3 = ""
AddData 50 dummyPhone param1 param2 param3
EndIf
2024-10-10 15:07:46 +07:00
SAVELOG "drinkok.xml version 3"
2024-10-08 15:12:28 +07:00
Var DrinkNameOnArm[DrinkArmCupID] = Seeker.showname
Var DrinkImageOnArm[DrinkArmCupID] = Seeker.PictureDrink
DEBUGVAR DrinkArmCupID
DEBUGVAR DrinkImageOnArm[DrinkArmCupID]
DEBUGVAR DrinkNameOnArm[DrinkArmCupID]
2024-10-04 16:06:58 +07:00
2021-11-15 19:41:38 +07:00
</EventOpen>
<Timeout> 500 </Timeout>
2024-09-22 00:27:03 +07:00
<EventTimeout>
2021-11-15 19:41:38 +07:00
2021-12-17 12:48:38 +07:00
DEBUGVAR LastMakeDrinkResult
2021-11-15 19:41:38 +07:00
DEBUGVAR MachineStage
DEBUGVAR CupOnArm
DEBUGVAR buttonRemoveCup
DEBUGVAR CART_COUNT
2022-05-01 10:57:47 +07:00
DEBUGVAR HaveCup
DEBUGVAR CHECKCUP
DEBUGVAR CupChecking
DEBUGVAR MaybeHaveCup
DEBUGVAR NextOrder
DEBUGVAR DoorCupPosition
2022-08-28 21:53:24 +07:00
2021-11-15 19:41:38 +07:00
Var Timeout = Timeout + 1
2024-10-10 15:07:46 +07:00
If Timeout = 2 Then
Var SlientRefreshEnable = 1
EndIf
2024-01-22 13:06:50 +07:00
If BrewTimeoutExtend = 1 Then
2024-09-22 00:27:03 +07:00
2024-01-22 13:06:50 +07:00
DEBUGVAR BrewTimeoutExtend
EndIf
2024-10-04 16:06:58 +07:00
; 420 sec
; to be obsolete
2024-01-22 13:06:50 +07:00
If Timeout > 840 Then
Var CountForRetryStuck = 1
2024-09-22 00:27:03 +07:00
Open "ROOT/taobin_project/xml/page_drink_stuck.xml"
2024-01-22 13:06:50 +07:00
EndIf
2024-09-23 18:44:54 +07:00
If Timeout = 2 Then
RefreshAll
EndIf
2022-05-02 22:14:11 +07:00
2021-11-17 11:01:22 +07:00
If Timeout > 30 Then
2024-09-22 00:27:03 +07:00
Var MultiGo = 1
2021-11-15 19:41:38 +07:00
EndIf
2021-11-25 15:56:33 +07:00
If BlinkImg = 1 Then
Var next_pic_bg = DirImage + "/Preparing.png"
Var BlinkImg = 2
Else
If BlinkImg = 2 Then
Var next_pic_bg = DirImage + "/Preparing.png"
Var BlinkImg = 1
EndIf
EndIf
2024-09-22 00:27:03 +07:00
; Do not change
2021-11-17 15:14:02 +07:00
;
2021-11-16 16:21:19 +07:00
If MachineStage = "show-menu" Then
2021-11-10 15:33:47 +07:00
2024-09-30 18:12:05 +07:00
Var Seeker.TNumberTaobinMember = ""
If NextOrder = "true" Then
2022-03-06 23:56:08 +07:00
2024-09-30 18:12:05 +07:00
; next order set. Havecup and checkup value must false. Certain cup not on any arm.
If DoorCupPosition = "bottom" Then
; BEGIN
Var NextOrder = "false"
2024-09-22 00:27:03 +07:00
2024-09-30 18:12:05 +07:00
TransferVar "next" "curr"
Var Seeker = "curr"
SAVELOG "Make next order by take-cup"
Open "ROOT/taobin_project/xml/page_thankyouConti.xml"
; END
2022-04-20 18:56:19 +07:00
2024-09-30 18:12:05 +07:00
Else
Machine DoorClose
2021-11-16 16:21:19 +07:00
EndIf
2024-09-30 18:12:05 +07:00
Else
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
2021-11-10 15:33:47 +07:00
EndIf
2021-11-16 16:21:19 +07:00
EndIf
2021-11-17 15:14:02 +07:00
;
2024-09-30 18:12:05 +07:00
; this stage for remove cup
2020-12-05 22:46:39 +07:00
If MachineStage = "remove-cup" Then
2024-10-04 16:06:58 +07:00
If NextOrder = "false" Then
Open "ROOT/taobin_project/xml/page_back_to_remove_cup.xml"
2021-11-10 15:33:47 +07:00
Else
2024-09-22 00:27:03 +07:00
2024-10-04 16:06:58 +07:00
If DoorCupPosition = "bottom" Then
; BEGIN
Var NextOrder = "false"
2021-11-10 15:33:47 +07:00
2024-10-04 16:06:58 +07:00
TransferVar "next" "curr"
Var Seeker = "curr"
SAVELOG "Make next order by take-cup"
Open "ROOT/taobin_project/xml/page_thankyouConti.xml"
; END
2021-11-10 15:33:47 +07:00
2024-10-04 16:06:58 +07:00
Else
Machine DoorClose
2021-11-10 15:33:47 +07:00
EndIf
EndIf
2020-12-05 22:46:39 +07:00
EndIf
2021-01-08 13:04:13 +07:00
If Timeout = 5 Then
2024-09-22 00:27:03 +07:00
If show_eng = "true" Then
2024-04-30 18:16:58 +07:00
Var PlaySoundStraw = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Straw.mp3"
2024-09-22 00:27:03 +07:00
If CountryName = "Malaysia" Then
Var PlaySoundStraw = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Straw_without_change.m4a"
EndIf
2024-04-30 18:16:58 +07:00
If CountryName = "Australia" Then
Var PlaySoundStraw = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Straw_without_change.m4a"
EndIf
2024-05-13 13:19:38 +07:00
If CountryName = "UnitedArabEmirates Dubai" Then
Var PlaySoundStraw = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Straw_without_change.m4a"
EndIf
2024-05-17 11:08:21 +07:00
If CountryName = "Singapore" Then
Var PlaySoundStraw = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Straw_without_change.m4a"
EndIf
2024-08-14 15:36:35 +07:00
If CountryName = "HongKong" Then
Var PlaySoundStraw = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Straw_without_change.m4a"
EndIf
2024-04-30 18:16:58 +07:00
Play PlaySoundStraw
2021-01-08 13:04:13 +07:00
Else
2023-03-22 22:59:14 +07:00
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/drinkfinish.mp3"
2024-09-22 00:27:03 +07:00
If FromJemilaPro = 1 Then
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/jemila/drinkfinish.m4a"
EndIf
2023-03-22 22:59:14 +07:00
Play PlaySoundLag
2021-01-08 13:04:13 +07:00
EndIf
EndIf
2024-09-22 00:27:03 +07:00
2022-04-20 17:57:34 +07:00
If MachineStage = "close-maintenance" Then
If stop_now = "true" Then
If NextOrder = "true" Then
2024-09-22 00:27:03 +07:00
2022-04-20 17:57:34 +07:00
Var NextOrder = "false"
TransferVar "next" "curr"
Var Seeker = "curr"
SAVELOG "Make next order by take-cup with close-maintenance"
2024-09-22 00:27:03 +07:00
Open "ROOT/taobin_project/xml/page_cannotConti.xml"
2022-04-20 17:57:34 +07:00
Else
2024-09-22 00:27:03 +07:00
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
2022-04-20 17:57:34 +07:00
EndIf
EndIf
EndIf
2022-04-20 15:38:07 +07:00
2022-07-03 22:24:50 +07:00
If txtDrinkOKState = "Enable" Then
2022-06-15 11:14:00 +07:00
Var TextBottomShow = "Invisible"
Else
Var TextBottomShow = "Enable"
EndIf
2022-04-20 15:38:07 +07:00
2020-09-17 19:08:21 +07:00
TimerReset
2021-11-15 15:48:46 +07:00
Refresh
2020-09-17 19:08:21 +07:00
2024-09-22 00:27:03 +07:00
</EventTimeout>
2020-09-16 18:42:32 +07:00
2021-11-17 11:01:22 +07:00
<EventChangeStatus>
2024-09-22 00:27:03 +07:00
If ChangeStatus = "payout-end" Then
Var MultiGo = 1
2021-11-17 11:01:22 +07:00
EndIf
</EventChangeStatus>
2020-09-16 18:42:32 +07:00
2020-11-22 21:50:53 +07:00
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
;include="ROOT/taobin_project/inc/video.inc"
2020-09-16 18:42:32 +07:00
2020-10-30 18:21:06 +07:00
2020-12-03 14:21:46 +07:00
2020-10-08 10:01:31 +07:00
<Video>
2020-12-03 14:21:46 +07:00
<X> 0 </X>
<Y> 380 </Y>
2020-10-08 10:01:31 +07:00
<Loop> "true" </Loop>
2020-12-03 14:21:46 +07:00
<Filename> VideoPlayFile </Filename>
2020-10-08 10:01:31 +07:00
</Video>
2020-09-16 18:42:32 +07:00
2020-12-03 14:21:46 +07:00
2021-11-10 15:33:47 +07:00
<Image>
<X> 757 </X>
<Y> 424 </Y>
<Filename> next_pic_bg </Filename>
</Image>
2024-01-03 11:23:28 +07:00
<Image>
<X> 125 </X>
<Y> 1700 </Y>
<Height> 300 </Height>
<Width> 320 </Width>
<Filename> Seeker.PictureDrink </Filename>
</Image>
<Text>
<X> 300 </X>
<Y> 1750 </Y>
<Width> 1080 </Width>
<Align> Center </Align>
2024-02-27 11:07:42 +07:00
<Font> KanitLightTTF </Font>
2024-01-03 11:23:28 +07:00
<Size> 48 </Size>
2024-08-13 14:43:45 +07:00
<Color> HeadlineColor </Color>
2024-09-22 00:27:03 +07:00
<Value>
2024-01-03 11:23:28 +07:00
eval(
STRCONTAIN "size" Seeker.showname SizeFromSheet
If SizeFromSheet = "true" Then
SPLIT Seeker.showname "###" 1 PureName
Var return = PureName
Else
Var return = Seeker.showname
EndIf
2024-09-22 00:27:03 +07:00
)
2024-01-03 11:23:28 +07:00
</Value>
</Text>
2022-06-06 18:03:46 +07:00
<Image>
<X> 0 </X>
<Y> 1418 </Y>
2022-06-15 11:14:00 +07:00
<State> TextBottomShow </State>
2024-04-05 14:23:46 +07:00
<Filename> text_bottom </Filename>
2022-06-06 18:03:46 +07:00
</Image>
2021-11-10 15:33:47 +07:00
<Text>
<X> 757 </X>
<Y> 448 </Y>
<Size> 20 </Size>
<Width> 280</Width>
<Align> Center </Align>
2024-02-20 17:06:25 +07:00
<Font> KanitLightTTF </Font>
2021-11-10 15:33:47 +07:00
<Color> 0x513C2F </Color>
<Value> nextCount </Value>
</Text>
<Text>
<X> 757 </X>
<Y> 538 </Y>
<Size> 20 </Size>
<Width> 280</Width>
<Align> Center </Align>
2024-02-20 17:06:25 +07:00
<Font> KanitLightTTF </Font>
2021-11-10 15:33:47 +07:00
<Color> 0x513C2F </Color>
<Value> next_name </Value>
</Text>
<Image>
<X> 823 </X>
<Y> 600 </Y>
<Width> 148 </Width>
<Height> 200 </Height>
<Filename> next_pic </Filename>
</Image>
2021-11-25 15:56:33 +07:00
<Image>
<X> 77 </X>
<Y> 1378 </Y>
<State> txtDrinkOKState </State>
<Filename> Var( DirImage + "/txtDrinkOK.png" ) </Filename>
</Image>
2021-11-15 15:48:46 +07:00
2024-10-04 16:06:58 +07:00
;<Button>
;<X> 160 </X>
;<Y> 1673 </Y>
;<State> buttonRemoveCup </State>
;;<Color> "0x00BDFF" </Color>
;<Interval> 500 </Interval>
;<Filename> Var( DirImage + "/bn_open_door.png" ) </Filename>
;<FilenamePress> Var( DirImage + "/bp_open_door.png" ) </FilenamePress>
;<EventClick>
; ;Var buttonRemoveCup = "Invisible"
; Machine RemoveCup
; Machine DoorLidOpen
; Refresh
;</EventClick>
;</Button>
2021-11-15 15:48:46 +07:00
2022-03-03 11:30:03 +07:00
;500
;1180
<Button>
<X> 10 </X>
<Y> 1680 </Y>
<State>bg_strawlid_ST</State>
<Filename> bg_strawlid </Filename>
2024-09-22 00:27:03 +07:00
<EventClick>
2022-03-03 11:30:03 +07:00
2024-09-22 00:27:03 +07:00
</EventClick>
2022-03-03 11:30:03 +07:00
</Button>
<Button>
2022-10-14 22:33:23 +07:00
<X> 699 </X>
<Y> 1788 </Y>
2022-03-03 11:30:03 +07:00
<State>bg_strawProblem_ST</State>
2022-10-14 22:33:23 +07:00
<Filename> bnStrawProblemReport </Filename>
<FilenamePress> bpStrawProblemReport </FilenamePress>
2024-09-22 00:27:03 +07:00
<EventClick>
2022-03-03 11:30:03 +07:00
Var strawStr = "แจ้งปัญหาไม่ได้รับหลอด"
2024-09-22 00:27:03 +07:00
2022-11-17 00:25:45 +07:00
__CMD "straw-alert-disable" 0 strawStr "-"
2022-03-03 11:30:03 +07:00
__CMD "send-error-code" 1231 "-" "-"
Var bg_strawProblem_ST = "Invisible"
Refresh
2024-09-22 00:27:03 +07:00
</EventClick>
2022-03-03 11:30:03 +07:00
</Button>
; straw left
<Button>
<X> 50 </X>
<Y> 1752 </Y>
<State> StrawStateX </State>
<Mode> "No" </Mode>
<Filename> "ROOT/taobin_project/image/topping2/bn_straw.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_straw.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_straw.png" </FilenameDisable>
2024-09-22 00:27:03 +07:00
<EventClick>
2022-03-03 11:30:03 +07:00
SAVELOG "Click straw cb"
If StrawStateX = "Press" Then
2024-09-22 00:27:03 +07:00
;Var StrawStateX = "Enable"
2022-03-03 11:30:03 +07:00
Else
Var StrawStateX = "Press"
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
If Seeker.strawAction = 0 Then
Var Seeker.strawAction = 1
Machine Straw
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
Var bg_strawProblem_ST = "Enable"
;Var bg_strawlid_ST = "Invisible"
;Var LidStateX = "Invisible"
;Var StrawStateX = "Invisible"
EndIf
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
EndIf
Refresh
</EventClick>
</Button>
<Button>
<X> 377 </X>
<Y> 1759 </Y>
<State> StrawStateX </State>
<Mode> "No" </Mode>
<Filename> "ROOT/taobin_project/image/topping2/cb_notcheck.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping2/cb_checked.png" </FilenamePress>
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
2024-09-22 00:27:03 +07:00
<EventClick>
2022-03-03 11:30:03 +07:00
SAVELOG "Click straw cb"
If StrawStateX = "Press" Then
2024-09-22 00:27:03 +07:00
;Var StrawStateX = "Enable"
2022-03-03 11:30:03 +07:00
Else
Var StrawStateX = "Press"
If Seeker.strawAction = 0 Then
Var Seeker.strawAction = 1
Machine Straw
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
Var bg_strawProblem_ST = "Enable"
;Var bg_strawlid_ST = "Invisible"
;Var LidStateX = "Invisible"
;Var StrawStateX = "Invisible"
EndIf
EndIf
DEBUGVAR "PICHET"
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
Refresh
</EventClick>
</Button>
; LID left
<Button>
<X> 50 </X>
<Y> 1828 </Y>
<State> LidStateX </State>
<Mode> "No" </Mode>
<Filename> "ROOT/taobin_project/image/topping2/bn_lid.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_lid.png" </FilenamePress>
<FilenameDisable> Var( DirImage + "/bd_lid.png" ) </FilenameDisable>
2024-09-22 00:27:03 +07:00
<EventClick>
2022-03-03 11:30:03 +07:00
If Seeker.thankLidFlag = 0 Then
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
SAVELOG "Click LID pic"
If LidStateX = "Press" Then
2024-09-22 00:27:03 +07:00
;Var LidStateX = "Enable"
2022-03-03 11:30:03 +07:00
Else
Var LidStateX = "Press"
If Seeker.lidAction = 0 Then
Var Seeker.lidAction = 1
Machine Lid
Var straw_problem_ST = "Enable"
EndIf
EndIf
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
DEBUGVAR SugarState1
Refresh
EndIf
</EventClick>
</Button>
<Button>
<X> 377 </X>
<Y> 1835 </Y>
<State> LidStateX </State>
<Mode> "No" </Mode>
<Filename> "ROOT/taobin_project/image/topping2/cb_notcheck.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/topping2/cb_checked.png" </FilenamePress>
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
2024-09-22 00:27:03 +07:00
<EventClick>
2022-03-03 11:30:03 +07:00
If Seeker.thankLidFlag = 0 Then
SAVELOG "Click LID cb"
If LidStateX = "Press" Then
2024-09-22 00:27:03 +07:00
;Var LidStateX = "Enable"
2022-03-03 11:30:03 +07:00
Else
Var LidStateX = "Press"
If Seeker.lidAction = 0 Then
Var Seeker.lidAction = 1
Machine Lid
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
EndIf
EndIf
Refresh
2024-09-22 00:27:03 +07:00
2022-03-03 11:30:03 +07:00
EndIf
</EventClick>
</Button>
2024-10-04 16:06:58 +07:00
2023-05-23 08:11:55 +07:00
<EventUnitTest1>
2024-10-04 16:06:58 +07:00
Var Timeout2 = 0
__CMD "UpdateCupOnArm" UserSelectProductCode "-" "-"
2023-05-23 08:11:55 +07:00
</EventUnitTest1>
2022-03-03 11:30:03 +07:00
2024-10-04 16:06:58 +07:00
<EventUnitTest2>
Open "ROOT/xml/page_drinkok.xml"
</EventUnitTest2>
2020-09-16 18:42:32 +07:00
</Popup>
2021-11-10 15:33:47 +07:00