MYS: add support for other types' multiple slots
This commit is contained in:
parent
9b90b9a6f6
commit
ff6cebce52
17 changed files with 4209 additions and 4209 deletions
|
|
@ -134,7 +134,7 @@
|
|||
if '|' in str_cold_product_code and ( "gen_cold_paper_menus" in param or "gcpm" in param) and len(find_templatable_product_codes(str_cold_product_code).split('-')) == 4:
|
||||
auto_var_arrs = find_templatable_product_codes(str_cold_product_code).split('-')
|
||||
# print("auto_var_arrs:PriceD2 \t", auto_var_arrs, "["+str_cold_product_code+"]")
|
||||
auto_var_arrs[2] = "{XSlotPrefix}2"
|
||||
auto_var_arrs[2] = f"{{{auto_var_arrs[0]}{auto_var_arrs[1]}XX{auto_var_arrs[3]}XSlotPrefix[1]}}2"
|
||||
out_xml( f'\t\tVar PriceD2 !assigned @AutoVar ${'-'.join(auto_var_arrs)}.Price' + '\r\n')
|
||||
else:
|
||||
out_xml( '\t\tVar PriceD2 = $' + str_cold_product_code + '.Price\r\n')
|
||||
|
|
@ -147,7 +147,7 @@
|
|||
if '|' in str_cold_product_code and ("gen_cold_paper_menus" in param or "gcpm" in param) and len(find_templatable_product_codes(str_cold_product_code).split('-')) == 4:
|
||||
auto_var_arrs = find_templatable_product_codes(str_cold_product_code).split('-')
|
||||
# print("auto_var_arrs:PriceD2 \t", auto_var_arrs, "["+str_cold_product_code+"]")
|
||||
auto_var_arrs[2] = "{XSlotPrefix}2"
|
||||
auto_var_arrs[2] = f"{{{auto_var_arrs[0]}{auto_var_arrs[1]}XX{auto_var_arrs[3]}XSlotPrefix[1]}}2"
|
||||
out_xml( f'\t\tVar PD_CODE2 !assigned @AutoVar "{'-'.join(auto_var_arrs)}"' + '\r\n')
|
||||
else:
|
||||
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
|
||||
|
|
@ -186,7 +186,7 @@
|
|||
if '|' in str_cold_product_code and ("gen_cold_paper_menus" in param or "gcpm" in param) and len(find_templatable_product_codes(str_cold_product_code).split('-')) == 4:
|
||||
|
||||
auto_var_arrs = find_templatable_product_codes(str_cold_product_code).split('-')
|
||||
auto_var_arrs[2] = "{XSlotPrefix}2"
|
||||
auto_var_arrs[2] = f"{{{auto_var_arrs[0]}{auto_var_arrs[1]}XX{auto_var_arrs[3]}XSlotPrefix[1]}}2"
|
||||
out_xml( f'\t\tVar PD_STAGE_2 !assigned @AutoVar ${'-'.join(auto_var_arrs)}.Button' + '\r\n')
|
||||
else:
|
||||
out_xml( '\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\r\n')
|
||||
|
|
@ -227,7 +227,7 @@
|
|||
for cpo in cold_paper_options:
|
||||
if cpo == "-":
|
||||
continue
|
||||
out_xml( f'\t\t\tIf XSlot = {slot_t} Then\r\n')
|
||||
out_xml( f'\t\t\tIf XSlot[1] = {slot_t} Then\r\n')
|
||||
out_xml( '\t\t\t\tTopping "Load" "'+ cpo +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf'+'\r\n')
|
||||
slot_t += 1
|
||||
|
|
@ -403,7 +403,7 @@
|
|||
|
||||
if '|' in str_cold_product_code and ice_tab_ice_show and ("gen_cold_paper_menus" in param or "gcpm" in param) and len(find_templatable_product_codes(str_cold_product_code).split('-')) == 4:
|
||||
auto_var_arrs = find_templatable_product_codes(str_cold_product_code).split('-')
|
||||
auto_var_arrs[2] = "{XSlotPrefix}2"
|
||||
auto_var_arrs[2] = f"{{{auto_var_arrs[0]}{auto_var_arrs[1]}XX{auto_var_arrs[3]}XSlotPrefix[1]}}2"
|
||||
shw = f"@AutoVar ${'-'.join(auto_var_arrs)}.Button"
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
|
|
@ -433,7 +433,7 @@
|
|||
else:
|
||||
if '|' in str_cold_product_code and ("gen_cold_paper_menus" in param or "gcpm" in param) and len(find_templatable_product_codes(str_cold_product_code).split('-')) == 4:
|
||||
auto_var_arrs = find_templatable_product_codes(str_cold_product_code).split('-')
|
||||
auto_var_arrs[2] = "{XSlotPrefix}2"
|
||||
auto_var_arrs[2] = f"{{{auto_var_arrs[0]}{auto_var_arrs[1]}XX{auto_var_arrs[3]}XSlotPrefix[1]}}2"
|
||||
out_xml( '\t<Value> @AutoVar StringFmt( $' + '-'.join(auto_var_arrs) + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + str_cold_product_code + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
|
|
@ -519,7 +519,7 @@
|
|||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
|
||||
if '|' in str_cold_product_code and ("gen_cold_paper_menus" in param or "gcpm" in param) and len(find_templatable_product_codes(str_cold_product_code).split('-')) == 4:
|
||||
auto_var_arrs = find_templatable_product_codes(str_cold_product_code).split('-')
|
||||
auto_var_arrs[2] = "{XSlotPrefix}2"
|
||||
auto_var_arrs[2] = f"{{{auto_var_arrs[0]}{auto_var_arrs[1]}XX{auto_var_arrs[3]}XSlotPrefix[1]}}2"
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + '-'.join(auto_var_arrs) + '.TAG tag2_is_disable\r\n')
|
||||
else:
|
||||
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
|
||||
|
|
@ -802,7 +802,7 @@
|
|||
out_xml('<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
|
||||
out_xml('<Volume> SoundVolume </Volume>\r\n')
|
||||
out_xml('<EventClick> \r\n')
|
||||
out_xml('\tOpen "ROOT/taobin_project/xml/page_payment_multi.xml"\r\n')
|
||||
out_xml('\tOpen "ROOT/taobin_project/xml/page_payment_multiXml"\r\n')
|
||||
out_xml('</EventClick>\r\n')
|
||||
out_xml('</Button>\r\n')
|
||||
# if "v2" in param:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue