taobin_project/xml/menu_CollectPoint_Page3.xml
2020-09-14 15:09:29 +07:00

265 lines
5.7 KiB
XML

<Page>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Background> "ROOT/image/BG_Menu_Point_Page2.bmp" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
Var Timeout = 0
Var Point1_State = "Disable"
Var Point2_State = "Disable"
Var Point3_State = "Disable"
Var Point4_State = "Disable"
Var Point5_State = "Disable"
Var Point6_State = "Disable"
Var Point7_State = "Disable"
Var Point8_State = "Disable"
Var Point9_State = "Disable"
Var Point10_State = "Disable"
If CoffeePoint >= 1 Then
Var Point1_State = "Enable"
EndIf
If CoffeePoint >= 2 Then
Var Point2_State = "Enable"
EndIf
If CoffeePoint >= 3 Then
Var Point3_State = "Enable"
EndIf
If CoffeePoint >= 4 Then
Var Point4_State = "Enable"
EndIf
If CoffeePoint >= 5 Then
Var Point5_State = "Enable"
EndIf
If CoffeePoint >= 6 Then
Var Point6_State = "Enable"
EndIf
If CoffeePoint >= 7 Then
Var Point7_State = "Enable"
EndIf
If CoffeePoint >= 8 Then
Var Point8_State = "Enable"
EndIf
If CoffeePoint >= 9 Then
Var Point9_State = "Enable"
EndIf
If CoffeePoint >= 10 Then
Var Point10_State = "Enable"
EndIf
Var BmiYear = "0/0/0/1/0/0"
Var PointCrm = "pdpa1"
Var GetScore = ""
AddData 4 TelephoneNumber BmiYear PointCrm GetScore
Var CoffeePointStr = CoffeePoint
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;Open "ROOT/xml/menu_board.xml"
Var Timeout = Timeout + 1
If Timeout > 20 Then
Open "ROOT/xml/menu_page5.xml"
EndIf
TimerReset
Refresh
</EventTimeout>
<Button>
<X> 146 </X>
<Y> 490 </Y>
<State> Point1_State </State>
<Filename> "ROOT/image/BP_POINT1.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT1.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 241 </X>
<Y> 490 </Y>
<State> Point2_State </State>
<Filename> "ROOT/image/BP_POINT2.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT2.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 336 </X>
<Y> 490 </Y>
<State> Point3_State </State>
<Filename> "ROOT/image/BP_POINT3.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT3.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 430 </X>
<Y> 490 </Y>
<State> Point4_State </State>
<Filename> "ROOT/image/BP_POINT4.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT4.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 525 </X>
<Y> 490 </Y>
<State> Point5_State </State>
<Filename> "ROOT/image/BP_POINT5.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT5.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 146 </X>
<Y> 592 </Y>
<State> Point6_State </State>
<Filename> "ROOT/image/BP_POINT6.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT6.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 241 </X>
<Y> 592 </Y>
<State> Point7_State </State>
<Filename> "ROOT/image/BP_POINT7.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT7.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 336 </X>
<Y> 592 </Y>
<State> Point8_State </State>
<Filename> "ROOT/image/BP_POINT8.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT8.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 430 </X>
<Y> 592 </Y>
<State> Point9_State </State>
<Filename> "ROOT/image/BP_POINT9.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT9.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 525 </X>
<Y> 592 </Y>
<State> Point10_State </State>
<Filename> "ROOT/image/BP_POINT10.bmp" </Filename>
<FilenameDisable> "ROOT/image/BD_POINT10.bmp" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 484 </X>
<Y> 813 </Y>
<Filename> "ROOT/image/BP_Close.bmp" </Filename>
<FilenamePress> "ROOT/image/BP_Close.bmp" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Open "ROOT/xml/menu_page5.xml"
</EventClick>
</Button>
<Text>
<X> 310 </X>
<Y> 315 </Y>
<Width> 474 </Width>
<Align> Center </Align>
<Size> 50 </Size>
<Font> fontType1 </Font>
<Color> 0xF0E000 </Color>
<Value> TelephoneNumber </Value>
<Format> Telnum </Format>
</Text>
<Text>
<X> 500 </X>
<Y> 410 </Y>
<Width> 50 </Width>
<Align> Center </Align>
<Size> 35 </Size>
<Font> fontType1 </Font>
<Color> 0x000000 </Color>
<Value> CoffeePointStr </Value>
</Text>
<EventSecurity>
Open "/media/bt/xml/security_alarm.xml"
</EventSecurity>
<EventMachine>
If MachineStage = "drink-success" Then
Var MachineState_Result = 1
EndIf
If MachineStage = "drink-failed" Then
Var MachineState_Result = 1
EndIf
</EventMachine>
</Page>