taobin_project/inter/aus/xml/page_drinkfail_aus.lxml

279 lines
5.6 KiB
Text
Raw Normal View History

<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xEFEDEA" </Background>
<Volume> SoundVolume </Volume>
;<Refresh> "Partial" </Refresh>
<EventOpen>
; On open
Var Seeker.TNumberTaobinMember = ""
2024-12-24 15:50:04 +07:00
DEBUGVAR TelephoneNumberProblem
DEBUGVAR Seeker.PromotionIDCurrentOrder
If TelephoneNumberProblem = "" Then
Else
Var NumberFailed = "true"
CHECKNUMBERFAIL TelephoneNumberProblem NumberFailed
DEBUGVAR NumberFailed
DEBUGVAR ERROR_PAY_TIMEOUT
DEBUGVAR ERROR_BREW_CAUSE_ENG
DEBUGVAR ERROR_BREW_CAUSE_THAI
2024-12-24 15:50:04 +07:00
If FailedCount > 0 Then
Var ERROR_PAY_TIMEOUT = "false"
DEBUGVAR FailedCount
DEBUGVAR ERROR_PAY_TIMEOUT
EndIf
If NextOrder = "true" Then
Var ERROR_PAY_TIMEOUT = "false"
DEBUGVAR FailedCount
DEBUGVAR ERROR_PAY_TIMEOUT
EndIf
If ERROR_PAY_TIMEOUT = "true" Then
If NumberFailed = "false" Then
Var TextErrorShow = ERROR_BREW_CAUSE_ENG
EndIf
EndIf
Var ErrorPayTimeoutFlag = 1
2024-12-24 15:50:04 +07:00
EndIf
2024-12-24 15:50:04 +07:00
Var DirImage = "ROOT/taobin_project/inter/aus/image/page_drink_fail/"
2024-12-24 15:50:04 +07:00
Var Timeout = 0
2024-12-24 15:50:04 +07:00
StopLongPlay
2024-12-24 15:50:04 +07:00
Var MachineErrorDetailAll = MachineErrorDetail + " / "
Var MachineErrorDetailAll = MachineErrorDetailAll + MachineErrorDetailEng
2024-12-24 15:50:04 +07:00
If show_eng = "true" Then
Var textRefundChannelX = "textRefundChannel1.png"
Var xRefundChannelX = 249
2024-12-24 15:50:04 +07:00
If Seeker.PayWithQR = 0 Then
If Seeker.StoreCreditFlag = 1 Then
Var textRefundChannelX = "textRefundChannel2.png"
Var xRefundChannelX = 249
EndIf
If Seeker.CodeChannel = 1 Then
Var textRefundChannelX = "textRefundChannel3.png"
Var xRefundChannelX = 60
EndIf
Else
Var textRefundChannelX = "textRefundChannel3.png"
Var xRefundChannelX = 60
EndIf
Var textRefundChannelX = "textRefundChannel3.png"
Var xRefundChannelX = 60
Else
Var textRefundChannelX = "textRefundChannel1.png"
Var xRefundChannelX = 204
2024-12-24 15:50:04 +07:00
If Seeker.PayWithQR = 0 Then
If Seeker.StoreCreditFlag = 1 Then
Var textRefundChannelX = "textRefundChannel2.png"
Var xRefundChannelX = 256
EndIf
If Seeker.CodeChannel = 1 Then
Var textRefundChannelX = "textRefundChannel3.png"
Var xRefundChannelX = 162
EndIf
Else
Var textRefundChannelX = "textRefundChannel3.png"
Var xRefundChannelX = 162
EndIf
Var textRefundChannelX = "textRefundChannel3.png"
Var xRefundChannelX = 162
EndIf
Var text22 = "/text22.png"
DEBUGVAR CountryName
DEBUGVAR MaxPhoneNumber
2024-12-24 15:50:04 +07:00
</EventOpen>
<Timeout> 1000 </Timeout>
2024-12-24 15:50:04 +07:00
<EventTimeout>
SAVELOG MachineStage
Var Timeout = Timeout + 1
If Timeout > 20 Then
If MachineStage = "remove-cup" Then
Open "ROOT/taobin_project/inter/aus/xml/page_drinkfail3.lxml"
Else
If NextOrder = "true" Then
Var NextOrder = "false"
TransferVar "next" "curr"
Var Seeker = "curr"
2024-12-24 15:50:04 +07:00
Open "ROOT/taobin_project/xml/page_thankyouConti.xml"
Else
2024-12-24 15:50:04 +07:00
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
EndIf
EndIf
2024-12-24 15:50:04 +07:00
If ErrorPayTimeoutFlag = 1 Then
If Timeout > 9 Then
StrLen TelephoneNumberProblem TelNumLen
If TelNumLen >= MinPhoneNumber Then
2024-12-24 15:50:04 +07:00
Var ProblemID = 7
2024-12-24 15:50:04 +07:00
Var ChooseProblem = "taobin purchasing problems"
2024-12-24 15:50:04 +07:00
If Seeker.PayWithQR = 1 Then
Var VendingTSIDProblem = VendingTSIDTmp
If Seeker.CampaignPayChanel = "promptpay" Then
Var ProblemID = 8
Var ChooseProblem = "taobin purchasing problems(Void Failed)"
EndIf
Else
Var VendingTSIDProblem = VendingTSID
EndIf
2024-12-24 15:50:04 +07:00
PROBLEM2 TelephoneNumberProblem ProblemID ChooseProblem VendingTSIDProblem
2024-12-24 15:50:04 +07:00
EndIf
2024-12-24 15:50:04 +07:00
If MachineStage = "remove-cup" Then
Open "ROOT/taobin_project/inter/aus/xml/page_drinkfail3.lxml"
2024-12-24 15:50:04 +07:00
Else
If NextOrder = "true" Then
Var NextOrder = "false"
2024-12-24 15:50:04 +07:00
TransferVar "next" "curr"
Var Seeker = "curr"
2024-12-24 15:50:04 +07:00
Open "ROOT/taobin_project/xml/page_thankyouConti.xml"
Else
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
EndIf
EndIf
EndIf
TimerReset
2024-12-24 15:50:04 +07:00
</EventTimeout>
2024-12-24 15:50:04 +07:00
;include="ROOT/taobin_project/inc/video.inc"
2024-12-24 15:50:04 +07:00
<Text>
<X> 47 </X>
<Y> 428 </Y>
<Width> 986 </Width>
<Align> center-vertical-horizontal </Align>
<Font> KanitSemiBoldTTF </Font>
<Size> 64 </Size>
<Color> 0x513C2F </Color>
<Value> "We are sorry, this is unexpected" </Value>
</Text>
<Image>
2024-12-24 15:50:04 +07:00
<X> 372 </X>
<Y> 543 </Y>
<Filename> Var( DirImage + "person_img.png") </Filename>
</Image>
2024-12-24 15:50:04 +07:00
<Text>
<X> 17 </X>
<Y> 1118 </Y>
<Width> 1040 </Width>
<Align> center-vertical-horizontal </Align>
<Font> RobotoRegular </Font>
<Size> 32 </Size>
<Color> 0x513C2F </Color>
<Value> "You will receive a code via sms shortly if you entered you\nmobile number.\n\nIf you did not enter phone number, Let us know the machine location and time of transaction,\nand we will send you FREE coupon." </Value>
</Text>
<Image>
2024-12-24 15:50:04 +07:00
<X> 0 </X>
<Y> 1364 </Y>
<Filename> Var( DirImage + "contact_text.png") </Filename>
</Image>
<Image>
2024-12-24 15:50:04 +07:00
<X> 426 </X>
<Y> 1498 </Y>
<Filename> Var( DirImage + "qr_code.png") </Filename>
</Image>
<Text>
2024-12-24 15:50:04 +07:00
<X> 94 </X>
<Y> 1795 </Y>
<Width> 891 </Width>
<Align> center-vertical-horizontal </Align>
<Font> RobotoRegular </Font>
<Size> 24 </Size>
<Color> 0x513C2F </Color>
2024-12-24 15:50:04 +07:00
<Value> "Coupon can redeem a drink and topping of any value" </Value>
</Text>
<Text>
<X> 5 </X>
<Y> 1868 </Y>
<Size> 24 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoRegular </Font>
<Color> 0xDE794E </Color>
<Value> MachineErrorDetailAll </Value>
</Text>
</Popup>