/// <summary> ///根据字段名称获取数据字段值 /// </summary> /// <param name="fileName">字段名称</param> /// <returns>传回前台的json串</returns> public object GetDicList(string fileName) { Base_Dictionary dic = _dicBll.FindBy(op => op.FILENAME == fileName).SingleOrDefault(); IList <Dictionary> list = QueryHelper.GetDicByContent(dic.CONTENT); return(Common.NewtonJsonHelper.Deserialize <object>(Common.NewtonJsonHelper.Serialize(list, null), null)); }
///// <summary> ///// 用户注册 ///// </summary> ///// <param name="position">职位表实体</param> ///// <returns>true:保存成功,false:保存失败</returns> //public bool PostPositionSave(Base_UserInfo base_User) //{ // if (string.IsNullOrEmpty(base_User.OID)) // { // base_User.Name = Tools.SessionHelper.GetSession<Base_UserInfo>(Tools.SessionHelper.SessinoName.CurUser).OID; // base_User.VDATETIME = DateTime.Now; // } // return this. //} /// <summary> /// 根据页面url获取页面Ename /// </summary> /// <param name="url">页面url</param> /// <returns>Ename</returns> public string GetEnameByUrl(string url) { string ref_ename = string.Empty; Base_ModuleInfo ModuleInfo = _moduleInfoBll.FindBy(o => o.PathHandler == url).FirstOrDefault(); if (ModuleInfo != null) { ref_ename = ModuleInfo.EName; } return(ref_ename); }