コード例 #1
0
        public void BindDataTranslatorDetails()
        {
            customerBo         = new CustomerBo();
            dsDataTransDetails = customerBo.GetDataTransMapDetails(DisplayType);
            if (dsDataTransDetails.Tables[0].Rows.Count != 0)
            {
                btnExportFilteredData.Visible = false;
                //pnlgvScheme.Visible = true;
                //gvSchemeDetails.Visible = true;
            }

            if (Cache["gvDataForMappinginSuperAdmin"] == null)
            {
                Cache.Insert("gvDataForMappinginSuperAdmin", dsDataTransDetails);
            }
            else
            {
                Cache.Remove("gvDataForMappinginSuperAdmin");
                Cache.Insert("gvDataForMappinginSuperAdmin", dsDataTransDetails);
            }
            //if (DisplayType == "CAMS" || DisplayType == "Sundaram")
            //{
            //    gvCams.DataSource = dsDataTransDetails;
            //    gvCams.DataBind();
            //}
            //if (DisplayType == "KARVY")
            //{

            //    gvCamsKarvy.DataSource = dsDataTransDetails;
            //    gvCamsKarvy.DataBind();
            //}
            //if (DisplayType == "Templeton")
            //{
            //    // BindDataTranslatorDetails();
            //    gvTempleton.DataSource = dsDataTransDetails;
            //    gvTempleton.DataBind();
            //}
        }