提交人:刘森澳
日期:2025/5/08 11:05 内容:1、债券发行计划过滤占用额度过滤范围修改; 2、债券发行分录,银行借款合同分录数据多选逻辑修复;
This commit is contained in:
parent
8e8b9dd8b4
commit
a95ad33359
|
@ -100,12 +100,12 @@ public class LoancontractF7Plugin extends AbstractBillPlugIn implements Plugin,
|
|||
return;
|
||||
}
|
||||
//结束日期
|
||||
Date enddate = (Date)this.getModel().getValue("enddate");
|
||||
if(enddate == null){
|
||||
this.getView().showTipNotification("请先选择结束日期。");
|
||||
evt.setCancel(true);
|
||||
return;
|
||||
}
|
||||
// Date enddate = (Date)this.getModel().getValue("enddate");
|
||||
// if(enddate == null){
|
||||
// this.getView().showTipNotification("请先选择结束日期。");
|
||||
// evt.setCancel(true);
|
||||
// return;
|
||||
// }
|
||||
//发行人
|
||||
DynamicObject org = (DynamicObject)this.getModel().getValue("org");
|
||||
if(org == null){
|
||||
|
@ -124,7 +124,8 @@ public class LoancontractF7Plugin extends AbstractBillPlugIn implements Plugin,
|
|||
dataFilter.add(accountQFilter2);
|
||||
|
||||
//发行日期与结束日期要在注册额度的生效日期和失效日期之间
|
||||
QFilter accountQFilter3 = new QFilter("expirydate", QCP.large_equals,enddate).and(new QFilter("effectdate", QCP.less_equals,startdate));
|
||||
//FIXME:逻辑修改,只需要发行日期在注册额度的生效日期和失效日期之间
|
||||
QFilter accountQFilter3 = new QFilter("expirydate", QCP.large_equals,startdate).and(new QFilter("effectdate", QCP.less_equals,startdate));
|
||||
dataFilter.add(accountQFilter3);
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package shkd.sys.sys.plugin.tmc;
|
|||
|
||||
import kd.bos.bill.AbstractBillPlugIn;
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
|
@ -16,29 +17,61 @@ public class inputBondEntryDataPlugin extends AbstractBillPlugIn implements Plug
|
|||
String name = e.getProperty().getName();
|
||||
int rowIndex = e.getChangeSet()[0].getRowIndex();
|
||||
if("shkd_entrybillno".equals(name)) {
|
||||
DynamicObject shkdEntrybillno = (DynamicObject) this.getView().getModel().getValue("shkd_entrybillno");
|
||||
DynamicObject cfm_loanbill_bond = BusinessDataServiceHelper.loadSingle(shkdEntrybillno.get("id"), "cfm_loanbill_bond");
|
||||
//债券发行人
|
||||
this.getModel().setValue("shkd_entryorg", cfm_loanbill_bond.get("org"),rowIndex);
|
||||
//发行总额
|
||||
this.getModel().setValue("shkd_entrytotalmount", cfm_loanbill_bond.get("amount"),rowIndex);
|
||||
//发行金额
|
||||
this.getModel().setValue("shkd_entryamount", cfm_loanbill_bond.get("drawamount"),rowIndex);
|
||||
//发行日期
|
||||
this.getModel().setValue("shkd_entrystartdate", cfm_loanbill_bond.get("bizdate"),rowIndex);
|
||||
//到期日期
|
||||
this.getModel().setValue("shkd_entryexpiredate", cfm_loanbill_bond.get("expiredate"),rowIndex);
|
||||
|
||||
//FIXME:修改值改变方案,当前方案不支持多选展示
|
||||
// DynamicObject shkdEntrybillno = (DynamicObject) this.getView().getModel().getValue("shkd_entrybillno");
|
||||
// DynamicObject cfm_loanbill_bond = BusinessDataServiceHelper.loadSingle(shkdEntrybillno.get("id"), "cfm_loanbill_bond");
|
||||
// //债券发行人
|
||||
// this.getModel().setValue("shkd_entryorg", cfm_loanbill_bond.get("org"),rowIndex);
|
||||
// //发行总额
|
||||
// this.getModel().setValue("shkd_entrytotalmount", cfm_loanbill_bond.get("amount"),rowIndex);
|
||||
// //发行金额
|
||||
// this.getModel().setValue("shkd_entryamount", cfm_loanbill_bond.get("drawamount"),rowIndex);
|
||||
// //发行日期
|
||||
// this.getModel().setValue("shkd_entrystartdate", cfm_loanbill_bond.get("bizdate"),rowIndex);
|
||||
// //到期日期
|
||||
// this.getModel().setValue("shkd_entryexpiredate", cfm_loanbill_bond.get("expiredate"),rowIndex);
|
||||
DynamicObjectCollection bondissueEntry = (DynamicObjectCollection)this.getView().getModel().getValue("shkd_bondissue_entry");
|
||||
for (int i = 0; i < bondissueEntry.size(); i++) {
|
||||
//获取每一行的数据,反写到每一行
|
||||
DynamicObject temp = bondissueEntry.get(i);
|
||||
DynamicObject cfm_loanbill_bond = BusinessDataServiceHelper.loadSingle(temp.get("id"), "cfm_loanbill_bond");
|
||||
//债券发行人
|
||||
this.getModel().setValue("shkd_entryorg", cfm_loanbill_bond.get("org"),i);
|
||||
//发行总额
|
||||
this.getModel().setValue("shkd_entrytotalmount", cfm_loanbill_bond.get("amount"),i);
|
||||
//发行金额
|
||||
this.getModel().setValue("shkd_entryamount", cfm_loanbill_bond.get("drawamount"),i);
|
||||
//发行日期
|
||||
this.getModel().setValue("shkd_entrystartdate", cfm_loanbill_bond.get("bizdate"),i);
|
||||
//到期日期
|
||||
this.getModel().setValue("shkd_entryexpiredate", cfm_loanbill_bond.get("expiredate"),i);
|
||||
}
|
||||
}
|
||||
if("shkd_entrycontractnum".equals(name)) {
|
||||
DynamicObject shkd_entrycontractnum = (DynamicObject) this.getView().getModel().getValue("shkd_entrycontractnum");
|
||||
DynamicObject cfm_loancontractbill = BusinessDataServiceHelper.loadSingle(shkd_entrycontractnum.get("id"), "cfm_loancontractbill");
|
||||
//借款金额
|
||||
this.getModel().setValue("shkd_borrowamount", cfm_loancontractbill.get("amount"),rowIndex);
|
||||
//合同开始日期
|
||||
this.getModel().setValue("shkd_contractstartdate", cfm_loancontractbill.get("startdate"),rowIndex);
|
||||
//合同结束日期
|
||||
this.getModel().setValue("shkd_contractenddate", cfm_loancontractbill.get("enddate"),rowIndex);
|
||||
//FIXME:修改值改变方案,当前方案不支持多选展示
|
||||
// DynamicObject shkd_entrycontractnum = (DynamicObject) this.getView().getModel().getValue("shkd_entrycontractnum");
|
||||
// DynamicObject cfm_loancontractbill = BusinessDataServiceHelper.loadSingle(shkd_entrycontractnum.get("id"), "cfm_loancontractbill");
|
||||
// //借款金额
|
||||
// this.getModel().setValue("shkd_borrowamount", cfm_loancontractbill.get("amount"),rowIndex);
|
||||
// //合同开始日期
|
||||
// this.getModel().setValue("shkd_contractstartdate", cfm_loancontractbill.get("startdate"),rowIndex);
|
||||
// //合同结束日期
|
||||
// this.getModel().setValue("shkd_contractenddate", cfm_loancontractbill.get("enddate"),rowIndex);
|
||||
|
||||
DynamicObjectCollection shkdBankcontractEntry = (DynamicObjectCollection)this.getView().getModel().getValue("shkd_bankcontract_entry");
|
||||
for (int i = 0; i < shkdBankcontractEntry.size(); i++) {
|
||||
//获取每一行的数据,反写到每一行
|
||||
DynamicObject temp = shkdBankcontractEntry.get(i);
|
||||
DynamicObject cfm_loancontractbill = BusinessDataServiceHelper.loadSingle(temp.get("id"), "cfm_loancontractbill");
|
||||
//借款人
|
||||
this.getModel().setValue("shkd_enryborrower", cfm_loancontractbill.get("org"),i);
|
||||
//借款金额
|
||||
this.getModel().setValue("shkd_borrowamount", cfm_loancontractbill.get("amount"),i);
|
||||
//合同开始日期
|
||||
this.getModel().setValue("shkd_contractstartdate", cfm_loancontractbill.get("startdate"),i);
|
||||
//合同结束日期
|
||||
this.getModel().setValue("shkd_contractenddate", cfm_loancontractbill.get("enddate"),i);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue