Add column for present topping
This commit is contained in:
parent
c663a55c28
commit
f320c5f55f
51 changed files with 5541 additions and 1137 deletions
|
|
@ -41,8 +41,6 @@
|
|||
return ""
|
||||
|
||||
button_add_string = ""
|
||||
print(" current_file_name " + current_file_name + " ")
|
||||
|
||||
|
||||
if "v2" in param:
|
||||
print("Version 1 ignore ")
|
||||
|
|
@ -429,7 +427,7 @@
|
|||
pd_code_3 = pd_code_available
|
||||
pd_stage3 = '"Disable2"'
|
||||
|
||||
print(" pd_code_1 " + pd_code_1 + " pd_code_2 " + pd_code_2 + " pd_code_3 " + pd_code_3)
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Button>\r\n')
|
||||
|
|
@ -554,9 +552,32 @@
|
|||
|
||||
|
||||
|
||||
if len(spl) > 15 and len(spl[15].strip()) != 0:
|
||||
if len(spl) > 15:
|
||||
try:
|
||||
present = int(spl[15].strip())
|
||||
except:
|
||||
present = 0
|
||||
|
||||
out_xml( '\t\tTopping "Load" "' + spl[3 + int(spl[15].strip())].replace("-alter", "") + '"\r\n')
|
||||
if present == 3:
|
||||
out_xml( '\t\tIf PD_STAGE_3 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[6] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[5] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[4] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[9] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[8] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[10] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
|
||||
|
|
@ -1252,18 +1273,41 @@
|
|||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
if len(spl) > 15 and len(spl[15].strip()) != 0:
|
||||
out_xml( '\t\tTopping "Load" "' + spl[7 + int(spl[15].strip())].replace("-alter", "") + '"\r\n')
|
||||
if len(spl) > 15:
|
||||
try:
|
||||
present = int(spl[15].strip())
|
||||
except:
|
||||
present = 0
|
||||
|
||||
if present == 3:
|
||||
out_xml( '\t\tIf PD_STAGE_3 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[10] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[9] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[8] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
else:
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[9] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[8] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[10] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
else:
|
||||
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[9] +'"\r\n')
|
||||
out_xml( '\t\tElse\r\n')
|
||||
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[8] +'"\r\n')
|
||||
out_xml( '\t\t\tElse\r\n')
|
||||
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
|
||||
out_xml( '\t\t\tTopping "Load" "'+ spl[10] +'"\r\n')
|
||||
out_xml( '\t\t\tEndIf\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue