private void BindReferringProcedureCodes() { 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()); } try { ArrayList objArr = new ArrayList(); objArr.Add(extddlReferringFacility.Text); objArr.Add(extddlRoom.Text); Bill_Sys_ManageVisitsTreatmentsTests_BO objBO = new Bill_Sys_ManageVisitsTreatmentsTests_BO(); ddlTestNames.Items.Clear(); ddlTestNames.DataSource = objBO.GetReferringProcCodeList(objArr); ddlTestNames.DataTextField = "description"; ddlTestNames.DataValueField = "code"; ddlTestNames.DataBind(); ddlTestNames.Items.Insert(0, "--- Select ---"); ddlTestNames.Visible = true; } 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()); } }
protected void Page_Load(object sender, EventArgs e) { btnUPdate.Attributes.Add("onclick", "return confirm_update_bill_status();"); btnUpdateNew.Attributes.Add("onclick", "return confirm_update_bill_status_LHR();"); if (!IsPostBack) { extddlDoctor.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; szRoomId = Session["GETROOMID"].ToString(); if (szRoomId == "All") { Bill_Sys_ManageVisitsTreatmentsTests_BO obj = new Bill_Sys_ManageVisitsTreatmentsTests_BO(); DataSet ProCod = obj.GetAllProcCodeLHR(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); grdProCode.DataSource = ProCod; grdProCode.DataBind(); btnUpdateNew.Visible = true; extddlDoctor.Visible = true; lblDoctor.Visible = true; btnUPdate.Visible = false; } else { ArrayList arr = new ArrayList(); arr.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); arr.Add(szRoomId); Bill_Sys_ManageVisitsTreatmentsTests_BO obj = new Bill_Sys_ManageVisitsTreatmentsTests_BO(); DataSet ProCod = obj.GetReferringProcCodeList(arr); grdProCode.DataSource = ProCod; grdProCode.DataBind(); btnUPdate.Visible = true; lblDoctor.Visible = false; btnUpdateNew.Visible = false; extddlDoctor.Visible = false; } } }