parent
							
								
									a0ad471d7c
								
							
						
					
					
						commit
						8c06f8bf0a
					
				| 
						 | 
				
			
			@ -17,6 +17,7 @@ import kd.bos.orm.query.QCP;
 | 
			
		|||
import kd.bos.orm.query.QFilter;
 | 
			
		||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
 | 
			
		||||
import kd.fi.bcm.common.util.CollectionUtil;
 | 
			
		||||
import kd.fi.cal.business.datacheck.ExceptionObj;
 | 
			
		||||
import kd.sdk.plugin.Plugin;
 | 
			
		||||
 | 
			
		||||
import java.util.*;
 | 
			
		||||
| 
						 | 
				
			
			@ -36,9 +37,8 @@ public class LoancontractF7Plugin extends AbstractBillPlugIn implements Plugin,
 | 
			
		|||
        e_underwriter.addBeforeF7SelectListener(this);
 | 
			
		||||
        //监听占用注册额度F7数据选择
 | 
			
		||||
        BasedataEdit shkd_occupybondlimit;
 | 
			
		||||
        try{
 | 
			
		||||
            shkd_occupybondlimit = view.getControl("shkd_occupybondlimit");
 | 
			
		||||
        }catch (Exception ept){
 | 
			
		||||
        shkd_occupybondlimit = view.getControl("shkd_occupybondlimit");
 | 
			
		||||
        if(shkd_occupybondlimit == null){
 | 
			
		||||
            shkd_occupybondlimit = view.getControl("occupybondlimit");
 | 
			
		||||
        }
 | 
			
		||||
        shkd_occupybondlimit.addBeforeF7SelectListener(this);
 | 
			
		||||
| 
						 | 
				
			
			@ -62,11 +62,11 @@ public class LoancontractF7Plugin extends AbstractBillPlugIn implements Plugin,
 | 
			
		|||
                shkd_bondlimit= (DynamicObject)this.getModel().getValue("occupybondlimit");
 | 
			
		||||
            }catch(Exception e){
 | 
			
		||||
                shkd_bondlimit= (DynamicObject)this.getModel().getValue("shkd_occupybondlimit");
 | 
			
		||||
                if(shkd_bondlimit == null){
 | 
			
		||||
                    evt.setCancel(true);
 | 
			
		||||
                    this.getView().showTipNotification("请先选择占用注册额度。");
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            if(shkd_bondlimit == null){
 | 
			
		||||
                evt.setCancel(true);
 | 
			
		||||
                this.getView().showTipNotification("请先选择占用注册额度。");
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            DynamicObject bdim_bond_limit = BusinessDataServiceHelper.loadSingle(shkd_bondlimit.get("id"), "bdim_bond_limit");
 | 
			
		||||
| 
						 | 
				
			
			@ -94,7 +94,12 @@ public class LoancontractF7Plugin extends AbstractBillPlugIn implements Plugin,
 | 
			
		|||
            }
 | 
			
		||||
            Long finproductID = (Long)finproduct.get("id");
 | 
			
		||||
            //发行日期
 | 
			
		||||
            Date startdate = (Date)this.getModel().getValue("startdate");
 | 
			
		||||
            Date startdate;
 | 
			
		||||
            try {
 | 
			
		||||
                startdate = (Date)this.getModel().getValue("startdate");
 | 
			
		||||
            }catch (Exception e){
 | 
			
		||||
                startdate = (Date)this.getModel().getValue("bizdate");
 | 
			
		||||
            }
 | 
			
		||||
            if(startdate == null){
 | 
			
		||||
                this.getView().showTipNotification("请先选择发行日期。");
 | 
			
		||||
                evt.setCancel(true);
 | 
			
		||||
| 
						 | 
				
			
			@ -138,11 +143,11 @@ public class LoancontractF7Plugin extends AbstractBillPlugIn implements Plugin,
 | 
			
		|||
                shkd_bondlimit= (DynamicObject)this.getModel().getValue("occupybondlimit");
 | 
			
		||||
            }catch(Exception e){
 | 
			
		||||
                shkd_bondlimit= (DynamicObject)this.getModel().getValue("shkd_occupybondlimit");
 | 
			
		||||
                if(shkd_bondlimit == null){
 | 
			
		||||
                    evt.setCancel(true);
 | 
			
		||||
                    this.getView().showTipNotification("请先选择占用注册额度。");
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            if(shkd_bondlimit == null){
 | 
			
		||||
                evt.setCancel(true);
 | 
			
		||||
                this.getView().showTipNotification("请先选择占用注册额度。");
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            Long occupybondlimitId = (Long) shkd_bondlimit.getPkValue();
 | 
			
		||||
            //找到注册额度中的招标遴选ID
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue