Exemple #1
0
        private void Bindgrid()
        {
            if (ddlDisplay.SelectedItem.Text == "MisMatch Only")
            {
                hdnMismatch.Value       = "1";
                dsBindgvExceptionReport = customerBo.GetExceptionReportMismatchDetails(userType, int.Parse(hdnadviserId.Value), int.Parse(hdnrmId.Value), int.Parse(hdnCustomerId.Value), int.Parse(hdnbranchheadId.Value), int.Parse(hdnbranchId.Value), int.Parse(hdnAll.Value), isIndividualOrGroup, hdnExplist.Value, hdnExptype.Value, int.Parse(hdnMismatch.Value));
            }
            else
            {
                hdnMismatch.Value       = "0";
                dsBindgvExceptionReport = customerBo.GetExceptionReportDetails(userType, int.Parse(hdnadviserId.Value), int.Parse(hdnrmId.Value), int.Parse(hdnCustomerId.Value), int.Parse(hdnbranchheadId.Value), int.Parse(hdnbranchId.Value), int.Parse(hdnAll.Value), isIndividualOrGroup, hdnExplist.Value, hdnExptype.Value, int.Parse(hdnMismatch.Value));
            }

            if (dsBindgvExceptionReport.Tables.Count != 0)
            {
                gvExceptionReport.DataSource = dsBindgvExceptionReport;
                gvExceptionReport.DataBind();
                gvExceptionReport.Visible     = true;
                btnExportFilteredData.Visible = true;
            }
            if (Cache["gvExceptionReport + '" + advisorVo.advisorId + "'"] == null)
            {
                Cache.Insert("gvExceptionReport + '" + advisorVo.advisorId + "'", dsBindgvExceptionReport);
            }
            else
            {
                Cache.Remove("gvExceptionReport + '" + advisorVo.advisorId + "'");
                Cache.Insert("gvExceptionReport + '" + advisorVo.advisorId + "'", dsBindgvExceptionReport);
            }
        }