taobin_project/xml/page_checkin_result.xml

262 lines
No EOL
6.5 KiB
XML

<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
StatusLog "On checkinresult"
</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/vending_tasks_pre_main.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"
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"
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/vending_tasks_pre_main.xml"
</EventClick>
</Button>
</Page>