收付款申请单通用插件优化
This commit is contained in:
parent
eda4addf1c
commit
7dc92a5a2e
|
|
@ -45,6 +45,9 @@ public class ContractSelectProjectPlugin extends AbstractBillPlugIn implements P
|
|||
String name = e.getProperty().getName();
|
||||
if (name.equals("zcgj_hqrec")) {
|
||||
//总部代收
|
||||
String dataEntityTypeName = this.getModel().getDataEntity().getDataEntityType().getName();
|
||||
if (dataEntityTypeName.equals("ec_incomeapply")) {
|
||||
//收款申请进行下面逻辑
|
||||
ChangeData changeData = e.getChangeSet()[0];
|
||||
Object newValue = changeData.getNewValue();
|
||||
if (newValue != null && newValue.equals("20")) {
|
||||
|
|
@ -66,8 +69,12 @@ public class ContractSelectProjectPlugin extends AbstractBillPlugIn implements P
|
|||
} else {
|
||||
this.getModel().setValue("zcgj_hqorg", null);//总部代收组织
|
||||
}
|
||||
}
|
||||
} else if (name.equals("fiaccountorg")) {
|
||||
//财务记账组织
|
||||
String dataEntityTypeName = this.getModel().getDataEntity().getDataEntityType().getName();
|
||||
if (dataEntityTypeName.equals("ec_incomeapply")) {
|
||||
//收款申请进行下面逻辑
|
||||
ChangeData changeData = e.getChangeSet()[0];
|
||||
Object newValue = changeData.getNewValue();
|
||||
if (newValue != null) {
|
||||
|
|
@ -91,4 +98,5 @@ public class ContractSelectProjectPlugin extends AbstractBillPlugIn implements P
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue