private void BindVisiTypeList(ref RadioButtonList listVisitType) { 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()); } Bill_Sys_Calender _bill_Sys_Calender = new Bill_Sys_Calender(); try { listVisitType.Items.Clear(); listVisitType.DataSource = _bill_Sys_Calender.GET_Visit_Types(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); listVisitType.DataTextField = "VISIT_TYPE"; listVisitType.DataValueField = "VISIT_TYPE_ID"; listVisitType.DataBind(); listVisitType.Items[2].Selected = 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) { 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 { btnSave.Attributes.Add("onclick", "return formValidator('frmProcedureGroup','txtProcedureGroup');"); btnUpdate.Attributes.Add("onclick", "return formValidator('frmProcedureGroup','txtProcedureGroup');"); txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; if (Session["Flag"] != null && Session["Flag"].ToString() == "true") { //TreeMenuControl1.Visible = false; grdProcedureGroup.Visible = false; btnUpdate.Visible = false; } else { //TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE; Bill_Sys_DisplaySpeciality objspeciality = new Bill_Sys_DisplaySpeciality(); DataSet dset = new DataSet(); if (!IsPostBack) { string szBitValue = Session["SendPatientToDoctor"].ToString(); if (szBitValue.ToLower() == "false") { chkDonotHaveNotes.Visible = false; lblDonotHaveNotes.Visible = false; } else { chkDonotHaveNotes.Visible = true; lblDonotHaveNotes.Visible = true; } BindGrid(); txtIELimit.Text = "0"; txtFULimit.Text = "0"; txtCLimit.Text = "0"; btnUpdate.Enabled = false; BindProcedureGroupLstBox(); txtFULimit.Enabled = false; txtIELimit.Enabled = false; txtCLimit.Enabled = false; _Calendar = new Bill_Sys_Calender(); DataTable CheckVisitTypes = new DataTable(); if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY.ToString().ToLower() == "false") { if (txtCompanyID.Text != "") { CheckVisitTypes = _Calendar.GET_Visit_Types(txtCompanyID.Text); } if (CheckVisitTypes.Rows.Count > 0) { foreach (DataRow dr in CheckVisitTypes.Rows) { if (dr["VISIT_TYPE"].ToString().Trim().ToLower() == "ie") { txtIELimit.Enabled = true; } else if (dr["VISIT_TYPE"].ToString().Trim().ToLower() == "fu") { txtFULimit.Enabled = true; } else if (dr["VISIT_TYPE"].ToString().Trim().ToLower() == "c") { txtCLimit.Enabled = true; } } } } } } _deleteOpeation = new Bill_Sys_DeleteBO(); if (_deleteOpeation.checkForDelete(txtCompanyID.Text, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE)) { btnDelete.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); } #region "check version readonly or not" string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString(); if (app_status.Equals("True")) { Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page); cv.MakeReadOnlyPage("Bill_Sys_ProcedureGroup.aspx"); } #endregion //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }