Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
陈绍鑫 2025-04-28 15:48:07 +08:00
commit bacd055f8f
2 changed files with 46 additions and 1 deletions

View File

@ -61,7 +61,6 @@ public class BondSelectEntryOrgPlugin extends AbstractBillPlugIn implements Plug
}
QFilter accountQFilter = new QFilter("org.id", QCP.equals, shkdEnryborrower.getPkValue());
dataFilter.add(accountQFilter);
formShowParameter.getListFilterParameter().getQFilters().addAll(dataFilter);
}
if("shkd_entrybillno".equals(name)){
QFilter accountQFilter = new QFilter("org.id", QCP.equals, orgId);
@ -73,5 +72,6 @@ public class BondSelectEntryOrgPlugin extends AbstractBillPlugIn implements Plug
QFilter accountQFilter = new QFilter("id", QCP.in, allSubordinateOrgs);
dataFilter.add(accountQFilter);
}
formShowParameter.getListFilterParameter().getQFilters().addAll(dataFilter);
}
}

View File

@ -0,0 +1,45 @@
package shkd.sys.sys.plugin.tmc;
import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
import kd.bos.form.plugin.AbstractFormPlugin;
import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.sdk.plugin.Plugin;
/**
* 动态表单插件
*/
public class inputBondEntryDataPlugin extends AbstractBillPlugIn implements Plugin {
@Override
public void propertyChanged(PropertyChangedArgs e) {
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);
}
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);
}
}
}