protected void btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfOperation = ""; try { for (int i = 0; i < grdUserConfiguration.Items.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdUserConfiguration.Items[i].FindControl("chkDelete"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteRecord("SP_TXN_USER_CONFIGURATION", "@SZ_USER_CONFIGURATION_ID", grdUserConfiguration.Items[i].Cells[1].Text)) { if (szListOfOperation == "") { szListOfOperation = grdUserConfiguration.Items[i].Cells[2].Text; } else { szListOfOperation = szListOfOperation + " , " + grdUserConfiguration.Items[i].Cells[2].Text; } } } } if (szListOfOperation != "") { Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for Operation " + szListOfOperation + " exists.'); ", true); } else { lblMsg.Visible = true; lblMsg.Text = "Operation deleted successfully ..."; } ConfigDetails(); BindGrid(); } 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 btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfCaseStatus = ""; try { for (int i = 0; i < grdCaseStatusList.Rows.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdCaseStatusList.Rows[i].FindControl("chkDelete"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteRecord("SP_MST_CASE_STATUS", "@SZ_CASE_STATUS_ID", grdCaseStatusList.DataKeys[i][0].ToString())) { if (szListOfCaseStatus == "") { szListOfCaseStatus = grdCaseStatusList.DataKeys[i][1].ToString(); } else { szListOfCaseStatus = szListOfCaseStatus + " , " + grdCaseStatusList.DataKeys[i][1].ToString(); } } } } if (szListOfCaseStatus != "") { Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for Case Status " + szListOfCaseStatus + " exists.'); ", true); } else { ClearControl(); grdCaseStatusList.XGridBind(); lblMsg.Visible = true; lblMsg.Text = "Case Status deleted successfully ..."; } } 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('aspnetForm','txtBilingOfficeName');"); btnUpdate.Attributes.Add("onclick", "return formValidator('aspnetForm','txtBilingOfficeName');"); txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; btnDelete.Attributes.Add("onclick", "return ConfirmDelete();"); if (Session["Flag"] != null && Session["Flag"].ToString() == "true") { //TreeMenuControl1.Visible = false; grdOfficeList.Visible = false; btnUpdate.Visible = false; } else { //TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE; if (!IsPostBack) { BindGrid(); btnUpdate.Enabled = false; } } _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_BillingOffice.aspx"); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } #endregion }
protected void btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfDoctor = ""; try { for (int i = 0; i < grdRffDoc.Rows.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdRffDoc.Rows[i].FindControl("ChkDelete"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteRecord("SP_MST_DOCTOR", "@SZ_DOCTOR_ID", grdRffDoc.DataKeys[i][0].ToString(), "REF_DELETE")) { if (szListOfDoctor == "") { szListOfDoctor = grdRffDoc.Rows[i].Cells[2].Text.ToString(); } else { szListOfDoctor = szListOfDoctor + " , " + grdRffDoc.Rows[i].Cells[2].Text.ToString(); } } } } if (szListOfDoctor != "") { //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for Doctor " + szListOfDoctor + " is exists.'); ", true); ScriptManager.RegisterClientScriptBlock(this, GetType(), "Done", "alert('Records for Doctor " + szListOfDoctor + " is exists.');", true); } grdRffDoc.XGridBindSearch(); usrMessage.PutMessage("Doctor deleted successfully ..."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } 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 btnDelete_Click(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()); } Bill_Sys_DeleteBO ebo = new Bill_Sys_DeleteBO(); string str = ""; try { for (int i = 0; i < this.grdSettings.Rows.Count; i++) { CheckBox box = (CheckBox)this.grdSettings.Rows[i].FindControl("chkDelete"); if (box.Checked && !ebo.deleteRecord("SP_MST_SYS_SETTINGS", "@SZ_SYS_SETTING_ID", this.grdSettings.DataKeys[i]["SZ_SYS_SETTING_ID"].ToString())) { if (str == "") { str = this.grdSettings.Rows[i].Cells[1].Text.ToString(); } else { str = str + " , " + this.grdSettings.Rows[i].Cells[1].Text.ToString(); } } } if (str != "") { this.usrMessage.PutMessage("Records for System Settings " + str + " exists."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage); this.usrMessage.Show(); } else { this.usrMessage.PutMessage("key deleted successfully."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); this.usrMessage.Show(); this.SetDefaultSettigns(); this.grdSettings.XGridBindSearch(); } } 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 btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfCaseType = ""; bool _flag = false; try { for (int i = 0; i < grdWorkComp.Items.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdWorkComp.Items[i].FindControl("chkDelete"); if (chkDelete1.Checked) { _deleteOpeation.deleteRecord("SP_MST_WORKER_COMP_BOARD", "@I_WORK_COMP_ID", grdWorkComp.Items[i].Cells[1].Text); _flag = true; } //else //{ // Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "script", "<script language='javascript'> alert('Please select the record from grid !!'); </script>"); //} } if (_flag == true) { BindGrid(); lblMsg.Visible = true; lblMsg.Text = "Work Comp Deleted Successfully ...!"; } else { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "script", "<script language='javascript'> alert('Please select the record from grid !!'); </script>"); } ClearControl(); } 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 { this.btnSave.Attributes.Add("onclick", "return formValidator('frmDoctor','txtDoctorName,extddlDoctorType,extddlOffice,extddlSpeciality');"); this.btnUpdate.Attributes.Add("onclick", "return formValidator('frmDoctor','txtDoctorName,extddlDoctorType,extddlOffice,extddlSpeciality');"); this.txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; this.btnDelete.Attributes.Add("onclick", "return ConfirmDelete();"); this.extddlOffice.Flag_ID = this.txtCompanyID.Text; this.extddlDoctorType.Flag_ID = this.txtCompanyID.Text; if (!((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY && !(((Bill_Sys_SystemObject)this.Session["SYSTEM_OBJECT"]).SZ_LOCATION != "1")) { this.extddlOffice.Flag_Key_Value = "LOCATION_OFFICE_LIST"; } this.extddlProvider.Flag_ID = this.txtCompanyID.Text; this.extddlSpeciality.Flag_ID = this.txtCompanyID.Text; if (!base.IsPostBack) { if (base.Request.QueryString["ProviderId"] != null) { this.extddlProvider.Text = base.Request.QueryString["ProviderId"].ToString().Trim(); this.extddlProvider.Enabled = false; } this.BindGrid(); this.BindSpecialityGrid(); this.btnUpdate.Enabled = false; } this._deleteOpeation = new Bill_Sys_DeleteBO(); if (this._deleteOpeation.checkForDelete(this.txtCompanyID.Text, ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ROLE)) { this.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); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnDelete_Click(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()); } this._deleteOpeation = new Bill_Sys_DeleteBO(); string text = ""; try { for (int i = 0; i < this.grdDoctorNameList.Items.Count; i++) { CheckBox box = (CheckBox)this.grdDoctorNameList.Items[i].FindControl("chkDelete"); if (box.Checked && !this._deleteOpeation.deleteRecord("SP_MST_DOCTOR", "@SZ_DOCTOR_ID", this.grdDoctorNameList.Items[i].Cells[1].Text)) { if (text == "") { text = this.grdDoctorNameList.Items[i].Cells[2].Text; } else { text = text + " , " + this.grdDoctorNameList.Items[i].Cells[2].Text; } } } if (text != "") { this.Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for Doctor " + text + " exists.'); ", true); } else { this.lblMsg.Visible = true; this.lblMsg.Text = "Doctor deleted successfully ..."; } this.BindGrid(); } 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 { this.btnSave.Attributes.Add("onclick", "return formValidator('frmCaseType','txtCaseType,txtCaseTypeAbbrivation');"); this.btnUpdate.Attributes.Add("onclick", "return formValidator('frmCaseType','txtCaseType,txtCaseTypeAbbrivation');"); this.txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; if ((this.Session["Flag"] != null) && (this.Session["Flag"].ToString() == "true")) { this.grdCaseType.Visible = false; this.btnUpdate.Visible = false; } else if (!base.IsPostBack) { this.BindGrid(); this.btnUpdate.Enabled = false; } this._deleteOpeation = new Bill_Sys_DeleteBO(); if (this._deleteOpeation.checkForDelete(this.txtCompanyID.Text, ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ROLE)) { this.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); } if (((Bill_Sys_BillingCompanyObject)this.Session["APPSTATUS"]).SZ_READ_ONLY.ToString().Equals("True")) { new Bill_Sys_ChangeVersion(this.Page).MakeReadOnlyPage("Bill_Sys_CaseType.aspx"); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnPaymentDelete_Click(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()); } txtUserID.Text = txtUserID.Text; _deleteOperation = new Bill_Sys_DeleteBO(); String szListOfPayment = ""; try { for (int i = 0; i < grdPaymentTransaction.Items.Count; i++) { CheckBox checkDelete = (CheckBox)grdPaymentTransaction.Items[i].FindControl("chkDelete"); if (checkDelete.Checked) { if (_deleteOperation.deleteRecord("SP_TXN_MISC_PAYMENT_TRANSACTIONS", "@I_PAYMENT_ID", grdPaymentTransaction.Items[i].Cells[1].Text)) { usrMessage1.PutMessage("Selected Payment deleted successfully .....!"); usrMessage1.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage1.Show(); _InvoiceDAO.UpdatePayment(txtCompanyID1.Text, lblInvoiceId.Text); } } } BindGrid(); ModalPopupExtender1.Show(); } 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 btnDelete_Click(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 { _deleteOpeation = new Bill_Sys_DeleteBO(); string szListOfOperation = ""; for (int i = 0; i < grdInvoiceReport.Rows.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdInvoiceReport.Rows[i].FindControl("chkSelect"); if (chkDelete1.Checked) { LinkButton lnkInvoiceID = (LinkButton)grdInvoiceReport.Rows[i].FindControl("lnkSelectCase"); _InvoiceDAO.DeleteInvoiceRecord(lnkInvoiceID.Text, txtCompanyId.Text); } } grdInvoiceReport.XGridBind(); } 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 btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfOffice = ""; try { for (int i = 0; i < grdOfficeList.Rows.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdOfficeList.Rows[i].FindControl("ChkDelete"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteRecord("SP_MST_OFFICE_REFF", "@SZ_OFFICE_ID", grdOfficeList.DataKeys[i][0].ToString())) { if (szListOfOffice == "") { szListOfOffice = grdOfficeList.Rows[i].Cells[2].Text.ToString(); } else { szListOfOffice = szListOfOffice + " , " + grdOfficeList.Rows[i].Cells[2].Text.ToString(); } } } } if (szListOfOffice != "") { if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) { // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for office " + szListOfOffice + " exists.'); ", true); ScriptManager.RegisterClientScriptBlock(this, GetType(), "Done", "alert('Records for office " + szListOfOffice + " exists.');", true); } else { //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for provider " + szListOfOffice + " exists.'); ", true); ScriptManager.RegisterClientScriptBlock(this, GetType(), "Done", "alert('Records for provider " + szListOfOffice + " exists.');", true); } } else { if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) { grdOfficeList.XGridBindSearch(); usrMessage.PutMessage("Office deleted successfully ..."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } else { grdOfficeList.XGridBindSearch(); usrMessage.PutMessage("Provider deleted successfully ..."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } } } 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) { this.con.SourceGrid = grdOfficeList; this.txtSearchBox.SourceGrid = grdOfficeList; this.grdOfficeList.Page = this.Page; this.grdOfficeList.PageNumberList = this.con; bool bt_referring_facility = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY; if ((bt_referring_facility == true) || (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_LOCATION != "1")) { lblLocation.Visible = false; extddlLocation.Visible = false; } else { lblLocation.Visible = true; extddlLocation.Visible = true; SetReadOnly(); } btnSave.Attributes.Add("onclick", "return validate();"); btnUpdate.Attributes.Add("onclick", "return validate();"); btnUpdate.Attributes.Add("onclick", "return validate();"); txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; // btnClear.Attributes.Add("onclick", "return Clear();"); extddlLocation.Flag_ID = txtCompanyID.Text.ToString(); if (Session["Flag"] != null && Session["Flag"].ToString() == "true") { //TreeMenuControl1.Visible = false; grdOfficeList.Visible = false; btnUpdate.Visible = false; } else { //TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE; if (!IsPostBack) { //BindGrid(); txtBillingOfficeFlag.Text = "0"; grdOfficeList.XGridBindSearch(); btnUpdate.Enabled = false; } } _deleteOpeation = new Bill_Sys_DeleteBO(); if (_deleteOpeation.checkForDelete(txtCompanyID.Text, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE)) { btnDelete.Visible = false; } if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) { chkSameAddress.Visible = false; lblBillingAdd.Visible = false; txtBillingAdd.Visible = false; lblBillingCity.Visible = false; txtBillingCity.Visible = false; lblBillingPhone.Visible = false; txtBillingPhone.Visible = false; lblBillingState.Visible = false; extddlBillingState.Visible = false; lblBillingZip.Visible = false; txtBillingZip.Visible = false; lblNPI.Visible = false; txtNPI.Visible = false; lblFederalTax.Visible = false; txtFederalTax.Visible = false; lblName.Text = "Office Name"; lblAddress.Text = "Office Address"; lblCity.Text = "Office City"; lblState.Text = "Office State"; lblZip.Text = "Office Zip"; lblPhone.Text = "Office Phone"; lblFax.Text = "Office Fax"; lblEmail.Text = "Office Email"; lblPrefix.Visible = true; txtPrefix.Visible = true; Label1.Text = "Office"; lblHeader.Text = "Office Master"; } else { lblPrefix.Visible = false; txtPrefix.Visible = false; Label1.Text = "Provider"; lblHeader.Text = "Provider Master"; } }
protected void btnDeletVisit_Click(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 { string szListOfProcedureCode = ""; for (int i = 0; i < grdTodayVisit.Rows.Count; i++) { CheckBox chkSelected = (CheckBox)grdTodayVisit.Rows[i].FindControl("ChkSelect"); if (chkSelected.Checked == true) { string iEventID = grdTodayVisit.DataKeys[i]["I_EVENT_ID"].ToString(); Bill_Sys_DeleteBO _deleteOpeation = new Bill_Sys_DeleteBO(); if (!_deleteOpeation.deleteRecord("SP_TXN_CALENDAR_EVENT", "@I_EVENT_ID", iEventID)) { if (szListOfProcedureCode == "") { // Org -- szListOfProcedureCode = gridTabInfo.Items[i].Cells[1].Text + "-" + gridTabInfo.Items[i].Cells[3].Text; szListOfProcedureCode = grdTodayVisit.DataKeys[i]["DT_EVENT_DATE"].ToString(); } else { // Org -- szListOfProcedureCode = szListOfProcedureCode + " , " + gridTabInfo.Items[i].Cells[1].Text + "-" + gridTabInfo.Items[i].Cells[3].Text; szListOfProcedureCode = szListOfProcedureCode + " , " + grdTodayVisit.DataKeys[i]["DT_EVENT_DATE"].ToString(); } } } } Bind_Grid(); //Bill_Sys_Event_BO objGetVisits = new Bill_Sys_Event_BO(); //DataSet dsVisits = new DataSet(); //dsVisits = objGetVisits.GetCaledarVisits(txtGetDay.Value, txtCompanyID.Text, extddlSpeciality.Text, txtProvider.Text, extddlDoctor.Text); //grdTodayVisit.XGridBindSearch(); //ViewState["griddata"] = dsVisits; clear(); if (szListOfProcedureCode != "") { usrMessage.PutMessage("Error visits not deleted for " + szListOfProcedureCode + " event dates"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage); usrMessage.Show(); } else { usrMessage.PutMessage("Visit Delete Sucessfully ..."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } //LoadCalendarAccordingToYearAndMonth(); } 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 btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfProcedureCode = ""; Bill_Sys_DisplaySpeciality objspeciality; DataSet dset; ArrayList arrlst = new ArrayList(); DataTable ID; try { for (int i = 0; i < grdProcedureGroup.Items.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdProcedureGroup.Items[i].FindControl("chkDelete"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteRecord("SP_MST_PROCEDURE_GROUP", "@SZ_PROCEDURE_GROUP_ID", grdProcedureGroup.Items[i].Cells[1].Text)) { if (szListOfProcedureCode == "") { szListOfProcedureCode = grdProcedureGroup.Items[i].Cells[2].Text; } else { szListOfProcedureCode = szListOfProcedureCode + " , " + grdProcedureGroup.Items[i].Cells[2].Text; } } //objspeciality = new Bill_Sys_DisplaySpeciality(); //dset = new DataSet(); //dset = objspeciality.GetAssociateSpecialityData(grdProcedureGroup.Items[i].Cells[1].Text, txtCompanyID.Text); objspeciality = new Bill_Sys_DisplaySpeciality(); objspeciality.DeleteAssociateSpeciality(grdProcedureGroup.Items[i].Cells[1].Text, txtCompanyID.Text); //for (int j = 0; j < dset.Tables[0].Rows.Count; j++) //{ // //ID = new DataTable(); // objspeciality = new Bill_Sys_DisplaySpeciality(); // objspeciality.DeleteAssociateSpeciality(dset.Tables[0].Rows[j][0].ToString(), txtCompanyID.Text); // //for (int k = 0; k > ID.Rows.Count; k++) // //{ // // arrlst.Add(ID.Rows[k][0].ToString()); // //} //} } } if (szListOfProcedureCode != "") { Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for Speciality " + szListOfProcedureCode + " exists.'); ", true); } else { lblMsg.Visible = true; lblMsg.Text = "Speciality deleted successfully ..."; } // grdProcedureGroup.CurrentPageIndex = 0; BindGrid(); BindProcedureGroupLstBox(); ClearControl(); } 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) { this.con.SourceGrid = this.grdOfficeList; this.txtSearchBox.SourceGrid = this.grdOfficeList; this.grdOfficeList.Page = this.Page; this.grdOfficeList.PageNumberList = this.con; if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY || (((Bill_Sys_SystemObject)this.Session["SYSTEM_OBJECT"]).SZ_LOCATION != "1")) { this.lblLocation.Visible = false; this.extddlLocation.Visible = false; } else { this.lblLocation.Visible = true; this.extddlLocation.Visible = true; this.SetReadOnly(); } this.btnSave.Attributes.Add("onclick", "return validate();"); this.btnUpdate.Attributes.Add("onclick", "return validate();"); this.btnUpdate.Attributes.Add("onclick", "return validate();"); this.txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; this.extddlLocation.Flag_ID = this.txtCompanyID.Text.ToString(); if ((this.Session["Flag"] != null) && (this.Session["Flag"].ToString() == "true")) { this.grdOfficeList.Visible = false; this.btnUpdate.Visible = false; } else if (!base.IsPostBack) { this.txtBillingOfficeFlag.Text = "0"; this.grdOfficeList.XGridBindSearch(); this.btnUpdate.Enabled = false; } this._deleteOpeation = new Bill_Sys_DeleteBO(); if (this._deleteOpeation.checkForDelete(this.txtCompanyID.Text, ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ROLE)) { this.btnDelete.Visible = false; } if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY) { this.chkSameAddress.Visible = false; this.lblBillingAdd.Visible = false; this.txtBillingAdd.Visible = false; this.lblBillingCity.Visible = false; this.txtBillingCity.Visible = false; this.lblBillingPhone.Visible = false; this.txtBillingPhone.Visible = false; this.lblBillingState.Visible = false; this.extddlBillingState.Visible = false; this.lblBillingZip.Visible = false; this.txtBillingZip.Visible = false; this.lblNPI.Visible = false; this.txtNPI.Visible = false; this.lblFederalTax.Visible = false; this.txtFederalTax.Visible = false; this.lblName.Text = "Office Name"; this.lblAddress.Text = "Office Address"; this.lblCity.Text = "Office City"; this.lblState.Text = "Office State"; this.lblZip.Text = "Office Zip"; this.lblPhone.Text = "Office Phone"; this.lblFax.Text = "Office Fax"; this.lblEmail.Text = "Office Email"; this.lblPrefix.Visible = true; this.txtPrefix.Visible = true; this.Label1.Text = "Office"; this.lblHeader.Text = "Office Master"; } else { this.lblPrefix.Visible = false; this.txtPrefix.Visible = false; this.Label1.Text = "Provider"; this.lblHeader.Text = "Provider Master"; } }
protected void btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfOffice = ""; try { for (int i = 0; i < grdOfficeList.Items.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdOfficeList.Items[i].FindControl("chkDelete"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteRecord("SP_MST_OFFICE", "@SZ_OFFICE_ID", grdOfficeList.Items[i].Cells[1].Text, "BILLING_OFFICE_DELETE")) { if (szListOfOffice == "") { szListOfOffice = grdOfficeList.Items[i].Cells[2].Text; } else { szListOfOffice = szListOfOffice + " , " + grdOfficeList.Items[i].Cells[2].Text; } } } } if (szListOfOffice != "") { if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) { Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for office " + szListOfOffice + " exists.'); ", true); } else { Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for provider " + szListOfOffice + " exists.'); ", true); } } else { lblMsg.Visible = true; if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) { lblMsg.Text = "Office deleted successfully ..."; } else { lblMsg.Text = "Provider deleted successfully ..."; } } BindGrid(); } 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 { bool bt_referring_facility = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY; if ((bt_referring_facility == true) || (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_LOCATION != "1")) { lblLocation.Visible = false; extddlLocation.Visible = false; } else { lblLocation.Visible = true; extddlLocation.Visible = true; SetReadOnly(); } btnSave.Attributes.Add("onclick", "return formValidator('aspnetForm','txtOffice');"); btnUpdate.Attributes.Add("onclick", "return formValidator('aspnetForm','txtOffice');"); txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; btnDelete.Attributes.Add("onclick", "return ConfirmDelete();"); extddlLocation.Flag_ID = txtCompanyID.Text.ToString(); if (Session["Flag"] != null && Session["Flag"].ToString() == "true") { //TreeMenuControl1.Visible = false; grdOfficeList.Visible = false; btnUpdate.Visible = false; } else { //TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE; if (!IsPostBack) { BindGrid(); btnUpdate.Enabled = false; } } _deleteOpeation = new Bill_Sys_DeleteBO(); if (_deleteOpeation.checkForDelete(txtCompanyID.Text, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE)) { btnDelete.Visible = false; } if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) { chkSameAddress.Visible = false; lblBillingAdd.Visible = false; txtBillingAdd.Visible = false; lblBillingCity.Visible = false; txtBillingCity.Visible = false; lblBillingPhone.Visible = false; txtBillingPhone.Visible = false; lblBillingState.Visible = false; extddlBillingState.Visible = false; lblBillingZip.Visible = false; txtBillingZip.Visible = false; lblNPI.Visible = false; txtNPI.Visible = false; lblFederalTax.Visible = false; txtFederalTax.Visible = false; lblName.Text = "Office Name"; lblAddress.Text = "Office Address"; lblCity.Text = "Office City"; lblState.Text = "Office State"; lblZip.Text = "Office Zip"; lblPhone.Text = "Office Phone"; lblFax.Text = "Office Fax"; lblEmail.Text = "Office Email"; lblPrefix.Visible = true; txtPrefix.Visible = true; } else { lblPrefix.Visible = false; txtPrefix.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 #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_Office.aspx"); } #endregion using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnDelete_Click(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 { _deleteOpeation = new Bill_Sys_DeleteBO(); string szListOfOperation = ""; for (int i = 0; i < grdInvoiceItem.Items.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdInvoiceItem.Items[i].FindControl("chkSelect"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteRecord("SP_MST_INVOICE_ITEM", "@I_INVOICE_ITEM_ID1", grdInvoiceItem.Items[i].Cells[1].Text)) { if (szListOfOperation == "") { szListOfOperation = grdInvoiceItem.Items[i].Cells[2].Text; } else { szListOfOperation = szListOfOperation + " , " + grdInvoiceItem.Items[i].Cells[2].Text; } } } } if (szListOfOperation != "") { usrMessage.PutMessage("Item Deleted Successfully!"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_SystemMessage); usrMessage.Show(); ClearControl(); } else { usrMessage.PutMessage("Item Deleted Successfully!"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); ClearControl(); } BindGrid(); } 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 btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfPayment = ""; try { for (int i = 0; i < grdPaymentTransaction.Items.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdPaymentTransaction.Items[i].FindControl("chkDelete"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteRecord("SP_TXN_PAYMENT_TRANSACTIONS", "@SZ_PAYMENT_ID", grdPaymentTransaction.Items[i].Cells[1].Text)) { if (szListOfPayment == "") { szListOfPayment = grdPaymentTransaction.Items[i].Cells[2].Text + " " + grdPaymentTransaction.Items[i].Cells[4].Text; } else { szListOfPayment = "," + grdPaymentTransaction.Items[i].Cells[2].Text + " " + grdPaymentTransaction.Items[i].Cells[4].Text; } } } } if (szListOfPayment != "") { Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for payment " + szListOfPayment + " exists.'); ", true); } else { usrMessage.PutMessage("Payment deleted successfully ..."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); //lblMsg.Visible = true; //lblMsg.Text = "Payment deleted successfully ..."; } BindGrid(); _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO(); decimal _balance = Convert.ToDecimal(_bill_Sys_BillingCompanyDetails_BO.GetBalance(txtBillNo.Text)); txtBalance.Text = _balance.ToString(); txtPostBalance.Text = _balance.ToString(); } 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 btnDeletVisit_Click(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 { string str = ""; for (int i = 0; i < this.grdShowVisit.VisibleRowCount; i++) { GridViewDataColumn item = (GridViewDataColumn)this.grdShowVisit.Columns[0]; CheckBox checkBox = (CheckBox)this.grdShowVisit.FindRowCellTemplateControl(i, item, "chkSelect"); if (checkBox.Checked) { string[] strArrays = new string[1]; strArrays[0] = "I_EVENT_ID"; string str1 = this.grdShowVisit.GetRowValues(i, strArrays).ToString(); Bill_Sys_DeleteBO billSysDeleteBO = new Bill_Sys_DeleteBO(); if (!billSysDeleteBO.deleteRecord("SP_TXN_CALENDAR_EVENT", "@I_EVENT_ID", str1)) { if (str != "") { string[] strArrays1 = new string[1]; strArrays1[0] = "DT_EVENT_DATE"; str = string.Concat(str, " , ", this.grdShowVisit.GetRowValues(i, strArrays1).ToString()); } else { string[] strArrays2 = new string[1]; strArrays2[0] = "DT_EVENT_DATE"; str = this.grdShowVisit.GetRowValues(i, strArrays2).ToString(); } } } } Bill_Sys_Event_BO billSysEventBO = new Bill_Sys_Event_BO(); DataSet visits = billSysEventBO.GetVisits(this.txtCasID.Text, this.txtCompanyID.Text); this.grdShowVisit.DataSource = visits; this.grdShowVisit.DataBind(); if (str == "") { this.usrMessage1.PutMessage("visit deleted successfully.."); this.usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); this.usrMessage1.Show(); } else { this.usrMessage1.PutMessage(string.Concat("Eroor vsits not deleted for ", str, " event dates")); this.usrMessage1.SetMessageType(0); this.usrMessage1.Show(); } } 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 btnDelete_Click(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()); } _deleteOpeation = new Bill_Sys_DeleteBO(); String szListOfProcedureCodes = ""; try { for (int i = 0; i < grdEmployerProcedure.Rows.Count; i++) { CheckBox chkDelete1 = (CheckBox)grdEmployerProcedure.Rows[i].FindControl("chkDelete"); if (chkDelete1.Checked) { if (!_deleteOpeation.deleteEmployerRecord(grdEmployerProcedure.DataKeys[i]["I_PROCEDURE_ID"].ToString(), txtCompanyID.Text)) { if (szListOfProcedureCodes == "") { szListOfProcedureCodes = grdEmployerProcedure.DataKeys[i]["SZ_PROCEDURE_CODE"].ToString() + " -- " + grdEmployerProcedure.DataKeys[i]["SZ_CODE_DESCRIPTION"].ToString(); } else { szListOfProcedureCodes = szListOfProcedureCodes + " , " + grdEmployerProcedure.DataKeys[i]["SZ_PROCEDURE_CODE"].ToString() + " -- " + grdEmployerProcedure.DataKeys[i]["SZ_CODE_DESCRIPTION"].ToString(); } } } } if (szListOfProcedureCodes != "") { Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for Procedure codes " + szListOfProcedureCodes + " exists.'); ", true); } else { usrMessage.PutMessage("Procedure codes deleted successfully ..."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } grdEmployerProcedure.XGridBindSearch(); usrMessage.PutMessage("Procedure codes deleted successfully ..."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } 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()); } }