付款申请单审核报错修复
This commit is contained in:
parent
08dcb2d4e4
commit
bc497f295c
|
@ -26,7 +26,7 @@ import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||||
import kd.ec.basedata.common.enums.PlanAmtTypeEnum;
|
import kd.ec.basedata.common.enums.PlanAmtTypeEnum;
|
||||||
import kd.ec.contract.opplugin.fund.validator.*;
|
import kd.ec.contract.opplugin.fund.validator.*;
|
||||||
|
|
||||||
//付款申请单二开系统插件:提交,审核,反审核操作注册的系统插件(暂废
|
//付款申请单二开系统插件:提交,审核,反审核操作注册的系统插件
|
||||||
public class PaymentApplyFundOpExt extends AbstractOperationServicePlugIn {
|
public class PaymentApplyFundOpExt extends AbstractOperationServicePlugIn {
|
||||||
public PaymentApplyFundOpExt() {
|
public PaymentApplyFundOpExt() {
|
||||||
}
|
}
|
||||||
|
@ -53,12 +53,12 @@ public class PaymentApplyFundOpExt extends AbstractOperationServicePlugIn {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onAddValidators(AddValidatorsEventArgs e) {
|
public void onAddValidators(AddValidatorsEventArgs e) {
|
||||||
e.getValidators().add(new PaymentTypeValidator());
|
// e.getValidators().add(new PaymentTypeValidator());
|
||||||
e.getValidators().add(new PaymentPlanValidator());
|
// e.getValidators().add(new PaymentPlanValidator());
|
||||||
e.getValidators().add(new PaymentMaxAmountValidator());
|
// e.getValidators().add(new PaymentMaxAmountValidator());
|
||||||
e.getValidators().add(new PaymentProgressValidator());
|
// e.getValidators().add(new PaymentProgressValidator());
|
||||||
e.getValidators().add(new PaymentDeductionValidator());
|
e.getValidators().add(new PaymentDeductionValidator());
|
||||||
e.getValidators().add(new PaymentReferenceValidator());
|
// e.getValidators().add(new PaymentReferenceValidator());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void endOperationTransaction(EndOperationTransactionArgs e) {
|
public void endOperationTransaction(EndOperationTransactionArgs e) {
|
||||||
|
@ -82,6 +82,11 @@ public class PaymentApplyFundOpExt extends AbstractOperationServicePlugIn {
|
||||||
label50:
|
label50:
|
||||||
for(int var5 = 0; var5 < var4; ++var5) {
|
for(int var5 = 0; var5 < var4; ++var5) {
|
||||||
DynamicObject paymentApply = var3[var5];
|
DynamicObject paymentApply = var3[var5];
|
||||||
|
String sourcetype = paymentApply.getString("sourcetype");//付款类型
|
||||||
|
if (StringUtils.equals(sourcetype, "01")) {
|
||||||
|
//非合同付款
|
||||||
|
return;
|
||||||
|
}
|
||||||
DynamicObjectCollection entryCol = paymentApply.getDynamicObjectCollection("entryentity");
|
DynamicObjectCollection entryCol = paymentApply.getDynamicObjectCollection("entryentity");
|
||||||
Iterator var8 = entryCol.iterator();
|
Iterator var8 = entryCol.iterator();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue