private void BindViewTreatmentList() { 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()); } _treatmentBO = new Bill_Sys_TreatmentBO(); try { lstTestList.DataSource = _treatmentBO.GetTreatmentList(txtCompanyID.Text, extddlDoctor.Text, txtPatientID.Text, "TEST"); lstTestList.DataTextField = "DESCRIPTION"; lstTestList.DataValueField = "CODE"; lstTestList.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()); } }
private void GetDoctorVisitList() { 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()); } _treatmentBO = new Bill_Sys_TreatmentBO(); _arrayList = new ArrayList(); try { lstViewDoctorVisit.DataSource = _treatmentBO.GetTreatmentList(txtCompanyID.Text, extddlViewDoctor.Text, txtPatientID.Text, "VISITS"); lstViewDoctorVisit.DataTextField = "DESCRIPTION"; lstViewDoctorVisit.DataValueField = "CODE"; lstViewDoctorVisit.DataBind(); _arrayList = _treatmentBO.GetDoctorTreatmentCount(txtCompanyID.Text, extddlViewDoctor.Text, txtPatientID.Text, "VISITS"); if (_arrayList.Count > 0) { lblTotalVisits.Text = _arrayList[1].ToString(); if (_arrayList[0].ToString() != "") { lblLastDate.Text = Convert.ToDateTime(_arrayList[0].ToString()).ToShortDateString(); } } else { lblTotalVisits.Text = ""; lblLastDate.Text = ""; } } 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()); } }