From 80134d3518d6daaa971a8fa9b93ddfd7c4b048ee Mon Sep 17 00:00:00 2001 From: 16358 <1635849544@qq.com> Date: Mon, 28 Apr 2025 13:42:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=BA=EF=BC=9A=E5=88=98?= =?UTF-8?q?=E6=A3=AE=E6=BE=B3=20=E6=97=A5=E6=9C=9F=EF=BC=9A2025/4/28=2013?= =?UTF-8?q?=EF=BC=9A42=20=E5=86=85=E5=AE=B9=EF=BC=9A1=E3=80=81=E5=80=BA?= =?UTF-8?q?=E5=88=B8=E5=8F=91=E8=A1=8C=E8=AE=A1=E5=88=92=E8=BF=87=E6=BB=A4?= =?UTF-8?q?F7=E9=80=BB=E8=BE=91=E4=BF=AE=E5=A4=8D=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/tmc/inputBondEntryDataPlugin.java | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/tmc/inputBondEntryDataPlugin.java diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/tmc/inputBondEntryDataPlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/tmc/inputBondEntryDataPlugin.java new file mode 100644 index 0000000..9c840a2 --- /dev/null +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/tmc/inputBondEntryDataPlugin.java @@ -0,0 +1,46 @@ +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(); + DynamicObject dataEntity = this.getModel().getDataEntity(true); + if("shkd_entrybillno".equals(name)) { + DynamicObject shkdEntrybillno = (DynamicObject)dataEntity.get("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)dataEntity.get("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); + } + + } +} \ No newline at end of file