Esempio n. 1
0
 public void GetFunctionInfo()
 {
     string _funid = Parameters["pfunid"];
     SysFunListBiz biz = new SysFunListBiz();
     SysFunList item = new SysFunList();
     item = biz.Select(_funid);
     Response.Write(item.ToJson());
 }
Esempio n. 2
0
 public void GetGridData()
 {
     string _searchcontent = "";
     string _sortname = "";
     string _sortdirection = "";
     string _pagenumber = "";
     string _pagesize = "";
     _searchcontent = Parameters["psearchcontent"];
     _sortname = Parameters["psortname"];
     if (!string.IsNullOrEmpty(_sortname))
     {
         sSortName = _sortname;
     }
     _sortdirection = Parameters["psortdirection"];
     if (!string.IsNullOrEmpty(_sortdirection))
     {
         sSortDirection = _sortdirection;
     }
     _pagenumber = Parameters["ppagenumber"];
     if (!string.IsNullOrEmpty(_pagenumber))
     {
         sPageIndex = Convert.ToInt32(_pagenumber);
     }
     _pagesize = Parameters["ppagesize"];
     if (!string.IsNullOrEmpty(_pagesize))
     {
         sPageSize = Convert.ToInt32(_pagesize);
     }
     SysFunListBiz biz = new SysFunListBiz();
     List<SysFunList> lists = new List<SysFunList>();
     NameValueCollection where = new NameValueCollection();
     where.Add("FModuleFlag", _searchcontent);
     Int32 totalcount = 0;
     NameValueCollection orderby = new NameValueCollection();
     orderby.Add(sSortName, sSortDirection);
     lists = biz.Select(where, orderby, sPageIndex, sPageSize, out totalcount);
     string datasource = Utils.GetRepeaterDatasource(lists, sPageIndex, sPageSize, totalcount);
     Response.Write(datasource);
 }
Esempio n. 3
0
 public void GetParentFun()
 {
     string _moduleflag = Parameters["pmoduleflag"];
     List<SysFunList> lists = new List<SysFunList>();
     SysFunListBiz biz = new SysFunListBiz();
     NameValueCollection where = new NameValueCollection();
     NameValueCollection orderby = new NameValueCollection();
     where.Add("FModuleFlag", _moduleflag);
     where.Add("FParentFunId", "0");
     where.Add("FFunStatus", "1");
     orderby.Add("FFunCode", "asc");
     lists = biz.Select(where, orderby);
     Response.Write(Utils.ConvertToJson(lists));
 }