Ejemplo n.º 1
0
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        try
        {
            if (!Page.IsPostBack)
            {
                int status = -1;
                if (!string.IsNullOrEmpty(Request.QueryString["id"]))
                {
                    status = Int32.Parse(Server.UrlDecode(StringUtil.HtmlEncode(Request.QueryString["id"])));

                    InitData(e.NewPageIndex, "", status);

                    ddlType.SelectedValue = status.ToString();
                }
                else
                {
                    Response.Redirect("../ExamPlanManage/default.aspx");
                }
            }
        }
        catch (Exception ex)
        {
            log.Error(ex.Message);
        }
    }
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        pageindex            = e.NewPageIndex; //获取点击的当前页码值
        Session["pageindex"] = pageindex;      //记录当前点击的页码值,存储在session中

        GridBind(pageindex, pagesize);
    }
Ejemplo n.º 3
0
 /// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="OnLoad"]/*'/>
 protected override void OnLoad(EventArgs e)
 {
     if (UrlPaging)
     {
         currentUrl  = Page.Request.Path;
         queryString = Page.Request.ServerVariables["Query_String"];
         if (!Page.IsPostBack && cloneFrom == null)
         {
             int index;
             int.TryParse(Page.Request.QueryString[UrlPageIndexName], out index);
             if (index <= 0)
             {
                 index = 1;
             }
             else if (ReverseUrlPageIndex)
             {
                 index = PageCount - index + 1;
             }
             PageChangingEventArgs args = new PageChangingEventArgs(index);
             OnPageChanging(args);
         }
     }
     else
     {
         inputPageIndex = Page.Request.Form[UniqueID + "_input"];
     }
     base.OnLoad(e);
 }
Ejemplo n.º 4
0
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     try
     {
         if (!Page.IsPostBack)
         {
             SetDDLView();
             string name     = string.Empty;
             int    parentId = -1;
             if (!string.IsNullOrEmpty(Request.QueryString["title"]))
             {
                 name = Server.UrlDecode(StringUtil.HtmlEncode(Request.QueryString["title"]));
             }
             if (!string.IsNullOrEmpty(Request.QueryString["parentId"]))
             {
                 parentId = Int32.Parse(Server.UrlDecode(StringUtil.HtmlEncode(Request.QueryString["parentId"])));
             }
             InitData(e.NewPageIndex, name, parentId);
         }
     }
     catch (Exception ex)
     {
         log.Error(ex.Message);
         Msg.Show(ex.Message);
     }
 }
Ejemplo n.º 5
0
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        try
        {
            if (!Page.IsPostBack)
            {
                int status = -1;
                if (!string.IsNullOrEmpty(Request.QueryString["status"]))
                {
                    status = Int32.Parse(Server.UrlDecode(StringUtil.HtmlEncode(Request.QueryString["status"])));
                }
                int nstatus = -1;
                if (!string.IsNullOrEmpty(Request.QueryString["nstatus"]))
                {
                    nstatus = Int32.Parse(Server.UrlDecode(StringUtil.HtmlEncode(Request.QueryString["nstatus"])));
                }
                InitData(e.NewPageIndex, "", status, nstatus);

                ddlStatus.SelectedValue       = status.ToString();
                ddlNoticeStatus.SelectedValue = nstatus.ToString();
            }
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
Ejemplo n.º 6
0
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        string typeid = this.Request.QueryString["typeid"] ?? "";

        this.AspNetPager1.CurrentPageIndex = e.NewPageIndex;
        string where = "select * from ws_Lottery where typeid=" + typeid + "  order by id desc ";
        this.RepeaterDataBind(where.ToString());
    }
Ejemplo n.º 7
0
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        int classid = Convert.ToInt32(this.Request.QueryString["parentId"] ?? "0");//栏目ID

        this.AspNetPager1.CurrentPageIndex = e.NewPageIndex;
        string where = "select * from C_admin_role where role_type>=" + Convert.ToInt32(Application["adminType"]) + " order by id desc";
        this.RepeaterDataBind(where.ToString());
    }
Ejemplo n.º 8
0
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        int classid = Convert.ToInt32(this.Request.QueryString["parentId"] ?? "0");//栏目ID

        this.AspNetPager1.CurrentPageIndex = e.NewPageIndex;
        string where = "select * from C_order_integral order by id desc";
        this.RepeaterDataBind(where.ToString());
    }
Ejemplo n.º 9
0
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     if (e.NewPageIndex == 1)
     {
         i = 1;
     }
     AspNetPager1.CurrentPageIndex = e.NewPageIndex;
     this.Bind();
 }
    //分页
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        this.AspNetPager1.CurrentPageIndex = e.NewPageIndex;
        String    strSql = String.Format("select * from news order by id desc");
        DataTable dtbl   = DbManager.ExecuteDataTable(strSql, null);

        this.rptNews.DataSource = DbManager.GetPageDataSource(AspNetPager1, AspNetPager1.CurrentPageIndex - 1, dtbl);
        this.rptNews.DataBind();
    }
Ejemplo n.º 11
0
 /// <summary>
 /// 翻页
 /// </summary>
 /// <param name="src"></param>
 /// <param name="e"></param>
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     try
     {
         Curr = e.NewPageIndex;
         OrderListDataBind();
     }
     catch (Exception)
     {
     }
 }
Ejemplo n.º 12
0
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     if (!Page.IsPostBack)
     {
         string code = QueryStringHelper.GetString("code");
         if (!string.IsNullOrEmpty(code))
         {
             InitData(e.NewPageIndex, code);
         }
     }
 }
 /// <summary>
 /// 分页
 /// </summary>
 /// <param name="src"></param>
 /// <param name="e"></param>
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     try
     {
         Curr = e.NewPageIndex;
         BindTemplateInfo();
     }
     catch (Exception)
     {
         throw;
     }
 }
 /// <summary>
 /// 翻页
 /// </summary>
 /// <param name="src"></param>
 /// <param name="e"></param>
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     try
     {
         Curr = e.NewPageIndex; //翻页
         Bind();                // 重新加载数据
     }
     catch (Exception)
     {
         throw;
     }
 }
 protected void anp_MinuteData_PageChanging(object sender, PageChangingEventArgs e)
 {
     if (Request.QueryString["queryCond"] != null)
     {
         anp_MinuteData.CurrentPageIndex = e.NewPageIndex;
         AnalyzeString();
     }
     else
     {
         anp_MinuteData.CurrentPageIndex = e.NewPageIndex;
         BindData();
     }
 }
Ejemplo n.º 16
0
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        AspNetPager1.CurrentPageIndex = e.NewPageIndex;

        if (ordernum.Text == "")
        {
            LoadDataInfo();
        }
        else
        {
            LoadDataInfo1();
        }
    }
Ejemplo n.º 17
0
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     try
     {
         if (!Page.IsPostBack)
         {
             InitData(e.NewPageIndex);
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
Ejemplo n.º 18
0
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        int classid = Convert.ToInt32(this.Request.QueryString["parentId"] ?? "0");//栏目ID

        this.AspNetPager1.CurrentPageIndex = e.NewPageIndex;
        string Keywords = this.txtKeywords.Text.Trim();
        string strWhere = "";

        if (Keywords != "" && Keywords != null)
        {
            strWhere = "where telphone like '%" + Keywords + "%'";
        }
        string where = "select * from C_user " + strWhere + " order by id desc";

        this.RepeaterDataBind(where.ToString());
    }
Ejemplo n.º 19
0
 /// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="RaisePostBackEvent"]/*'/>
 public void RaisePostBackEvent(string args)
 {
     int pageIndex = CurrentPageIndex;
     try
     {
         if (string.IsNullOrEmpty(args))
             args = inputPageIndex;
         pageIndex = int.Parse(args);
     }
     catch { }
     PageChangingEventArgs pcArgs = new PageChangingEventArgs(pageIndex);
     if (cloneFrom != null)
         cloneFrom.OnPageChanging(pcArgs);
     else
         OnPageChanging(pcArgs);
 }
Ejemplo n.º 20
0
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        try
        {
            if (!Page.IsPostBack)
            {
                string name = QueryStringHelper.GetString("title");
                int stateid = QueryStringHelper.GetInt("stateid");

                InitData(e.NewPageIndex, name, stateid);
            }
        }
        catch (Exception ex)
        {
            log.Error(ex.Message);
        }
    }
Ejemplo n.º 21
0
    protected void AspNetPager1_PageChanging(object sender, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        AspNetPager1.CurrentPageIndex = e.NewPageIndex;
        if (Request.QueryString["studentnum"] == null)
        {
            return;
        }

        string studentnum = Request.QueryString["studentnum"].ToString();
        string str        = " where studentnum='" + studentnum + "'";
        string confident  = "select * from Record_Details" + str + " order by Operate";

        name.InnerText           = m.Get_FieId_Data("Name", "PartyData", " where StudentNum='" + studentnum + "'") + "记录";
        AspNetPager1.AlwaysShow  = true;
        AspNetPager1.PageSize    = 10;
        AspNetPager1.RecordCount = m.Data_Count("Record_Details", str);
        Data_Show.DataSource     = m.GetData_Paging("Record_Details", confident, AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize);
        Data_Show.DataBind();
    }
Ejemplo n.º 22
0
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     try
     {
         if (!Page.IsPostBack)
         {
             int id = -1;
             if (!string.IsNullOrEmpty(Request.QueryString["id"]))
             {
                 id = Int32.Parse(Server.UrlDecode(StringUtil.HtmlEncode(Request.QueryString["id"])));
             }
             InitListData(e.NewPageIndex, id);
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
Ejemplo n.º 23
0
        /// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="OnLoad"]/*'/>
        protected override void OnLoad(EventArgs e)
        {
            if (UrlPaging)
            {
                currentUrl  = Page.Request.Path;
                queryString = Page.Request.ServerVariables["Query_String"];
                if (!string.IsNullOrEmpty(queryString) && queryString.StartsWith("?")) //mono <v2.8 compatible
                {
                    queryString = queryString.TrimStart('?');
                }
                if (!Page.IsPostBack && cloneFrom == null)
                {
                    int index;
                    int.TryParse(Page.Request.QueryString[UrlPageIndexName], out index);
                    if (index <= 0)
                    {
                        index = 1;
                    }
                    else if (ReverseUrlPageIndex)
                    {
                        index = PageCount - index + 1;
                    }
                    PageChangingEventArgs args = new PageChangingEventArgs(index);
                    OnPageChanging(args);
                }
            }
            else
            {
                inputPageIndex = Page.Request.Form[UniqueID + "_input"];

                #region ########## 新增ShowPageSizeBox属性 ##################
                if (null != Page.Request.Form[UniqueID + "_ChangePageSize"])
                {
                    this.PageSize = int.Parse(Page.Request.Form[UniqueID + "_ChangePageSize"]);
                }
                #endregion
            }
            base.OnLoad(e);
            if ((UrlPaging || (!UrlPaging && PageIndexBoxType == PageIndexBoxType.TextBox)) && (ShowPageIndexBox == ShowPageIndexBox.Always || (ShowPageIndexBox == ShowPageIndexBox.Auto && PageCount >= ShowBoxThreshold)))
            {
                HttpContext.Current.Items[scriptRegItemName] = true;
            }
        }
Ejemplo n.º 24
0
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     try
     {
         if (!Page.IsPostBack)
         {
             string name = string.Empty;
             if (!string.IsNullOrEmpty(Request.QueryString["title"]))
             {
                 name = Server.UrlDecode(StringUtil.HtmlEncode(Request.QueryString["title"]));
             }
             InitData(e.NewPageIndex, name);
         }
     }
     catch (Exception ex)
     {
         log.Error(ex.Message);
     }
 }
Ejemplo n.º 25
0
 /// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="OnPageChanging"]/*'/>
 protected virtual void OnPageChanging(PageChangingEventArgs e)
 {
     //pageChangeEventHandled = true;
     PageChangingEventHandler handler = (PageChangingEventHandler)Events[EventPageChanging];
     if (handler != null)
     {
         handler(this, e);
         if (!e.Cancel || UrlPaging) //there's no way we can obtain the last value of the CurrentPageIndex in UrlPaging mode, so it doesn't make sense to cancel PageChanging event in UrlPaging mode
         {
             CurrentPageIndex = e.NewPageIndex;
             OnPageChanged(EventArgs.Empty);
         }
     }
     else
     {
         CurrentPageIndex = e.NewPageIndex;
         OnPageChanged(EventArgs.Empty);
     }
     //pageChangeEventHandled = false;
 }
Ejemplo n.º 26
0
        /// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="OnPageChanging"]/*'/>
        protected virtual void OnPageChanging(PageChangingEventArgs e)
        {
            //pageChangeEventHandled = true;
            PageChangingEventHandler handler = (PageChangingEventHandler)Events[EventPageChanging];

            if (handler != null)
            {
                handler(this, e);
                if (!e.Cancel || UrlPaging) //there's no way we can obtain the last value of the CurrentPageIndex in UrlPaging mode, so it doesn't make sense to cancel PageChanging event in UrlPaging mode
                {
                    CurrentPageIndex = e.NewPageIndex;
                    OnPageChanged(EventArgs.Empty);
                }
            }
            else
            {
                CurrentPageIndex = e.NewPageIndex;
                OnPageChanged(EventArgs.Empty);
            }
            //pageChangeEventHandled = false;
        }
Ejemplo n.º 27
0
        /// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="RaisePostBackEvent"]/*'/>
        public void RaisePostBackEvent(string args)
        {
            int pageIndex = CurrentPageIndex;

            try
            {
                if (string.IsNullOrEmpty(args))
                {
                    args = inputPageIndex;
                }
                pageIndex = int.Parse(args);
            }
            catch { }
            PageChangingEventArgs pcArgs = new PageChangingEventArgs(pageIndex);

            if (cloneFrom != null)
            {
                cloneFrom.OnPageChanging(pcArgs);
            }
            else
            {
                OnPageChanging(pcArgs);
            }
        }
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Pager_DocumentShare_PageChanging(object sender, PageChangingEventArgs e)
        {
            Pager_DocumentShare.CurrentPageIndex = e.NewPageIndex;

            LoadDataBind(strWhere);
        }
 protected void anp_Coal_PageChanging(object src, PageChangingEventArgs e)
 {
     anp_Coal.CurrentPageIndex = e.NewPageIndex;
     BindData();
 }
Ejemplo n.º 30
0
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     this.AspNetPager1.CurrentPageIndex = e.NewPageIndex;
     string where = "select * from wx_log order by id desc";
     this.RepeaterDataBind(where.ToString());
 }
 protected void anp_MockData_PageChanging(object sender, PageChangingEventArgs e)
 {
     anp_MockData.CurrentPageIndex = e.NewPageIndex;
     BindMockData();
 }
 //开关量分页
 protected void anp_SwitchData_PageChanging(object sender, PageChangingEventArgs e)
 {
     if (Request.QueryString["queryCond"] != null)
     {
         anp_SwitchData.CurrentPageIndex = e.NewPageIndex;
         AnalyzeString();
     }
     else
     {
         anp_SwitchData.CurrentPageIndex = e.NewPageIndex;
         BindSwitchData();
     }
     ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "displayDIV()", true);
 }
Ejemplo n.º 33
0
 /// <summary>
 /// 分页(详情表)
 /// </summary>
 /// <param name="src"></param>
 /// <param name="e"></param>
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     Curr = e.NewPageIndex;
     PageDataBind();
 }
Ejemplo n.º 34
0
    /// <summary>
    /// 分页
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Pager_DocumentShare_PageChanging(object sender, PageChangingEventArgs e)
    {
        Pager_DocumentShare.CurrentPageIndex = e.NewPageIndex;

        LoadDataBind(strWhere);
        if (UserInfo.UserType == 2)
        {
            btnSave.Visible = false;
            for (int i = 0; i < rpt_userinfo.Items.Count; i++)
            {
                LinkButton btnDel = (LinkButton)rpt_userinfo.Items[i].FindControl("Button1");
                btnDel.Visible = false;
            }
        }
        else
        {
            btnSave.Visible = true;
        }
    }
Ejemplo n.º 35
0
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Pager_DocumentShare_PageChanging(object sender, PageChangingEventArgs e)
        {
            Pager_DocumentShare.CurrentPageIndex = e.NewPageIndex;

            LoadOrderDetail();
        }
 protected void anp_AlarmRecord_PageChanging(object src, PageChangingEventArgs e)
 {
     anp_AlarmRecord.CurrentPageIndex = e.NewPageIndex;
     BindGridView();
 }
 protected void anp_TurnAnalys_FaultRecord(object sender, PageChangingEventArgs e)
 {
     anp_TurnAnalys.CurrentPageIndex = e.NewPageIndex;
     BindData();
 }
 protected void anp_AlarmSendDefine_PageChanging(object src, PageChangingEventArgs e)
 {
     anp_AlarmSendDefine.CurrentPageIndex = e.NewPageIndex;
     BindData();
 }
 protected void anp_Server_PageChanging(object sender, PageChangingEventArgs e)
 {
     anp_Server.CurrentPageIndex = e.NewPageIndex;
     BindData();
 }
 protected void anp_UploadState_FaultRecord(object sender, PageChangingEventArgs e)
 {
     anp_FaultRecord.CurrentPageIndex = e.NewPageIndex;
     BindData();
 }
Ejemplo n.º 41
0
 protected void AspNetPager1_PageChanging(object src, PageChangingEventArgs e)
 {
     AspNetPager1.CurrentPageIndex = e.NewPageIndex;
     var templist = BLLFactory<T_ManagerInfoManager>.Instance.Find(ViewState["query"] != null ? ViewState["query"].ToString() : "");
     rptList.DataSource = templist.Skip(AspNetPager1.PageSize*(e.NewPageIndex - 1)).Take(AspNetPager1.PageSize);
     rptList.DataBind();
 }
Ejemplo n.º 42
0
 protected void AspNetPager1_PageChanging(object src, PageChangingEventArgs e)
 {
     if (CheckBox1.Checked)
         e.Cancel = true;
     label1.Text = "PageChanging event fired,value of the NewPageIndex is " + e.NewPageIndex;
 }
Ejemplo n.º 43
0
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     AspNetPager1.CurrentPageIndex = e.NewPageIndex; //设置当前的页码
     GetPage();                                      //重新分页
 }
Ejemplo n.º 44
0
 protected void AspNetPager1_PageChanging1(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     AspNetPager1.CurrentPageIndex = e.NewPageIndex;
     info();
 }
Ejemplo n.º 45
0
 //分页
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     ViewState["PageIndex"] = e.NewPageIndex;
     LoadDataBind();
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="src"></param>
 /// <param name="e"></param>
 protected void AspNetPager1_PageChanging(object src, PageChangingEventArgs e)
 {
     //e.NewPageIndex;
 }
Ejemplo n.º 47
0
 protected void AspNetPager1_PageChanging(object src, PageChangingEventArgs e)
 {
 }
 /// <summary>
 /// 分页
 /// </summary>
 /// <param name="src"></param>
 /// <param name="e"></param>
 protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
 {
     Curr = e.NewPageIndex;
     BindPolicyShareTakeoffInfo();
 }
Ejemplo n.º 49
0
 /// <summary>
 /// 分页
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Pager_DocumentShare_PageChanging(object sender, PageChangingEventArgs e)
 {
     Pager_DocumentShare.CurrentPageIndex = e.NewPageIndex;
     #region 设置隐藏区的值
     hiddenPageIndex.Value = Pager_DocumentShare.CurrentPageIndex + "";
     hiddenPageSize.Value = Pager_DocumentShare.PageSize + "";
     #endregion
     LoadDataBind(strWhere);
 }