This commit is contained in:
kong 2023-04-30 22:18:47 +07:00
parent d24f316a28
commit 585bef4d26
38 changed files with 18316 additions and 8 deletions

BIN
image/bn_back_to_school.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sound_thai/boy/payment.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sound_thai/boy/thankyou.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sound_thai/girl/payment.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,94 @@
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bn_back_to_school_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bn_back_to_school.png"
EndIf
)
</Filename>
<FilenamePress>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bp_back_to_school_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bp_back_to_school.png"
EndIf
)
</FilenameDisable>
<EventOnClick>
Var NameDrink = "OREO SMOOTHIE VOLCANO"
Var NameDrinkTH = "โอริโอ้ปั่นภูเขาไฟ"
Var DrinkDescriptionTH = "นม น้ำตาล โอริโอ้ "
Var DrinkDescription = "Milk, Sugar, Oreo"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_smoothie_oreo.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-03-03-0009.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0009"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0009.Button
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
Topping "Load" "12-03-03-0009"
Var menu_name_eng_hot = $##-##-##-####.NameE
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
Var menu_name_thai_hot = $##-##-##-####.Name
Var menu_desc_thai_hot = $##-##-##-####.description
Var menu_name_eng_cold = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-0009.NameE
Var menu_desc_eng_blender = $12-03-03-0009.descriptionE
Var menu_name_thai_blender = $12-03-03-0009.Name
Var menu_desc_thai_blender = $12-03-03-0009.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Var BackToSchoolForFreeEnable = 1
Open "ROOT/taobin_project/xml/page_topping_select6.xml"
</EventOnClick>
</Button>
<EventUnitTest1>
Var BigButtonEnable = "Enable"
Refresh
</EventUnitTest1>
<EventUnitTest2>
Var BigButtonEnable = "Invisible"
Refresh
</EventUnitTest2>

View file

@ -0,0 +1,95 @@
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bn_oreo_buy2_save_move.png"
EndIf
)
</Filename>
<FilenamePress>
eval(
If show_eng = "true" Then
Var return = "ROOT/taobin_project/image/event/bp_oreo_buy2_save_move_en.png"
Else
Var return = "ROOT/taobin_project/image/event/bp_oreo_buy2_save_move.png"
EndIf
)
</FilenameDisable>
<EventOnClick>
Var NameDrink = "OREO SMOOTHIE VOLCANO"
Var NameDrinkTH = "โอริโอ้ปั่นภูเขาไฟ"
Var DrinkDescriptionTH = "นม น้ำตาล โอริโอ้ "
Var DrinkDescription = "Milk, Sugar, Oreo"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_save_buy2_oreo_volcano.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = 0
Var PriceD2 = 0
Var PriceD3 = 70
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0009"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0009.Button
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
Topping "Load" "12-03-03-0009"
Var menu_name_eng_hot = $##-##-##-####.NameE
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
Var menu_name_thai_hot = $##-##-##-####.Name
Var menu_desc_thai_hot = $##-##-##-####.description
Var menu_name_eng_cold = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-0009.NameE
Var menu_desc_eng_blender = $12-03-03-0009.descriptionE
Var menu_name_thai_blender = $12-03-03-0009.Name
Var menu_desc_thai_blender = $12-03-03-0009.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Var PromotionIDOreoBuyTwoSaveMore = 1
Open "ROOT/taobin_project/xml/page_topping_select6.xml"
</EventOnClick>
</Button>
<EventUnitTest1>
Var BigButtonEnable = "Enable"
Refresh
</EventUnitTest1>
<EventUnitTest2>
Var BigButtonEnable = "Invisible"
Refresh
</EventUnitTest2>

View file

@ -0,0 +1,66 @@
print( "dir= " + directory_to_process + "/page_catalog_group_recommend.xml");
file_xml = open(directory_to_process + "/page_catalog_group_recommend.xml", 'r')
file_content_main = file_xml.read()
#print(file_xml.read())
# ; include-file=dummy_layout.inc
file_inc = open(directory_to_process + "/dummy_layout.inc", 'r')
file_inc_content = file_inc.read()
file_inc2 = open(directory_to_process + "/big_logo.inc", 'r')
file_inc2_content = file_inc2.read()
#print( file_inc_content)
content_data_was_repack = file_content_main.replace(";dummy_layout.inc", file_inc_content)
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
begin_text = content_data.index(";TAGESP")
end_text = content_data.index(";TAGESP", begin_text + 7)
print("sub text = " + str(begin_text) + " end = " + str(end_text))
tmp1 = content_data[: begin_text - 7]
tmp2 = content_data[ end_text:-1]
print("tmp1=" + tmp1)
print("tmp2=" + tmp2)
content_data = tmp1 + tmp2
file_xml.close()
file_inc2 = open(directory_to_process + "/event/big_logo_back_to_school.inc", 'r')
file_inc2_content = file_inc2.read()
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
begin_text = content_data.index(";TAGESP")
end_text = content_data.index(";TAGESP", begin_text + 7)
print("sub text = " + str(begin_text) + " end = " + str(end_text))
tmp1 = content_data[: begin_text - 7]
tmp2 = content_data[ end_text:-1]
print("tmp1=" + tmp1)
print("tmp2=" + tmp2)
content_data = tmp1 + tmp2
file_xml3 = open(directory_to_process + "/event/page_recommend_backToSchool.xml", 'w')
file_xml3.write( content_data)
file_xml3.close()
#############################################
file_inc2 = open(directory_to_process + "/event/big_logo_oreo_buy2_save_movel.inc", 'r')
file_inc2_content = file_inc2.read()
content_data = content_data_was_repack.replace(";BigLogoLayout", file_inc2_content)
begin_text = content_data.index(";TAGESP")
end_text = content_data.index(";TAGESP", begin_text + 7)
print("sub text = " + str(begin_text) + " end = " + str(end_text))
tmp1 = content_data[: begin_text - 7]
tmp2 = content_data[ end_text:-1]
print("tmp1=" + tmp1)
print("tmp2=" + tmp2)
content_data = tmp1 + tmp2
file_xml3 = open(directory_to_process + "/event/page_recommend_oreo_buy2_save_more.xml", 'w')
file_xml3.write( content_data)
file_xml3.close()

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,8 @@
; zone promote
If SongkranEnable = 1 Then
Open "ROOT/taobin_project/xml/page_catalog_group_recommend3.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf

View file

@ -1,8 +1,12 @@
Var PromotionIDOreoBuyTwoSaveMore = 0
Var BackToSchoolForFreeEnable = 0
;DEBUGVAR SystemDateMonthInt
;DEBUGVAR SystemDateDayInt
Var OreoForFreeEnable = 0
Var OreoDueEnable = 0
If SystemDateMonthInt = 5 Then
If SystemDateDayInt = 6 Then
@ -37,6 +41,14 @@ If SystemDateMonthInt = 5 Then
EndIf
If SystemDateMonthInt = 5 Then
If SystemDateDayInt > 7 Then
If SystemDateDayInt < 13 Then
Var OreoForFreeEnable = 1
EndIf
EndIf
EndIf
DEBUGVAR OreoDueEnable
If OreoDueEnable = 0 Then
Var $12-03-03-0009-alter.Button = "Invisible"

View file

@ -716,7 +716,7 @@
Var SongkranEnable = 0
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/backToSchool.ev"
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
If BoxID = 200001 Then
Var OreoDueEnable = 0

View file

@ -204,7 +204,7 @@
EndIf
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/backToSchool.ev"
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
Var Price5Active = 0

View file

@ -249,10 +249,18 @@
EndIf
EndIf
; Oreo free
If PromotionIDOreoBuyTwoSaveMore = 1 Then
Var PromotionIDOreoBuyTwoSaveMore = 0
Var PromotionIDCurrentOrder = 2
EndIf
If PromotionIDCurrentOrder = 2 Then
SAVELOG "Promotion: Oreo Get 1 Free 1"
EndIf
DEBUGVAR PromotionIDCurrentOrder
</EventOpen>
<Timeout> 900 </Timeout>
<EventTimeout>

View file

@ -310,6 +310,10 @@
DEBUGVAR Price5Active
DEBUGVAR EnableLiveness
If BackToSchoolForFreeEnable = 1 Then
EndIf
If EnableLiveness = "true" Then
If CameraCount = 1 Then
; echo -n true > /mnt/sdcard/enable_discount_price5
@ -322,10 +326,6 @@
EndIf
EndIf
If Price5Active = 1 Then
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>