bug修复
This commit is contained in:
parent
6ee4e48246
commit
284ad9842a
|
@ -72,9 +72,11 @@ public class ContractPublicBillPlugin extends AbstractBillPlugIn implements Plug
|
||||||
String priceType = pricetype.toString();
|
String priceType = pricetype.toString();
|
||||||
if(priceType.equals("gddj")){
|
if(priceType.equals("gddj")){
|
||||||
this.getModel().setValue("isonlist", true);
|
this.getModel().setValue("isonlist", true);
|
||||||
|
this.getView().setEnable(false,"isonlist");
|
||||||
((FieldEdit)this.getView().getControl("treeprice")).setMustInput(true);
|
((FieldEdit)this.getView().getControl("treeprice")).setMustInput(true);
|
||||||
}else {
|
}else {
|
||||||
this.getModel().setValue("isonlist", false);
|
this.getModel().setValue("isonlist", false);
|
||||||
|
this.getView().setEnable(true,"isonlist");
|
||||||
((FieldEdit)this.getView().getControl("treeprice")).setMustInput(true);
|
((FieldEdit)this.getView().getControl("treeprice")).setMustInput(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,6 @@ import java.util.*;
|
||||||
public class RenewalContractBillPlugin extends AbstractListPlugin {
|
public class RenewalContractBillPlugin extends AbstractListPlugin {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterCopyData(EventObject e) {
|
public void afterCopyData(EventObject e) {
|
||||||
|
|
||||||
|
@ -43,10 +42,12 @@ public class RenewalContractBillPlugin extends AbstractListPlugin {
|
||||||
// DynamicObject contract = BusinessDataServiceHelper.loadSingle("ec_out_contract", "id,billno,zcgj_renewal", new QFilter[]{new QFilter("billno", QCP.equals, billno)});
|
// DynamicObject contract = BusinessDataServiceHelper.loadSingle("ec_out_contract", "id,billno,zcgj_renewal", new QFilter[]{new QFilter("billno", QCP.equals, billno)});
|
||||||
this.getModel().setValue("zcgj_renewal", contract);//续签主合同
|
this.getModel().setValue("zcgj_renewal", contract);//续签主合同
|
||||||
this.getModel().setValue("zcgj_isrenewal", true);//是否续签
|
this.getModel().setValue("zcgj_isrenewal", true);//是否续签
|
||||||
|
this.getModel().setValue("treelistentry",null);
|
||||||
|
this.getModel().setValue("sublistentry",null);
|
||||||
this.getView().getParentView().getPageCache().remove("srcBillNo");//读取后清理缓存
|
this.getView().getParentView().getPageCache().remove("srcBillNo");//读取后清理缓存
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -43,6 +43,8 @@ public class RenewalOutContractBillPlugin extends AbstractListPlugin {
|
||||||
// DynamicObject contract = BusinessDataServiceHelper.loadSingle("ec_out_contract", "id,billno,zcgj_renewal", new QFilter[]{new QFilter("billno", QCP.equals, billno)});
|
// DynamicObject contract = BusinessDataServiceHelper.loadSingle("ec_out_contract", "id,billno,zcgj_renewal", new QFilter[]{new QFilter("billno", QCP.equals, billno)});
|
||||||
this.getModel().setValue("zcgj_renewal", contract);//续签主合同
|
this.getModel().setValue("zcgj_renewal", contract);//续签主合同
|
||||||
this.getModel().setValue("zcgj_isrenewal", true);//是否续签
|
this.getModel().setValue("zcgj_isrenewal", true);//是否续签
|
||||||
|
this.getModel().setValue("treelistentry",null);
|
||||||
|
this.getModel().setValue("sublistentry",null);
|
||||||
this.getView().getParentView().getPageCache().remove("srcBillNo");//读取后清理缓存
|
this.getView().getParentView().getPageCache().remove("srcBillNo");//读取后清理缓存
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue