fix:
1.订舱通知单信保回填回填时将年度赋值至客户信保额度申请
This commit is contained in:
parent
5549ab1bd6
commit
b6f7bed50d
@ -1,18 +1,19 @@
|
||||
package com.yem.wm.es.storagetrans.form;
|
||||
|
||||
import com.yem.wm.utils.DynamicObjectUtil;
|
||||
import com.yem.wm.utils.YEM;
|
||||
import kd.bos.bill.AbstractBillPlugIn;
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||
import kd.bos.dataentity.metadata.IDataEntityProperty;
|
||||
import kd.bos.entity.datamodel.IDataModel;
|
||||
import kd.bos.entity.datamodel.events.ChangeData;
|
||||
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||
import kd.bos.entity.operate.result.OperationResult;
|
||||
import kd.bos.form.IFormView;
|
||||
import kd.bos.form.events.AfterDoOperationEventArgs;
|
||||
import kd.bos.form.events.BeforeDoOperationEventArgs;
|
||||
import kd.bos.form.operate.FormOperate;
|
||||
import kd.bos.orm.query.QCP;
|
||||
import kd.bos.orm.query.QFilter;
|
||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
@ -58,8 +59,26 @@ public class StorageTransEdit_xbs extends AbstractBillPlugIn {
|
||||
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_creditdetail");
|
||||
for (DynamicObject dynamicObject : collection) {
|
||||
Date yemYearE = dynamicObject.getDate("yem_year_e");
|
||||
if (yemYearE!=null) {
|
||||
if (yemYearE != null) {
|
||||
long id = dynamicObject.getLong("id");
|
||||
dynamicObject.set("yem_creditstatus_e", "A");
|
||||
String billno = dataEntity.getString("billno");
|
||||
String selectfield = DynamicObjectUtil.getSelectfields("yem_im_csrcreditline", false);
|
||||
String selectfields = DynamicObjectUtil.getEntrySelectfields(selectfield, "yem_im_csrcreditline", "yem_im_info", false);
|
||||
DynamicObject yemImCsrcreditline = BusinessDataServiceHelper.loadSingle("yem_im_csrcreditline", selectfields
|
||||
, new QFilter[]{new QFilter("yem_im_info.yem_storagetransno", QCP.equals, billno)});
|
||||
if (yemImCsrcreditline != null) {
|
||||
DynamicObjectCollection yemImInfo = yemImCsrcreditline.getDynamicObjectCollection("yem_im_info");
|
||||
if (YEM.isNotEmpty(yemImInfo)) {
|
||||
for (DynamicObject dynamicObjects : yemImInfo) {
|
||||
Long yemStoragetransno = dynamicObjects.getLong("yem_storagetranentryid");
|
||||
if (yemStoragetransno.equals(id)) {
|
||||
dynamicObjects.set("yem_year_e", yemYearE);
|
||||
}
|
||||
}
|
||||
}
|
||||
SaveServiceHelper.update(yemImCsrcreditline);
|
||||
}
|
||||
}
|
||||
}
|
||||
SaveServiceHelper.update(dataEntity);
|
||||
@ -76,4 +95,5 @@ public class StorageTransEdit_xbs extends AbstractBillPlugIn {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user