private void BindGrid() { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _reportBO = new Bill_Sys_ReportBO(); try { if (extddlLocation.Visible == true && extddlLocation.Text != "NA") { grdAllReports.DataSource = _reportBO.GetProcedureReports("SP_REPORT_PROCEDURE_REPORT", txtFromDate.Text, txtToDate.Text, extddlOffice.Text, ddlStatus.SelectedValue, txtCompanyID.Text, "", extddlLocation.Text); grdAllReports.DataBind(); grdForReport.DataSource = _reportBO.GetProcedureReports("SP_REPORT_PROCEDURE_REPORT", txtFromDate.Text, txtToDate.Text, extddlOffice.Text, ddlStatus.SelectedValue, txtCompanyID.Text, "", extddlLocation.Text); grdForReport.DataBind(); } else { grdAllReports.DataSource = _reportBO.GetProcedureReports("SP_REPORT_PROCEDURE_REPORT", txtFromDate.Text, txtToDate.Text, extddlOffice.Text, ddlStatus.SelectedValue, txtCompanyID.Text, "", ""); grdAllReports.DataBind(); grdForReport.DataSource = _reportBO.GetProcedureReports("SP_REPORT_PROCEDURE_REPORT", txtFromDate.Text, txtToDate.Text, extddlOffice.Text, ddlStatus.SelectedValue, txtCompanyID.Text, "", ""); grdForReport.DataBind(); } if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == false) { grdAllReports.Columns[5].Visible = false; grdForReport.Columns[5].Visible = false; } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
private void BindGridQueryString(string szFlag) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _reportBO = new Bill_Sys_ReportBO(); try { grdAllReports.DataSource = _reportBO.GetProcedureReports("SP_REPORT_PROCEDURE_REPORT", "", "", "NA", "NA", txtCompanyID.Text, szFlag); grdAllReports.DataBind(); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }