1.修改贷记单提交后获取上次贷记单号节点
This commit is contained in:
parent
9d395b1f7b
commit
676b128aa6
@ -4,9 +4,12 @@ import com.yem.wm.im.debcrednotenew.validator.DebCredNewAuditValidatorOp;
|
|||||||
import com.yem.wm.utils.DynamicObjectUtil;
|
import com.yem.wm.utils.DynamicObjectUtil;
|
||||||
import kd.bos.dataentity.entity.DynamicObject;
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||||
|
import kd.bos.entity.ExtendedDataEntity;
|
||||||
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
||||||
import kd.bos.entity.plugin.AddValidatorsEventArgs;
|
import kd.bos.entity.plugin.AddValidatorsEventArgs;
|
||||||
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
||||||
|
import kd.bos.entity.plugin.args.BeforeOperationArgs;
|
||||||
|
import kd.bos.entity.plugin.args.BeginOperationTransactionArgs;
|
||||||
import kd.bos.entity.plugin.args.EndOperationTransactionArgs;
|
import kd.bos.entity.plugin.args.EndOperationTransactionArgs;
|
||||||
import kd.bos.orm.query.QCP;
|
import kd.bos.orm.query.QCP;
|
||||||
import kd.bos.orm.query.QFilter;
|
import kd.bos.orm.query.QFilter;
|
||||||
@ -43,6 +46,24 @@ public class DebCredNewSubmitOp extends AbstractOperationServicePlugIn {
|
|||||||
public void endOperationTransaction(EndOperationTransactionArgs e) {
|
public void endOperationTransaction(EndOperationTransactionArgs e) {
|
||||||
DynamicObject[] dataEnties = e.getDataEntities();
|
DynamicObject[] dataEnties = e.getDataEntities();
|
||||||
for (DynamicObject temp : dataEnties) {
|
for (DynamicObject temp : dataEnties) {
|
||||||
|
//2024-10-08 zhouc 修改至提交前计算
|
||||||
|
// getlast(temp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void beforeExecuteOperationTransaction(BeforeOperationArgs e) {
|
||||||
|
super.beforeExecuteOperationTransaction(e);
|
||||||
|
for (ExtendedDataEntity dataEntity : e.getSelectedRows()) {
|
||||||
|
DynamicObject billObj = dataEntity.getDataEntity();
|
||||||
|
getlast(billObj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 计算上次美元金额(实际) 上次人民币金额(实际)
|
||||||
|
* @param temp
|
||||||
|
*/
|
||||||
|
public void getlast(DynamicObject temp){
|
||||||
temp = BusinessDataServiceHelper.loadSingle(temp.getPkValue(), temp.getDynamicObjectType().getName());
|
temp = BusinessDataServiceHelper.loadSingle(temp.getPkValue(), temp.getDynamicObjectType().getName());
|
||||||
//借贷业务类型
|
//借贷业务类型
|
||||||
DynamicObject yem_credittype = temp.getDynamicObject("yem_credittype");
|
DynamicObject yem_credittype = temp.getDynamicObject("yem_credittype");
|
||||||
@ -140,5 +161,4 @@ public class DebCredNewSubmitOp extends AbstractOperationServicePlugIn {
|
|||||||
|
|
||||||
SaveServiceHelper.update(temp);
|
SaveServiceHelper.update(temp);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user