Do offline

This commit is contained in:
wanlop run 2024-07-11 15:49:47 +07:00
parent e261359202
commit db807bb234
5 changed files with 405 additions and 3 deletions

View file

@ -1230,6 +1230,7 @@
</EventUnitTest3>
<EventUnitTest4>
Var XMLProfile = "$School"
PRICE "Load" "-"
PRICE "CheckAndApply" XMLProfile

View file

@ -0,0 +1,217 @@
<BeginX>28</BeginX>
<BeginY>255</BeginY>
<OverrideBackground> "ROOT/ui/bg_main_menu2.png"</OverrideBackground>
<Page>
<Width> 1024 </Width>
<Height> 600 </Height>
<Color> 0x000000 </Color>
<EventOpen>
Var AISSellSimURL = "https://10.0.16.231:30717"
Var AISSellSimXBid = "X-FORTH-BID"
Var AISSellSimXSignature = "X-FORTH-SIGNATURE"
Var DTACSellSimURL = "https://10.0.16.231:30720"
Var DTACSellSimXBid = "X-FORTH-BID"
Var DTACSellSimXSignature = "X-FORTH-SIGNATURE"
Var AdvWorking = "/ROOT/pictures/adv_working_00.bmp"
Var AdvCoin = "/ROOT/pictures/adv_coin_00.bmp"
Var AdvAmount = "/ROOT/pictures/adv_amount_00.bmp"
Var AdvMobile = "/ROOT/pictures/adv_mobile_00.bmp"
Var Menu_list_LN = "TH"
Var Menu1BN_FN = "ROOT/image/BN_Drink.bmp"
Var Menu1BP_FN = "ROOT/image/BP_Drink.bmp"
Var Menu2BN_FN = "ROOT/image/BN_Member.bmp"
Var Menu2BP_FN = "ROOT/image/BP_Member.bmp"
Var Menu3BN_FN = "ROOT/image/BN_Topup.bmp"
Var Menu3BP_FN = "ROOT/image/BP_Topup.bmp"
Var Menu4BN_FN = "ROOT/image/BN_Product.bmp"
Var Menu4BP_FN = "ROOT/image/BP_Product.bmp"
Var Menu5BN_FN = "ROOT/image/BN_Etc.bmp"
Var Menu5BP_FN = "ROOT/image/BP_Etc.bmp"
Var Menu6BN_FN = "ROOT/image/BN_Problem.bmp"
Var Menu6BP_FN = "ROOT/image/BP_Problem.bmp"
Var AdvSoundWorking =
Var SaleServiceFrom = ""
Var CheckServiceLoop = 0
Var ProfileSummary = 0
Var PromotionID = ""
Var SuggestID = ""
Var SessionID1 = ""
Var CRMPoint = "01A"
Var TelephoneNumber = ""
Var WeightScale = 0.0
Var ServiceCredit = ""
Var AisPackage = ""
Var AdvSoundWorking =
Var SaleServiceFrom = ""
Var CheckServiceLoop = 0
Var ProfileSummary = 0
Var PromotionID = ""
Var SuggestID = ""
Var SessionID1 = ""
Var CRMPoint = "01A"
Var TelephoneNumber = ""
Var WeightScale = 0.0
Var ServiceCredit = ""
Var AisPackage = ""
Var LastName = ""
Var AddressCardId = ""
Var Checkblacklist = ""
Var NumHome = ""
Var Moo = ""
Var Village = ""
Var Alley = ""
Var Road = ""
Var Postcode = ""
Var Email = ""
Var BirthDay1 = ""
Var BirthDay2 = ""
Var BirthDay3 = ""
Var BirthDay4 = ""
Var BirthDay5 = ""
Var BirthDay = ""
Var BirthDayLen = ""
Var ChkDate = ""
Var ChkMonth = ""
Var BirthDayLen1 = 0
Var BirthDayLen2 = 0
Var BirthDayLen3 = 0
Var Accept1 = 0
Var Accept2 = 0
Var TicketID = ""
Var BillerRefNo = ""
Var IdsenderNumber = ""
Var SessionID5 = ""
Var Ref5 = ""
Var CompanyCode = ""
Var TotalResult = ""
Var AirnetNumber = ""
Var luckydraw_accept = 0
Var upseal_special_accept = 0
Var upseal_special_accept_know = 0
Var upseal_special_accept_mobile = 0
Var upseal_special_bbl = 0
Var upseal_special_accept_kbank = 0
Var upsale_bill_payment = 0
Var upseal_special_bay = 0
Var upseal_special_scb = 0
Var upsale_special_bay = 0
Var upsale_special_baac = 0
Var upsale_special_cashcard = 0
Var upsale_special_internet_wifi = 0
Var buttonType = ""
Var ServiceChargeCampaign = 0
Var campaignID = 0
Var PageName = ""
Var TotalAmountTopup = 0
Var TotalAmountVas = 0
Var CampaignTSID1 = ""
Var CampaignTSID2 = ""
Var NameService = ""
Var SC = ""
Var NetworkLogo = ""
Var TextCode = ""
Var CodeNumber = ""
Var ServiceChargeVas = 0
Var ServiceAmountVas = 0
Var PacksermName = ""
Var SessionIDPackserm = ""
Var CampaignTSID = ""
Var ServiceType = ""
Var ServiceTypeCampaign = ""
Var DtacPackage = ""
If AdvIndex > 6 Then
Var AdvIndex = 1
EndIf
SPLIT AdvertiseProfile "/" 1 AdvertiseProfile1
SPLIT AdvertiseProfile "/" 2 AdvertiseProfile2
SPLIT AdvertiseProfile "/" 3 AdvertiseProfile3
SPLIT AdvertiseProfile "/" 4 AdvertiseProfile4
SPLIT AdvertiseProfile "/" 5 AdvertiseProfile5
SPLIT AdvertiseProfile "/" 6 AdvertiseProfile6
SPLIT AdvertiseProfile "/" 7 AdvertiseProfile7
SPLIT AdvertiseProfile "/" 8 AdvertiseProfile8
SPLIT AdvertiseProfile "/" 9 AdvertiseProfile9
SPLIT AdvertiseProfile "/" 10 AdvertiseProfile10
SPLIT AdvertiseProfile "/" 11 AdvertiseProfile11
SPLIT AdvertiseProfile "/" 12 AdvertiseProfile12
SPLIT AdvertiseProfile "/" 13 AdvertiseProfile13
SPLIT AdvertiseProfile "/" 14 AdvertiseProfile14
SPLIT AdvertiseProfile "/" 15 AdvertiseProfile15
SPLIT AdvertiseProfile "/" 16 AdvertiseProfile16
SPLIT AdvertiseProfile "/" 17 AdvertiseProfile17
SPLIT AdvertiseProfile "/" 18 AdvertiseProfile18
GETVARVALUEID2 ExtSlot1 "AdvExt" AdvertiseProfile7
GETVARVALUEID2 ExtSlot2 "AdvExt" AdvertiseProfile8
GETVARVALUEID2 ExtSlot3 "AdvExt" AdvertiseProfile9
GETVARVALUEID2 ExtSlot4 "AdvExt" AdvertiseProfile10
GETVARVALUEID2 ExtSlot5 "AdvExt" AdvertiseProfile11
GETVARVALUEID2 ExtSlot6 "AdvExt" AdvertiseProfile12
GETVARVALUEID2 AdvId "AdvertiseProfile" AdvIndex
If AdvId = "00" Then
Var AdvIndex = 1
EndIf
If WeightPlug = "CONNECTED" Then
Var WeightScaleBn = "/ROOT/pictures/service_menu_bn_weight_scale.bmp"
Var WeightScaleBp = "/ROOT/pictures/service_menu_bp_weight_scale.bmp"
Else
Var WeightScaleBn = "/ROOT/pictures/service_menu_bd_weight_scale.bmp"
Var WeightScaleBp = "/ROOT/pictures/service_menu_bd_weight_scale.bmp"
EndIf
If WeightPlug = "ERROR" Then
Var WeightScaleBn = "/ROOT/pictures/service_menu_bc_weight_scale.bmp"
Var WeightScaleBp = "/ROOT/pictures/service_menu_bc_weight_scale.bmp"
EndIf
If Upgrading = 1 Then
Open "/ROOT/xml/check_upgrade.xml"
EndIf
Open "/ROOT/xml/offline.xml"
If NetworkStatus = "DOWN" Then
; Open "/ROOT/xml/outservice.xml"
EndIf
If SELLSTATUS = "DEACTIVE" Then
Open "/ROOT/xml/offline.xml"
EndIf
Open "ROOT/taobin_project/xml/page_board.xml"
If XMLProfile = "Tesco Lotus" Then
Open "/ROOT/xml/main_tesco.xml"
EndIf
If XMLProfile = "Seven Eleven" Then
Var ProfileSummary = 1
Open "/ROOT/xml/main_seveneleven.xml"
EndIf
If XMLProfile = "General_NoCharge_100Up" Then
Open "/ROOT/xml/main_general.xml"
EndIf
If XMLProfile = "TOT" Then
Open "/ROOT/xml/main_tot.xml"
Else
Open "/ROOT/xml/main_general.xml"
EndIf
</EventOpen>
<EventSecurity>
Open "/ROOT/xml/security_alarm.xml"
</EventSecurity>
</Page>

View file

@ -1,3 +1,6 @@
<BeginX>28</BeginX>
<BeginY>255</BeginY>
<OverrideBackground> "ROOT/ui/bg_main_menu2.png"</OverrideBackground>
<Page>
<Width> 1024 </Width>
@ -27,6 +30,7 @@
If CountryName = "Thailand" Then
Play "/ROOT/sounds/outofservice.wav"
EndIf
Var OfflinePageXMLTimeout = 0
</EventOpen>
<EventTimeout>
If BatteryStatus = "LOW" Then
@ -38,10 +42,19 @@
DEBUGVAR NetworkStatus
If SELLSTATUS = "DEACTIVE" Then
TimerReset
Else
Open "/ROOT/xml/main.xml"
EndIf
DEBUGVAR OfflinePageXMLTimeout
If OfflinePageXMLTimeout > 6 Then
Open "/ROOT/xml/offline.xml"
EndIf
Var OfflinePageXMLTimeout = OfflinePageXMLTimeout + 1
TimerReset
</EventTimeout>
<EventNetDown>
Open "/ROOT/xml/outservice.xml"

View file

@ -108,8 +108,8 @@
Var RandomPromotionMyworld = 0
Var RandomSalePackage = 0
Var XMLPageVersion = "8.66"
Var XMLPageVersionInt = 866
Var XMLPageVersion = "8.67"
Var XMLPageVersionInt = 867
;Oreo
Var OreoGuarantee = 0

View file

@ -0,0 +1,171 @@
<BeginX>28</BeginX>
<BeginY>255</BeginY>
<OverrideBackground> "ROOT/ui/bg_main_menu2.png"</OverrideBackground>
<Page>
<Width> 1024 </Width>
<Height> 600 </Height>
<Background> "/ROOT/pictures/startup.bmp" </Background>
<Timeout> 3000 </Timeout>
<EventTimeout>
CameraService "filter-remove-all"
CameraService "add-filter=mClass=9,mSubclass=4"
CameraService "add-filter=USB Camera"
CameraService "Start"
Var NeedReboot = "false"
If JXMLVersionInt > 409 Then
FlushTxRef1
EndIf
Open "/ROOT/xml/main.xml"
</EventTimeout>
<EventOpen>
Var video_main_0 = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_00.mp4"
Var video_menu_0 = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_menu_00.mp4"
Var video_menu_1 = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_menu2_00.mp4"
Var MenuLangTH = 1
Var VendingCampaign = 0
Var VendingDiscount = 0
Var VendingClass = ""
TopView "hide"
Var NetworkStatus = "DOWN"
Var MachineErrorDetail = ""
Var SetVideo = 1
Var AdvSoundWorking = ""
Var AdvSoundWorking = "/ROOT/sounds/adv_working_01.wav"
Var AdvIndex = 1
Var SetSoundPlay = 0
Var CheckAutoZero = 0.0
Var DeffZero = 0.0
Var CountZero = 0
Var AdvWorking = ""
Var AdvCoin = ""
Var AdvAmount = ""
Var AdvMobile = ""
Var AdvId = "00"
;Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00"
Var AdvertiseProfile1 = "00"
Var AdvertiseProfile2 = "00"
Var AdvertiseProfile3 = "00"
Var AdvertiseProfile4 = "00"
Var AdvertiseProfile5 = "00"
Var AdvertiseProfile6 = "00"
Var AdvertiseProfile7 = "00"
Var AdvertiseProfile8 = "00"
Var AdvertiseProfile9 = "00"
Var AdvertiseProfile10 = "00"
Var AdvertiseProfile11 = "00"
Var AdvertiseProfile12 = "00"
Var AdvertiseProfile13 = "00"
Var AdvertiseProfile14 = "00"
Var AdvertiseProfile15 = "00"
Var AdvertiseProfile16 = "00"
Var AdvertiseProfile17 = "00"
Var AdvertiseProfile18 = "00"
Var ExtSlot1 = ""
Var ExtSlot2 = ""
Var ExtSlot3 = ""
Var ExtSlot4 = ""
Var ExtSlot5 = ""
Var ExtSlot6 = ""
Var AdvExt1 = ".mp4"
Var AdvExt2 = ".mp4"
Var AdvExt3 = ".mp4"
Var AdvExt4 = ".bmp"
Var AdvExt5 = ".bmp"
Var AdvExt6 = ".bmp"
Var AdvExt7 = ".mp4"
Var AdvExt8 = ".mp4"
Var AdvExt9 = ".bmp"
Var AdvExt10 = ".bmp"
Var AdvExt11 = ".mp4"
Var AdvExt12 = ".bmp"
Var AdvExt13 = ".bmp"
Var AdvExt14 = ".bmp"
Var AdvExt15 = ".bmp"
Var AdvExt16 = ".mp4"
Var AdvExt17 = ".mp4"
Var AdvExt18 = ".bmp"
Var AdvExt19 = ".mp4"
Var AdvExt20 = ".bmp"
;Dtac
Var RandomPromotion = 0
;true_move
Var RandomPromotion1 = 0
Var RandomPromotionAIS = 0
Var RandomPromotionCAT = 0
Var RandomPromotionOper168 = 0
Var RandomPromotionImobile = 0
Var RandomPromotionWhitespace = 0
Var RandomPromotionTOT = 0
Var RandomPromotionMyworld = 0
Var RandomSalePackage = 0
Var XMLPageVersion = "8.67"
Var XMLPageVersionInt = 867
;Oreo
Var OreoGuarantee = 0
Var CurrentMainVideo = 2
</EventOpen>
<Text>
<X> 644 </X>
<Y> 350 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xEA068A </Color>
<Transparent> 0 </Transparent>
<Value> "Engine" </Value>
</Text>
<Text>
<X> 724 </X>
<Y> 350 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xEA068A </Color>
<Transparent> 0 </Transparent>
<Value> SoftwareVersion </Value>
</Text>
<Text>
<X> 628 </X>
<Y> 380 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xEA068A </Color>
<Transparent> 0 </Transparent>
<Value> "Software version" </Value>
</Text>
<Text>
<X> 802 </X>
<Y> 380 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xEA068A </Color>
<Transparent> 0 </Transparent>
<Value> XMLPageVersion </Value>
</Text>
<TextRunner>
<Visible> False </Visible>
<Y> 430 </Y>
<Size> 50 </Size>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Repeat> True </Repeat>
<Color> 0xFFFF00 </Color>
<BgColor> 0x0000A0 </BgColor>
<Filename> "/ROOT/text/runner.txt" </Filename>
</TextRunner>
</Page>