diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java index 4bbbe1c..7a1c993 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java @@ -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); + } + } } } } \ No newline at end of file diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ResourceFilterExtPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ResourceFilterExtPlugin.java index d50a14b..d7e25db 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ResourceFilterExtPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ResourceFilterExtPlugin.java @@ -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(); }