/// <summary> /// 获取部门 /// </summary> /// <returns></returns> protected string getDept() { List <TSysDictVo> objDict = new TSysDictLogic().GetDataDictListByType("dept"); objDict.Insert(0, new TSysDictVo() { DICT_TEXT = "所有", DICT_CODE = "" }); return(ToJson(objDict)); }
/// <summary> /// 获取字典项下拉控件Json数据 /// </summary> /// <returns></returns> protected string GetDictJsonForSearch() { //字典项类型 string strDictType = Request.QueryString["dict_type"]; List <TSysDictVo> listDict = new TSysDictLogic().GetAutoLoadDataListByType(strDictType); //插入全部 listDict.Insert(0, new TSysDictVo() { DICT_TEXT = "全部", DICT_CODE = "" }); return(ToJson(listDict)); }