/**
* 驗證客戶名稱是否唯一
* * @throws bo***ception
* @throws sqlexception
*/private
void
isuniquename()
throws bo***ception, sqlexception
if(prmtcustomernumber.
getvalue()
!= null)
if(customerbilltype.
getselectedindex()
==0)else}}
else
if(customerbilltype.
getselectedindex()
==1)else}if
(flag)}}
/** * 客戶編碼按照當前組織隔離
*/private
void
setfilterforcustomernumber()
/** * 根據財務組織編碼查詢對應的法人標識值
*/private string findvaluebynumber
(string number)
}catch
(bo***ception e1)
catch
(sqlexception e2)
return
"b";}
view.
setselector
(sic)
;// 查詢列
filterinfo filtercondition =
newfilterinfo()
; filtercondition.
getfilteritems()
.add
(new
filteriteminfo
("id"
, addressinfo.
getid()
.tostring()
, comparetype.equals));
view.
setfilter
(filtercondition)
;// 過濾條件
addresscollection addresscollection;
try}
catch
(bo***ception e3)
/** * 根據記賬分類型別過濾記帳分類
*/private
void
setfiltertoac
(companyorgunitinfo companyorginfo)
} filterinfo.
getfilteritems()
.add
(new
filteriteminfo
("objecttype.id"
,gettypeid(2
), comparetype.equals));
filterinfo.
getfilteritems()
.add
(new
filteriteminfo
("currencycompany.id"
, companyid, comparetype.equals));
filterinfo.
getfilteritems()
.add
(new
filteriteminfo
("accounttableid.id"
, accounttableid, comparetype.equals));
filterinfo.
setmaskstring
("#0 and #1 and #2");
viewinfo.
setfilter
(filterinfo)
; prmtaccountingclassfication.
setdisplayformat
("$name$");
prmtaccountingclassfication.
seteditformat
("$number$");
prmtaccountingclassfication.
setcommitformat
("$number$");
prmtaccountingclassfication.
setqueryinfo()
; prmtaccountingclassfication.
setentityviewinfo
(viewinfo)
; queryagent queryagent = prmtaccountingclassfication.
getqueryagent()
; queryagent.
setentityviewinfo
(viewinfo)
; queryagent.
resetruntimeentityview()
;}
Hive array欄位 查詢過濾
如果乙個hive 表的乙個字段 是array型別,裡面存在多個值,如果要對其中的某個值進行過濾,那麼可以用lateral view 結合udtf user defined table generating functions 來進行過濾 lateral view語法 lateralview late...
C Linq 查詢過濾 where()
參考部落格。要點 where 有兩個原型。把滑鼠點到where,按下f12就可以轉到原型處 1 public static ienumerablewhere this ienumerablesource,funcpredicate 2 public static ienumerablewhere t...
ElasticSearch 常用的查詢過濾語句
query 和 filter 的區別請看 term主要用於精確匹配哪些值,比如數字,日期,布林值或 not analyzed 的字串 未經分析的文字資料型別 完整的例子,hostname 字段完全匹配成 saaap.wangpos.com 的資料 terms 跟 term 有點類似,但 terms ...