public void StopModule() { string _moduleflag = Parameters["pmoduleflag"]; SysModuleBiz biz = new SysModuleBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.UpdateStatus(_moduleflag, "0", out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void GetModuleList() { string _roleid = Parameters["proleid"]; List<SysModule> lists = new List<SysModule>(); SysModuleBiz biz = new SysModuleBiz(); lists = biz.SelectAuthorRoleModule(_roleid); Response.Write(Utils.ConvertToJson(lists)); }
public void GetGridData() { string _sortname = Parameters["psortname"]; string _sortdirection = Parameters["psortdirection"]; string _pagenumber = Parameters["ppagenumber"]; string _pagesize = Parameters["ppagesize"]; List<SysModule> lists = new List<SysModule>(); SysModuleBiz biz = new SysModuleBiz(); NameValueCollection where = new NameValueCollection(); where.Add("condition", "1=1"); NameValueCollection orderby = new NameValueCollection(); orderby.Add(_sortname, _sortdirection); int totalcount = 0; lists = biz.Select(where,orderby,Convert.ToInt32(_pagenumber),Convert.ToInt32(_pagesize),out totalcount); Response.Write(Utils.ConvertToJson(lists)); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { List<SysModule> lists = new List<SysModule>(); SysModuleBiz biz = new SysModuleBiz(); lists = biz.SelectUsed(); AddDatasource("modulelist", lists); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { List<SysFunList> lists = new List<SysFunList>(); SysFunListBiz biz = new SysFunListBiz(); lists = biz.SelectAllFunList(); AddDatasource("functionlist", lists); List<SysModule> modulelists = new List<SysModule>(); SysModuleBiz mbiz = new SysModuleBiz(); modulelists = mbiz.SelectUsed(); AddDatasource("modulelist", modulelists); } }