private void GetList() { string searchfilter = Request["searchfilter"] == null ? "" : KillSqlIn.Url_ReplaceByString(Server.UrlDecode(Request.QueryString["searchfilter"]), Int32.MaxValue); string rows = Request["rows"] == null ? "10" : KillSqlIn.Url_ReplaceByString(Request.QueryString["rows"], Int32.MaxValue); //显示数量 string page = Request["page"] == null ? "1" : KillSqlIn.Url_ReplaceByString(Request.QueryString["page"], Int32.MaxValue); //当前页 string sidx = Request["sidx"] == null ? "" : KillSqlIn.Url_ReplaceByString(Request.QueryString["sidx"], Int32.MaxValue); //排序字段 string sord = Request["sord"] == null ? "desc" : KillSqlIn.Url_ReplaceByString(Request.QueryString["sord"], Int32.MaxValue); //排序规则 string table = " t_task_node_config "; string fields = "node_id,node_code,node_sn,node_name,remarks,if_use, '' as cmd_col";//字段顺序和必须前台jggrid设置的一样 string filter = GetFilter(searchfilter); string sort = "order by " + sidx + " " + sord + ""; int totalRecords = 0; // bll.GetRecordCount(filter); int start = (Convert.ToInt32(page) - 1) * Convert.ToInt32(rows) + 1; int end = Convert.ToInt32(page) * Convert.ToInt32(rows); if (sidx.Equals("cmd_col")) { sort = " order by node_id asc "; } DataTable dtSource = new PaginationUtility().GetPaginationList(fields, table, filter, sort, Int32.Parse(page), Int32.Parse(rows), out totalRecords); EditDataSource(ref dtSource); int totalPages = JSONHelper.GetTotalPages(totalRecords, Int32.Parse(rows)); string json = JSONHelper.ToJGGridJson(page, totalPages.ToString(), totalRecords.ToString(), dtSource, fields.Replace("'' as ", "").Split(','), "node_id"); Response.Write(json); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { _Pid = Server.UrlDecode(KillSqlIn.Url_ReplaceByString(Request.QueryString["id"], 30)); if (!IsPostBack) { if (_Pid != "SysError") { _pageTitle = "广告信息编辑"; GetAreaInfo(); } else { _pageTitle = "广告信息添加"; } } }
protected void Page_Load(object sender, EventArgs e) { _Pid = KillSqlIn.Url_ReplaceByString(Request.QueryString["id"], 40); if (!IsPostBack) { if (_Pid != "SysError") { _pageTitle = "加工费设置"; GetAreaInfo(); } else { _pageTitle = "加工费设置"; } } }
protected void Page_Load(object sender, EventArgs e) { _Pid = Server.UrlDecode(KillSqlIn.Url_ReplaceByString(Request.QueryString["id"], Int32.MaxValue, " |#|,|-".Split('|'))); BindBuildingAndMarket(_Pid);//绑定所有小区/大厦和农贸市场 if (!IsPostBack) { if (_Pid != "SysError") { _pageTitle = "配送费设置"; GetAreaInfo(); } else { _pageTitle = "配送费设置"; } } }
protected void Page_Load(object sender, EventArgs e) { _Pid = Server.UrlDecode(KillSqlIn.Url_ReplaceByString(Request.QueryString["id"], 30)); _typeId = Server.UrlDecode(KillSqlIn.Url_ReplaceByString(Request.QueryString["typeId"], 30)); if (!IsPostBack) { InitFooter(); //底部默认信息 ViewState["ImgLink"] = ""; BindNewsCateoryDrp(); if (_Pid != "SysError") { _pageTitle = "新闻信息编辑"; GetNewsInfo(); } else { _pageTitle = "新闻信息添加"; } } }
protected void Page_Load(object sender, EventArgs e) { _Pid = Server.UrlDecode(KillSqlIn.Url_ReplaceByString(Request.QueryString["id"], 30)); _rd = KillSqlIn.Url_ReplaceByString(Request.QueryString["rd"], 10); if (!IsPostBack) { if (_Pid != "SysError") { _pageTitle = "咨询信息编辑"; GetAreaInfo(); } else { _pageTitle = "咨询信息添加"; } if (_rd.Equals("1")) { this.btnSubmit.Visible = false; } } }
protected void Page_Load(object sender, EventArgs e) { _Pid = Server.UrlDecode(KillSqlIn.Url_ReplaceByString(Request.QueryString["id"], 30)); if (!IsPostBack) { BindNewsCateoryDrp(); if (_Pid != "") { _pageTitle = "文章信息编辑"; GetArticleInfo(); this.palCheck.Visible = true; } else { _pageTitle = "文章信息添加"; this.palCheck.Visible = false; this.txtReleaseDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); } ViewState["ImgLink"] = ""; } }