outservice mode

This commit is contained in:
miggaze 2021-08-16 11:44:14 +07:00
parent 8c4c7fd928
commit 8ac3b19851
5 changed files with 468 additions and 4 deletions

View file

@ -271,7 +271,7 @@
Else
If NetworkStatus = "DOWN" Then
Open "/ROOT/xml/outservice.xml"
;Open "/ROOT/xml/outservice.xml"
EndIf
If NetworkStatus = "DEACTIVE" Then
Open "/ROOT/xml/offline.xml"
@ -432,7 +432,7 @@
<EventNetDown>
SAVELOG NetworkStatus
Open "/mnt/sdcard/coffeevending/xml/main.xml"
;Open "/mnt/sdcard/coffeevending/xml/main.xml"
</EventNetDown>
<EventNetDeactive>

View file

@ -652,13 +652,15 @@
If MachineStage = "show-menu" Then
If MachineState_Result = 0 Then
Open "ROOT/taobin_project/xml/page_drinkok.xml"
SAVELOG "back_to_main from line > 655."
;Open "ROOT/taobin_project/xml/page_drinkok.xml"
Var MachineState_Result = 1
EndIf
EndIf
If MachineStage = "close-maintenance" Then
If MachineState_Result = 0 Then
SAVELOG "back_to_main from line > 488."
SAVELOG "back_to_main from line > 663."
Var MachineState_Result = 2
;Open "ROOT/taobin_project/xml/page_drinkfail2.xml"
EndIf

131
xml_main/main.xml Normal file
View file

@ -0,0 +1,131 @@
<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 = ""
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
If NetworkStatus = "DOWN" Then
; Open "/ROOT/xml/outservice.xml"
EndIf
If NetworkStatus = "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>

179
xml_main/outservice.xml Normal file
View file

@ -0,0 +1,179 @@
<BeginX>28</BeginX>
<BeginY>255</BeginY>
<OverrideBackground> "ROOT/ui/bg_main_menu2.png"</OverrideBackground>
<Page>
<Width> 1024 </Width>
<Height> 600 </Height>
<Background> "/ROOT/pictures/outservice.bmp" </Background>
<Timeout> 1000 </Timeout>
<EventOpen>
TopView "hide"
Var AdvPlanB = 1
Var PlanBSummary = "/ROOT/pictures/planb_adv_summary_01.bmp"
Var PlanBWorking = "/ROOT/pictures/planb_adv_working_01.bmp"
Var AdvWorking = "/ROOT/pictures/adv_working_01.bmp"
Var MobilePromotion = 0
Var MobilePromotion1 = 0
Var Condomtest = ""
Var SaveCal = ""
Var ShutdownNow = ""
Var TimeNetDown = 0
Var Timeout = 0
Var CdRandom1 = ""
Var CdRandom2 = ""
Var CdRandom3 = ""
Var CdRandom4 = ""
Var CdRandom5 = ""
Var CdRandom6 = ""
Open "/ROOT/xml/main.xml"
</EventOpen>
<EventTimeout>
If BatteryStatus = "LOW" Then
If PowerStatus = "BATTERY" Then
Shutdown
EndIf
EndIf
Var TimeNetDown = TimeNetDown + 1
If TimeNetDown >= 600 Then
Shutdown
Else
TimerReset
Refresh
EndIf
</EventTimeout>
<EventNetActive>
Open "/ROOT/xml/main.xml"
</EventNetActive>
<EventNetDeactive>
Open "/ROOT/xml/main.xml"
</EventNetDeactive>
<EventSecurity>
Open "/ROOT/xml/security_alarm.xml"
</EventSecurity>
<Text>
<X> 20 </X>
<Y> 20 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xF0F0F0 </Color>
<Transparent> 0 </Transparent>
<Value> "ระดับสัญญาณ :" </Value>
</Text>
<Text>
<X> 180 </X>
<Y> 20 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xF0F0F0 </Color>
<Transparent> 0 </Transparent>
<Value> SignalStrength </Value>
</Text>
<Text>
<X> 20 </X>
<Y> 47 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xF0F0F0 </Color>
<Transparent> 0 </Transparent>
<Value> "Cell Site :" </Value>
</Text>
<Text>
<X> 140 </X>
<Y> 47 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xF0F0F0 </Color>
<Transparent> 0 </Transparent>
<Value> CellSite </Value>
</Text>
<Text>
<X> 20 </X>
<Y> 80 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xF0F0F0 </Color>
<Transparent> 0 </Transparent>
<Value> "ID :" </Value>
</Text>
<Text>
<X> 75 </X>
<Y> 80 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xF0F0F0 </Color>
<Transparent> 0 </Transparent>
<Value> BoxID </Value>
</Text>
<Text>
<X> 20 </X>
<Y> 550 </Y>
<Size> 20 </Size>
<Font> fontType1 </Font>
<Color> 0xF0F0F0 </Color>
<Transparent> 0 </Transparent>
<Value> GPRSStatus </Value>
</Text>
; image click for maintenance
<Image>
<X> 680 </X>
<Y> 0 </Y>
<Width> 120 </Width>
<Height> 120 </Height>
<Visible> False </Visible>
<EventClick> Open "/ROOT/xml/outservice_pwd.xml" </EventClick>
<EventClickLong> Open "/ROOT/xml/maintain_pwd.xml" </EventClickLong>
</Image>
;; image click I for Cal
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Width> 120 </Width>
;<Height> 120 </Height>
;<Visible> False </Visible>
;<EventClick>
; Var SaveCal = "1"
;</EventClick>
;</Image>
;
;; image click II for Cal
;<Image>
;<X> 900 </X>
;<Y> 480 </Y>
;<Width> 120 </Width>
;<Height> 120 </Height>
;<Visible> False </Visible>
;<EventClick>
; If SaveCal = "1" Then
; Open "/ROOT/xml/maintain_pwd.xml"
; Else
; Var SaveCal = ""
; EndIf
;</EventClick>
;</Image>
; Image Flash for Advertise
<Flash>
<X> 361 </X>
<Y> 65 </Y>
<Width> 214 </Width>
<Height> 300 </Height>
<Filename> "/ROOT/pictures/outservice_00.bmp" </Filename>
<Filename> "/ROOT/pictures/outservice_01.bmp" </Filename>
<Filename> "/ROOT/pictures/outservice_02.bmp" </Filename>
<Filename> "/ROOT/pictures/outservice_03.bmp" </Filename>
<Interval> 500 </Interval>
</Flash>
</Page>

152
xml_main/startup.xml Normal file
View file

@ -0,0 +1,152 @@
<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>
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 AdvertiseProfile1 = ""
Var AdvertiseProfile2 = ""
Var AdvertiseProfile3 = ""
Var AdvertiseProfile4 = ""
Var AdvertiseProfile5 = ""
Var AdvertiseProfile6 = ""
Var AdvertiseProfile7 = ""
Var AdvertiseProfile8 = ""
Var AdvertiseProfile9 = ""
Var AdvertiseProfile10 = ""
Var AdvertiseProfile11 = ""
Var AdvertiseProfile12 = ""
Var AdvertiseProfile13 = ""
Var AdvertiseProfile14 = ""
Var AdvertiseProfile15 = ""
Var AdvertiseProfile16 = ""
Var AdvertiseProfile17 = ""
Var AdvertiseProfile18 = ""
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 = "5.50"
</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>