diff --git a/xml/event/tricker.ev b/xml/event/tricker.ev index af2164af..b2bfab89 100644 --- a/xml/event/tricker.ev +++ b/xml/event/tricker.ev @@ -353,12 +353,4 @@ If BoxID = 176757 Then Var SaveOrderNameAndPictureEnable = 1 EndIf -; Check POS machine flag -Var ConnectWithPOSMachine = 0 - -READ_FILE "/mnt/sdcard/coffeevending/app_manager/app_list/king_power_service/enable" POSMachineFlag -If POSMachineFlag = 1 Then - Var ConnectWithPOSMachine = 1 -EndIf - DEBUGVAR SystemDateDayOfWeek \ No newline at end of file diff --git a/xml/page_board.xml b/xml/page_board.xml index 8222c810..01a9f234 100644 --- a/xml/page_board.xml +++ b/xml/page_board.xml @@ -516,6 +516,15 @@ DEBUGVAR LangProcess + ; Check POS machine flag + Var ConnectWithPOSMachine = 0 + If CountryName = "Thailand" Then + READ_FILE "/mnt/sdcard/coffeevending/app_manager/app_list/king_power_service/enable" POSMachineFlag + DEBUGVAR POSMachineFlag + If POSMachineFlag = 1 Then + Var ConnectWithPOSMachine = 1 + EndIf + EndIf If SELLONLINE = 1 Then @@ -531,6 +540,10 @@ If NetworkStatus = "DOWN" Then Machine NetworkDown EndIf + + If ConnectWithPOSMachine = 1 Then + Open "ROOT/taobin_project/xml/page_network_down_pos_machine.xml" + EndIf EndIf DEBUGVAR ButtontoTopupMenu diff --git a/xml/page_network_down_pos_machine.xml b/xml/page_network_down_pos_machine.xml new file mode 100644 index 00000000..6ad65e16 --- /dev/null +++ b/xml/page_network_down_pos_machine.xml @@ -0,0 +1,117 @@ + + 0 + 608 + "Enable" + 1080 + 1312 + "0xEAE6E1" + + + OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_list.xml" + + Var DirImage = "ROOT/taobin_project/image/vending_error" + Var title_text = "เครือข่ายขัดข้อง ขออภัยในความไม่สะดวก" + If show_eng = "true" Then + Var DirImage = "ROOT/taobin_project/image/vending_error_en" + Var title_text = "Network Error: Sorry for the Inconvenience" + EndIf + + Var Timeout = 0 + + + 1000 + + If Timeout > 30 Then + + If SELLSTATUS = "SELLONLINE" Then + Var SELLONLINE = 1 + Else + If SELLSTATUS = "SELLNOCASH" Then + Var SELLONLINE = 1 + EndIf + EndIf + + If SELLONLINE = 1 Then + Open "ROOT/taobin_project/xml/page_board.xml" + EndIf + + Var Timeout = 0 + EndIf + + Var Timeout = Timeout + 1 + + + + + + + 0 + 694 + 1080 + 45 + KanitBoldTTF + 0x513C2F + center-vertical-horizontal + title_text + + + + + + 0 + 1685 + Var(DirImage + "/text2.png") + + + + 0 + 840 + "ROOT/taobin_project/image/vending_error/img1.png" + + + \ No newline at end of file