private void Del() { string code = HttpContext.Current.Request["id"].ToString(); FunctionFactory bll = new FunctionFactory(); HttpContext.Current.Response.Write(bll.Del(code)); }
private void GetDepTree() { string parentID = string.Empty; parentID = HttpContext.Current.Request["parentID"].ToString(); FunctionFactory bll = new FunctionFactory(); string json = bll.GetFunctionTree(parentID); HttpContext.Current.Response.Write(json); }
private void GetMagList() { string sql = ""; int iStart = 0; try { iStart = int.Parse(HttpContext.Current.Request["pageIndex"].ToString()) * int.Parse(HttpContext.Current.Request["pageSize"].ToString()); } catch { } int iLimit = 20; try { iLimit = int.Parse(HttpContext.Current.Request["pageSize"].ToString()); } catch { } string funName = string.Empty; try { funName = HttpContext.Current.Request["funName"].ToString(); } catch { } if (!string.IsNullOrEmpty(funName)) { sql += "and funName like '%" + funName + "%' "; } string IsEnable = string.Empty; try { IsEnable = HttpContext.Current.Request["IsEnable"].ToString(); } catch { } if (!string.IsNullOrEmpty(IsEnable)) { sql += "and IsEnable = '" + IsEnable + "' "; } FunctionFactory bll = new FunctionFactory(); HttpContext.Current.Response.Write(bll.GetMagList(sql, iStart, iLimit)); }
private void SaveFunInfo() { string json = string.Empty; try { json = HttpContext.Current.Request["json"].ToString(); } catch { } if (string.IsNullOrEmpty(json)) { HttpContext.Current.Response.Write(JsonMessage.FailString("参数丢失!")); return; } Sys_Function table = JsonHelper.DeserializeData<Sys_Function>(json); FunctionFactory bll = new FunctionFactory(); HttpContext.Current.Response.Write(bll.SaveFunInfo(table)); }
private void GetParentFun4Eidt() { FunctionFactory bll = new FunctionFactory(); string json = bll.GetParentFun4Eidt(); HttpContext.Current.Response.Write(json); }
private void GetModules() { FunctionFactory bll = new FunctionFactory(); string json = bll.GetModeules(); HttpContext.Current.Response.Write(json); }