add checkin and test coin bank feature

This commit is contained in:
SEK 2024-08-01 10:21:16 +07:00
parent d58a1e5d00
commit 9197772248
61 changed files with 1880 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

259
xml/checkin.xml Normal file
View file

@ -0,0 +1,259 @@
<Page>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Volume> SoundVolume </Volume>
<Background> "0x2c2928" </Background>
<EventOpen>
DEBUGVAR SystemDate
Var sdate = ""
Var sdate = SystemDate
Var sdateday = ""
Var sdatemonth = ""
Var sdateyear = ""
SPLIT sdate "/" 1 sdateday
SPLIT sdate "/" 2 sdatemonth
SPLIT sdate "/" 3 sdateyear
DEBUGVAR sdateday
DEBUGVAR sdatemonth
DEBUGVAR sdateyear
Var KornCamDisplayX = 285
Var KornCamDisplayY = 250
Var KornCamDisplayW = 500
Var KornCamDisplayH = 680
Var KornCamYHidden = 208
Var KornCameraXOffsetX = 150
Var TimerbacktoHome = 60
Var KornCameraXX = KornCamDisplayX - KornCameraXOffsetX
Var KornCameraXY = KornCamDisplayY
Var KornCameraXW = 800
Var KornCameraXH = 800
Var startCapture = "false"
Var timerCoundown = 10
Var showTimeCounter = "Invisible"
Var showTakePictureBtn = "Enable"
Var showTexttakingPicture = "Invisible"
Var strOnpageLogtext = tmpPassPhrase + " on page checkin"
Var strOnstartLogtext = tmpPassPhrase + " start capture checkin"
Var strOnCancelLogtext = tmpPassPhrase + " cancel capture checkin"
DEBUGVAR SystemTimeHour
DEBUGVAR SystemTimeMinute
DEBUGVAR SystemTimeSecond
Var filepushname = ""
Var filepushname = "" + BoxID
Var filepushname = filepushname + "_"
Var filepushname = filepushname + sdateyear
Var filepushname = filepushname + "_"
Var filepushname = filepushname + sdatemonth
Var filepushname = filepushname + "_"
Var filepushname = filepushname + sdateday
Var filepushname = filepushname + "_"
Var filepushname = filepushname + SystemTimeHour
Var filepushname = filepushname + "_"
Var filepushname = filepushname + SystemTimeMinute
Var filepushname = filepushname + "_"
Var filepushname = filepushname + tmpPassPhrase
Var filepushname = filepushname + ".png"
Var filesavepath = "/mnt/sdcard/" + filepushname
DEBUGVAR tmpPassPhrase
DEBUGVAR filepushname
DEBUGVAR BoxID
SAVELOG strOnpageLogtext
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR startCapture
DEBUGVAR timerCoundown
If startCapture = "true" Then
Var TimerbacktoHome = 60
Var timerCoundown = timerCoundown - 1
EndIf
If timerCoundown = 0 Then
Var showTimeCounter = "Invisible"
Var showTexttakingPicture = "Enable"
CameraCmd "usbfront" "shutter" filesavepath
EndIf
If timerCoundown = -3 Then
Var startCapture = "false"
Var timerCoundown = 10
Open "ROOT/taobin_project/xml/page_checkin_result.xml"
EndIf
Var TimerbacktoHome = TimerbacktoHome - 1
If TimerbacktoHome = 0 Then
SAVELOG "timeout"
SAVELOG "back_to_page_board"
Open "ROOT/taobin_project/xml/page_board.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
; header
<Image>
<X> 0 </X>
<Y> 0 </Y>
<Height> 80 </Height>
<Width> 1080 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/nav-bar-mid.png" </Filename>
</Image>
;back
<Button>
<X> 40 </X>
<Y> 20 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
</EventClick>
</Button>
<Text>
<X> 800 </X>
<Y> 20 </Y>
<Size> 19 </Size>
<Font> fontType1 </Font>
<Color> 0xe2e2e2 </Color>
<Value> Text1_9 </Value>
</Text>
;task
<Image>
<X> 250 </X>
<Y> 150 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/checkinheader.png" </Filename>
</Image>
<CameraX>
<X> KornCameraXX </X>
<Y> KornCameraXY </Y>
<Name>"usbfront"</Name>
<Width> KornCameraXW </Width>
<Height> KornCameraXH </Height>
<State> "Enable" </State>
</CameraX>
<Image>
<X> 280 </X>
<Y> 250 </Y>
<Height> 510 </Height>
<Width> 510 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/personguildline.png" </Filename>
</Image>
<GIF>
<X> 440 </X>
<Y> 450 </Y>
<State> showTexttakingPicture </State>
<Filename> "ROOT/taobin_project/image/page_payment/loading.gif"</Filename>
</GIF>
<Image>
<X> 230 </X>
<Y> 990 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/checkinplasewait.png" </Filename>
<State> showTimeCounter </State>
</Image>
<Image>
<X> 230 </X>
<Y> 990 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/checkinplasewait2.png" </Filename>
<State> showTexttakingPicture </State>
</Image>
<Text>
<X> 690 </X>
<Y> 980 </Y>
<Size> 40 </Size>
<Font> fontType1 </Font>
<Color> 0xe2e2e2 </Color>
<State> showTimeCounter </State>
<Value> timerCoundown </Value>
</Text>
<Button>
<X> 400 </X>
<Y> 980 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/startcapture.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/startcapture.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var TimerbacktoHome = 60
Var startCapture = "true"
Var showTimeCounter = "Enable"
Var showTakePictureBtn = "Invisible"
SAVELOG strOnstartLogtext
StatusLog "start capture checkin"
</EventClick>
<State> showTakePictureBtn </State>
</Button>
<Button>
<X> 50 </X>
<Y> info_cancel_y </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_board.xml"
SAVELOG strOnCancelLogtext
StatusLog "cancel capture checkin"
</EventClick>
</Button>
</Page>

260
xml/page_checkin_result.xml Normal file
View file

@ -0,0 +1,260 @@
<Page>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Volume> SoundVolume </Volume>
<Background> "0x2c2928" </Background>
<EventOpen>
Var KornCamDisplayX = 285
Var KornCamDisplayY = 250
Var KornCamDisplayW = 500
Var KornCamDisplayH = 680
Var KornCamYHidden = 208
Var KornCameraXOffsetX = 150
Var TimerbacktoHome = 60
Var KornCameraXX = KornCamDisplayX - KornCameraXOffsetX
Var KornCameraXY = KornCamDisplayY
Var KornCameraXW = 800
Var KornCameraXH = 800
Var timerCoundown = 3
Var showSendandRetryState = "true"
Var countdownToSend = "false"
Var countdownToHome = "false"
Var showSendandRetry = "Invisible"
DEBUGVAR tmpPassPhrase
Var strOnpageLogtext = tmpPassPhrase + " on page checkin result"
Var strOnsendLogtext = tmpPassPhrase + " send capture checkin"
Var strOnretryLogtext = tmpPassPhrase + " retry capture checkin"
Var statesendButton = "Invisible"
Var stateprocessButton = "Invisible"
Var statesendsuccessButton = "Invisible"
Var statesendHomeButton = "Invisible"
DEBUGVAR strOnpageLogtext
DEBUGVAR strOnsendLogtext
DEBUGVAR strOnretryLogtext
DEBUGVAR filepushname
SAVELOG strOnpageLogtext
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
If showSendandRetryState = "true" Then
Var timerCoundown = timerCoundown - 1
If timerCoundown = 0 Then
Var showSendandRetry = "Enable"
Var statesendButton = "Enable"
Var showSendandRetryState = "false"
Var timerCoundown = 3
EndIf
EndIf
If countdownToSend = "true" Then
Var timerCoundown = timerCoundown - 1
If timerCoundown = 0 Then
Var stateprocessButton = "Invisible"
Var statesendsuccessButton = "Enable"
Var countdownToSend = "false"
Var countdownToHome = "true"
Var timerCoundown = 3
EndIf
EndIf
If countdownToHome = "true" Then
Var timerCoundown = timerCoundown - 1
If timerCoundown = 0 Then
Var statesendsuccessButton = "Invisible"
Var countdownToHome = "false"
Var statesendHomeButton = "false"
Var timerCoundown = 3
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
EndIf
EndIf
Var TimerbacktoHome = TimerbacktoHome - 1
If TimerbacktoHome = 0 Then
SAVELOG "timeout"
SAVELOG "back_to_page_board"
Open "ROOT/taobin_project/xml/page_board.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
; header
<Image>
<X> 0 </X>
<Y> 0 </Y>
<Height> 80 </Height>
<Width> 1080 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/nav-bar-mid.png" </Filename>
</Image>
;back
<Button>
<X> 40 </X>
<Y> 20 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
</EventClick>
</Button>
<Text>
<X> 800 </X>
<Y> 20 </Y>
<Size> 19 </Size>
<Font> fontType1 </Font>
<Color> 0xe2e2e2 </Color>
<Value> Text1_9 </Value>
</Text>
;task
<Image>
<X> 250 </X>
<Y> 150 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/checkinheader.png" </Filename>
</Image>
<Image>
<X> KornCameraXX </X>
<Y> KornCameraXY </Y>
<Height> 800 </Height>
<Width> 800 </Width>
<State> "Enable" </State>
<Filename> filesavepath </Filename>
</Image>
<Button>
<X> 200 </X>
<Y> 1110 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/sendcheckin.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/sendcheckin.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<State> statesendButton </State>
<EventClick>
PushFile "/sdcard/" "RootManPicture" filepushname
SAVELOG strOnsendLogtext
StatusLog "send capture checkin"
Var statesendButton = "Invisible"
Var stateprocessButton = "Enable"
Var countdownToSend = "true"
Var TimerbacktoHome = 60
</EventClick>
</Button>
<Button>
<X> 200 </X>
<Y> 1110 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/sendpicturecheckinprocess.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/sendpicturecheckinprocess.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<State> stateprocessButton </State>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 200 </X>
<Y> 1110 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/sendpicturecheckinsuccess.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/sendpicturecheckinsuccess.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<State> statesendsuccessButton </State>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 200 </X>
<Y> 1110 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/sendpicturecheckinbackhome.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/sendpicturecheckinbackhome.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<State> statesendHomeButton </State>
<EventClick>
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
</EventClick>
</Button>
<Button>
<X> 600 </X>
<Y> 1110 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/retrycheckin.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/retrycheckin.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<State> showSendandRetry </State>
<EventClick>
SAVELOG strOnretryLogtext
StatusLog "retry capture checkin"
Open "ROOT/taobin_project/xml/checkin.xml"
</EventClick>
</Button>
<Button>
<X> 50 </X>
<Y> info_cancel_y </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_board.xml"
</EventClick>
</Button>
</Page>

View file

@ -0,0 +1,147 @@
<Page>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Volume> SoundVolume </Volume>
<Background> "0x2c2928" </Background>
<EventOpen>
Coin ON
; Var TestCoinLine1 = "กรุณาใส่เงิน . . ."
Var TestCoinLine1 = "insert money . . ."
; Var TestCoinLine2 = "จำนวนเงินทั้งหมด 0 บาท"
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
Var TestCoinLine2 = "total amount "
Var TestCoinLine2 = TestCoinLine2 + RemainAmountStr
Var RemainAmountStr1 = 0
Var LastCoin = 0
Var openTextTest20bath = "Enable"
Var currentStage = "test20bath"
DEBUGVAR currentStage
DEBUGVAR LastCoin
</EventOpen>
<EventCoin>
Var LastCoin = CoinAmount - LastCoin
Var RemainAmountStr1 !assigned StringFmt( LastCoin, DisplayFormat, PreScaleConvertShow )
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
DEBUGVAR currentStage
DEBUGVAR LastCoin
If currentStage = "test20bath" Then
If LastCoin = 20 Then
Open "ROOT/taobin_project/xml/page_test_money_change.xml"
EndIf
EndIf
; Var TestCoinLine1 = "ท่านได้ใส่เงินจำนวน "
Var TestCoinLine1 = "insert money "
Var TestCoinLine1 = TestCoinLine1 + RemainAmountStr1
; Var TestCoinLine1 = TestCoinLine1 + " บาท"
; Var TestCoinLine2 = "จำนวนเงินทั้งหมด "
Var TestCoinLine2 = "total amount "
Var TestCoinLine2 = TestCoinLine2 + RemainAmountStr
; Var TestCoinLine2 = TestCoinLine2 + " บาท"
Var LastCoin = CoinAmount
; Var RemainAmountStr = RemainAmountStr + "###size=90"
Refresh
</EventCoin>
<Timeout> 1000 </Timeout>
<EventTimeout>
Refresh
TimerReset
</EventTimeout>
; header
<Image>
<X> 0 </X>
<Y> 0 </Y>
<Height> 80 </Height>
<Width> 1080 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/nav-bar-mid.png" </Filename>
</Image>
;back
<Button>
<X> 40 </X>
<Y> 20 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
</EventClick>
</Button>
<Text>
<X> 800 </X>
<Y> 20 </Y>
<Size> 19 </Size>
<Font> fontType1 </Font>
<Color> 0xe2e2e2 </Color>
<Value> Text1_9 </Value>
</Text>
;task
<Image>
<X> 280 </X>
<Y> 150 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/test_bank_header_page.png" </Filename>
</Image>
<Image>
<X> 280 </X>
<Y> 220 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/test_bank_20.png" </Filename>
<State> openTextTest20bath </State>
</Image>
<Button>
<X> 50 </X>
<Y> info_cancel_y </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_board.xml"
</EventClick>
</Button>
</Page>

View file

@ -0,0 +1,141 @@
<Page>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Volume> SoundVolume </Volume>
<Background> "0x2c2928" </Background>
<EventOpen>
Coin ON
; Var TestCoinLine1 = "กรุณาใส่เงิน . . ."
Var TestCoinLine1 = "insert money . . ."
; Var TestCoinLine2 = "จำนวนเงินทั้งหมด 0 บาท"
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
Var TestCoinLine2 = "total amount "
Var TestCoinLine2 = TestCoinLine2 + RemainAmountStr
Var RemainAmountStr1 = 0
Var LastCoin = 0
Var openTextTest20bath = "Enable"
Var currentStage = "test20bath"
</EventOpen>
<EventCoin>
Var LastCoin = CoinAmount - LastCoin
Var RemainAmountStr1 !assigned StringFmt( LastCoin, DisplayFormat, PreScaleConvertShow )
Var RemainAmountStr !assigned StringFmt( CoinAmount, DisplayFormat, PreScaleConvertShow )
If currentStage = "test20bath" Then
If LastCoin = 20 Then
Open "ROOT/taobin_project/xml/page_test_money_change.xml"
EndIf
EndIf
; Var TestCoinLine1 = "ท่านได้ใส่เงินจำนวน "
Var TestCoinLine1 = "insert money "
Var TestCoinLine1 = TestCoinLine1 + RemainAmountStr1
; Var TestCoinLine1 = TestCoinLine1 + " บาท"
; Var TestCoinLine2 = "จำนวนเงินทั้งหมด "
Var TestCoinLine2 = "total amount "
Var TestCoinLine2 = TestCoinLine2 + RemainAmountStr
; Var TestCoinLine2 = TestCoinLine2 + " บาท"
Var LastCoin = CoinAmount
; Var RemainAmountStr = RemainAmountStr + "###size=90"
Refresh
</EventCoin>
<Timeout> 1000 </Timeout>
<EventTimeout>
Refresh
TimerReset
</EventTimeout>
; header
<Image>
<X> 0 </X>
<Y> 0 </Y>
<Height> 80 </Height>
<Width> 1080 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/nav-bar-mid.png" </Filename>
</Image>
;back
<Button>
<X> 40 </X>
<Y> 20 </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
</EventClick>
</Button>
<Text>
<X> 800 </X>
<Y> 20 </Y>
<Size> 19 </Size>
<Font> fontType1 </Font>
<Color> 0xe2e2e2 </Color>
<Value> Text1_9 </Value>
</Text>
;task
<Image>
<X> 280 </X>
<Y> 150 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/test_change_header_page.png" </Filename>
</Image>
<Image>
<X> 280 </X>
<Y> 220 </Y>
<Height> 40 </Height>
<Width> 560 </Width>
<Volume> SoundVolume </Volume>
<Filename> "ROOT/taobin_project/image/new_vending_info/test_change_10.png" </Filename>
<State> openTextTest20bath </State>
</Image>
<Button>
<X> 50 </X>
<Y> info_cancel_y </Y>
<Filename> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/taobin_project/xml/page_board.xml"
</EventClick>
</Button>
</Page>

1041
xml/page_test_money_coin.xml Normal file

File diff suppressed because it is too large Load diff

View file

@ -166,6 +166,7 @@
Var ClickOn = ""
Var PermissionLevel = ""
Var tmpPassPhrase = ""
</EventOpen>
@ -871,6 +872,8 @@
; CallCMDFromXML
__CMD "check-password" PassPhrase "-" "-"
Var tmpPassPhrase = PassPhrase
Var PassPhrase = ""
</EventClick>

View file

@ -97,7 +97,7 @@
<FrameScroll>
<Max> 4 </Max>
<Max> 6 </Max>
<X> 280 </X>
<Y> 200 </Y>
<Width> 600 </Width>
@ -165,8 +165,36 @@
</EventOnClick>
</Button>
</Block>
<Block>
<MarginLeft> 0 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 560 </Width>
<Height> 80 </Height>
<State> EnableTestSystem </State>
<Button>
<Filename> "ROOT/taobin_project/image/new_vending_info/checkin.png" </Filename>
<EventOnClick>
Open "ROOT/taobin_project/xml/checkin.xml"
</EventOnClick>
</Button>
</Block>
<Block>
<MarginLeft> 0 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 560 </Width>
<Height> 80 </Height>
<State> EnableTestSystem </State>
<Button>
<Filename> "ROOT/taobin_project/image/new_vending_info/testmoney.png" </Filename>
<EventOnClick>
Open "ROOT/taobin_project/xml/page_test_money_coin.xml"
</EventOnClick>
</Button>
</Block>
</FrameScroll>