private void bindGrid()
        {
            pager_org.PageIndex = UCPaging1.CurrentPage;
            System.Data.DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager_org);
            CommonFun.Paging(dt, rptProNumCost, UCPaging1, palNoData);
            int zongji = 0;

            if (palNoData.Visible)
            {
                UCPaging1.Visible = false;
                heji.Visible      = false;
                zonge.Visible     = false;
            }
            else
            {
                UCPaging1.Visible = true;
                UCPaging1.InitPageInfo();  //分页控件中要显示的控件
                heji.Visible  = true;
                zonge.Visible = true;
            }
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                zongji += (CommonFun.ComTryInt(dt.Rows[i]["CB_HeJihj"].ToString()));
            }
            heji.Text = zongji.ToString();
        }
Example #2
0
        private void bindGrid(string ym)
        {
            pager.PageIndex = UCPaging1.CurrentPage;
            DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager);

            CommonFun.Paging(dt, GridView1, UCPaging1, NoDataPanel);
            GridView1.Visible = true;
            if (NoDataPanel.Visible)
            {
                UCPaging1.Visible = false;
            }
            else
            {
                UCPaging1.Visible = true;
                UCPaging1.InitPageInfo();
            }
            if (ym == "year")
            {
                GridView1.Columns[3].Visible = false;
            }
            else if (ym == "month")
            {
                GridView1.Columns[3].Visible = true;
            }
        }
Example #3
0
 private void bindGrid()
 {
     pager_org.PageIndex = UCPaging1.CurrentPage;
     System.Data.DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager_org);
     CommonFun.Paging(dt, rptProNumCost, UCPaging1, palNoData);
     if (palNoData.Visible)
     {
         UCPaging1.Visible = false;
     }
     else
     {
         UCPaging1.Visible = true;
         UCPaging1.InitPageInfo();  //分页控件中要显示的控件
     }
 }
 protected void bindData()
 {
     pager.PageIndex = UCPaging1.CurrentPage;
     System.Data.DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager);
     CommonFun.Paging(dt, tbpc_purshaseplanassignRepeater, UCPaging1, NoDataPane);
     if (NoDataPane.Visible)
     {
         UCPaging1.Visible = false;
     }
     else
     {
         UCPaging1.Visible = true;
         UCPaging1.InitPageInfo();
     }
 }
 private void bindGrid1()
 {
     bindSunNum();
     pager1.PageIndex = UCPaging2.CurrentPage;
     System.Data.DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager1);
     CommonFun.Paging(dt, Repeater2, UCPaging2, NoDataPanel2);
     if (NoDataPanel2.Visible)
     {
         UCPaging2.Visible = false;
     }
     else
     {
         UCPaging2.Visible = true;
         UCPaging2.InitPageInfo();
     }
 }
 protected void bindData()
 {
     pager.PageIndex = UCPaging1.CurrentPage;
     System.Data.DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager);
     CommonFun.Paging(dt, checked_list_Repeater, UCPaging1, NoDataPane);
     if (NoDataPane.Visible)
     {
         UCPaging1.Visible = false;
     }
     else
     {
         UCPaging1.Visible = true;
         UCPaging1.InitPageInfo();
     }
     //clearData();
 }
Example #7
0
        private void bindGrid()
        {
            pager.PageIndex = UCPaging1.CurrentPage;

            System.Data.DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager);

            CommonFun.Paging(dt, GridView1, UCPaging1, NoDataPanel);
            if (NoDataPanel.Visible)
            {
                UCPaging1.Visible = false;
            }
            else
            {
                UCPaging1.Visible = true;
                UCPaging1.InitPageInfo();
            }
        }
Example #8
0
        protected void GetData()
        {
            pager.PageIndex = UCPaging1.CurrentPage;
            DataTable dt = CommonFun.GetDataByPagerQueryParamGroupBy(pager);

            CommonFun.Paging(dt, grvRK, UCPaging1, NoDataPanel);
            if (NoDataPanel.Visible)
            {
                UCPaging1.Visible = false;
                btnXTFP.Visible   = false;
            }
            else
            {
                UCPaging1.Visible = true;
                UCPaging1.InitPageInfo();
                btnXTFP.Visible = true;
            }
        }