diff --git a/xml/page_board.xml b/xml/page_board.xml index eb68fb5b..e7ceb0ac 100644 --- a/xml/page_board.xml +++ b/xml/page_board.xml @@ -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 @@ SAVELOG NetworkStatus - Open "/mnt/sdcard/coffeevending/xml/main.xml" + ;Open "/mnt/sdcard/coffeevending/xml/main.xml" diff --git a/xml/page_brewing3.xml b/xml/page_brewing3.xml index dc5525d0..55802e96 100644 --- a/xml/page_brewing3.xml +++ b/xml/page_brewing3.xml @@ -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 diff --git a/xml_main/main.xml b/xml_main/main.xml new file mode 100644 index 00000000..41b05480 --- /dev/null +++ b/xml_main/main.xml @@ -0,0 +1,131 @@ +28 +255 + "ROOT/ui/bg_main_menu2.png" + + + 1024 + 600 + 0x000000 + + 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 + + + Open "/ROOT/xml/security_alarm.xml" + + + \ No newline at end of file diff --git a/xml_main/outservice.xml b/xml_main/outservice.xml new file mode 100644 index 00000000..6965d074 --- /dev/null +++ b/xml_main/outservice.xml @@ -0,0 +1,179 @@ +28 +255 + "ROOT/ui/bg_main_menu2.png" + + + 1024 + 600 + "/ROOT/pictures/outservice.bmp" + 1000 + + + 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" + + + If BatteryStatus = "LOW" Then + If PowerStatus = "BATTERY" Then + Shutdown + EndIf + EndIf + Var TimeNetDown = TimeNetDown + 1 + If TimeNetDown >= 600 Then + Shutdown + Else + TimerReset + Refresh + EndIf + + + Open "/ROOT/xml/main.xml" + + + Open "/ROOT/xml/main.xml" + + + Open "/ROOT/xml/security_alarm.xml" + + + + 20 + 20 + 20 + fontType1 + 0xF0F0F0 + 0 + "ระดับสัญญาณ :" + + + + 180 + 20 + 20 + fontType1 + 0xF0F0F0 + 0 + SignalStrength + + + + 20 + 47 + 20 + fontType1 + 0xF0F0F0 + 0 + "Cell Site :" + + + + 140 + 47 + 20 + fontType1 + 0xF0F0F0 + 0 + CellSite + + + + 20 + 80 + 20 + fontType1 + 0xF0F0F0 + 0 + "ID :" + + + + 75 + 80 + 20 + fontType1 + 0xF0F0F0 + 0 + BoxID + + + + 20 + 550 + 20 + fontType1 + 0xF0F0F0 + 0 + GPRSStatus + + +; image click for maintenance + + 680 + 0 + 120 + 120 + False + Open "/ROOT/xml/outservice_pwd.xml" + Open "/ROOT/xml/maintain_pwd.xml" + + +;; image click I for Cal +; +; 0 +; 0 +; 120 +; 120 +; False +; +; Var SaveCal = "1" +; +; +; +;; image click II for Cal +; +; 900 +; 480 +; 120 +; 120 +; False +; +; If SaveCal = "1" Then +; Open "/ROOT/xml/maintain_pwd.xml" +; Else +; Var SaveCal = "" +; EndIf +; +; + +; Image Flash for Advertise + + 361 + 65 + 214 + 300 + "/ROOT/pictures/outservice_00.bmp" + "/ROOT/pictures/outservice_01.bmp" + "/ROOT/pictures/outservice_02.bmp" + "/ROOT/pictures/outservice_03.bmp" + 500 + + + \ No newline at end of file diff --git a/xml_main/startup.xml b/xml_main/startup.xml new file mode 100644 index 00000000..890c785e --- /dev/null +++ b/xml_main/startup.xml @@ -0,0 +1,152 @@ +28 +255 + "ROOT/ui/bg_main_menu2.png" + + + 1024 + 600 + "/ROOT/pictures/startup.bmp" + 3000 + + Open "/ROOT/xml/main.xml" + + + 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" + + + + + 644 + 350 + 20 + fontType1 + 0xEA068A + 0 + "Engine" + + + + 724 + 350 + 20 + fontType1 + 0xEA068A + 0 + SoftwareVersion + + + + 628 + 380 + 20 + fontType1 + 0xEA068A + 0 + "Software version" + + + + 802 + 380 + 20 + fontType1 + 0xEA068A + 0 + XMLPageVersion + + + + False + 430 + 50 + 20 + fontType1 + True + 0xFFFF00 + 0x0000A0 + "/ROOT/text/runner.txt" + + +