付款申请单关联维修申请单和采购申请单
This commit is contained in:
parent
8bc8da8cf1
commit
2e452c2ccf
|
@ -71,6 +71,55 @@ public class PaymentapplyGeneralPlugin extends AbstractBillPlugIn implements Plu
|
||||||
if(entryentity != null){
|
if(entryentity != null){
|
||||||
entryentity.get(rowIndex).set("zcgj_expenseitem", null);
|
entryentity.get(rowIndex).set("zcgj_expenseitem", null);
|
||||||
this.getView().updateView("zcgj_expenseitem",rowIndex);
|
this.getView().updateView("zcgj_expenseitem",rowIndex);
|
||||||
|
boolean isshowwxsq = false;
|
||||||
|
boolean isshowcgsq = false;
|
||||||
|
for (DynamicObject dynamicObject : entryentity) {
|
||||||
|
DynamicObject contract = dynamicObject.getDynamicObject("contract");
|
||||||
|
String paymenttype = dynamicObject.getString("paymenttype");
|
||||||
|
if(contract!=null){
|
||||||
|
DynamicObject contracttype = contract.getDynamicObject("contracttype");
|
||||||
|
System.out.println();
|
||||||
|
if("PREPAYMENT".equals(paymenttype)){
|
||||||
|
if("sbwbl".equals(contracttype.getString("number"))){//设备维保 sbwbl
|
||||||
|
isshowwxsq = true;
|
||||||
|
}else if("ZCHLX02".equals(contracttype.getString("number"))){//物资采购 ZCHLX02
|
||||||
|
isshowcgsq = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.getModel().setValue("zcgj_isshowwxsq",isshowwxsq);
|
||||||
|
this.getView().updateView("zcgj_isshowwxsq");
|
||||||
|
|
||||||
|
this.getModel().setValue("zcgj_isshowcgsq",isshowcgsq);
|
||||||
|
this.getView().updateView("zcgj_isshowcgsq");
|
||||||
|
}
|
||||||
|
}else if(name.equals("contract")){
|
||||||
|
DynamicObjectCollection entryentity = this.getModel().getDataEntity(true).getDynamicObjectCollection("entryentity");
|
||||||
|
if (entryentity != null) {
|
||||||
|
boolean isshowwxsq = false;
|
||||||
|
boolean isshowcgsq = false;
|
||||||
|
for (DynamicObject dynamicObject : entryentity) {
|
||||||
|
DynamicObject contract = dynamicObject.getDynamicObject("contract");
|
||||||
|
String paymenttype = dynamicObject.getString("paymenttype");
|
||||||
|
if(contract!=null){
|
||||||
|
DynamicObject contracttype = contract.getDynamicObject("contracttype");
|
||||||
|
System.out.println();
|
||||||
|
if("PREPAYMENT".equals(paymenttype)){
|
||||||
|
if("sbwbl".equals(contracttype.getString("number"))){//设备维保 sbwbl
|
||||||
|
isshowwxsq = true;
|
||||||
|
}else if("ZCHLX02".equals(contracttype.getString("number"))){//物资采购 ZCHLX02
|
||||||
|
isshowcgsq = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.getModel().setValue("zcgj_isshowwxsq",isshowwxsq);
|
||||||
|
this.getView().updateView("zcgj_isshowwxsq");
|
||||||
|
|
||||||
|
this.getModel().setValue("zcgj_isshowcgsq",isshowcgsq);
|
||||||
|
this.getView().updateView("zcgj_isshowcgsq");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue