Ejemplo n.º 1
0
 public void GetItem()
 {
     string _id = Parameters["pid"];
     PortalColumnNav item = new PortalColumnNav();
     PortalColumnNavBiz biz = new PortalColumnNavBiz();
     item = biz.Select(Convert.ToInt64(_id));
     Response.Write(item.ToJson());
 }
Ejemplo n.º 2
0
 public void GetBackUrl()
 {
     string _navid = Parameters["navid"];
     PortalColumnNav item = new PortalColumnNav();
     PortalColumnNavBiz biz = new PortalColumnNavBiz();
     item = biz.Select(Convert.ToInt64(_navid));
     Response.Write(item.FColumnId.ToString());
 }
Ejemplo n.º 3
0
 public void GetGridData()
 {
     string _colid = Parameters["colid"];
     string _search = Parameters["psearchcontent"];
     string _sortname = Parameters["psortname"];
     string _direction = Parameters["psortdirection"];
     string _pagenumber = Parameters["ppagenumber"];
     string _pagesize = Parameters["ppagesize"];
     List<PortalColumnNav> lists = new List<PortalColumnNav>();
     PortalColumnNavBiz biz = new PortalColumnNavBiz();
     string _sql = "(FColumnId =" + _colid + ")";
     if (!string.IsNullOrEmpty(_search))
     {
         _sql += " and (FNavName like '%" + _search + "%')";
     }
     NameValueCollection where = new NameValueCollection();
     where.Add("condition", _sql);
     NameValueCollection orderby = new NameValueCollection();
     orderby.Add(_sortname, _direction);
     Int32 totalcount = 0;
     lists = biz.Select(where, orderby, Convert.ToInt32(_pagenumber), Convert.ToInt32(_pagesize), out totalcount);
     string datasource = Utils.GetRepeaterDatasource(lists, Convert.ToInt32(_pagenumber), Convert.ToInt32(_pagesize), totalcount);
     Response.Write(datasource);
 }