public SYS_Account Get(JObject json) { var model = JsonToObject <SYS_Account>(json); SYS_Account _model = DPBase.Get <SYS_Account>(model.ACC_Id); return(_model); }
public SYS_Button Get(JObject json) { var model = JsonToObject <SYS_Button>(json); SYS_Button _model = DPBase.Get <SYS_Button>(model.BTN_Id); return(_model); }
public SYS_FunctionTree Get(JObject json) { SetDefaultValue(json); var model = JsonToObject <SYS_FunctionTree>(json); var _model = DPBase.Get <SYS_FunctionTree>(model.FT_Id); return(_model); }
public JObject GetBtnInformation(JObject json) { //SYS_ButtonGroup bGroup = (SYS_ButtonGroup)(JsonConvert.DeserializeObject(json.ToString(), typeof(SYS_ButtonGroup))); int BG_Id = Convert.ToInt32(json["BG_Id"].ToString()); SYS_ButtonGroup _btnGroup = DPBase.Get <SYS_ButtonGroup>(BG_Id); JObject ret = new JObject(); ret.Add("group", JObject.FromObject(_btnGroup)); return(ret); }
public SYS_SystemRole Get(JObject json) { if (string.IsNullOrEmpty(json["ROLE_Level"].ToString())) { json["ROLE_Level"] = 0; } var model = JsonToObject <SYS_SystemRole>(json); SYS_SystemRole _model = DPBase.Get <SYS_SystemRole>(model.ROLE_Id); return(_model); }
public Array GetMenuItem1(string FT_Id) { try { int _id = Convert.ToInt32(FT_Id); IQueryable <SYS_FunctionTree> query = DPBase.Get <SYS_FunctionTree>().Where(c => c.FT_ParentId == _id); Array _array = query.ToArray(); return(_array); } catch (Exception ex) { throw new Exception(ex.Message + "转换的过程中发生了错误!"); } }
public List <Array> GetMenuItem0() { try { List <Array> ret = new List <Array>(); IQueryable <SYS_FunctionTree> query = DPBase.Get <SYS_FunctionTree>(); Array _array0 = query.Where(c => c.FT_ParentId == 0).ToArray(); Array _array1 = query.Where(c => c.FT_ParentId == 1).ToArray(); ret.Add(_array0); ret.Add(_array1); return(ret); } catch (Exception ex) { throw new Exception(ex.Message + "转换的过程中发生了错误!"); } }
T IExcuteModel <T> .GetModel(string id) { T _returnT = DPBase.Get <T>(id); return(_returnT); }
public List <SYS_SystemRole> GetAllRoleInfo() { List <SYS_SystemRole> _list = DPBase.Get <SYS_SystemRole>().ToList(); return(_list); }