if current_file_name == "page_catalog_group_recommend.skt": touch_less_gen = True else: touch_less_gen = False out_xml(' \r\n') if touch_less_gen == True: out_xml(' 16 \r\n') out_xml(' 10 \r\n') out_xml(' 497 \r\n') out_xml(' 1080 \r\n') out_xml(' "auto" \r\n') out_xml(' "Vertical" \r\n') out_xml(' 4 \r\n') out_xml('\r\n') pd_code_available = '##-##-##-####' count = 0 count_test = 0 if touch_less_gen == True: out_xml( '\r\n') out_xml('\t 33 \r\n') out_xml('\t 22 \r\n') out_xml('\t 225 \r\n') out_xml('\t 296 \r\n') out_xml('\t "Enable" \r\n') out_xml('\t\r\n') out_xml('\t 0 \r\n') out_xml('\t 0 \r\n') out_xml('\t TouchLessStg \r\n') out_xml('\t Var( DirImage + "/touch_less_order.png" )\r\n') out_xml('\t Var( DirImage + "/touch_less_order_db.png" )\r\n') out_xml('\t\r\n') out_xml('\t\r\n') out_xml('\t 40 \r\n') out_xml('\t 153 \r\n') out_xml('\t 150 \r\n') out_xml('\t "0xeae6e1" \r\n') out_xml('\t "0x513C2F" \r\n') out_xml('\t 150 \r\n') #out_xml('\t TouchLessQrStg \r\n') #out_xml('\t "Herr" \r\n') out_xml('\t TouchLessQrStg \r\n') out_xml('\t testservice \r\n') out_xml('\t\r\n') out_xml('\r\n') out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n') for spl in menu_new_list: #product_code = s if spl[0] == "IGNORE": continue out_xml( '\t; ==================> Len = ' + str(len(spl)) + '\r\n') menu_img = spl[7] out_xml( '\t; '+ spl[4] + ' ' + spl[5] + ' ' + spl[6]+ ' \r\n') out_xml( '\r\n') out_xml('\t 33 \r\n') out_xml('\t 22 \r\n') out_xml('\t 225 \r\n') out_xml('\t 296 \r\n') str_con = "" str_con_var = "" if spl[4] != '-': str_con += spl[4] + '.Button,' if spl[5] != '-': str_con += spl[5] + '.Button,' if spl[6] != '-': str_con += spl[6] + '.Button,' if spl[4] != '-': str_con_var += spl[4] + '-' if spl[5] != '-': str_con_var += spl[5] + '-' if spl[6] != '-': str_con_var += spl[6] + '-' str_con_var = str_con_var.replace("-", "") if touch_less_gen == True: str_con += "Disable=Invisible," str_con += "$Sum" + str_con_var out_xml( '\t Flag( '+ str_con + ') \r\n') pd_code_1 = spl[4] pd_stage1 = '$' + spl[4] + '.Button' if spl[4] == "-" or len(spl[4]) == 0 : pd_code_1 = pd_code_available pd_stage1 = '"Disable2"' pd_code_2 = spl[5] pd_stage2 = '$' + spl[5] + '.Button' if spl[5] == "-" or len(spl[5]) == 0: pd_code_2 = pd_code_available pd_stage2 = '"Disable2"' pd_code_3 = spl[6] pd_stage3 = '$' + spl[6] + '.Button' if spl[6] == "-" or len(spl[6]) == 0: pd_code_3 = pd_code_available pd_stage3 = '"Disable2"' out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 164 \r\n') out_xml( '\t 24 \r\n') out_xml( '\t220\r\n') out_xml( '\t "multi2" \r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x322B26 \r\n') out_xml( '\t showthaiText \r\n') out_xml( '\t "' + spl[0].replace("\\n", "\n") + '" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 220 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t showthaiText \r\n') out_xml( '\t "' + spl[2].replace("\\n", "\n") + '" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 164 \r\n') out_xml( '\t 22 \r\n') out_xml( '\t220\r\n') out_xml( '\t "multi2" \r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x322B26 \r\n') out_xml( '\t showengText \r\n') out_xml( '\t "' + spl[1].replace("\\n", "\n") + '" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 220 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t showengText \r\n') out_xml( '\t "' + spl[3].replace("\\n", "\n") + '" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t Var( DirImage2 + "option_deactive.png" ) \r\n') out_xml( '\t\r\n') ice_tab_hot_show = True shw = "$" + spl[4] + ".Button" if spl[4] == "-" : shw = '"Invisible"' ice_tab_hot_show = False if len(spl[4]) == 0 : shw = '"Invisible"' ice_tab_hot_show = False out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t ' + shw + ' \r\n') out_xml( '\t Var( DirImage2 + "hot.png" ) \r\n') out_xml( '\t Var( DirImage2 + "hot_db.png" ) \r\n') out_xml( '\t\r\n') if "inter" in param: out_xml( '\t\r\n') out_xml( '\t 50 \r\n') out_xml( '\t TextPriceMenuY \r\n') out_xml( '\t TextPriceMenuSize \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') else: out_xml( '\t\r\n') out_xml( '\t 50 \r\n') out_xml( '\t 265 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') #out_xml( '\t Var( "฿" + $' + spl[4] + '.Price ) \r\n') if "inter" in param: if "free" in param: out_xml( '\t "Free" \r\n') else: out_xml( '\t StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[4] + '.Price ) \r\n') out_xml( '\t\r\n') ice_tab_ice_show = True shw = "$" + spl[5] + ".Button" if spl[5] == "-" : shw = '"Invisible"' ice_tab_ice_show = False if len(spl[5]) == 0 : shw = '"Invisible"' ice_tab_ice_show = False out_xml( '\t\r\n') out_xml( '\t 81 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t Var( DirImage2 + "cold.png" ) \r\n') out_xml( '\t Var( DirImage2 + "cold_db.png" ) \r\n') out_xml( '\t ' + shw + ' \r\n') out_xml( '\t\r\n') if "inter" in param: out_xml( '\t\r\n') out_xml( '\t 115 \r\n') out_xml( '\t TextPriceMenuY \r\n') out_xml( '\t TextPriceMenuSize \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') else: out_xml( '\t\r\n') out_xml( '\t 115 \r\n') out_xml( '\t 265 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: if "free" in param: out_xml( '\t "Free" \r\n') else: out_xml( '\t StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[5] + '.Price ) \r\n') out_xml( '\t\r\n') ice_tab_blend_show = True shw = "$" + spl[6] + ".Button" if spl[6] == "-" : shw = '"Invisible"' ice_tab_blend_show = False if len(spl[6]) == 0 : shw = '"Invisible"' ice_tab_blend_show = False out_xml( '\t\r\n') out_xml( '\t 146 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t Var( DirImage2 + "blend.png" ) \r\n') out_xml( '\t Var( DirImage2 + "blend_db.png" ) \r\n') out_xml( '\t ' + shw + ' \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') if "inter" in param: out_xml( '\t 180 \r\n') out_xml( '\t TextPriceMenuY \r\n') out_xml( '\t TextPriceMenuSize \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitRegularTTF \r\n') #out_xml( '\t end \r\n') else: out_xml( '\t 183 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: if "free" in param: out_xml( '\t "Free" \r\n') else: out_xml( '\t StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[6] + '.Price ) \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 81 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t \r\n') out_xml( '\t\teval( \r\n') out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n') out_xml( '\t\t\r\n') if ice_tab_hot_show == True: #out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n') out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n') out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n') out_xml( '\t\t\tElse\r\n') out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n') out_xml( '\t\t\tEndIf\r\n') else: out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n') out_xml( '\t\t\r\n') out_xml( '\t\tElse\r\n') out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n') out_xml( '\t\tEndIf\r\n') out_xml( '\t\tVar return = ice_tab_process_show\r\n') out_xml( '\t\t)\r\n') out_xml( '\t\r\n') out_xml( '\t "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" \r\n') out_xml( '\t "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 49 \r\n') out_xml( '\t 117 \r\n') out_xml( '\t \r\n') out_xml( '\t\teval( \r\n') out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n') out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n') out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n') out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n') #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n') #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n') #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n') out_xml( '\t\t\t\tVar return = "Invisible"\r\n') out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n') out_xml( '\t\t\t\t\tVar return = "Enable"\r\n') out_xml( '\t\t\t\tEndIf\r\n') out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n') out_xml( '\t\t\t\t\tVar return = "Enable"\r\n') out_xml( '\t\t\t\tEndIf\r\n') out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n') out_xml( '\t\t\t\t\tVar return = "Enable"\r\n') out_xml( '\t\t\t\tEndIf\r\n') out_xml( '\t\t\tElse\r\n') out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n') out_xml( '\t\t\tEndIf\r\n') out_xml( '\t\t)\r\n') if param == "old": out_xml( '\t\r\n') out_xml( '\t "ROOT/taobin_project/image//img_menu_err.png" \r\n') out_xml( '\t\r\n') else: out_xml( '\t\r\n') out_xml( '\t "ROOT/taobin_project/image//img_menu_err2.png" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 84 \r\n') out_xml( '\t 266 \r\n') out_xml( '\t 10 \r\n') out_xml( '\t OpunMediumTTF \r\n') out_xml( '\t 0xDE794E \r\n') out_xml( '\t ice_tab_process_show \r\n') out_xml( '\t ice_show_open \r\n') out_xml( '\t\r\n') if param == "old": print(";param=" + param) else: out_xml( '\t\r\n') out_xml( '\t 48 \r\n') out_xml( '\t 116 \r\n') out_xml( '\t 32 \r\n') out_xml( '\t128\r\n') out_xml( '\t64\r\n') out_xml( '\t MITRegularTTF \r\n') out_xml( '\t 0x5A5A5A \r\n') out_xml( '\t "disable-show" \r\n') out_xml( '\t $Sum' + str_con_var +' \r\n') out_xml( '\t text_unavailable \r\n') out_xml( '\t center-vertical-horizontal \r\n') out_xml( '\t\r\n') out_xml( '\r\n') ############################################################################### out_xml( '\t; '+ spl[8] + ' ' + spl[9] + ' ' + spl[10]+ ' \r\n') if spl[8] != '-' or spl[9] != '-' or spl[10] != '-': menu_img = spl[7] out_xml( '\r\n') out_xml('\t 33 \r\n') out_xml('\t 22 \r\n') out_xml('\t 225 \r\n') out_xml('\t 296 \r\n') str_con = "" str_con_var = "" if spl[8] != '-': str_con += spl[8] + '.Button,' if spl[9] != '-': str_con += spl[9] + '.Button,' if spl[6] != '-': str_con += spl[10] + '.Button,' if spl[8] != '-': str_con_var += spl[8] + '-' if spl[9] != '-': str_con_var += spl[9] + '-' if spl[10] != '-': str_con_var += spl[10] + '-' str_con_var = str_con_var.replace("-", "") if touch_less_gen == True: str_con += "Disable=Invisible," str_con += "$Sum" + str_con_var out_xml( '\t Flag( '+ str_con + ') \r\n') pd_code_1 = spl[8] pd_stage1 = '$' + spl[8] + '.Button' if spl[8] == "-" or len(spl[8]) == 0 : pd_code_1 = pd_code_available pd_stage1 = '"Disable2"' pd_code_2 = spl[9] pd_stage2 = '$' + spl[9] + '.Button' if spl[9] == "-" or len(spl[9]) == 0: pd_code_2 = pd_code_available pd_stage2 = '"Disable2"' pd_code_3 = spl[10] pd_stage3 = '$' + spl[10] + '.Button' if spl[10] == "-" or len(spl[10]) == 0: pd_code_3 = pd_code_available pd_stage3 = '"Disable2"' out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 164 \r\n') out_xml( '\t 24 \r\n') out_xml( '\t220\r\n') out_xml( '\t "multi2" \r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x322B26 \r\n') out_xml( '\t showthaiText \r\n') out_xml( '\t "' + spl[0].replace("\\n", "\n") + '" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 220 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t showthaiText \r\n') out_xml( '\t "' + spl[2].replace("\\n", "\n") + '" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 164 \r\n') out_xml( '\t 22 \r\n') out_xml( '\t220\r\n') out_xml( '\t "multi2" \r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x322B26 \r\n') out_xml( '\t showengText \r\n') out_xml( '\t "' + spl[1].replace("\\n", "\n") + '" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 220 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t showengText \r\n') out_xml( '\t "' + spl[3].replace("\\n", "\n") + '" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t Var( DirImage2 + "option_deactive.png" ) \r\n') out_xml( '\t\r\n') ice_tab_hot_show = True shw = "$" + spl[8] + ".Button" if spl[4] == "-" : shw = '"Invisible"' ice_tab_hot_show = False if len(spl[8]) == 0 : shw = '"Invisible"' ice_tab_hot_show = False out_xml( '\t\r\n') out_xml( '\t 16 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t ' + shw + ' \r\n') out_xml( '\t Var( DirImage2 + "hot.png" ) \r\n') out_xml( '\t Var( DirImage2 + "hot_db.png" ) \r\n') out_xml( '\t\r\n') if "inter" in param: out_xml( '\t\r\n') out_xml( '\t 50 \r\n') out_xml( '\t TextPriceMenuY \r\n') out_xml( '\t TextPriceMenuSize \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') else: out_xml( '\t\r\n') out_xml( '\t 50 \r\n') out_xml( '\t 265 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: if "free" in param: out_xml( '\t "Free" \r\n') else: out_xml( '\t StringFmt( $' + spl[8] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[8] + '.Price ) \r\n') out_xml( '\t\r\n') ice_tab_ice_show = True shw = "$" + spl[9] + ".Button" if spl[9] == "-" : shw = '"Invisible"' ice_tab_ice_show = False if len(spl[9]) == 0 : shw = '"Invisible"' ice_tab_ice_show = False out_xml( '\t\r\n') out_xml( '\t 81 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t Var( DirImage2 + "cold.png" ) \r\n') out_xml( '\t Var( DirImage2 + "cold_db.png" ) \r\n') out_xml( '\t ' + shw + ' \r\n') out_xml( '\t\r\n') if "inter" in param: out_xml( '\t\r\n') out_xml( '\t 115 \r\n') out_xml( '\t TextPriceMenuY \r\n') out_xml( '\t TextPriceMenuSize \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') else: out_xml( '\t\r\n') out_xml( '\t 115 \r\n') out_xml( '\t 265 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: if "free" in param: out_xml( '\t "Free" \r\n') else: out_xml( '\t StringFmt( $' + spl[9] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[9] + '.Price ) \r\n') out_xml( '\t\r\n') ice_tab_blend_show = True shw = "$" + spl[10] + ".Button" if spl[10] == "-" : shw = '"Invisible"' ice_tab_blend_show = False if len(spl[10]) == 0 : shw = '"Invisible"' ice_tab_blend_show = False out_xml( '\t\r\n') out_xml( '\t 146 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t Var( DirImage2 + "blend.png" ) \r\n') out_xml( '\t Var( DirImage2 + "blend_db.png" ) \r\n') out_xml( '\t ' + shw + ' \r\n') out_xml( '\t\r\n') if "inter" in param: out_xml( '\t\r\n') out_xml( '\t 183 \r\n') out_xml( '\t TextPriceMenuY \r\n') out_xml( '\t TextPriceMenuSize \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') else: out_xml( '\t\r\n') out_xml( '\t 183 \r\n') out_xml( '\t 265 \r\n') out_xml( '\t 14 \r\n') out_xml( '\t220\r\n') out_xml( '\t KanitMediumTTF \r\n') out_xml( '\t 0x6F5F51 \r\n') out_xml( '\t 0xEAE6E1 \r\n') out_xml( '\t ' + shw + ' \r\n') if "inter" in param: if "free" in param: out_xml( '\t "Free" \r\n') else: out_xml( '\t StringFmt( $' + spl[10] + '.Price , DisplayFormat, PreScaleConvertShow) ; test\r\n') else: out_xml( '\t Var( "฿" + $' + spl[10] + '.Price ) \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 81 \r\n') out_xml( '\t 264 \r\n') out_xml( '\t \r\n') out_xml( '\t\teval( \r\n') out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n') out_xml( '\t\t\r\n') if ice_tab_hot_show == True: #out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n') out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n') out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n') out_xml( '\t\t\tElse\r\n') out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n') out_xml( '\t\t\tEndIf\r\n') else: out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n') out_xml( '\t\t\r\n') out_xml( '\t\tElse\r\n') out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n') out_xml( '\t\tEndIf\r\n') out_xml( '\t\tVar return = ice_tab_process_show\r\n') out_xml( '\t\t)\r\n') out_xml( '\t\r\n') out_xml( '\t "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" \r\n') out_xml( '\t "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 49 \r\n') out_xml( '\t 117 \r\n') out_xml( '\t \r\n') out_xml( '\t\teval( \r\n') out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n') out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n') out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n') out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n') #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n') #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n') #out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n') out_xml( '\t\t\t\tVar return = "Invisible"\r\n') out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n') out_xml( '\t\t\t\t\tVar return = "Enable"\r\n') out_xml( '\t\t\t\tEndIf\r\n') out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n') out_xml( '\t\t\t\t\tVar return = "Enable"\r\n') out_xml( '\t\t\t\tEndIf\r\n') out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n') out_xml( '\t\t\t\t\tVar return = "Enable"\r\n') out_xml( '\t\t\t\tEndIf\r\n') out_xml( '\t\t\tElse\r\n') out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n') out_xml( '\t\t\tEndIf\r\n') out_xml( '\t\t)\r\n') if param == "old": out_xml( '\t\r\n') out_xml( '\t "ROOT/taobin_project/image//img_menu_err.png" \r\n') out_xml( '\t\r\n') else: out_xml( '\t\r\n') out_xml( '\t "ROOT/taobin_project/image//img_menu_err2.png" \r\n') out_xml( '\t\r\n') out_xml( '\t\r\n') out_xml( '\t 84 \r\n') out_xml( '\t 266 \r\n') out_xml( '\t 10 \r\n') out_xml( '\t OpunMediumTTF \r\n') out_xml( '\t 0xDE794E \r\n') out_xml( '\t ice_tab_process_show \r\n') out_xml( '\t ice_show_open \r\n') out_xml( '\t\r\n') if param == "old": print("param=" + param) else: out_xml( '\t\r\n') out_xml( '\t 48 \r\n') out_xml( '\t 116 \r\n') out_xml( '\t 32 \r\n') out_xml( '\t128\r\n') out_xml( '\t64\r\n') out_xml( '\t MITRegularTTF \r\n') out_xml( '\t 0x5A5A5A \r\n') out_xml( '\t "disable-show" \r\n') out_xml( '\t $Sum' + str_con_var +' \r\n') out_xml( '\t text_unavailable \r\n') out_xml( '\t center-vertical-horizontal \r\n') out_xml( '\t\r\n') out_xml( '\r\n') count_test = count_test + 1 #if count_test > 8 : # break out_xml('\r\n') out_xml('; Cart\r\n') out_xml('\r\n')