private void bindGrid2()
 {
     bindSunNum();
     pager1.PageIndex = UCPaging3.CurrentPage;
     System.Data.DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager1);
     CommonFun.Paging(dt, Repeater3, UCPaging3, NoDataPanel3);
     if (NoDataPanel3.Visible)
     {
         UCPaging3.Visible = false;
     }
     else
     {
         UCPaging3.Visible = true;
         UCPaging3.InitPageInfo();
     }
 }
Ejemplo n.º 2
0
        protected void GetBoundData3()
        {
            InitPager3();
            pager3.PageIndex = UCPaging3.CurrentPage;
            DataTable dt = CommonFun.GetDataByPagerQueryParam(pager3);

            CommonFun.Paging(dt, gridview3, UCPaging3, NoDataPanel3);
            if (NoDataPanel3.Visible)
            {
                UCPaging3.Visible = false;
            }
            else
            {
                UCPaging3.Visible = true;
                UCPaging3.InitPageInfo();
            }
        }
Ejemplo n.º 3
0
 private void bindGrid3()
 {
     pager.PageIndex = UCPaging3.CurrentPage;
     System.Data.DataTable dt = CommonFun.GetDataByPagerQueryParam(pager);
     CommonFun.Paging(dt, GridView3, UCPaging3, NoDataPanel3);
     if (NoDataPanel3.Visible)
     {
         UCPaging3.Visible = false;
     }
     else
     {
         UCPaging3.Visible = true;
         UCPaging3.InitPageInfo();  //分页控件中要显示的控件
     }
     foreach (GridViewRow gr in GridView3.Rows)
     {
         Label zdr3 = (Label)gr.FindControl("zdr3");
         if (Request.QueryString["action"] == "view")
         {
             gr.FindControl("hyperlink1").Visible = false;
             gr.FindControl("hyperlink3").Visible = false;
         }
         else
         {
             if (zdr3.Text.Trim() == UserName.Value)
             {
                 gr.FindControl("hyperlink7").Visible = true;
                 gr.FindControl("hyperlink9").Visible = true;
             }
             else
             {
                 gr.FindControl("hyperlink7").Visible = false;
                 gr.FindControl("hyperlink9").Visible = false;
             }
         }
     }
 }