taobin_project/xml/checkin.xml

266 lines
No EOL
6.1 KiB
XML

<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
StatusLog "On checkin"
</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"
StatusLog "backtohome"
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>
StatusLog "backtohome"
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> 240 </Y>
<Height> 700 </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"
</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>
SAVELOG strOnCancelLogtext
StatusLog "backtohome"
Open "ROOT/taobin_project/xml/vending_tasks_pre_main.xml"
</EventClick>
</Button>
</Page>