Esempio n. 1
0
        public void BindNewCustomerSignUpMIS()
        {
            dtFromDate            = Convert.ToDateTime(rdpFromDate.SelectedDate);
            dtToDate              = Convert.ToDateTime(rdpToDate.SelectedDate);
            dsNEWSignupMISDetails = new DataSet();

            dsNEWSignupMISDetails = advisorBranchBo.GetNEWSignupMISDetails(adviserVo.advisorId, dtFromDate, dtToDate, int.Parse(ddlTypes.SelectedValue), userType, AgentCode);
            gvProductWiseCustomersCount.DataSource = dsNEWSignupMISDetails;
            gvProductWiseCustomersCount.DataBind();

            if (dsNEWSignupMISDetails.Tables[0].Rows.Count > 0)
            {
                btnExportFilteredData.Visible = true;
                btnExportFolio.Visible        = false;
                btnExportSIP.Visible          = false;
            }
            else
            {
                btnExportFilteredData.Visible = false;
            }

            if (Cache["gvProductWiseCustomersCount" + adviserVo.advisorId] == null)
            {
                Cache.Insert("gvProductWiseCustomersCount" + adviserVo.advisorId, dsNEWSignupMISDetails.Tables[0]);
            }
            else
            {
                Cache.Remove("gvProductWiseCustomersCount" + adviserVo.advisorId);
                Cache.Insert("gvProductWiseCustomersCount" + adviserVo.advisorId, dsNEWSignupMISDetails.Tables[0]);
            }



            //if (Cache["gvProductWiseCustomersCount"] == null)
            //{
            //    Cache.Insert("gvProductWiseCustomersCount", dsNEWSignupMISDetails);
            //}
            //else
            //{
            //    Cache.Remove("gvProductWiseCustomersCount");
            //    Cache.Insert("gvProductWiseCustomersCount", dsNEWSignupMISDetails);
            //}
        }