| | |
| | | private List<dynamic> lstCheckedKeyID = new List<dynamic>();//选择集合 |
| | | string strTitle = ""; |
| | | string strWhere = ""; |
| | | public UcDictionarySelect(string _strTitle, string _strWhere) |
| | | public UcDictionarySelect(string _strTitle, string _strWhere,string _strMsg="") |
| | | { |
| | | InitializeComponent(); |
| | | lbMsg.Text = _strMsg; |
| | | this.strTitle = _strTitle; |
| | | this.strWhere = _strWhere; |
| | | this.Text = _strTitle; |
| | |
| | | /// </summary> |
| | | private void getTree() |
| | | { |
| | | string _where = " and 1=1 and "+this.strWhere; |
| | | var pgq = new PageQueryModel(1, 999999, "a.defect_name","asc","", _where); |
| | | string _where = " and 1=1 and a.type1=1 and " + this.strWhere; |
| | | var pgq = new PageQueryModel(1, 999999, "a.defect_name", "asc", "", _where); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | |
| | | // tlMenu.OptionsBehavior.Editable = true; |
| | | tlMenu.OptionsBehavior.AllowRecursiveNodeChecking = false; |
| | | tlMenu.BestFitColumns(); |
| | | tlMenu.ExpandAll(); |
| | | } |
| | | catch (Exception ex) |
| | | { |