refactor(autocode): 优化代码生成逻辑

- 移除了不必要的注释代码
main
熊朝柱 2 months ago
parent ff323821be
commit 02d5394b04

@ -662,7 +662,6 @@ public class NewCodeItemDialog extends Dialog {
System.out.println("当前创建的UI组件Label名称="+currentPropName); System.out.println("当前创建的UI组件Label名称="+currentPropName);
if(currentPropName != null && currentPropName.equals("文档类别") && leftMostCodeRuleNameString != null && !leftMostCodeRuleNameString.equals("")){ if(currentPropName != null && currentPropName.equals("文档类别") && leftMostCodeRuleNameString != null && !leftMostCodeRuleNameString.equals("")){
System.out.println("“文档类别”匹配成功!属性值设置为最左侧选中编码名称="+leftMostCodeRuleNameString); System.out.println("“文档类别”匹配成功!属性值设置为最左侧选中编码名称="+leftMostCodeRuleNameString);
// widget.setText(leftMostCodeRuleNameString);
isDocType = true; isDocType = true;
} }
@ -721,7 +720,7 @@ public class NewCodeItemDialog extends Dialog {
} else if (cnProp.getPropertyType().toUpperCase().equals("BOOLEAN")) { } else if (cnProp.getPropertyType().toUpperCase().equals("BOOLEAN")) {
final Combo comb = CreateCompositeUtil.createNotFillNewCombo(objPropComposite, final Combo comb = CreateCompositeUtil.createNotFillNewCombo(objPropComposite,
new String[] { "true", "false" }); // new new String[] { "true", "false" }); // new
comb.setText(cnProp.getDefaultValue()); // Combo(propTable, // comb.setText(cnProp.getDefaultValue()); // Combo(propTable,
if (isDocType){ if (isDocType){
comb.setText(leftMostCodeRuleNameString); comb.setText(leftMostCodeRuleNameString);
}else { }else {

Loading…
Cancel
Save