NCC參照開發


模板參照設置查詢action

請求:

   http://localhost:3008/nccloud/platform/templet/queryrefinfo.do

處理action:

  nccloud.web.platform.template.action.QueryRefInfoAction

 

查詢參照類型設置接口:

  

  nccloud.pubitf.platform.template.IRoleRef.getRefInfos(String md_class_id );

刷新參照類型設置的緩存:

  RefInfoAccessor.getInstance().refeshCache()

 
 
參照查詢框是否走模糊查詢

// refMeta.setFullTxtTabName("ORG_ORGS_V");

 只需要在重寫的getRefMeta() 方法里面,不要給refMeta賦這個值就可以;
 
 
原理:
nccloud.framework.web.processor.refgrid.NCGridRefDBProcessor.class
列表參照處理器查詢參照pk方法里面:
queryRefPks(){
queryRefPks(){
       ...
      //這里會判斷,走不走模糊查詢的全文搜索
     if (getFulTxtFlg(para)) {
   
     }
       .....
}      


private boolean getFulTxtFlg(RefQueryInfo para) {
		if ((para.getQueryCondition() != null)
				&& (!StringUtils.isEmpty((CharSequence) para.getQueryCondition().get("batchQueryByName")))) {
			return false;
		}
		if ((this.refMeta.getFullTxtTabName() != null) && (this.refMeta.getFullTxtTabName().trim().length() > 0)
				&& (para.getKeyword() != null) && (para.getKeyword().trim().length() > 0)) {
			if ((para instanceof TreeRefQueryInfo)) {
				TreeRefQueryInfo par = (TreeRefQueryInfo) para;
				if ((par.getPid() != null) && (par.getPid().trim().length() > 0)) {
					return false;
				}
			}
			return true;
		}
		return false;
	}  

  


}
 
 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM