256 lines
4.2 KiB
XML
256 lines
4.2 KiB
XML
<Popup>
|
|
|
|
<Cache> "Enable" </Cache>
|
|
<Width> 1080 </Width>
|
|
<Height> 1920 </Height>
|
|
<Background> "0xeae6e1" </Background>
|
|
|
|
<Volume> SoundVolume </Volume>
|
|
<EventOpen>
|
|
; On open
|
|
|
|
|
|
|
|
Var Timeout = 0
|
|
|
|
;Var TelephoneNumber = "0617944956"
|
|
|
|
Var ShowTextNumber = "Enable"
|
|
Var ShowErrorText = "Invisible"
|
|
Var ShowErrorText2 = "Invisible"
|
|
Var Tel_Confirm_State = "Invisible"
|
|
Var LoadingState = "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 GetAccFlag = 1 Then
|
|
If Timeout > 20 Then
|
|
Var LoadingState = "Invisible"
|
|
Var ShowErrorText = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
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>
|
|
|
|
|
|
<GIF>
|
|
<X> 493 </X>
|
|
<Y> 1020 </Y>
|
|
<Width> 94 </Width>
|
|
<Height> 94 </Height>
|
|
<State> LoadingState </State>
|
|
<Filename> "ROOT/taobin_project/image/page_payment/loading.gif"</Filename>
|
|
</GIF>
|
|
|
|
<Image>
|
|
<X> 267 </X>
|
|
<Y> 1120 </Y>
|
|
<State> LoadingState </State>
|
|
<Filename> Var( DirImage + "/loadingText.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
|
|
Var LoadingState = "Enable"
|
|
Refresh
|
|
Else
|
|
|
|
Var ShowErrorText2 = "Enable"
|
|
;Var TelephoneNumber = ""
|
|
Var Tel_Confirm_State = "Invisible"
|
|
Refresh
|
|
|
|
EndIf
|
|
</Function2>
|
|
|
|
|
|
</Popup>
|