优化代码 資源清單過濾與基於清單控制

This commit is contained in:
xiaoshi 2024-12-24 16:23:48 +08:00
parent 20565cbd5e
commit e08cfdc9b4
2 changed files with 11 additions and 14 deletions

View File

@ -66,18 +66,15 @@ public class ContractPublicBillPlugin extends AbstractBillPlugIn implements Plug
comboEdit.setComboItems(comboList);
}
}else if (name.equals("contracttype")){
// Object contracttype = this.getModel().getValue("contracttype");
// if(contracttype!=null && contracttype!=""){
// DynamicObject contracttypeInfo = (DynamicObject)contracttype;
// String number = contracttypeInfo.getString("number");
// if(number.equals("jjfb")||number.equals("hfzl")||number.equals("jjbc")||number.equals("jjzb")){
// this.getView().setVisible(true,"zcgj_xmtz");
// }else{
// this.getView().setVisible(false,"zcgj_xmtz");
//
// }
// this.getView().updateView("treelistentry");
// }
Object pricetype = this.getModel().getValue("zcgj_pricetype");
if(pricetype!=null && pricetype!=""){
String priceType = pricetype.toString();
if(priceType.equals("gddj")){
this.getModel().setValue("isonlist", true);
}else {
this.getModel().setValue("isonlist", false);
}
}
}
}
}

View File

@ -35,7 +35,8 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
this.setResourceTypeStyle("equipment");
this.afterSelectedTag("equipment");
}else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")|| contractType.toString().equals("ck")||
contractType.toString().equals("zyfbcc")|| contractType.toString().equals("jjbc")) {//产出物
contractType.toString().equals("zyfbcc")|| contractType.toString().equals("jjbc")||
contractType.toString().equals("yslht")|| contractType.toString().equals("qtzclht")) {//产出物
this.setResourceTypeStyle("turnover");
this.afterSelectedTag("turnover");
}else {
@ -44,7 +45,6 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
}
}
}
System.out.println();
}