Ejemplo n.º 1
0
        private void BindFolioSignUp()
        {
            dtFromDate = Convert.ToDateTime(rdpFromDate.SelectedDate);
            dtToDate   = Convert.ToDateTime(rdpToDate.SelectedDate);
            DataSet dsFolio;

            dsFolio = advisorBranchBo.GetFolioSignUp(adviserVo.advisorId, dtFromDate, dtToDate, int.Parse(ddlTypes.SelectedValue), userType, AgentCode);
            DataTable dtFolio = dsFolio.Tables[0];

            if (dtFolio == null)
            {
                gvFolio.DataSource = dtFolio;
                gvFolio.DataBind();
            }
            else
            {
                gvFolio.DataSource = dtFolio;
                gvFolio.DataBind();
                btnExportFilteredData.Visible = false;
                btnExportFolio.Visible        = true;
                btnExportSIP.Visible          = false;
                if (Cache["gvFolio" + adviserVo.advisorId] == null)
                {
                    Cache.Insert("gvFolio" + adviserVo.advisorId, dtFolio);
                }
                else
                {
                    Cache.Remove("gvFolio" + adviserVo.advisorId);
                    Cache.Insert("gvFolio" + adviserVo.advisorId, dtFolio);
                }
            }
        }