public void getDoctorDefaultList() { //Logging Start 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 { Bill_Sys_DoctorBO _obj = new Bill_Sys_DoctorBO(); DataSet dsDoctorName = _obj.GetDoctorList(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); DDLAttendingDoctors.DataSource = dsDoctorName; ListItem objLI = new ListItem("---select---", "NA"); DDLAttendingDoctors.DataTextField = "DESCRIPTION"; DDLAttendingDoctors.DataValueField = "CODE"; DDLAttendingDoctors.DataBind(); DDLAttendingDoctors.Items.Insert(0, objLI); if (CheckDC == "") { Bill_Sys_Visit_BO _bill_Sys_Visit_BO = new Bill_Sys_Visit_BO(); DataSet dset = _bill_Sys_Visit_BO.GetBillDoctorList(sz_CompanyID, sz_BillNo, "GetBillDoctor"); DDLAttendingDoctors.DataSource = dset.Tables[0]; string nm = dset.Tables[0].Rows[0]["DOCTORID"].ToString(); DDLAttendingDoctors.SelectedValue = nm; FillDoctorInfo(); } } 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); } finally { } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void Page_Load(object sender, EventArgs e) {//Logging Start 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()); } if (!Page.IsPostBack) { try { btnClear.Attributes.Add("OnClick", "return Clear()"); btnClearBottom.Attributes.Add("OnClick", "return Clear()"); //bindXml(); extddlSpeciality.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; Bill_Sys_DoctorBO _obj = new Bill_Sys_DoctorBO(); DataSet dsDoctorName = _obj.GetDoctorList(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); DDLAttendingDoctors.DataSource = dsDoctorName; ListItem objLI = new ListItem("---select---", "NA"); DDLAttendingDoctors.DataTextField = "DESCRIPTION"; DDLAttendingDoctors.DataValueField = "CODE"; DDLAttendingDoctors.DataBind(); LoadData(); } 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()); } }