protected void grdcasetypewithbill_RowCommand(object sender, DevExpress.Web.ASPxGridViewRowCommandEventArgs 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()); } btnUpdate.Enabled = true; btnsave.Enabled = false; extddlCaseType.Enabled = false; if (e.CommandArgs.CommandName == "Select") { try { if (Convert.ToString(grdcasetypewithbill.GetRowValues(grdcasetypewithbill.FocusedRowIndex, "SZ_CASE_TYPE_ID")) != " ") { extddlCaseType.Text = Convert.ToString(grdcasetypewithbill.GetRowValues(grdcasetypewithbill.FocusedRowIndex, "SZ_CASE_TYPE_ID")); } else { extddlCaseType.Text = ""; } if (Convert.ToString(grdcasetypewithbill.GetRowValues(grdcasetypewithbill.FocusedRowIndex, "SZ_BILLTYPE_ABBRIVATION_ID")) != " ") { extddlBillType.Text = Convert.ToString(grdcasetypewithbill.GetRowValues(grdcasetypewithbill.FocusedRowIndex, "SZ_BILLTYPE_ABBRIVATION_ID")); } else { extddlBillType.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()); } }
protected void ConfigureURLsGridView_RowCommand(object sender, DevExpress.Web.ASPxGridViewRowCommandEventArgs e) { int index = e.VisibleIndex; int ID = Convert.ToInt32(ConfigureURLsGridView.KeyFieldName); }
protected void grddoctorsetting_RowCommand(object sender, DevExpress.Web.ASPxGridViewRowCommandEventArgs 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()); } btnUpdate.Enabled = true; btnsave.Enabled = false; extddlCaseType.Enabled = false; if (e.CommandArgs.CommandName == "Select") { try { if (Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "SZ_CASE_TYPE_ID")) != " ") { extddlCaseType.Text = Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "SZ_CASE_TYPE_ID")); } else { extddlCaseType.Text = "NA"; } if (Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "BT_NPI")) != " ") { string sznpi = Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "BT_NPI")); if (sznpi == "Mandatory") { chknpi.Checked = true; } else { chknpi.Checked = false; } } if (Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "BT_DOC_LICENSE_NUMBER")) != " ") { string szdoclicensenumber = Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "BT_DOC_LICENSE_NUMBER")); if (szdoclicensenumber == "Mandatory") { chkdoclicensenumber.Checked = true; } else { chkdoclicensenumber.Checked = false; } } if (Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "BT_WCB_AUTHORIZATION_NUMBER")) != " ") { string szwcbauthnumber = Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "BT_WCB_AUTHORIZATION_NUMBER")); if (szwcbauthnumber == "Mandatory") { chkwcbauthnumber.Checked = true; } else { chkwcbauthnumber.Checked = false; } } if (Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "BT_WCB_RATING_CODE")) != " ") { string szwcbratingcode = Convert.ToString(grddoctorsetting.GetRowValues(grddoctorsetting.FocusedRowIndex, "BT_WCB_RATING_CODE")); if (szwcbratingcode == "Mandatory") { Chkwcbratingcode.Checked = true; } else { Chkwcbratingcode.Checked = 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 grdDenialReason_RowCommand(object sender, DevExpress.Web.ASPxGridViewRowCommandEventArgs 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()); } int i = 0; try { if (e.CommandArgs.CommandName.ToString() == "Delete") { Bill_Sys_Case_Denial objOpDen = new Bill_Sys_Case_Denial(); string szCaseID = e.CommandArgs.CommandArgument.ToString(); string szDenialId = e.KeyValue.ToString(); i = objOpDen.deleteCaseDenials(szCaseID, szDenialId); BindReasonGrid(); if (i > 0) { usrMessage.PutMessage("Records Deleted Successfully."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } } if (e.CommandArgs.CommandName.ToString() == "Scan") { string str3 = ""; string caseID = ""; string companyId = ""; string str6 = ""; string str7 = ""; string str8 = ""; string caseGeneralDenialNode = ""; string str10 = ""; string str11 = ""; string str12 = ""; string str13 = ""; Bill_Sys_Case_Denial denial2 = new Bill_Sys_Case_Denial(); str12 = ((Bill_Sys_CaseObject)this.Session["CASE_OBJECT"]).SZ_CASE_NO.ToString(); str13 = ((Bill_Sys_CaseObject)this.Session["CASE_OBJECT"]).SZ_PATIENT_NAME.ToString(); caseID = e.CommandArgs.CommandArgument.ToString(); str10 = e.KeyValue.ToString(); str7 = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID.ToString(); str8 = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME.ToString(); companyId = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID.ToString(); str6 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME.ToString(); str11 = "GeneralDenials"; caseGeneralDenialNode = denial2.GetCaseGeneralDenialNode(caseID, companyId); str3 = ConfigurationManager.AppSettings["webscanurl"].ToString(); ScriptManager.RegisterStartupScript((Page)this, base.GetType(), "starScript", "window.open('" + (str3 + "&Flag=" + str11 + "&CaseId=" + caseID + "&CompanyId=" + companyId + "&CompanyName=" + str6 + "&UserId=" + str7 + "&UserName="******"&NodeId=" + caseGeneralDenialNode + "&DenialId=" + str10 + "&PName=" + str13 + "&CaseNo=" + str12) + "', 'Scan_Document','channelmode=no,location=no,toolbar=no,menubar=0,resizable=0,status=no,scrollbars=0, width=600,height=550'); ", true); } if (e.CommandArgs.CommandName.ToString() == "Upload") { string str14 = e.KeyValue.ToString(); string str15 = e.CommandArgs.CommandArgument.ToString(); this.hdfCaseID.Value = str15; this.hdfDenialID.Value = str14; ScriptManager.RegisterStartupScript(this, GetType(), "ShowAddDocumentDenialPopup", "ShowAddDocumentDenialPopup('" + str15 + "','" + str14 + "');", 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 grdexcludingbill_RowCommand(object sender, DevExpress.Web.ASPxGridViewRowCommandEventArgs 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()); } btnUpdate.Enabled = true; btnsave.Enabled = false; if (e.CommandArgs.CommandName == "Select") { Bill_Sys_Billing_Provider _Bill_Sys_Billing_Provider = new Bill_Sys_Billing_Provider(); DataSet dsreadingdoctorlist = new DataSet(); string szdoctorname = Convert.ToString(grdexcludingbill.GetRowValues(grdexcludingbill.FocusedRowIndex, "SZ_READING_DOCTOR")); string[] szDoctorId = szdoctorname.Split('-'); string szalldoctorids = szDoctorId[0]; dsreadingdoctorlist = _Bill_Sys_Billing_Provider.GetAllDoctorIDList(szalldoctorids, txtCompanyID.Text); lstReadingdoctor.DataTextField = "DESCRIPTION"; lstReadingdoctor.DataValueField = "CODE"; lstReadingdoctor.DataSource = dsreadingdoctorlist; lstReadingdoctor.DataBind(); btnUpdate.Enabled = true; for (int cntLst = 0; cntLst < lstReadingdoctor.Items.Count; cntLst++) { for (int i = 0; i < dsreadingdoctorlist.Tables[0].Rows.Count; i++) { if (dsreadingdoctorlist.Tables[0].Rows[i]["CODE"].ToString() == lstReadingdoctor.Items[cntLst].Value.ToString()) { lstReadingdoctor.Items[cntLst].Selected = true; } } } ddlReadingddlDoctor.Enabled = false; lstReadingdoctor.Enabled = false; btnremove.Visible = false; //object keyValue = grdexcludingbill.GetRowValues(grdexcludingbill.FocusedRowIndex, new string[] { grdexcludingbill.KeyFieldName }); try { if (Convert.ToString(grdexcludingbill.GetRowValues(grdexcludingbill.FocusedRowIndex, "SZ_READING_DOCTOR_ID")) != " ") { ddlReadingddlDoctor.Text = Convert.ToString(grdexcludingbill.GetRowValues(grdexcludingbill.FocusedRowIndex, "SZ_READING_DOCTOR_ID")); } else { ddlReadingddlDoctor.Text = ""; } if (Convert.ToString(grdexcludingbill.GetRowValues(grdexcludingbill.FocusedRowIndex, "SZ_INSURANCE_ID")) != " ") { ddlInsurance.Text = Convert.ToString(grdexcludingbill.GetRowValues(grdexcludingbill.FocusedRowIndex, "SZ_INSURANCE_ID")); } else { ddlInsurance.Text = ""; } if (Convert.ToString(grdexcludingbill.GetRowValues(grdexcludingbill.FocusedRowIndex, "SZ_CASE_TYPE_ID")) != " ") { ddlCaseType.Text = Convert.ToString(grdexcludingbill.GetRowValues(grdexcludingbill.FocusedRowIndex, "SZ_CASE_TYPE_ID")); } else { ddlCaseType.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()); } }