Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
852b1e8f81
|
@ -9,6 +9,8 @@ import kd.bos.list.BillList;
|
||||||
import kd.bos.list.plugin.AbstractListPlugin;
|
import kd.bos.list.plugin.AbstractListPlugin;
|
||||||
import kd.bos.logging.Log;
|
import kd.bos.logging.Log;
|
||||||
import kd.bos.logging.LogFactory;
|
import kd.bos.logging.LogFactory;
|
||||||
|
import kd.bos.orm.query.QCP;
|
||||||
|
import kd.bos.orm.query.QFilter;
|
||||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||||
import kd.bos.util.CollectionUtils;
|
import kd.bos.util.CollectionUtils;
|
||||||
|
@ -34,24 +36,11 @@ public class AccountbankListPlugin extends AbstractListPlugin {
|
||||||
String itemKey = evt.getItemKey();
|
String itemKey = evt.getItemKey();
|
||||||
if ("shkd_lishiref".equals(itemKey)){
|
if ("shkd_lishiref".equals(itemKey)){
|
||||||
// 获取勾选的单据ID
|
// 获取勾选的单据ID
|
||||||
BillList billList = (BillList)this.getControl("billlistap");
|
DynamicObject[] dynamicObjects = BusinessDataServiceHelper.load("am_accountbank",
|
||||||
ListSelectedRowCollection selectedRows = billList.getSelectedRows();
|
"id,bankaccountnumber,number", new QFilter("number", QCP.not_equals, "").toArray());
|
||||||
List<Long> setIds = new ArrayList<>();
|
|
||||||
if (CollectionUtils.isNotEmpty(selectedRows)) {
|
|
||||||
if (selectedRows.size()>1000){
|
|
||||||
this.getView().showSuccessNotification("选择数据不能超过1000行");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (ListSelectedRow selectedRow : selectedRows) {
|
|
||||||
setIds.add(toLong(selectedRow.getPrimaryKeyValue()));
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
this.getView().showSuccessNotification("请选择数据");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (Long setId : setIds) {
|
for (DynamicObject dynamicObj : dynamicObjects) {
|
||||||
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(setId, "bd_accountbanks");
|
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(dynamicObj.getPkValue(), "bd_accountbanks");
|
||||||
try {
|
try {
|
||||||
String uniformsocialcreditcode = dynamicObject.getString("openorg.uniformsocialcreditcode");//信用代码
|
String uniformsocialcreditcode = dynamicObject.getString("openorg.uniformsocialcreditcode");//信用代码
|
||||||
String finorgtype = dynamicObject.getString("finorgtype");//金融机构类别
|
String finorgtype = dynamicObject.getString("finorgtype");//金融机构类别
|
||||||
|
|
Loading…
Reference in New Issue