parent
							
								
									14bc3df9c3
								
							
						
					
					
						commit
						e5be42af19
					
				| 
						 | 
				
			
			@ -9,6 +9,8 @@ import kd.bos.list.BillList;
 | 
			
		|||
import kd.bos.list.plugin.AbstractListPlugin;
 | 
			
		||||
import kd.bos.logging.Log;
 | 
			
		||||
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.operation.SaveServiceHelper;
 | 
			
		||||
import kd.bos.util.CollectionUtils;
 | 
			
		||||
| 
						 | 
				
			
			@ -34,24 +36,11 @@ public class AccountbankListPlugin extends AbstractListPlugin {
 | 
			
		|||
        String itemKey = evt.getItemKey();
 | 
			
		||||
        if ("shkd_lishiref".equals(itemKey)){
 | 
			
		||||
            // 获取勾选的单据ID
 | 
			
		||||
            BillList billList = (BillList)this.getControl("billlistap");
 | 
			
		||||
            ListSelectedRowCollection selectedRows = billList.getSelectedRows();
 | 
			
		||||
            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;
 | 
			
		||||
            }
 | 
			
		||||
            DynamicObject[] dynamicObjects = BusinessDataServiceHelper.load("am_accountbank",
 | 
			
		||||
                    "id,bankaccountnumber,number", new QFilter("number", QCP.not_equals, "").toArray());
 | 
			
		||||
 | 
			
		||||
            for (Long setId : setIds) {
 | 
			
		||||
                DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(setId, "bd_accountbanks");
 | 
			
		||||
            for (DynamicObject dynamicObj : dynamicObjects) {
 | 
			
		||||
                DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(dynamicObj.getPkValue(), "bd_accountbanks");
 | 
			
		||||
                try {
 | 
			
		||||
                    String uniformsocialcreditcode = dynamicObject.getString("openorg.uniformsocialcreditcode");//信用代码
 | 
			
		||||
                    String finorgtype = dynamicObject.getString("finorgtype");//金融机构类别
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue