Exemplo n.º 1
0
        private void BindGridView()
        {
            int count;

            DataTable dt = portfolioBo.GetRMCustomerPortfolios(rmVo.RMId, mypager.CurrentPage, out count, hdnNameFilter.Value);

            lblTotalRows.Text = hdnRecordCount.Value = count.ToString();
            gvCustomerPortfolio.DataSource = dt;
            gvCustomerPortfolio.DataBind();
            GetPageCount();

            if (dt == null || dt.Rows.Count == 0)
            {
                trMessage.Visible = true;
                trPager.Visible   = false;
                trPage.Visible    = false;
            }
            else
            {
                trMessage.Visible = false;
                trPager.Visible   = true;
                trPage.Visible    = true;
                Label2.Visible    = false;
            }
        }
Exemplo n.º 2
0
        private void BindGridView()
        {
            int count;
            int rmID      = 0;
            int AdviserId = 0;

            if (userType == "advisor" || userType == "ops")
            {
                AdviserId = advisorVo.advisorId;
            }
            else if (userType == "rm")
            {
                rmID = rmVo.RMId;
            }

            DataTable dt = portfolioBo.GetRMCustomerPortfolios(userType, AdviserId, rmID, mypager.CurrentPage, out count, hdnNameFilter.Value);

            lblTotalRows.Text = hdnRecordCount.Value = count.ToString();
            gvCustomerPortfolio.DataSource = dt;
            gvCustomerPortfolio.DataBind();
            GetPageCount();

            if (dt == null || dt.Rows.Count == 0)
            {
                trMessage.Visible = true;
                trPager.Visible   = false;
                trPage.Visible    = false;
            }
            else
            {
                trMessage.Visible = false;
                trPager.Visible   = true;
                trPage.Visible    = true;
                Label2.Visible    = false;
            }
        }