taobin_project/xml/page_collect_point_3.xml

532 lines
11 KiB
XML
Raw Normal View History

2020-10-15 18:29:38 +07:00
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
Var Timeout = 0
;CoffeePoint
2021-01-28 13:41:28 +07:00
;Var CoffeePoint = 30
2020-11-20 13:23:31 +07:00
Var BmiYear = "0/0/0/0/0/0/0/0/0/1"
2020-10-15 18:29:38 +07:00
Var PointCrm = "pdpa1"
Var GetScore = ""
2021-01-28 13:41:28 +07:00
Var TNumberTaobinMember = TelephoneNumber
;AddData 4 TelephoneNumber BmiYear PointCrm GetScore
;Add after pay
2020-10-15 18:29:38 +07:00
Var CoffeePointStr = CoffeePoint
SAVELOG TelephoneNumber
2020-10-30 18:21:06 +07:00
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/display_point_en"
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
Else
Var DirImage = "ROOT/taobin_project/image/display_point"
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
EndIf
2021-01-28 13:41:28 +07:00
Var CoffeePointTmp = CoffeePoint
If CoffeePoint > 29 Then
Var Timeout = 18
Var CoffeePointTmp = 30
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
2020-10-30 18:21:06 +07:00
2021-01-28 13:41:28 +07:00
Var pImage = CoffeePointTmp * 20
Var pImage = pImage / 30
Var pImageStr = "/taobinP"
Var pImageStr = pImageStr + pImage
2020-10-30 18:21:06 +07:00
2021-01-28 13:41:28 +07:00
Var pImageStr = pImageStr + ".png"
2021-02-02 13:33:11 +07:00
Var pImageStr = "ROOT/taobin_project/image/display_point" + pImageStr
2021-01-28 13:41:28 +07:00
Var pointStr = ""
Var pointStr = pointStr + CoffeePointTmp
Var pointStr = pointStr + "/"
Var pointStr = pointStr + "30"
2021-02-02 13:33:11 +07:00
Var PointDiff = 150 - CoffeePointRank
2021-01-28 13:41:28 +07:00
2021-02-02 13:33:11 +07:00
2021-01-28 13:41:28 +07:00
Var TaobinExpireDay = ""
Var TaobinExpireMonth = ""
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = ""
2021-01-28 13:41:28 +07:00
Var TaobinExpireYear = ""
2020-10-30 18:21:06 +07:00
2021-01-28 13:41:28 +07:00
SPLIT TaobinExpire "/" 1 TaobinExpireDay
SPLIT TaobinExpire "/" 2 TaobinExpireMonth
SPLIT TaobinExpire "/" 3 TaobinExpireYear
If TaobinExpireMonth = "01" Then
Var TaobinExpireMonth = "ม.ค."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "มกราคม"
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "02" Then
Var TaobinExpireMonth = "ก.พ."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "กุมภาพันธ์"
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "03" Then
Var TaobinExpireMonth = "มี.ค."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "มีนาคม"
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "04" Then
Var TaobinExpireMonth = "เม.ย."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "เมษายน"
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "05" Then
Var TaobinExpireMonth = "พ.ค."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "พฤษภาคม"
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "06" Then
Var TaobinExpireMonth = "มิ.ย."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "มิถุนายน"
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "07" Then
Var TaobinExpireMonth = "ก.ค."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "กรกฎาคม"
2021-01-28 13:41:28 +07:00
EndIf
If TaobinExpireMonth = "08" Then
Var TaobinExpireMonth = "ส.ค."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "สิงหาคม"
2021-01-28 13:41:28 +07:00
EndIf
If TaobinExpireMonth = "09" Then
Var TaobinExpireMonth = "ก.ย."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "กันยายน"
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "10" Then
Var TaobinExpireMonth = "ต.ค."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "ตุลาคม"
2021-01-28 13:41:28 +07:00
EndIf
2020-10-30 18:21:06 +07:00
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "11" Then
Var TaobinExpireMonth = "พ.ย."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "พฤศจิกายน"
2021-01-28 13:41:28 +07:00
EndIf
2020-10-30 18:21:06 +07:00
2021-01-28 13:41:28 +07:00
If TaobinExpireMonth = "12" Then
Var TaobinExpireMonth = "ธ.ค."
2021-02-02 13:33:11 +07:00
Var TaobinExpireMonthX = "ธันวาคม"
2020-10-30 18:21:06 +07:00
EndIf
2021-01-28 13:41:28 +07:00
INT TaobinExpireYear
INT TaobinExpireDay
Var TaobinExpireYear = TaobinExpireYear + 543
Var ExpireStrTmp = ""
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireDay
Var ExpireStrTmp = ExpireStrTmp + " "
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireMonth
Var ExpireStrTmp = ExpireStrTmp + " "
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireYear
2021-02-02 13:33:11 +07:00
2021-01-28 13:41:28 +07:00
2020-10-30 18:21:06 +07:00
2021-01-28 13:41:28 +07:00
2021-02-02 13:33:11 +07:00
If show_eng = "true" Then
Var TaobinLevelDesc3 = "You have coupons "
Var TaobinLevelDesc3 = TaobinLevelDesc3 + TaobinCoupons
Var TaobinLevelDesc3 = TaobinLevelDesc3 + " numbers"
If TaobinLevel = "1" Then
Var TaobinLevelDesc1 = "Shy turtle level"
Var TaobinLevelDesc2 = ""
Var TaobinLeveImg = "/taoLevel1.png"
EndIf
If TaobinLevel = "2" Then
Var TaobinLevelDesc1 = "Walking turtle level"
Var TaobinLevelDesc2 = "Earn " + PointDiff
Var TaobinLevelDesc2 = TaobinLevelDesc2 + " stamps "
Var TaobinLevelDesc2 = TaobinLevelDesc2 + "to move to Flying turtle level"
Var TaobinLeveImg = "/taoLevel2.png"
If CoffeePointRank > 149 Then
Var TaobinLeveImg = "/taoLevel3.png"
Var TaobinLevelDesc1 = "Flying turtle level "
Var TaobinLevelDesc2 = ""
EndIf
EndIf
If TaobinLevel = "3" Then
Var TaobinLevelDesc1 = "Flying turtle level "
Var TaobinLevelDesc2 = ""
Var TaobinLeveImg = "/taoLevel3.png"
EndIf
Else
Var TaobinLevelDesc3 = "ตอนนี้คุณมีคูปองแลกเครื่องดื่มฟรีเหลืออยู่ "
Var TaobinLevelDesc3 = TaobinLevelDesc3 + TaobinCoupons
Var TaobinLevelDesc3 = TaobinLevelDesc3 + " ใบ"
If TaobinLevel = "1" Then
Var TaobinLevelDesc1 = "ระดับสมาชิก เต่าขี้อาย"
Var TaobinLevelDesc2 = ""
Var TaobinLeveImg = "/taoLevel1.png"
EndIf
If TaobinLevel = "2" Then
Var TaobinLevelDesc1 = "ระดับสมาชิก เต่าเตาะแตะ"
Var TaobinLevelDesc2 = "สะสมแสตมป์อีก " + PointDiff
Var TaobinLevelDesc2 = TaobinLevelDesc2 + " ดวง "
Var TaobinLevelDesc2 = TaobinLevelDesc2 + "เพื่อเลื่อนขั้นเป็นเต่าติดปีก"
Var TaobinLeveImg = "/taoLevel2.png"
If CoffeePointRank > 149 Then
Var TaobinLeveImg = "/taoLevel3.png"
Var TaobinLevelDesc1 = "ระดับสมาชิก เต่าติดปีก "
Var TaobinLevelDesc2 = ""
EndIf
EndIf
If TaobinLevel = "3" Then
Var TaobinLevelDesc1 = "ระดับสมาชิก เต่าติดปีก "
Var TaobinLevelDesc2 = ""
Var TaobinLeveImg = "/taoLevel3.png"
EndIf
EndIf
Var CheckCoupons = 0
2020-10-15 18:29:38 +07:00
2021-01-28 13:41:28 +07:00
2020-10-15 18:29:38 +07:00
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var CountDownBrewing = CountDownBrewing - 1
2021-01-28 13:41:28 +07:00
2020-10-15 18:29:38 +07:00
Var ShowCountDownBrewing = CountDownBrewing
2021-01-28 13:41:28 +07:00
2020-10-15 18:29:38 +07:00
Var Timeout = Timeout + 1
2021-01-28 13:41:28 +07:00
If Timeout > 30 Then
2021-02-02 13:33:11 +07:00
2021-01-28 13:41:28 +07:00
2020-10-15 18:29:38 +07:00
; goto lid straw
2021-01-28 13:41:28 +07:00
If CoffeePoint > 29 Then
2020-10-30 18:21:06 +07:00
Open "ROOT/taobin_project/xml/page_display_get_free.xml"
Else
2021-02-02 13:33:11 +07:00
If FromConsent = 1 Then
Open "ROOT/taobin_project/xml/page_display_get_free.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
2020-10-30 18:21:06 +07:00
EndIf
2020-10-15 18:29:38 +07:00
EndIf
TimerReset
Refresh
</EventTimeout>
<EventSecurity>
Open "/media/bt/xml/security_alarm.xml"
</EventSecurity>
<EventActionOk>
2021-02-02 13:33:11 +07:00
If CheckCoupons = 1 Then
Var MakeDrinkState = 1
Open "ROOT/taobin_project/xml/page_check_member2.xml"
EndIf
2020-10-15 18:29:38 +07:00
</EventActionOk>
<EventMachine>
If MachineStage = "drink-success" Then
Var MachineState_Result = 1
EndIf
If MachineStage = "drink-failed" Then
Var MachineState_Result = 2
EndIf
</EventMachine>
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>
2020-10-15 18:29:38 +07:00
2020-11-22 21:50:53 +07:00
<Video>
2020-10-15 18:29:38 +07:00
<X> 0 </X>
<Y> 0 </Y>
2020-11-22 21:50:53 +07:00
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/video/taobin_adv2.mp4" </Filename>
</Video>
2020-10-15 18:29:38 +07:00
<Image>
2020-10-30 18:21:06 +07:00
<X> 0 </X>
<Y> 380 </Y>
<Filename> "ROOT/taobin_project/image/display_point/alpha.png" </Filename>
2020-10-15 18:29:38 +07:00
</Image>
2020-10-30 18:21:06 +07:00
;
2021-01-28 13:41:28 +07:00
2020-10-15 18:29:38 +07:00
<Image>
2020-10-30 18:21:06 +07:00
<X> 158 </X>
<Y> 665 </Y>
<Filename> Var( DirImage + "/img_popup1.png" )</Filename>
2020-10-15 18:29:38 +07:00
</Image>
2020-10-30 18:21:06 +07:00
<Image>
2021-01-28 13:41:28 +07:00
<X> 158 </X>
<Y> 665 </Y>
<Filename> Var( DirImage + "/img_popup3.png" )</Filename>
2020-10-30 18:21:06 +07:00
</Image>
2020-10-15 18:29:38 +07:00
2020-10-30 18:21:06 +07:00
<Image>
2021-01-28 13:41:28 +07:00
<X> 243 </X>
<Y> 722 </Y>
<Filename> Var( DirImage + "/text5.png" )</Filename>
2020-10-30 18:21:06 +07:00
</Image>
2020-10-15 18:29:38 +07:00
2020-10-30 18:21:06 +07:00
<Image>
2021-01-28 13:41:28 +07:00
<X> 243 </X>
<Y> 857 </Y>
<Filename> Var( DirImage + "/text4.png" )</Filename>
2020-10-30 18:21:06 +07:00
</Image>
2020-10-15 18:29:38 +07:00
2020-10-30 18:21:06 +07:00
<Image>
2021-01-28 13:41:28 +07:00
<X> 624 </X>
<Y> 734 </Y>
2021-02-02 13:33:11 +07:00
<Filename> Var( DirImage + TaobinLeveImg )</Filename>
2020-10-30 18:21:06 +07:00
</Image>
;
<Image>
2021-01-28 13:41:28 +07:00
<X> 252 </X>
<Y> 1341 </Y>
2021-02-02 13:33:11 +07:00
<Filename> pImageStr </Filename>
2020-10-30 18:21:06 +07:00
</Image>
2020-10-15 18:29:38 +07:00
<Button>
2021-01-28 13:41:28 +07:00
<X> 560 </X>
2020-10-30 18:21:06 +07:00
<Y> 1680 </Y>
<Filename> Var( DirImage + "/bn_close.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_close.png" )</FilenamePress>
2020-10-15 18:29:38 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; goto lid straw
2021-02-02 13:33:11 +07:00
;Open "ROOT/taobin_project/xml/page_back_to_main.xml"
If FromConsent = 1 Then
Open "ROOT/taobin_project/xml/page_display_get_free.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
2020-10-15 18:29:38 +07:00
</EventClick>
</Button>
2021-01-28 13:41:28 +07:00
<Button>
<X> 253 </X>
<Y> 1680 </Y>
<Filename> Var( DirImage + "/bn_check.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_check.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; goto lid straw
2021-02-02 13:33:11 +07:00
GETACCEXT TelephoneNumber 15
Var CheckCoupons = 1
2021-01-28 13:41:28 +07:00
</EventClick>
</Button>
2020-10-30 18:21:06 +07:00
;<Text>
;<X> 420 </X>
;<Y> 638 </Y>
;<Size> 56 </Size>
;<Font> KanitBoldTTF </Font>
;<Color> 0x513C2F </Color>
;<Value> TelephoneNumber </Value>
;<Format> Telnum </Format>
;</Text>
;
;
;<Text>
;<X> 323 </X>
;<Y> 865 </Y>
;<Width> 434 </Width>
;<Align> Center </Align>
;<Size> 64 </Size>
;<Font> KanitSemiBoldTTF </Font>
;<Color> 0xDE794E </Color>
;<Value> CoffeePoint </Value>
;</Text>
2020-10-15 18:29:38 +07:00
2021-01-28 13:41:28 +07:00
<Text>
<X> 250 </X>
<Y> 1241 </Y>
<Width> 434 </Width>
<Size> 64 </Size>
<Font> KanitSemiBoldTTF </Font>
<Color> 0xDE794E </Color>
<Value> pointStr </Value>
</Text>
<Text>
<X> 250 </X>
<Y> 745 </Y>
<Size> 35 </Size>
<Width> 1000 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x513C2F </Color>
<Value> TaobinName </Value>
</Text>
<Text>
<X> 250 </X>
<Y> 800 </Y>
<Size> 20 </Size>
<Width> 1000 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x746253 </Color>
<Value> TNumberTaobinMemberXXX </Value>
</Text>
<Text>
<X> 250 </X>
<Y> 890 </Y>
<Size> 50 </Size>
<Width> 120 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0xDE794E </Color>
<Value> CoffeePointRank </Value>
</Text>
<Text>
<X> 250 </X>
<Y> 990 </Y>
<Size> 25 </Size>
<Width> 1000 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0xDE794E </Color>
<Value> TaobinLevelDesc1 </Value>
</Text>
<Text>
<X> 250 </X>
<Y> 1020 </Y>
<Size> 20 </Size>
<Width> 1000 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x746253 </Color>
<Value> TaobinLevelDesc2 </Value>
</Text>
<Text>
<X> 300 </X>
<Y> 1500 </Y>
<Size> 25 </Size>
<Width> 1000 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x746253 </Color>
<Value> TaobinLevelDesc3 </Value>
</Text>
2020-10-15 18:29:38 +07:00
;
<Image>
<X> 751 </X>
<Y> 413 </Y>
<Filename> "ROOT/taobin_project/image/page_doing/img2.png" </Filename>
</Image>
;
<Text>
<X> XPosiShowCountDownBrew </X>
<Y> 470 </Y>
<Align> End </Align>
<Width> 153 </Width>
<Size> 88 </Size>
<Font> RobotoBold </Font>
<Color> 0x513C2F </Color>
<Value> ShowCountDownBrewing </Value>
</Text>
2021-01-28 13:41:28 +07:00
2020-10-15 18:29:38 +07:00
</Popup>