add topup credit while brewing
BIN
image/collectiing/bn_number.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
image/collectiing/bn_other.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
image/collectiing/bp_number.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
image/collectiing/bp_other.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
image/collectiing/img_popup21.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
image/collectiing/text_13-2.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
image/collectiing_en/bn_number.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
image/collectiing_en/bn_other.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
image/collectiing_en/bp_number.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
image/collectiing_en/bp_other.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
image/collectiing_en/img_popup21.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
image/collectiing_en/text_13-2.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
image/page_payment/bn_topup_credit.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
image/page_payment/bp_topup_credit.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
image/page_payment_en/page_payment/bn_topup_credit.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
image/page_payment_en/page_payment/bp_topup_credit.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
|
|
@ -307,8 +307,11 @@
|
||||||
Var next_pic_bp = DirImage + "/bp_add_order.png"
|
Var next_pic_bp = DirImage + "/bp_add_order.png"
|
||||||
Var text_next_order = DirImage + "/text_next_order.png"
|
Var text_next_order = DirImage + "/text_next_order.png"
|
||||||
Var bg_strawlid = DirImage2 + "/bg_strawlidSmall.png"
|
Var bg_strawlid = DirImage2 + "/bg_strawlidSmall.png"
|
||||||
|
|
||||||
|
|
||||||
|
Var topup_credit_bn = DirImage + "/bn_topup_credit.png"
|
||||||
|
Var topup_credit_bp = DirImage + "/bp_topup_credit.png"
|
||||||
|
Var EnableTopupCreditBetweenBrew = "Invisible"
|
||||||
|
|
||||||
Var Seeker.strawAction = 0
|
Var Seeker.strawAction = 0
|
||||||
Var Seeker.lidAction = 0
|
Var Seeker.lidAction = 0
|
||||||
|
|
||||||
|
|
@ -1887,6 +1890,35 @@
|
||||||
EndIf
|
EndIf
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 792 </X>
|
||||||
|
<Y> 1687 </Y>
|
||||||
|
<State>EnableTopupCreditBetweenBrew</State>
|
||||||
|
<Filename> topup_credit_bn </Filename>
|
||||||
|
<FilenamePress> topup_credit_bp </FilenamePress>
|
||||||
|
<EventClick>
|
||||||
|
If MachineState_Result = 0 Then
|
||||||
|
|
||||||
|
Var TelephoneNumber = Seeker.TNumberTaobinCredit
|
||||||
|
|
||||||
|
SAVELOG "User click topup-credit button"
|
||||||
|
Var Seeker = "topupCredit"
|
||||||
|
CoinPause
|
||||||
|
Var topupCreditWithCash = "Enable"
|
||||||
|
|
||||||
|
If TelephoneNumber = "" Then
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit.xml"
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit-ChooseNumber.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<Button>
|
<Button>
|
||||||
<X> 733 </X>
|
<X> 733 </X>
|
||||||
<Y> 1787 </Y>
|
<Y> 1787 </Y>
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,11 @@
|
||||||
Var next_pic_bp = DirImage + "/bp_add_order.png"
|
Var next_pic_bp = DirImage + "/bp_add_order.png"
|
||||||
Var text_next_order = DirImage + "/text_next_order.png"
|
Var text_next_order = DirImage + "/text_next_order.png"
|
||||||
|
|
||||||
|
Var topup_credit_bn = DirImage + "/bn_topup_credit.png"
|
||||||
|
Var topup_credit_bp = DirImage + "/bp_topup_credit.png"
|
||||||
|
|
||||||
|
Var EnableTopupCreditBetweenBrew = "Invisible"
|
||||||
|
|
||||||
If NextOrder = "true" Then
|
If NextOrder = "true" Then
|
||||||
Var EnableSelectMenuBetweenBrew = "Invisible"
|
Var EnableSelectMenuBetweenBrew = "Invisible"
|
||||||
Else
|
Else
|
||||||
|
|
@ -38,6 +43,7 @@
|
||||||
|
|
||||||
If GetFreeFromError = 1 Then
|
If GetFreeFromError = 1 Then
|
||||||
Var EnableSelectMenuBetweenBrew = "Invisible"
|
Var EnableSelectMenuBetweenBrew = "Invisible"
|
||||||
|
Var EnableTopupCreditBetweenBrew = "Invisible"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If EnableSelectMenuBetweenBrew = "Enable" Then
|
If EnableSelectMenuBetweenBrew = "Enable" Then
|
||||||
|
|
@ -857,6 +863,7 @@
|
||||||
|
|
||||||
If MachineState_Result > 0 Then
|
If MachineState_Result > 0 Then
|
||||||
Var EnableSelectMenuBetweenBrew = "Invisible"
|
Var EnableSelectMenuBetweenBrew = "Invisible"
|
||||||
|
Var EnableTopupCreditBetweenBrew = "Invisible"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If EnableSelectMenuBetweenBrew = "Enable" Then
|
If EnableSelectMenuBetweenBrew = "Enable" Then
|
||||||
|
|
@ -1086,6 +1093,42 @@
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 792 </X>
|
||||||
|
<Y> 1687 </Y>
|
||||||
|
<State>EnableTopupCreditBetweenBrew</State>
|
||||||
|
<Filename> topup_credit_bn </Filename>
|
||||||
|
<FilenamePress> topup_credit_bp </FilenamePress>
|
||||||
|
<EventClick>
|
||||||
|
If MachineState_Result = 0 Then
|
||||||
|
|
||||||
|
If NextOrder = "true" Then
|
||||||
|
Var topupCreditWithCash = "Disable"
|
||||||
|
|
||||||
|
Var SeekerTmp = "next"
|
||||||
|
Var TelephoneNumber = SeekerTmp.TNumberTaobinCredit
|
||||||
|
Else
|
||||||
|
Var topupCreditWithCash = "Enable"
|
||||||
|
|
||||||
|
Var SeekerTmp = "curr"
|
||||||
|
Var TelephoneNumber = SeekerTmp.TNumberTaobinCredit
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
SAVELOG "User click topup-credit button"
|
||||||
|
Var Seeker = "topupCredit"
|
||||||
|
CoinPause
|
||||||
|
Var PayCredit = 0
|
||||||
|
|
||||||
|
If TelephoneNumber = "" Then
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit.xml"
|
||||||
|
Else
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit-ChooseNumber.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<GIF>
|
<GIF>
|
||||||
|
|
|
||||||
228
xml/page_topup_credit-ChooseNumber.xml
Normal file
|
|
@ -0,0 +1,228 @@
|
||||||
|
<Popup>
|
||||||
|
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<Refresh> "Partial" </Refresh>
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
;Var TelephoneNumber = "0617944956"
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
|
||||||
|
Var GetCreditFlag = 0
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend_en"
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var Ext1a = ""
|
||||||
|
|
||||||
|
Var GetAccFlag = 0
|
||||||
|
|
||||||
|
Var AcceptAuto = "false"
|
||||||
|
|
||||||
|
|
||||||
|
Var PosX_Cancel = 397
|
||||||
|
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
If Timeout > 60 Then
|
||||||
|
|
||||||
|
;Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
<EventIDCard>
|
||||||
|
</EventIDCard>
|
||||||
|
|
||||||
|
<EventCoin>
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
</EventCoin>
|
||||||
|
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
|
||||||
|
If GetAccFlag = 1 Then
|
||||||
|
If Ext1a = "ok" Then
|
||||||
|
Var PinNumberUser = Ext1c
|
||||||
|
Var CoffeeCredit = Ext1b
|
||||||
|
INT CoffeeCredit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DEBUGVAR PinNumberUser
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit2.xml"
|
||||||
|
Else
|
||||||
|
DEBUGVAR Ext1a
|
||||||
|
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
If GetAccFlag = 1 Then
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
EndIf
|
||||||
|
Refresh
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 182 </X>
|
||||||
|
<Y> 748 </Y>
|
||||||
|
<Filename> Var( DirImage + "/img_popup21.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 766 </X>
|
||||||
|
<Y> 777 </Y>
|
||||||
|
<Filename> Var( DirImage + "/Exit.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/Exit.png" )</FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 444 </X>
|
||||||
|
<Y> 945 </Y>
|
||||||
|
<State> ShowErrorText </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text_show_notOperate.png") </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 327 </X>
|
||||||
|
<Y> 1335 </Y>
|
||||||
|
<Filename> Var( DirImage + "/bn_other.png" )</Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_other.png" )</FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit.xml"
|
||||||
|
;Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 327 </X>
|
||||||
|
<Y> 1208 </Y>
|
||||||
|
<Filename> Var( DirImage + "/bn_number.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_number.png" )</FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
Function 2
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 1225 </Y>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Size> 38 </Size>
|
||||||
|
<Font> RobotoBlack </Font>
|
||||||
|
<Color> 0xFFFFFF </Color>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Value> TelephoneNumber </Value>
|
||||||
|
<Format> Telnum-mask-1 </Format>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
<Function2>
|
||||||
|
|
||||||
|
Var Tel2DFlag = 0
|
||||||
|
|
||||||
|
Var Tel2D = TelephoneNumber
|
||||||
|
Trim Tel2D 1
|
||||||
|
|
||||||
|
If Tel2D = "0" Then
|
||||||
|
Var Tel2DFlag = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
If Tel2DFlag = 1 Then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var GetAccFlag = 1
|
||||||
|
GETACCEXT TelephoneNumber 19
|
||||||
|
Else
|
||||||
|
|
||||||
|
Var ShowErrorText2 = "Enable"
|
||||||
|
;Var TelephoneNumber = ""
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</Function2>
|
||||||
|
|
||||||
|
|
||||||
|
</Popup>
|
||||||
624
xml/page_topup_credit.xml
Normal file
|
|
@ -0,0 +1,624 @@
|
||||||
|
<Popup>
|
||||||
|
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<Refresh> "Partial" </Refresh>
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
|
||||||
|
VendingQR OFF
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
Var TelephoneNumber = ""
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
|
||||||
|
Var GetCreditFlag = 0
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var Ext1a = ""
|
||||||
|
|
||||||
|
Var GetAccFlag = 0
|
||||||
|
|
||||||
|
Var AcceptAuto = "false"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_enter_your_phone_for_credits.mp3"
|
||||||
|
Else
|
||||||
|
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_enter_your_phone_for_credits.mp3"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var MaxNumber = 10
|
||||||
|
Var PosX_Cancel = 397
|
||||||
|
|
||||||
|
;Var CountryName = "Malaysia"
|
||||||
|
|
||||||
|
;inter-max-number
|
||||||
|
If CountryName = "Malaysia" Then
|
||||||
|
Var MaxNumber = 11
|
||||||
|
Var PosX_Cancel = 218
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;inter-max-number
|
||||||
|
If CountryName = "Indonesia" Then
|
||||||
|
Var MaxNumber = 12
|
||||||
|
Var PosX_Cancel = 218
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
If Timeout > 30 Then
|
||||||
|
|
||||||
|
;Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
<EventIDCard>
|
||||||
|
</EventIDCard>
|
||||||
|
|
||||||
|
<EventCoin>
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
</EventCoin>
|
||||||
|
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
|
||||||
|
If GetAccFlag = 1 Then
|
||||||
|
If Ext1a = "ok" Then
|
||||||
|
Var PinNumberUser = Ext1c
|
||||||
|
Var CoffeeCredit = Ext1b
|
||||||
|
INT CoffeeCredit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DEBUGVAR PinNumberUser
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit2.xml"
|
||||||
|
Else
|
||||||
|
DEBUGVAR Ext1a
|
||||||
|
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
If GetAccFlag = 1 Then
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
EndIf
|
||||||
|
Refresh
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 158 </X>
|
||||||
|
<Y> 601 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/img_popup1.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_1.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_1.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "1"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_2.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_2.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "2"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_3.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_3.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "3"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_4.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_4.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "4"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_5.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_5.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "5"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_6.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_6.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "6"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_7.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_7.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "7"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_8.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_8.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "8"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_9.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_9.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "9"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_0.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_0.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TelephoneNumber = TelephoneNumber + "0"
|
||||||
|
Trim TelephoneNumber MaxNumber
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen >= 10 Then
|
||||||
|
If MaxNumber > 10 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
Else
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_back-1.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_back-1.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Trim TelephoneNumber -1
|
||||||
|
|
||||||
|
StrLen TelephoneNumber TelNumLen
|
||||||
|
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen = 0 Then
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var ShowErrorText2 = "Invisible"
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> PosX_Cancel </X>
|
||||||
|
<Y> 1607 </Y>
|
||||||
|
|
||||||
|
<Filename> Var( DirImage + "/bn_cancel2.png" )</Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_cancel2.png" )</FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
|
||||||
|
;Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 577 </X>
|
||||||
|
<Y> 1607 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<State> Tel_Confirm_State </State>
|
||||||
|
<Filename> Var( DirImage + "/bn_confirm.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_confirm.png" )</FilenamePress>
|
||||||
|
<FilenameDisable> Var( DirImage + "/bn_confirm.png" )</FilenameDisable>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
Function 2
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 217 </X>
|
||||||
|
<Y> 802 </Y>
|
||||||
|
<Filename> Var( DirImage + "/img3.png" ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 244 </X>
|
||||||
|
<Y> 817 </Y>
|
||||||
|
<State> ShowTextNumber </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text14.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 248 </X>
|
||||||
|
<Y> 836 </Y>
|
||||||
|
<State> ShowTextNumber </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/Group.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 817 </Y>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Size> 62 </Size>
|
||||||
|
<Font> RobotoBlack </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Value> TelephoneNumber </Value>
|
||||||
|
<Format> Telnum-mask-1 </Format>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 188 </X>
|
||||||
|
<Y> 626 </Y>
|
||||||
|
<Filename> Var( DirImage + "/text_13-2.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 444 </X>
|
||||||
|
<Y> 945 </Y>
|
||||||
|
<State> ShowErrorText </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text_show_notfound.png") </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 152 </X>
|
||||||
|
<Y> 920 </Y>
|
||||||
|
<State> ShowErrorText2 </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text_show_error5.png") </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
<Function2>
|
||||||
|
|
||||||
|
Var Tel2DFlag = 0
|
||||||
|
|
||||||
|
Var Tel2D = TelephoneNumber
|
||||||
|
Trim Tel2D 1
|
||||||
|
|
||||||
|
If Tel2D = "0" Then
|
||||||
|
Var Tel2DFlag = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
If Tel2DFlag = 1 Then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var GetAccFlag = 1
|
||||||
|
GETACCEXT TelephoneNumber 19
|
||||||
|
Else
|
||||||
|
|
||||||
|
Var ShowErrorText2 = "Enable"
|
||||||
|
;Var TelephoneNumber = ""
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</Function2>
|
||||||
|
|
||||||
|
|
||||||
|
</Popup>
|
||||||
826
xml/page_topup_credit2.xml
Normal file
|
|
@ -0,0 +1,826 @@
|
||||||
|
<Popup>
|
||||||
|
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<Refresh> "Partial" </Refresh>
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var useCreditAmount = 0;
|
||||||
|
Var useCreditTemp = 0;
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
Var TimeoutSMS = 0
|
||||||
|
Var StateBGetSMS = "Enable"
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
Var ShowTextNumber1 = "Invisible"
|
||||||
|
Var ShowTextNumber2 = "Invisible"
|
||||||
|
Var ShowTextNumber3 = "Invisible"
|
||||||
|
Var ShowTextNumber4 = "Invisible"
|
||||||
|
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
|
||||||
|
Var PinNumber = ""
|
||||||
|
|
||||||
|
Var ReqFlag = 0
|
||||||
|
|
||||||
|
Var Xtext = 246
|
||||||
|
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||||
|
Var Xtext = 246
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var Ext1a = ""
|
||||||
|
|
||||||
|
Var ReqAdddata22 = 0
|
||||||
|
Var timeout_Adddata22 = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_enter_your_4_digits_pin.mp3"
|
||||||
|
Else
|
||||||
|
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_enter_your_4_digits_pin.mp3"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
If Timeout > 30 Then
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If StateBGetSMS = "Disable" Then
|
||||||
|
|
||||||
|
Var TimeoutSMS = TimeoutSMS + 1
|
||||||
|
If TimeoutSMS > 30 Then
|
||||||
|
|
||||||
|
Var StateBGetSMS = "Enable"
|
||||||
|
Var TimeoutSMS = 0
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
<EventIDCard>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</EventIDCard>
|
||||||
|
|
||||||
|
<EventCoin>
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
</EventCoin>
|
||||||
|
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
|
||||||
|
|
||||||
|
If ReqFlag = 0 Then
|
||||||
|
Else
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 158 </X>
|
||||||
|
<Y> 601 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/img_popup1.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_1.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_1.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "1"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_2.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_2.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "2"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_3.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_3.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "3"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_4.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_4.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "4"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_5.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_5.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "5"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_6.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_6.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "6"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_7.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_7.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "7"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_8.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_8.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "8"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_9.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_9.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "9"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim PinNumber 4
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<State> StateBGetSMS </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/bn_getPin.png") </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_getPin.png") </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
;Open "ROOT/taobin_project/xml/page_catalog.xml"
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Enable"
|
||||||
|
Var StateBGetSMS = "Disable"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var BmiYear = ""
|
||||||
|
Var PointCrm1 = ""
|
||||||
|
Var GetScore = ""
|
||||||
|
AddData 13 TelephoneNumber BmiYear PointCrm1 GetScore
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowTextNumber1 = "Invisible"
|
||||||
|
Var ShowTextNumber2 = "Invisible"
|
||||||
|
Var ShowTextNumber3 = "Invisible"
|
||||||
|
Var ShowTextNumber4 = "Invisible"
|
||||||
|
Var PinNumber = ""
|
||||||
|
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
Var ReqFlag = 1
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_0.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_0.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var PinNumber = PinNumber + "0"
|
||||||
|
Trim PinNumber 4
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
If TelNumLen >= 4 Then
|
||||||
|
;Var Tel_Confirm_State = "Enable"
|
||||||
|
Function 2
|
||||||
|
EndIf
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
Var ShowTextNumber1 = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 1 Then
|
||||||
|
Var ShowTextNumber2= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 2 Then
|
||||||
|
Var ShowTextNumber3= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen > 3 Then
|
||||||
|
Var ShowTextNumber4= "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_back-1.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_back-1.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Trim PinNumber -1
|
||||||
|
;Var Tel_Confirm_State = "Invisible"
|
||||||
|
|
||||||
|
StrLen PinNumber TelNumLen
|
||||||
|
|
||||||
|
If TelNumLen = 0 Then
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;Var ShowErrorText = "Invisible"
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
If TelNumLen < 1 Then
|
||||||
|
Var ShowTextNumber1 = "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen < 2 Then
|
||||||
|
Var ShowTextNumber2= "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen < 3 Then
|
||||||
|
Var ShowTextNumber3= "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If TelNumLen < 4 Then
|
||||||
|
Var ShowTextNumber4= "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 397 </X>
|
||||||
|
<Y> 1607 </Y>
|
||||||
|
<Filename> Var( DirImage + "/bn_back.png") </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bn_back.png") </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
DEBUGVAR "USER BN_BACK"
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit.xml"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 577 </X>
|
||||||
|
<Y> 1607 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<State> Tel_Confirm_State </State>
|
||||||
|
<Filename> Var( DirImage + "/bn_confirm.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_confirm.png" )</FilenamePress>
|
||||||
|
<FilenameDisable> Var( DirImage + "/bn_confirm.png" )</FilenameDisable>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 242 </X>
|
||||||
|
<Y> 830 </Y>
|
||||||
|
<Filename> Var( DirImage + "/img4.png" ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 289 </X>
|
||||||
|
<Y> 870 </Y>
|
||||||
|
<State> ShowTextNumber1 </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text_X.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 446 </X>
|
||||||
|
<Y> 870 </Y>
|
||||||
|
<State> ShowTextNumber2 </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text_X.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 603 </X>
|
||||||
|
<Y> 870 </Y>
|
||||||
|
<State> ShowTextNumber3 </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text_X.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 758 </X>
|
||||||
|
<Y> 870 </Y>
|
||||||
|
<State> ShowTextNumber4 </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text_X.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 188 </X>
|
||||||
|
<Y> 699 </Y>
|
||||||
|
<Filename> Var( DirImage + "/text_16.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 444 </X>
|
||||||
|
<Y> 945 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<State> ShowErrorText </State>
|
||||||
|
<Filename> Var( DirImage + "/text_show_notfound.png") </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> Xtext </X>
|
||||||
|
<Y> 945 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<State> ShowSentSmsText </State>
|
||||||
|
<Filename> Var( DirImage + "/text_show_sentSMS.png") </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
|
||||||
|
<Function2>
|
||||||
|
|
||||||
|
Var ShowSentSmsText = "Invisible"
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
If PinNumberUser = PinNumber Then
|
||||||
|
|
||||||
|
Var SumCreditAmount = CoffeeCredit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var ShowNotEnoughText = "Invisible"
|
||||||
|
Var Seeker.TNumberTaobinCredit = TelephoneNumber
|
||||||
|
Var Seeker.CoffeePinNumber = PinNumber
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
Var PinNumber = ""
|
||||||
|
Var ShowTextNumber1 = "Invisible"
|
||||||
|
Var ShowTextNumber2 = "Invisible"
|
||||||
|
Var ShowTextNumber3 = "Invisible"
|
||||||
|
Var ShowTextNumber4 = "Invisible"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ReqFlag = 0
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Function2>
|
||||||
|
|
||||||
|
<Function3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Function3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Popup>
|
||||||
182
xml/page_topup_credit3-1.xml
Normal file
|
|
@ -0,0 +1,182 @@
|
||||||
|
<Popup>
|
||||||
|
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var img_popup11 = "/img_popup19.png"
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Malaysia" Then
|
||||||
|
Var img_popup11 = "/img_popup19.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Indonesia" Then
|
||||||
|
Var img_popup11 = "/img_popup19.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var showRemaining !assigned StringFmt( SumCreditAmount, DisplayFormat, PreScaleConvertShow )
|
||||||
|
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
Var ReqAdddata22 = 0
|
||||||
|
Var timeout_Adddata22 = 0
|
||||||
|
GenHashWithTimeStamp PointCrm
|
||||||
|
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
|
||||||
|
If Timeout > 60 Then
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
TimerReset
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
|
||||||
|
<EventCoin>
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
Else
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
</EventCoin>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 181 </X>
|
||||||
|
<Y> 672 </Y>
|
||||||
|
<Filename> Var( DirImage + img_popup11 ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 181 </X>
|
||||||
|
<Y> 1044 </Y>
|
||||||
|
<State> ShowNotEnoughText </State>
|
||||||
|
<Filename> Var( DirImage + "/text_show_notEnough2.png") </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 845 </Y>
|
||||||
|
<Size> 144 </Size>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Font> KanitRegularTTF </Font>
|
||||||
|
|
||||||
|
<Color> 0xDE794E </Color>
|
||||||
|
<Value> showRemaining </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 218 </X>
|
||||||
|
<Y> 1225 </Y>
|
||||||
|
<State> topupCreditWithCash </State>
|
||||||
|
<Filename> Var( DirImage + "/bn_topup_with_cash.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_topup_with_cash.png" )</FilenamePress>
|
||||||
|
<FilenameDisable> Var( DirImage + "/bp_topup_with_cash.png" )</FilenameDisable>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
Var PayCreditChannel = "cash"
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-Topup.xml"
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 440 </X>
|
||||||
|
<Y> 1225 </Y>
|
||||||
|
<Filename> Var( DirImage + "/bn_topup_with_qr.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_topup_with_qr.png" )</FilenamePress>
|
||||||
|
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
Var PayCreditChannel = "qr"
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-Topup.xml"
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 664 </X>
|
||||||
|
<Y> 1225 </Y>
|
||||||
|
<Filename> Var( DirImage + "/bn_topup_with_code.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_topup_with_code.png" )</FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
Var PayCreditChannel = "code"
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupCode.xml"
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 397 </X>
|
||||||
|
<Y> 1485 </Y>
|
||||||
|
<Filename> Var( DirImage + "/bn_cancel2.png") </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_cancel2.png") </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
;Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
</Popup>
|
||||||
714
xml/page_topup_credit3-Topup.xml
Normal file
|
|
@ -0,0 +1,714 @@
|
||||||
|
<Popup>
|
||||||
|
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<Refresh> "Partial" </Refresh>
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
|
||||||
|
VendingQR OFF
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
Var AmountNumber = ""
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
|
||||||
|
Var GetCreditFlag = 0
|
||||||
|
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
||||||
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
||||||
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var Ext1a = ""
|
||||||
|
|
||||||
|
Var GetAccFlag = 0
|
||||||
|
|
||||||
|
Var GetPayInfoFlag = 0
|
||||||
|
|
||||||
|
Var ReqPayWithCash = 0
|
||||||
|
|
||||||
|
Var TextWaiting = ""
|
||||||
|
|
||||||
|
GenHashWithTimeStamp PointCrm
|
||||||
|
|
||||||
|
Var text_44 = "/text_27.png"
|
||||||
|
Var text_show_amountInvalid = "/text_show_amountInvalid.png"
|
||||||
|
Var text_show_amountInvalid2 = "/text_show_amountInvalid2.png"
|
||||||
|
|
||||||
|
|
||||||
|
Var text_44 = "/text_27.png"
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var Text_X = 188
|
||||||
|
Var posX = 350
|
||||||
|
Else
|
||||||
|
Var Text_X = 188
|
||||||
|
Var posX = 380
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var Min = 20
|
||||||
|
|
||||||
|
Var Max = 5000
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Malaysia" Then
|
||||||
|
Var text_44 = "/text_44-MYR.png"
|
||||||
|
Var text_show_amountInvalid = "/text_show_amountInvalid-MYR.png"
|
||||||
|
Var text_show_amountInvalid2 = "/text_show_amountInvalid2-MYR.png"
|
||||||
|
|
||||||
|
Var Min = 2
|
||||||
|
Var Max = 500
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Singapore" Then
|
||||||
|
Var text_44 = "/text_44-SGP.png"
|
||||||
|
Var text_show_amountInvalid = "/text_show_amountInvalid-SGP.png"
|
||||||
|
Var text_show_amountInvalid2 = "/text_show_amountInvalid2-SGP.png"
|
||||||
|
|
||||||
|
Var Min = 2
|
||||||
|
Var Max = 500
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Indonesia" Then
|
||||||
|
Var text_44 = "/text_44-IDR.png"
|
||||||
|
Var text_show_amountInvalid = "/text_show_amountInvalid-IDR.png"
|
||||||
|
Var text_show_amountInvalid2 = "/text_show_amountInvalid2-IDR.png"
|
||||||
|
|
||||||
|
Var Min = 9000
|
||||||
|
Var Max = 2000000
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
If Timeout > 60 Then
|
||||||
|
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
<EventIDCard>
|
||||||
|
</EventIDCard>
|
||||||
|
|
||||||
|
<EventCoin>
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
</EventCoin>
|
||||||
|
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
|
||||||
|
If GetPayInfoFlag = 1 Then
|
||||||
|
Var VendingQRCode = "OK"
|
||||||
|
Var CashTextWarning = ""
|
||||||
|
Var QRErrorState = "Invisible"
|
||||||
|
Var QRCODE99 = SessionID
|
||||||
|
Var QRCODE99 = QRCODE99 + Ext1a
|
||||||
|
Var QRCODE99 = QRCODE99 + Ext21
|
||||||
|
Var QRCODETMP = QRCODE99
|
||||||
|
Var ReqPayInfoFlag = 0
|
||||||
|
Var VendingExtResult = ""
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupQR.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
If GetPayInfoFlag = 1 Then
|
||||||
|
Var QRCODE99 = ""
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var TextWaiting = "Unable to use QR, please try again later."
|
||||||
|
Else
|
||||||
|
Var TextWaiting = "ระบบ QR ขัดข้อง โปรดใช้ใหม่ภายหลัง."
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var AmountNumber = ""
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
Refresh
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 990 </X>
|
||||||
|
<Y> 416 </Y>
|
||||||
|
<Filename> show_btn </Filename>
|
||||||
|
<FilenamePress> show_btp </FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 158 </X>
|
||||||
|
<Y> 601 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/img_popup1.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_1.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_1.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "1"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_2.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_2.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "2"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_3.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_3.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "3"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_4.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_4.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "4"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_5.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_5.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "5"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_6.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_6.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "6"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 333 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_7.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_7.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "7"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_8.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_8.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "8"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_9.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_9.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "9"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 477 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_0.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_0.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
|
||||||
|
If TelNumLen > 0 Then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If TelNumLen < 10 Then
|
||||||
|
Var AmountNumber = AmountNumber + "0"
|
||||||
|
Trim AmountNumber 10
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
If TelNumLen >= 1 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 620 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_back-1.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_back-1.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Trim AmountNumber -1
|
||||||
|
;Var Tel_Confirm_State = "Invisible"
|
||||||
|
|
||||||
|
StrLen AmountNumber TelNumLen
|
||||||
|
|
||||||
|
If TelNumLen = 0 Then
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 218 </X>
|
||||||
|
<Y> 1607 </Y>
|
||||||
|
|
||||||
|
<Filename> Var( DirImage + "/bn_cancel2.png" )</Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_cancel2.png" )</FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 577 </X>
|
||||||
|
<Y> 1607 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<State> Tel_Confirm_State </State>
|
||||||
|
<Filename> Var( DirImage + "/bn_confirm.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_confirm.png" )</FilenamePress>
|
||||||
|
<FilenameDisable> Var( DirImage + "/bn_confirm.png" )</FilenameDisable>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
|
||||||
|
Var Amount = AmountNumber
|
||||||
|
INT Amount
|
||||||
|
If Amount < Min Then
|
||||||
|
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
Var AmountNumber = ""
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
Var text_show_error = text_show_amountInvalid
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
If Amount > Max Then
|
||||||
|
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
Var AmountNumber = ""
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
Var text_show_error = text_show_amountInvalid2
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
Else
|
||||||
|
If PayCreditChannel = "cash" Then
|
||||||
|
|
||||||
|
CoinVending XBILL
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupCash.xml"
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
|
||||||
|
If GetPayInfoFlag = 0 Then
|
||||||
|
|
||||||
|
Var CreditAmount = AmountNumber
|
||||||
|
Var DiscountDrink = 0
|
||||||
|
Var SelectSlot = "1"
|
||||||
|
|
||||||
|
Var QRCODE1 = "A000000677010112"
|
||||||
|
Var QRCODE2 = "010755600066301"
|
||||||
|
Var QRCODE3 = "VDGN"
|
||||||
|
Var QRCODE4 = BoxID
|
||||||
|
Var QRCODE5 = SelectSlot
|
||||||
|
Var QRCODE6 = "00-00-00-0000"
|
||||||
|
Var QRCODE7 = CreditAmount
|
||||||
|
Var QRCODE8 = ""
|
||||||
|
|
||||||
|
Var RemainAmount = 0
|
||||||
|
|
||||||
|
Var SessionID2 = "00" + ":"
|
||||||
|
Var SessionID2 = SessionID2 + ""
|
||||||
|
|
||||||
|
Var CreditAmount1 = ""
|
||||||
|
Var ServiceAmountFlow = ""
|
||||||
|
Var TelephoneNumberQR = "0899999999"
|
||||||
|
Var ServiceType = "coffee"
|
||||||
|
Var ECommerceQR = ""
|
||||||
|
Var ECommerceQR = ECommerceQR + CreditAmount
|
||||||
|
Var ECommerceQR = ECommerceQR + "/"
|
||||||
|
Var ECommerceQR = ECommerceQR + DiscountDrink
|
||||||
|
Var ECommerceQR = ECommerceQR + "/"
|
||||||
|
Var ECommerceQR = ECommerceQR + SessionID2
|
||||||
|
Var ECommerceQR = ECommerceQR + "/"
|
||||||
|
Var ECommerceQR = ECommerceQR + "00-00-00-0000"
|
||||||
|
Var ECommerceQR = ECommerceQR + "/"
|
||||||
|
Var ECommerceQR = ECommerceQR + "KBA:2/"
|
||||||
|
Var ECommerceQR = ECommerceQR + "CRX"
|
||||||
|
Var ECommerceQR = ECommerceQR + ":"
|
||||||
|
Var ECommerceQR = ECommerceQR + Seeker.TNumberTaobinCredit
|
||||||
|
Var ECommerceQR = ECommerceQR + ":0"
|
||||||
|
Var ServiceParameter = "max"
|
||||||
|
Var ServiceCharge = 0
|
||||||
|
Var AccountType = "new"
|
||||||
|
Var testservice = "kbank"
|
||||||
|
Var tc = ""
|
||||||
|
Var GetScore = ""
|
||||||
|
Var OperatorName = ""
|
||||||
|
Var SessionID = ""
|
||||||
|
|
||||||
|
|
||||||
|
GetPayInfo TelephoneNumberQR ECommerceQR ServiceType ServiceParameter SessionID OperatorName CreditAmount1 ServiceAmountFlow GetScore tc
|
||||||
|
Var Timeout = 0
|
||||||
|
Var GetPayInfoFlag = 1
|
||||||
|
Var ReqPayInfoFlag = 1
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var TextWaiting = "Please wait..."
|
||||||
|
Else
|
||||||
|
Var TextWaiting = "กรุณารอซักครู่..."
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 217 </X>
|
||||||
|
<Y> 802 </Y>
|
||||||
|
<Filename> Var( DirImage + "/img3.png" ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> Text_X </X>
|
||||||
|
<Y> 650 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + text_44 )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 817 </Y>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Size> 62 </Size>
|
||||||
|
<Font> RobotoBlack </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Value> AmountNumber </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 145 </X>
|
||||||
|
<Y> 820 </Y>
|
||||||
|
<State> ShowErrorText </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + text_show_error ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 5 </X>
|
||||||
|
<Y> 940 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Size> 30 </Size>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Font> RobotoRegular </Font>
|
||||||
|
<Color> 0xFF0000 </Color>
|
||||||
|
<Value> TextWaiting </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Popup>
|
||||||
624
xml/page_topup_credit3-TopupCash.xml
Normal file
|
|
@ -0,0 +1,624 @@
|
||||||
|
<Popup>
|
||||||
|
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/page_payment_en/page_payment"
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend_en"
|
||||||
|
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
|
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/page_payment"
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend"
|
||||||
|
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
||||||
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
||||||
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var alphaState = "Invisible"
|
||||||
|
Var alphaState2 = "Enable"
|
||||||
|
|
||||||
|
Var alphaState3 = "Invisible"
|
||||||
|
|
||||||
|
|
||||||
|
INT AmountNumber
|
||||||
|
|
||||||
|
Var img_popup11 = "/img_popup11.png"
|
||||||
|
Var img_popup15 = "/img_popup15.png"
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Malaysia" Then
|
||||||
|
Var img_popup11 = "/img_popup11-MYR.png"
|
||||||
|
Var img_popup15 = "/img_popup15-MYR.png"
|
||||||
|
Var AmountNumber = AmountNumber * 100
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Indonesia" Then
|
||||||
|
Var img_popup11 = "/img_popup11-IDR.png"
|
||||||
|
Var img_popup15 = "/img_popup15-IDR.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Singapore" Then
|
||||||
|
Var img_popup11 = "/img_popup11-SGP.png"
|
||||||
|
Var img_popup15 = "/img_popup15-SGP.png"
|
||||||
|
Var AmountNumber = AmountNumber * 100
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var CreditAmount = AmountNumber
|
||||||
|
Var RemainAmount = CreditAmount - CoinAmount
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var RemainAmountStr = "" + RemainAmount
|
||||||
|
|
||||||
|
Var RemainAmountStr !assigned StringFmt( RemainAmount, DisplayFormat, PreScaleConvertShow )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var CoinInFlag = 0
|
||||||
|
Var CoinInOK = 0
|
||||||
|
Var ChangeOK = 0
|
||||||
|
Var PayOK = 0
|
||||||
|
Var CancelFlag = 0
|
||||||
|
Var ChangeFlag2 = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Var ChangeTimeout = 0
|
||||||
|
Var CancelCounter = 0
|
||||||
|
|
||||||
|
|
||||||
|
Var ServiceAmount2 = CreditAmount
|
||||||
|
Var ServiceCharge = 0
|
||||||
|
Var Donate = ""
|
||||||
|
Var SuggestID = ""
|
||||||
|
|
||||||
|
Var Seeker.StoreCreditFlag = 0
|
||||||
|
|
||||||
|
Var DrinkAmountStr !assigned StringFmt( PayAmountSubDiscount, DisplayFormat, PreScaleConvertShow )
|
||||||
|
|
||||||
|
Var NamePriceShow = showname + " "
|
||||||
|
Var NamePriceShow = NamePriceShow + DrinkAmountStr
|
||||||
|
|
||||||
|
If CoinInOK = 0 Then
|
||||||
|
|
||||||
|
Var RemainAmount = CreditAmount - CoinAmount
|
||||||
|
|
||||||
|
|
||||||
|
Var SumCoinAmount = CoinAmount
|
||||||
|
|
||||||
|
If SumCoinAmount >= CreditAmount Then
|
||||||
|
CoinVending OFF
|
||||||
|
Var Canout = SumCoinAmount - CreditAmount
|
||||||
|
If Canout = 0 Then
|
||||||
|
Var RemainAmountStr = 0
|
||||||
|
Var RemainAmountStr !assigned StringFmt( 0, DisplayFormat, PreScaleConvertShow )
|
||||||
|
Else
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var RemainAmountStr !assigned StringFmt( Canout, DisplayFormat, PreScaleConvertShow )
|
||||||
|
Var RemainAmountStr = "Change " + RemainAmountStr
|
||||||
|
Var RemainAmountStr = RemainAmountStr + "###size=90"
|
||||||
|
Else
|
||||||
|
Var RemainAmountStr = "ทอน " + Canout
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
|
Var RemainAmountStr = 0
|
||||||
|
Var RemainAmountStr !assigned StringFmt( 0, DisplayFormat, PreScaleConvertShow )
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var CancleState = "Disable"
|
||||||
|
Var CoinInOK = 1
|
||||||
|
Var CoinInCounter = 0
|
||||||
|
|
||||||
|
Var TxRef1 = ""
|
||||||
|
CreateTxRef1 TxRef1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
Var RemainAmountStr = "" + RemainAmount
|
||||||
|
Var RemainAmountStr !assigned StringFmt( RemainAmount, DisplayFormat, PreScaleConvertShow )
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
|
||||||
|
Var showRemaining = charOfBaht + RemainAmountStr
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
If Timeout > 180 Then
|
||||||
|
If CoinInOK = 0 Then
|
||||||
|
If CancelFlag = 0 Then
|
||||||
|
SAVELOG "ButtonCancleAlpha2 > Timeout Order."
|
||||||
|
|
||||||
|
CoinVending OFF
|
||||||
|
|
||||||
|
Var CancelFlag = 1
|
||||||
|
Var CancelCounter = 0
|
||||||
|
Var RemainAmountStr = "คืนเงิน"
|
||||||
|
If CoinAmount = 0 Then
|
||||||
|
Var RemainAmountStr = "ยกเลิก"
|
||||||
|
Else
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
|
Var RemainAmountStr = "เก็บเครดิต"
|
||||||
|
EndIf
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If ChangeOK = 1 Then
|
||||||
|
|
||||||
|
If CancelFlag = 0 Then
|
||||||
|
|
||||||
|
Var TelephoneNumber = Seeker.TNumberTaobinCredit
|
||||||
|
Var PayO2 = Var Seeker.CoffeePinNumber
|
||||||
|
|
||||||
|
Var VendingDiscount = 0
|
||||||
|
Var VendingCampaign = 0
|
||||||
|
Var ServiceType = "credit"
|
||||||
|
Var SessionID2 = "00-00-00-0000"
|
||||||
|
Var ServiceCredit = "coffee"
|
||||||
|
Var PayDetail = ""
|
||||||
|
|
||||||
|
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||||
|
Var PayCredit = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
|
||||||
|
Else
|
||||||
|
|
||||||
|
Var payCreditFlag = 0
|
||||||
|
If CoinAmount > 0 Then
|
||||||
|
Var payCreditFlag = 1
|
||||||
|
EndIf
|
||||||
|
If ChangeFlag2 = 1 Then
|
||||||
|
Var payCreditFlag = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If payCreditFlag = 1 Then
|
||||||
|
|
||||||
|
Var TelephoneNumber = Seeker.TNumberTaobinCredit
|
||||||
|
Var PayO2 = Var Seeker.CoffeePinNumber
|
||||||
|
|
||||||
|
Var VendingDiscount = 0
|
||||||
|
Var VendingCampaign = 0
|
||||||
|
Var ServiceType = "credit"
|
||||||
|
Var SessionID2 = "00-00-00-0000"
|
||||||
|
Var ServiceCredit = "coffee"
|
||||||
|
Var PayDetail = ""
|
||||||
|
|
||||||
|
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||||
|
Var PayCredit = 1
|
||||||
|
|
||||||
|
|
||||||
|
;Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If PayOK = 1 Then
|
||||||
|
Var ChangeTimeout = ChangeTimeout + 1
|
||||||
|
If ChangeTimeout > 30 Then
|
||||||
|
Var ChangeOK = 1
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If CoinInOK = 1 Then
|
||||||
|
Var CoinInCounter = CoinInCounter + 1
|
||||||
|
If CoinInCounter = 1 Then
|
||||||
|
Var PayOK = 1
|
||||||
|
|
||||||
|
Var SumCoinAmount = CoinAmount
|
||||||
|
If SumCoinAmount >= CreditAmount Then
|
||||||
|
Var Canout = SumCoinAmount - CreditAmount
|
||||||
|
If Canout > 0 Then
|
||||||
|
If Seeker.StoreCreditFlag = 0 Then
|
||||||
|
Change Canout
|
||||||
|
Var ChangeFlag2 = 1
|
||||||
|
Else
|
||||||
|
Var ChangeOK = 1
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Var ChangeOK = 1
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If CancelFlag = 1 Then
|
||||||
|
|
||||||
|
Var CancelCounter = CancelCounter + 1
|
||||||
|
If CancelCounter = 2 Then
|
||||||
|
|
||||||
|
If CoinAmount > 0 Then
|
||||||
|
If Seeker.StoreCreditFlag = 0 Then
|
||||||
|
Change CoinAmount
|
||||||
|
Var ChangeFlag2 = 1
|
||||||
|
Else
|
||||||
|
Var ChangeOK = 1
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Var ChangeOK = 1
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var ChangeTimeout = ChangeTimeout + 1
|
||||||
|
If ChangeTimeout > 30 Then
|
||||||
|
Var ChangeOK = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
<EventChangeStatus>
|
||||||
|
If ChangeStatus = "payout-end" Then
|
||||||
|
If ChangeFlag2 = 1 Then
|
||||||
|
Var ChangeOK = 1
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
</EventChangeStatus>
|
||||||
|
|
||||||
|
<EventCoin>
|
||||||
|
TimerReset
|
||||||
|
|
||||||
|
Var CoinInFlag = 1
|
||||||
|
|
||||||
|
DEBUGVAR ViewBill
|
||||||
|
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
|
||||||
|
Var RemainAmount = CreditAmount - CoinAmount
|
||||||
|
|
||||||
|
|
||||||
|
If ViewBill > RemainAmount Then
|
||||||
|
Var RemainAmountKeep = ViewBill - RemainAmount
|
||||||
|
Var RemainAmountKeepStr !assigned StringFmt( RemainAmountKeep, DisplayFormat, PreScaleConvertShow )
|
||||||
|
Var alphaState3 = "Enable"
|
||||||
|
Var alphaState2 = "Disable"
|
||||||
|
Else
|
||||||
|
;CoinVending BILLSTACKALL
|
||||||
|
If ViewBill = RemainAmount Then
|
||||||
|
CoinVending BILLSTACKALL
|
||||||
|
Else
|
||||||
|
Var RemainAmountKeep = 0
|
||||||
|
Var RemainAmountKeepStr !assigned StringFmt( RemainAmountKeep, DisplayFormat, PreScaleConvertShow )
|
||||||
|
Var alphaState3 = "Enable"
|
||||||
|
Var alphaState2 = "Disable"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
Var RemainAmountStr = "" + RemainAmount
|
||||||
|
Var showRemaining = charOfBaht + RemainAmountStr
|
||||||
|
|
||||||
|
Var RemainAmountStr !assigned StringFmt( RemainAmount, DisplayFormat, PreScaleConvertShow )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
|
||||||
|
Var alphaState2 = "Enable"
|
||||||
|
|
||||||
|
|
||||||
|
If CoinInOK = 0 Then
|
||||||
|
|
||||||
|
Var RemainAmount = CreditAmount - CoinAmount
|
||||||
|
|
||||||
|
|
||||||
|
Var SumCoinAmount = CoinAmount
|
||||||
|
|
||||||
|
If SumCoinAmount >= CreditAmount Then
|
||||||
|
CoinVending OFF
|
||||||
|
Var Canout = SumCoinAmount - CreditAmount
|
||||||
|
If Canout = 0 Then
|
||||||
|
Var RemainAmountStr = 0
|
||||||
|
Var RemainAmountStr !assigned StringFmt( 0, DisplayFormat, PreScaleConvertShow )
|
||||||
|
Else
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var RemainAmountStr !assigned StringFmt( Canout, DisplayFormat, PreScaleConvertShow )
|
||||||
|
Var RemainAmountStr = "Change " + RemainAmountStr
|
||||||
|
Var RemainAmountStr = RemainAmountStr + "###size=90"
|
||||||
|
Else
|
||||||
|
Var RemainAmountStr = "ทอน " + Canout
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
|
Var RemainAmountStr = 0
|
||||||
|
Var RemainAmountStr !assigned StringFmt( 0, DisplayFormat, PreScaleConvertShow )
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var CancleState = "Disable"
|
||||||
|
Var CoinInOK = 1
|
||||||
|
Var CoinInCounter = 0
|
||||||
|
|
||||||
|
Var TxRef1 = ""
|
||||||
|
CreateTxRef1 TxRef1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
Var RemainAmountStr = "" + RemainAmount
|
||||||
|
Var RemainAmountStr !assigned StringFmt( RemainAmount, DisplayFormat, PreScaleConvertShow )
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
|
||||||
|
Var showRemaining = charOfBaht + RemainAmountStr
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventCoin>
|
||||||
|
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 990 </X>
|
||||||
|
<Y> 416 </Y>
|
||||||
|
<Filename> show_btn </Filename>
|
||||||
|
<FilenamePress> show_btp </FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 182 </X>
|
||||||
|
<Y> 748 </Y>
|
||||||
|
<Filename> Var( DirImage2 + img_popup11 )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 1041 </Y>
|
||||||
|
<Size> 144 </Size>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Font> KanitRegularTTF </Font>
|
||||||
|
<State> alphaState2 </State>
|
||||||
|
<Color> 0xDE794E </Color>
|
||||||
|
<Value> RemainAmountStr </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 397 </X>
|
||||||
|
<Y> 1380 </Y>
|
||||||
|
|
||||||
|
<Filename> Var( DirImage + "/bn_cancel2.png" )</Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bn_cancel2.png" )</FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
If CoinInOK = 0 Then
|
||||||
|
If CancelFlag = 0 Then
|
||||||
|
SAVELOG "ButtonCancleAlpha2 > Cancle Order."
|
||||||
|
|
||||||
|
CoinVending OFF
|
||||||
|
|
||||||
|
Var CancelFlag = 1
|
||||||
|
Var CancelCounter = 0
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var RemainAmountStr = "Refund"
|
||||||
|
Else
|
||||||
|
Var RemainAmountStr = "คืนเงิน"
|
||||||
|
EndIf
|
||||||
|
If CoinAmount = 0 Then
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var RemainAmountStr = "Cancelled"
|
||||||
|
Else
|
||||||
|
Var RemainAmountStr = "ยกเลิก"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var RemainAmountStr = "Keep credit"
|
||||||
|
Else
|
||||||
|
Var RemainAmountStr = "เก็บเครดิต"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 181 </X>
|
||||||
|
<Y> 658 </Y>
|
||||||
|
<State> alphaState3 </State>
|
||||||
|
<Filename> Var( DirImage2 + img_popup15 )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 1010 </Y>
|
||||||
|
<Size> 120 </Size>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Font> KanitRegularTTF </Font>
|
||||||
|
<State> alphaState3 </State>
|
||||||
|
<Color> 0xDE794E </Color>
|
||||||
|
<Value> RemainAmountKeepStr </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 330 </X>
|
||||||
|
<Y> 1303 </Y>
|
||||||
|
<State> alphaState3 </State>
|
||||||
|
<Filename> Var( DirImage + "/bn_confirm2.png" )</Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_confirm2.png" )</FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
CoinVending BILLSTACKALL
|
||||||
|
Var Seeker.StoreCreditFlag = 1
|
||||||
|
|
||||||
|
Var alphaState3 = "Invisible"
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 330 </X>
|
||||||
|
<Y> 1419 </Y>
|
||||||
|
<State> alphaState3 </State>
|
||||||
|
<Filename> Var( DirImage + "/bn_cancel3.png" )</Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_cancel3.png" )</FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var alphaState3 = "Invisible"
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 145 </X>
|
||||||
|
<Y> 820 </Y>
|
||||||
|
<State> ShowErrorText </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + text_show_error ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
</Popup>
|
||||||
696
xml/page_topup_credit3-TopupCode.xml
Normal file
|
|
@ -0,0 +1,696 @@
|
||||||
|
<Popup>
|
||||||
|
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
<Sound> PlaySoundCodeLang </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<Refresh> "Partial" </Refresh>
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
Var ECommerce = ""
|
||||||
|
Var Seeker.FreeVendingCampaign = 0
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
Var GetPayInfoFlag = 0
|
||||||
|
Var Seeker.CodeChannel = 0
|
||||||
|
|
||||||
|
;Var VendingQRCode = "ERROR"
|
||||||
|
;VendingQR ON
|
||||||
|
;Var QRCODE99 = ""
|
||||||
|
|
||||||
|
;CoinVending OFF
|
||||||
|
VendingQR OFF
|
||||||
|
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
Var ErrorCause = ""
|
||||||
|
Var TextWaiting = ""
|
||||||
|
Var ReqAdddata42 = 0
|
||||||
|
Var ReqAdddata22 = 0
|
||||||
|
Var goBackBtnState = "Enable"
|
||||||
|
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var CouponNumber = ""
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
;Open "ROOT/xml/page_board.xml"
|
||||||
|
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
If Timeout > 120 Then
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If ReqAdddata42 = 1 Then
|
||||||
|
If Timeout = 3 Then
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
|
||||||
|
If Seeker.CodeChannel = 1 Then
|
||||||
|
|
||||||
|
SAVELOG "Seeker.CodeChannel 1 > ActOK."
|
||||||
|
|
||||||
|
DEBUGVAR ECommerce
|
||||||
|
SAVELOG ECommerce
|
||||||
|
|
||||||
|
SPLIT ECommerce "/" 5 CampaignID
|
||||||
|
SPLIT ECommerce "/" 6 CampaignCode
|
||||||
|
SPLIT ECommerce "/" 7 AmoutCoupon
|
||||||
|
|
||||||
|
Var IntAmoutCoupon = AmoutCoupon
|
||||||
|
INT IntAmoutCoupon
|
||||||
|
|
||||||
|
If IntAmoutCoupon > 0 Then
|
||||||
|
DEBUGVAR AmoutCoupon
|
||||||
|
DEBUGVAR CampaignID
|
||||||
|
DEBUGVAR CampaignCode
|
||||||
|
Var PayAmount = AmoutCoupon
|
||||||
|
Var CreditAmount = AmoutCoupon
|
||||||
|
DEBUGVAR CreditAmount
|
||||||
|
|
||||||
|
AddData 42 TelephoneNumber CampaignCode CampaignID AmoutCoupon
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
Var ReqAdddata42 = 1
|
||||||
|
Var ReqAdddata22 = 0
|
||||||
|
Else
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
Var goBackBtnState = "Enable"
|
||||||
|
Var text_show_error = DirImage + "/text_show_error.png"
|
||||||
|
Var GetPayInfoFlag = 0
|
||||||
|
;Var Seeker.CodeChannel = 0
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
If Seeker.CodeChannel = 1 Then
|
||||||
|
Var CouponNumber = ""
|
||||||
|
Var TextWaiting = ""
|
||||||
|
Var goBackBtnState = "Enable"
|
||||||
|
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
|
||||||
|
SAVELOG ShowErrorText
|
||||||
|
|
||||||
|
Var text_show_error = DirImage + "/text_show_error2.png"
|
||||||
|
|
||||||
|
If ErrorCause = "failed_fromoper_0002" Then
|
||||||
|
Var text_show_error = DirImage + "/text_show_error.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If ErrorCause = "failed_fromoper_0005" Then
|
||||||
|
Var text_show_error = DirImage + "/text_show_error3.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If ErrorCause = "failed_fromoper_0006" Then
|
||||||
|
Var text_show_error = DirImage + "/text_show_error4.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If ErrorCause = "failed_fromoper_0007" Then
|
||||||
|
Var text_show_error = DirImage + "/text_show_error7.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If ErrorCause = "failed_fromoper_0008" Then
|
||||||
|
Var text_show_error = DirImage + "/text_show_error8.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var GetPayInfoFlag = 0
|
||||||
|
;Var Seeker.CodeChannel = 0
|
||||||
|
Var Tel_Confirm_State = "Disable"
|
||||||
|
Refresh
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 158 </X>
|
||||||
|
<Y> 601 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/img_popup1.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 263 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_1.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_1.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "1"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 405 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_2.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_2.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "2"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 547 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_3.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_3.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "3"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 691 </X>
|
||||||
|
<Y> 1004 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_A.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_A.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "A"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 263 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_4.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_4.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "4"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 405 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_5.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_5.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "5"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 547 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_6.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_6.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "6"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 691 </X>
|
||||||
|
<Y> 1148 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_B.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_B.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "B"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 263 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_7.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_7.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "7"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 405 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_8.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_8.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "8"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 547 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_9.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_9.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "9"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 691 </X>
|
||||||
|
<Y> 1292 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_C.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_C.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "C"
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 405 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_0.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_0.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
Var CouponNumber = CouponNumber + "0"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen >= 8 Then
|
||||||
|
Var Tel_Confirm_State = "Enable"
|
||||||
|
EndIf
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 263 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_sh.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_sh.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
;Var CouponNumber = CouponNumber + "0"
|
||||||
|
Trim CouponNumber 8
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen = 0 Then
|
||||||
|
Var ShowTextNumber = "Invisible"
|
||||||
|
Var Mode# = 1
|
||||||
|
Var Str# = "#"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
Var ShowErrorText = "Invisible"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 547 </X>
|
||||||
|
<Y> 1432 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_back-1.png" </Filename>
|
||||||
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_back-1.png" </FilenamePress>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
Var Tel_Confirm_State = "Invisible"
|
||||||
|
|
||||||
|
StrLen CouponNumber CodeNumLen
|
||||||
|
If CodeNumLen > 0 Then
|
||||||
|
Trim CouponNumber -1
|
||||||
|
If CodeNumLen = 1 Then
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Var ShowTextNumber = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;Var ShowErrorText = "Invisible"
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 218 </X>
|
||||||
|
<Y> 1607 </Y>
|
||||||
|
<Filename> Var( DirImage + "/bn_back.png") </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_back.png") </FilenamePress>
|
||||||
|
<FilenameDisable> Var( DirImage + "/bp_back.png") </FilenameDisable>
|
||||||
|
<State> goBackBtnState </State>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
If goBackBtnState = "Enable" Then
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
EndIf
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 577 </X>
|
||||||
|
<Y> 1607 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<State> Tel_Confirm_State </State>
|
||||||
|
<Filename> Var( DirImage + "/bn_confirm.png" ) </Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_confirm.png" )</FilenamePress>
|
||||||
|
<FilenameDisable> Var( DirImage + "/bp_confirm.png" )</FilenameDisable>
|
||||||
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If UnitTestType = "2" Then
|
||||||
|
If CouponNumber = "00000001" Then
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
If CouponNumber = "00000002" Then
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
EndIf
|
||||||
|
If CouponNumber = "99999999" Then
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If GetPayInfoFlag = 0 Then
|
||||||
|
Var GetPayInfoFlag = 1
|
||||||
|
|
||||||
|
VendingQR OFF
|
||||||
|
|
||||||
|
Var RemainAmount = 0
|
||||||
|
;PrepareDrink SelectDrink SelectSugarID
|
||||||
|
|
||||||
|
Var SessionID2 = SelectSlot + ":"
|
||||||
|
Var SessionID2 = SessionID2 + Seeker.ExtendData
|
||||||
|
|
||||||
|
Var CreditAmount1 = ""
|
||||||
|
Var ServiceAmountFlow = ""
|
||||||
|
Var TelephoneNumber2 = "0899999999"
|
||||||
|
Var ServiceType = "coffee"
|
||||||
|
Var ECommerce = ""
|
||||||
|
Var ECommerce = ECommerce + "0"
|
||||||
|
Var ECommerce = ECommerce + "/"
|
||||||
|
Var ECommerce = ECommerce + "0"
|
||||||
|
Var ECommerce = ECommerce + "/"
|
||||||
|
Var ECommerce = ECommerce + "1"
|
||||||
|
Var ECommerce = ECommerce + ":"
|
||||||
|
Var ECommerce = ECommerce + "000001"
|
||||||
|
|
||||||
|
Var ECommerce = ECommerce + "/"
|
||||||
|
Var ECommerce = ECommerce + "00-00-00-0000"
|
||||||
|
Var ECommerce = ECommerce + "/"
|
||||||
|
Var ECommerce = ECommerce + "C00"
|
||||||
|
Var ECommerce = ECommerce + "/"
|
||||||
|
Var ECommerce = ECommerce + CouponNumber
|
||||||
|
Var ECommerce = ECommerce + "/"
|
||||||
|
Var ECommerce = ECommerce + "A"
|
||||||
|
|
||||||
|
Var ServiceParameter = "max"
|
||||||
|
Var ServiceCharge = 0
|
||||||
|
Var AccountType = "new"
|
||||||
|
Var testservice = "kbank"
|
||||||
|
Var tc = ""
|
||||||
|
Var GetScore = ""
|
||||||
|
Var OperatorName = ""
|
||||||
|
Var SessionID = ""
|
||||||
|
|
||||||
|
|
||||||
|
GetPayInfo TelephoneNumber2 ECommerce ServiceType ServiceParameter SessionID OperatorName CreditAmount1 ServiceAmountFlow GetScore tc
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var TextWaiting = "Please wait..."
|
||||||
|
Else
|
||||||
|
Var TextWaiting = "กรุณารอซักครู่..."
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var goBackBtnState = "Disable"
|
||||||
|
|
||||||
|
Var Seeker.CodeChannel = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
SAVELOG ShowTextNumber
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 217 </X>
|
||||||
|
<Y> 802 </Y>
|
||||||
|
<Filename> Var( DirImage + "/img3.png" ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 244 </X>
|
||||||
|
<Y> 816 </Y>
|
||||||
|
<State> ShowTextNumber </State>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Filename> Var( DirImage + "/text_12.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 817 </Y>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Size> 62 </Size>
|
||||||
|
<Font> RobotoBlack </Font>
|
||||||
|
<Color> 0x513C2F </Color>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Value> CouponNumber </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 188 </X>
|
||||||
|
<Y> 636 </Y>
|
||||||
|
<Filename> Var( DirImage + "/text_11.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 152 </X>
|
||||||
|
<Y> 935 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<State> ShowErrorText </State>
|
||||||
|
<Filename> text_show_error </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 5 </X>
|
||||||
|
<Y> 940 </Y>
|
||||||
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<Size> 30 </Size>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Font> RobotoRegular </Font>
|
||||||
|
<Color> 0xFF0000 </Color>
|
||||||
|
<Value> TextWaiting </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
|
||||||
|
</Popup>
|
||||||
190
xml/page_topup_credit3-TopupQR.xml
Normal file
|
|
@ -0,0 +1,190 @@
|
||||||
|
<Popup>
|
||||||
|
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing_en"
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/collectiing"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
||||||
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
||||||
|
|
||||||
|
Else
|
||||||
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
||||||
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var alphaState = "Enable"
|
||||||
|
Var ReqAdddata22 = 0
|
||||||
|
Var PayCreditOK = 0
|
||||||
|
|
||||||
|
Var ReqAdddata22_Error = 0
|
||||||
|
Var Timeout_Error = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
If Timeout > 60 Then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If ReqAdddata22_Error = 1 Then
|
||||||
|
|
||||||
|
Var Timeout_Error = Timeout_Error + 1
|
||||||
|
If Timeout_Error >= 5 Then
|
||||||
|
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
<EventIDCard>
|
||||||
|
</EventIDCard>
|
||||||
|
|
||||||
|
<EventCoin>
|
||||||
|
|
||||||
|
If ViewBill > 0 Then
|
||||||
|
CoinVending BILLREJECT
|
||||||
|
EndIf
|
||||||
|
</EventCoin>
|
||||||
|
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
|
||||||
|
If VendingExtResult = "" Then
|
||||||
|
Else
|
||||||
|
Var VendingExtResult = ""
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupSuccess.xml"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
|
||||||
|
If ReqAdddata22 = 1 Then
|
||||||
|
Var ShowErrorText = "Enable"
|
||||||
|
Var ReqAdddata22_Error = 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 990 </X>
|
||||||
|
<Y> 416 </Y>
|
||||||
|
<Filename> show_btn </Filename>
|
||||||
|
<FilenamePress> show_btp </FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 249 </X>
|
||||||
|
<Y> 748 </Y>
|
||||||
|
<Filename> Var( DirImage + "/img_popup20.png") </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 438 </X>
|
||||||
|
<Y> 1345 </Y>
|
||||||
|
|
||||||
|
<Filename> Var( DirImage + "/bn_cancel3.png" )</Filename>
|
||||||
|
<FilenamePress> Var( DirImage + "/bp_cancel3.png" )</FilenamePress>
|
||||||
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
<EventClick>
|
||||||
|
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/page_topup_credit3-1.xml"
|
||||||
|
|
||||||
|
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
<QRCode>
|
||||||
|
<X> 445 </X>
|
||||||
|
<Y> 958 </Y>
|
||||||
|
<Width> 200 </Width>
|
||||||
|
<Height> 200 </Height>
|
||||||
|
<State> alphaState </State>
|
||||||
|
<Service> testservice </Service>
|
||||||
|
</QRCode>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 181 </X>
|
||||||
|
<Y> 758 </Y>
|
||||||
|
<State> ShowErrorText </State>
|
||||||
|
<Filename> Var( DirImage + "/img_popup20-Failed.png" ) </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
</Popup>
|
||||||
129
xml/page_topup_credit3-TopupSuccess.xml
Normal file
|
|
@ -0,0 +1,129 @@
|
||||||
|
<Popup>
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Background> "0xeae6e1" </Background>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
|
||||||
|
<EventOpen>
|
||||||
|
; On open
|
||||||
|
|
||||||
|
Var Timeout = 0
|
||||||
|
DEBUGVAR SumCreditAmount
|
||||||
|
If PayCreditChannel = "cash" Then
|
||||||
|
Var SumCreditAmount = SumCreditAmount + CoinAmount
|
||||||
|
Else
|
||||||
|
INT CreditAmount
|
||||||
|
DEBUGVAR CreditAmount
|
||||||
|
Var SumCreditAmount = SumCreditAmount + CreditAmount
|
||||||
|
EndIf
|
||||||
|
Var SumCreditAmount = SumCreditAmount
|
||||||
|
Var VendingCreditRemain = "" + SumCreditAmount
|
||||||
|
Var SumCreditAmountStr !assigned StringFmt( SumCreditAmount, DisplayFormat, PreScaleConvertShow )
|
||||||
|
|
||||||
|
Var text_4 = "/text_4.png"
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Malaysia" Then
|
||||||
|
Var PayState3 = "Invisible"
|
||||||
|
Var text_4 = "/text_4-MYR.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
;inter-image
|
||||||
|
If CountryName = "Indonesia" Then
|
||||||
|
Var text_4 = "/text_4-IDR.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/page_payment_en/page_payment"
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend_en"
|
||||||
|
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
|
|
||||||
|
Else
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/page_payment"
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/page_payment_cash_extend"
|
||||||
|
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var DirImage3 = "ROOT/taobin_project/image/collectiing_en"
|
||||||
|
Else
|
||||||
|
Var DirImage3 = "ROOT/taobin_project/image/collectiing"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
||||||
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
||||||
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var FlagPayCredit = 1
|
||||||
|
|
||||||
|
|
||||||
|
</EventOpen>
|
||||||
|
<Timeout> 1000 </Timeout>
|
||||||
|
<EventTimeout>
|
||||||
|
|
||||||
|
Var Timeout = Timeout + 1
|
||||||
|
If Timeout > 3 Then
|
||||||
|
;Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
TimerReset
|
||||||
|
Refresh
|
||||||
|
</EventTimeout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<EventSecurity>
|
||||||
|
Open "/media/bt/xml/security_alarm.xml"
|
||||||
|
</EventSecurity>
|
||||||
|
|
||||||
|
<EventActionOk>
|
||||||
|
</EventActionOk>
|
||||||
|
|
||||||
|
<EventActionError>
|
||||||
|
</EventActionError>
|
||||||
|
|
||||||
|
|
||||||
|
;include="ROOT/taobin_project/inc/video.inc"
|
||||||
|
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 70 </X>
|
||||||
|
<Y> 741 </Y>
|
||||||
|
<Filename> Var( DirImage + "/PaymentSuccess.png" )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 252 </X>
|
||||||
|
<Y> 1053 </Y>
|
||||||
|
<Filename> Var( DirImage + text_4 )</Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 1123 </Y>
|
||||||
|
<Size> 120 </Size>
|
||||||
|
<Align> Center </Align>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Font> KanitRegularTTF </Font>
|
||||||
|
<Color> 0xDE794E </Color>
|
||||||
|
<Value> SumCreditAmountStr </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
</Popup>
|
||||||
|
|
||||||