protected void btnPrint_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 { objSysObject = new Bill_Sys_SystemObject(); string signNotRequired = (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_ALLOW_HP1_SIGN).ToString(); if (hdSave.Value.ToString() == "1") { if (signNotRequired == "1") { PrintPDF(); } else { if ((txtPhysicianSignPath.Text.ToString() != "") && (txtNotarySignPath.Text.ToString() != "") && (txtOtherSignPath.Text.ToString() != "")) { PrintPDF(); } else { usrMessage.PutMessage("Please Save Signs."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage); usrMessage.Show(); } } } else { usrMessage.PutMessage("Please Save Record First."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage); 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()); } }
private void ConfigDetails() { 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_LoginBO = new Bill_Sys_LoginBO(); try { DataTable _dt = _bill_Sys_LoginBO.GetConfigSettings(txtCompanyID.Text, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE); Session["SYSTEM_OBJECT"] = ""; Bill_Sys_SystemObject _bill_Sys_SystemObject = new Bill_Sys_SystemObject(); foreach (DataRow dr in _dt.Rows) { switch (dr["SZ_CONFIGURATION"].ToString()) { case "SOFT DELETE": _bill_Sys_SystemObject.SZ_SOFT_DELETE = "True"; break; case "HARD DELETE": _bill_Sys_SystemObject.SZ_HARD_DELETE = "True"; break; case "NEW BILLS": _bill_Sys_SystemObject.SZ_NEW_BILL = "True"; break; case "VIEW BILLS": _bill_Sys_SystemObject.SZ_VIEW_BILL = "True"; break; } } Session["SYSTEM_OBJECT"] = _bill_Sys_SystemObject; } 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 { objCompany = (Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]; objSystem = (Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]; ajAutoName.ContextKey = objCompany.SZ_COMPANY_ID; btnSendMail.Attributes.Add("onclick", "return confirm_check();"); Button1.Attributes.Add("onclick", "return confirm_check();"); if (!IsPostBack) { txtCompanyID.Text = objCompany.SZ_COMPANY_ID; } if (objCompany.BT_REFERRING_FACILITY == true) { extddlOffice.Flag_Key_Value = "BILLING_OFFICE_LIST"; } extddlOffice.Flag_ID = txtCompanyID.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 SetDefaultSettigns() { 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_LoginBO nbo = new Bill_Sys_LoginBO(); try { this._bill_Sys_SystemObject = (Bill_Sys_SystemObject)this.Session["SYSTEM_OBJECT"]; this._bill_Sys_SystemObject.SZ_DEFAULT_LAW_FIRM = nbo.getDefaultSettings(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "SS00003"); this._bill_Sys_SystemObject.SZ_CHART_NO = nbo.getDefaultSettings(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "SS00004"); this._bill_Sys_SystemObject.SZ_LOCATION = nbo.getDefaultSettings(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "SS00007"); this._bill_Sys_SystemObject.SZ_CHECKINVALUE = nbo.getDefaultSettings(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "SS00008"); this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_PHONE = nbo.getDefaultSettings(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "SS00018"); this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_SIGNATURE_FOR_NF3 = nbo.getDefaultSettings(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "SS00019"); this._bill_Sys_SystemObject.SZ_SHOW_DOCTOR_SIGNATURE_FOR_NF3 = nbo.getDefaultSettings(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "SS00020"); this.Session["SYSTEM_OBJECT"] = this._bill_Sys_SystemObject; } 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) { objSessionSystem = (Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]; objSessionBillingCompany = (Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]; objSessionCompanyAppStatus = (Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]; objSessionUser = (Bill_Sys_UserObject)Session["USER_OBJECT"]; txtireortreceive.Text = "false"; //txtVisit.Text = drpdown_Documents.SelectedValue.ToString(); txtCompanyid.Text = objSessionBillingCompany.SZ_COMPANY_ID; extddlCaseType.Flag_ID = txtCompanyid.Text; this.con1.SourceGrid = grdpaidbills; this.txtSearchBox1.SourceGrid = grdpaidbills; this.grdpaidbills.Page = this.Page; this.grdpaidbills.PageNumberList = this.con1; ddlDateValues.Attributes.Add("onChange", "javascript:SetVisitDate();"); btnAddReason.Attributes.Add("onclick", "return CheckSelect();"); btnChangeCaseType.Attributes.Add("onclick", "return CheckSelect();"); if (!IsPostBack) { grdpaidbills.XGridBindSearch(); } }
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()); } objSessionSystem = (Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]; objSessionBillingCompany = (Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]; objSessionCompanyAppStatus = (Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]; objSessionUser = (Bill_Sys_UserObject)Session["USER_OBJECT"]; btnOpenDocument.Attributes.Add("onClick", "return CheckDocument();"); if (!IsPostBack) { txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; extddlSpecialty.Flag_ID = txtCompanyID.Text; Session["Refresh"] = "1"; chkrefreshpaidbills.Checked = true; if (Request.QueryString["CaseID"] != null && Request.QueryString["EProcid"] != null) { txtCaseID.Text = Request.QueryString["CaseID"].ToString(); txtEventProcID.Text = Request.QueryString["EProcid"].ToString(); txtProcGroup.Text = Request.QueryString["ProcGroup"].ToString(); txtProcGroupID.Text = Request.QueryString["ProcGroupID"].ToString(); } if (txtProcGroup.Text == "OT" || txtProcGroup.Text == "") { extddlSpecialty.Visible = true; } else { extddlSpecialty.Visible = false; extddlSpecialty.Text = txtProcGroupID.Text; hdnmdltxtSpeciality.Text = extddlSpecialty.Selected_Text; } try { Bill_Sys_ProcedureCode_BO _bill_Sys_ProcedureCode_BO = new Bill_Sys_ProcedureCode_BO(); grdViewDocuments.DataSource = _bill_Sys_ProcedureCode_BO.GetDocsNew(txtCaseID.Text, txtCompanyID.Text, txtEventProcID.Text); grdViewDocuments.DataBind(); DataSet sdFiles = new DataSet(); sdFiles = GetFiledDocTypeByProcID(txtEventProcID.Text); if (sdFiles.Tables.Count > 0) { if (sdFiles.Tables[0].Rows.Count > 0) { for (int i1 = 0; i1 < grdViewDocuments.Items.Count; i1++) { for (int j = 0; j < sdFiles.Tables[0].Rows.Count; j++) { if (grdViewDocuments.Items[i1].Cells[3].Text.Trim() == sdFiles.Tables[0].Rows[j][0].ToString().Trim()) { DropDownList drp = (DropDownList)grdViewDocuments.Items[i1].FindControl("ddlreport"); CheckBox chk = (CheckBox)grdViewDocuments.Items[i1].FindControl("chkView"); drp.Text = sdFiles.Tables[0].Rows[j][1].ToString().Trim(); chk.Checked = 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 grdCaseMaster_ItemDataBound(object sender, DataGridItemEventArgs e) //{ //if (e.Item.ItemType.ToString() != "Header" && e.Item.ItemType.ToString() != "Footer") //{ // RadioButtonList radioButtonList = (RadioButtonList)e.Item.Cells[7].FindControl("listVisitType"); // this.BindVisiTypeList(ref radioButtonList); //} //} 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()); } base.Title = "Green Your Bills - Add Visits"; try { string str = "<script language=JavaScript> function autoComplete (field, select, property, forcematch) {var found = false;for (var i = 0; i < select.options.length; i++) {if (select.options[i][property].toUpperCase().indexOf(field.value.toUpperCase()) == 0) {\t\tfound=true; break;}}if (found) { select.selectedIndex = i; }else {select.selectedIndex = -1;}if (field.createTextRange) {if (forcematch && !found) {field.value=field.value.substring(0,field.value.length-1); return;}var cursorKeys ='8;46;37;38;39;40;33;34;35;36;45;';if (cursorKeys.indexOf(event.keyCode+';') == -1) {var r1 = field.createTextRange();var oldValue = r1.text;var newValue = found ? select.options[i][property] : oldValue;if (newValue != field.value) {field.value = newValue;var rNew = field.createTextRange();rNew.moveStart('character', oldValue.length) ;rNew.select();}}}} </script>"; this.txtCaseNo.Attributes.Add("onkeydown", string.Concat("if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('", this.btnSearchPArameter.ClientID, "').click();return false;}} else {return true};")); this.txtChartNumber.Attributes.Add("onkeydown", string.Concat("if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('", this.btnSearchPArameter.ClientID, "').click();return false;}} else {return true};")); this.RegisterClientScriptBlock("ClientScript", str); this.ajAutoName.ContextKey = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; this.btnSave.Attributes.Add("onClick", "return ShowConfirmation();"); Bill_Sys_SystemObject item = (Bill_Sys_SystemObject)this.Session["SYSTEM_OBJECT"]; if (item != null) { item.AddVisits_SearchByChartNumber = "1"; if (item.AddVisits_SearchByChartNumber == null) { this.trChartNumber.Visible = false; } else if (item.AddVisits_SearchByChartNumber != "1") { this.trChartNumber.Visible = false; } else { this.trChartNumber.Visible = true; } } if (!base.IsPostBack) { this.btnSave.Enabled = false; this.txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; this.extddlLocation.Flag_ID = this.txtCompanyID.Text.ToString(); //((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY; this.txtIsActivePatient.Text = "ACTIVE PATIENT"; this.RowProcedureCode.Visible = false; this.RowVisitStatus.Visible = false; this.ddlDoctor.Items.Insert(0, "---select---"); if (((Bill_Sys_SystemObject)this.Session["SYSTEM_OBJECT"]).SZ_LOCATION == "1") { this.extddlLocation.Visible = true; this.RowLocation.Visible = true; } else { this.extddlLocation.Visible = false; this.RowLocation.Visible = false; this.getDoctorDefaultList(); } if (((Bill_Sys_SystemObject)this.Session["SYSTEM_OBJECT"]).SZ_CHART_NO == "1") { this.trChartNumber.Visible = true; } else { this.trChartNumber.Visible = false; } } this.lblMsg.Text = ""; lblDateMsg.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); } if (((Bill_Sys_BillingCompanyObject)this.Session["APPSTATUS"]).SZ_READ_ONLY.ToString().Equals("True")) { (new Bill_Sys_ChangeVersion(this.Page)).MakeReadOnlyPage("Bill_Sys_MultipleVisits.aspx"); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
//protected bool detectIdentificationCookie(string cookieCode, string cookieEncryptionKey) //{ // try // { // if (String.IsNullOrEmpty(cookieCode)) // return false; // else if (Request.Cookies["GREENBILLS_DETECTION"] == null) // return false; // else // { // HttpCookie cookie = Request.Cookies["GREENBILLS_DETECTION"]; // int i = 0; // foreach (string val in cookie.Values) // { // if (cookie[val].Equals(Bill_Sys_Utility.ComputeHMACSHA1(cookieCode, cookieEncryptionKey))) // { // return createIdentificationCookie(i); // } // i++; // } // return false; // } // } // catch (Exception ex) // { // return false; // } //} protected void btnActivate_Click(object sender, EventArgs e) { string str = ""; string roll = ""; roll = ValidateUserAndToken(txtToken.Text, txtUserName.Text, EncryptPassword()); if (roll != "") { if (ActivateUser(txtToken.Text, txtUserName.Text, EncryptPassword())) { createLoginCookies(txtUserName.Text, true, roll); //detectIdentificationCookie(Convert.ToString(Session["CookieCode"]), System.Configuration.ConfigurationManager.AppSettings.Get("COOKIE_ENCRYPT_KEY")); _bill_Sys_LoginBO = new Bill_Sys_LoginBO(); DataSet set = new DataSet(); set = _bill_Sys_LoginBO.getLoginDetails(txtUserName.Text, "", HttpContext.Current.Request.UserHostAddress); if ((set.Tables.Count > 0) && (set.Tables[0].Rows.Count > 0)) { this.objAppSettings = (ApplicationSettings_BO)base.Application["OBJECT_APP_SETTINGS"]; if (this.objAppSettings == null) { this.objAppSettings = new ApplicationSettings_BO(); base.Application["OBJECT_APP_SETTINGS"] = this.objAppSettings; } if ((set.Tables[0].Rows.Count == 1) && (set.Tables[0].Rows[0][0].ToString() == "False")) { string str3 = HttpContext.Current.Request.UserHostAddress.ToString(); FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage("IPValidationCheck=false&InvalidIP=" + str3); return; } this._bill_Sys_UserObject = new Bill_Sys_UserObject(); this._bill_Sys_UserObject.SZ_USER_ID = set.Tables[0].Rows[0][0].ToString(); this._bill_Sys_UserObject.SZ_USER_NAME = set.Tables[0].Rows[0][1].ToString(); this._bill_Sys_UserObject.SZ_USER_ROLE = set.Tables[0].Rows[0][4].ToString(); this._bill_Sys_UserObject.SZ_PROVIDER_ID = set.Tables[0].Rows[0][5].ToString(); this._bill_Sys_UserObject.SZ_USER_ROLE_NAME = set.Tables[0].Rows[0][8].ToString(); this._bill_Sys_UserObject.SZ_USER_EMAIL = set.Tables[0].Rows[0]["USER_EMAIL_ID"].ToString(); this._bill_Sys_UserObject.DomainName = set.Tables[0].Rows[0]["DomainName"].ToString(); this.Session["USER_OBJECT"] = this._bill_Sys_UserObject; this._bill_Sys_BillingCompanyObject = new Bill_Sys_BillingCompanyObject(); this._bill_Sys_BillingCompanyObject.SZ_COMPANY_ID = set.Tables[0].Rows[0][2].ToString(); this._bill_Sys_BillingCompanyObject.SZ_COMPANY_NAME = set.Tables[0].Rows[0][3].ToString(); this._bill_Sys_BillingCompanyObject.SZ_PREFIX = set.Tables[0].Rows[0][6].ToString(); this._bill_Sys_BillingCompanyObject.SZ_ADDRESS = set.Tables[0].Rows[0][9].ToString(); this._bill_Sys_BillingCompanyObject.SZ_EMAIL = set.Tables[0].Rows[0][10].ToString(); this._bill_Sys_BillingCompanyObject.SZ_PHONE = set.Tables[0].Rows[0][11].ToString(); this._bill_Sys_BillingCompanyObject.SZ_FAX = set.Tables[0].Rows[0][12].ToString(); if (set.Tables[0].Rows[0][7].ToString() != "") { this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY = Convert.ToBoolean(set.Tables[0].Rows[0][7].ToString()); } else { this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY = false; } if (set.Tables[0].Rows[0][13].ToString() != "") { this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM = Convert.ToBoolean(set.Tables[0].Rows[0][13].ToString()); } else { this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM = false; } if (set.Tables[0].Rows[0]["BT_ATTORNY"].ToString() != "") { this._bill_Sys_BillingCompanyObject.BT_ATTORNY = Convert.ToBoolean(set.Tables[0].Rows[0]["BT_ATTORNY"].ToString()); } else { this._bill_Sys_BillingCompanyObject.BT_ATTORNY = false; } if (set.Tables[0].Rows[0]["BT_PROVIDER"].ToString() != "") { this._bill_Sys_BillingCompanyObject.BT_PROVIDER = Convert.ToBoolean(set.Tables[0].Rows[0]["BT_PROVIDER"].ToString()); } else { this._bill_Sys_BillingCompanyObject.BT_PROVIDER = false; } this.Session["BILLING_COMPANY_OBJECT"] = this._bill_Sys_BillingCompanyObject; this._bill_Sys_CaseInfo = new Bill_Sys_Case(); this._bill_Sys_CaseInfo.SZ_CASE_ID = ""; this.Session["CASE_INFO"] = this._bill_Sys_CaseInfo; this._bill_Sys_SystemObject = new Bill_Sys_SystemObject(); DataView view = new DataView(set.Tables[1]); view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00003'"; this._bill_Sys_SystemObject.SZ_DEFAULT_LAW_FIRM = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00004'"; this._bill_Sys_SystemObject.SZ_CHART_NO = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00007'"; this._bill_Sys_SystemObject.SZ_LOCATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00008'"; this._bill_Sys_SystemObject.SZ_CHECKINVALUE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00009'"; this._bill_Sys_SystemObject.AddVisits_SearchByChartNumber = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00014'"; this._bill_Sys_SystemObject.SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00017'"; this._bill_Sys_SystemObject.SZ_SHOW_PROVIDER_DISPLAY_NAME = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00018'"; this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_PHONE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00019'"; this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_SIGNATURE_FOR_NF3 = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00020'"; this._bill_Sys_SystemObject.SZ_SHOW_DOCTOR_SIGNATURE_FOR_NF3 = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; this._bill_Sys_SystemObject.SZ_SHOW_DATE_OF_FIRST_TREATMENT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00022'"; this._bill_Sys_SystemObject.SZ_SHOW_NEW_POM = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00023'"; this._bill_Sys_SystemObject.SZ_ASSIGN_DIAGNOSIS_CODE_TO_VISIT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00025'"; this._bill_Sys_SystemObject.ASSOCIATE_CASE_TYPE_WITH_VISITS = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00026'"; this._bill_Sys_SystemObject.ADD_LOCATION_TO_VISITS = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00024'"; this._bill_Sys_SystemObject.SZ_SHOW_INSURANCE_WITH_BILL = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00029'"; this._bill_Sys_SystemObject.SZ_ALLOW_TO_EDIT_NF2_PDF = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00028'"; this._bill_Sys_SystemObject.SZ_SHOW_NF3_PROCEDURE_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00030'"; this._bill_Sys_SystemObject.ALLOW_TO_ADD_VISIT_FOR_FUTURE_DATE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00031'"; this._bill_Sys_SystemObject.PHONE_FORMATE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00032'"; this._bill_Sys_SystemObject.DONOT_ALLOW_TO_CREATE_BILL_WITHOUT_PATIENT_PHONE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00033'"; this._bill_Sys_SystemObject.DONOT_ALLOW_TO_CREATE_BILL_WITHOUT_LOCATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00034'"; this._bill_Sys_SystemObject.SZ_SHOW_ADD_TO_PREFERED_LIST = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00037'"; this._bill_Sys_SystemObject.SZ_ADD_SECONDARY_INSURANCE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00038'"; this._bill_Sys_SystemObject.SZ_SHOW_ADD_TO_PREFERED_LIST_FOR_DIAGNOSIS_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00049'"; this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_WALK_IN_ON_WORKAREA = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00050'"; this._bill_Sys_SystemObject.SZ_COPY_PATIENT_TO_TEST_FACILITY = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00054'"; this._bill_Sys_SystemObject.SZ_HP1_Display = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00051'"; this._bill_Sys_SystemObject.SZ_MG2_Display = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00062'"; this._bill_Sys_SystemObject.SZ_ALLOW_TO_EDIT_CODE_AMOUNT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00059'"; this._bill_Sys_SystemObject.SZ_ALLOW_HP1_SIGN = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00057'"; this._bill_Sys_SystemObject.SZ_ALLOW_MODIFIER_TO_UPDATE_FOR_PROCEDURE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00080'"; this._bill_Sys_SystemObject.SZ_ADD_APPOINTMENT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00082'"; this._bill_Sys_SystemObject.SZ_ENABLE_CYCLIC_PROCEDURE_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00084'"; this._bill_Sys_SystemObject.IS_EMPLOYER = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00012'"; if (view.ToTable().Rows.Count > 0) { if (view.ToTable().Rows[0][1].ToString() == this._bill_Sys_UserObject.SZ_USER_ID) { this.Session["IPAdmin"] = "True"; } else { this.Session["IPAdmin"] = "False"; } } else { this.Session["IPAdmin"] = "False"; } DataTable table = set.Tables[2]; foreach (DataRow row in table.Rows) { if (row["SZ_CONFIGURATION"].ToString() == "SOFT DELETE") { this._bill_Sys_SystemObject.SZ_SOFT_DELETE = "True"; } else { if (row["SZ_CONFIGURATION"].ToString() == "HARD DELETE") { this._bill_Sys_SystemObject.SZ_HARD_DELETE = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "NEW BILLS") { this._bill_Sys_SystemObject.SZ_NEW_BILL = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "VIEW BILLS") { this._bill_Sys_SystemObject.SZ_VIEW_BILL = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "DELETE BILLS") { this._bill_Sys_SystemObject.SZ_DELETE_BILLS = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "DELETE VISIT") { this._bill_Sys_SystemObject.SZ_DELETE_VIEWS = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "EMG BILL") { this._bill_Sys_SystemObject.SZ_EMG_BILL = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "NOTE DELETE") { this._bill_Sys_SystemObject.SZ_NOTE_DELETE = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "NOTE SOFT DELETE") { this._bill_Sys_SystemObject.SZ_NOTE_SOFT_DELETE = "True"; } } } this.Session["SYSTEM_OBJECT"] = this._bill_Sys_SystemObject; this._bill_Sys_LoginBO.ChangeLoginDate(((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID); this.Session["REMINDER"] = "TRUE"; this.Session["IMDETAILS"] = "TRUE"; string str4 = set.Tables[0].Rows[0][8].ToString(); this._bill_Sys_BillingCompanyObject.SZ_READ_ONLY = this._bill_Sys_LoginBO.Readonly(); this.Session["APPSTATUS"] = this._bill_Sys_BillingCompanyObject; if (str4.ToLower() == "doctor") { if ((set.Tables.Count > 3) && (set.Tables[3].Rows.Count > 0)) { str = set.Tables[3].Rows[0][0].ToString(); } if (str.ToString().Equals("IM")) { this.Session["PageRedirect"] = "~/Bill_Sys_IM_CheckOut.aspx"; } else { this.Session["PageRedirect"] = @"~/AJAX Pages\Bill_Sys_PatientSearch.aspx"; } } else if (str4.ToLower() == "agent") { this.Session["PageRedirect"] = "~/Agent/Bill_Sys_Agent_SearchCase.aspx"; } else if (this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False")) { if ((str4.ToLower() == "lawfirm attorney") && (this.Session["urlintegration"] != null)) { string s = this.Session["urlintegration"].ToString(); s = base.Server.UrlEncode(s); this.Session["PageRedirect"] = "~/ATT/Bill_Sys_AttorneySearch.aspx?dt=" + s; } if (this.Session["IntDocUrl"] != null) { Bill_Sys_DocumentManagerObject obj2 = new Bill_Sys_DocumentManagerObject(); string str6 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; obj2 = (Bill_Sys_DocumentManagerObject)this.Session["IntDocUrl"]; string str7 = obj2.SZ_CASE_ID; string str8 = obj2.SZ_CASE_NO; string str9 = obj2.SZ_COMAPNY_ID; string str10 = obj2.SZ_LAWFIRM_ID; if (str6 == str10) { this.Session["PageRedirect"] = "~/Document Manager/case/vb_CaseInformation.aspx?caseid=" + str7 + "&caseno=" + str8 + "&cmpid=" + str9; } else { this.Session["PageRedirect"] = @"~/LF\Bill_Sys_SearchCase.aspx"; } } else { this.Session["PageRedirect"] = @"~/LF\Bill_Sys_SearchCase.aspx"; } } else if (this._bill_Sys_BillingCompanyObject.BT_PROVIDER.ToString().Equals("True")) { if (str4.ToLower() == "provider") { this.Session["PageRedirect"] = @"~/Provider\Bill_Sys_SearchCase.aspx"; } } else if (this._bill_Sys_BillingCompanyObject.BT_ATTORNY.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False")) { this.Session["PageRedirect"] = @"~/ATT\Bill_Sys_AttorneySearch.aspx"; } else if (set.Tables[0].Rows[0][6].ToString() != "") { this.Session["PageRedirect"] = "~/AJAX Pages/Bill_Sys_SearchCase.aspx"; } else { this.Session["PageRedirect"] = "~/Bill_Sys_BillingCompany.aspx"; } if (set.Tables[0].Rows[0]["Force_PasswordChange"].ToString() == "True") { base.Response.Redirect(@"AJAX Pages\Bill_Sys_ChangePassword.aspx", false); return; } if (str4.ToLower() == "doctor") { if (str.ToString().Equals("IM")) { base.Response.Redirect("Bill_Sys_IM_CheckOut.aspx", false); } else { base.Response.Redirect(@"AJAX Pages\Bill_Sys_PatientSearch.aspx", false); } } else if (str4.ToLower() == "agent") { base.Response.Redirect(@"Agent\Bill_Sys_Agent_SearchCase.aspx", false); } else if (this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False")) { if ((str4.ToLower() == "lawfirm attorney") && (this.Session["urlintegration"] != null)) { string str11 = this.Session["urlintegration"].ToString(); str11 = base.Server.UrlEncode(str11); str11 = "ATT/Bill_Sys_AttorneySearch.aspx?dt=" + str11; base.Response.Redirect(str11, false); } if (this.Session["IntDocUrl"] != null) { Bill_Sys_DocumentManagerObject obj3 = new Bill_Sys_DocumentManagerObject(); obj3 = (Bill_Sys_DocumentManagerObject)this.Session["IntDocUrl"]; string str12 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; string str13 = obj3.SZ_CASE_ID; string str14 = obj3.SZ_CASE_NO; string str15 = obj3.SZ_COMAPNY_ID; string str16 = obj3.SZ_LAWFIRM_ID; if (str12 == str16) { string url = "Document Manager/case/vb_CaseInformation.aspx?caseid=" + str13 + "&caseno=" + str14 + "&cmpid=" + str15; base.Response.Redirect(url, false); } else { base.Response.Redirect(@"LF\Bill_Sys_SearchCase.aspx", false); } } else { base.Response.Redirect(@"LF\Bill_Sys_SearchCase.aspx", false); } } else if (this._bill_Sys_BillingCompanyObject.BT_PROVIDER.ToString().Equals("True")) { if (str4.ToLower() == "provider") { base.Response.Redirect(@"Provider\Bill_Sys_SearchCase.aspx", false); } } else if (this._bill_Sys_BillingCompanyObject.BT_ATTORNY.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False")) { base.Response.Redirect(@"ATT\Bill_Sys_AttorneySearch.aspx", false); } else if (set.Tables[0].Rows[0][6].ToString() != "") { base.Response.Redirect("AJAX Pages/Bill_Sys_SearchCase.aspx", false); } else { base.Response.Redirect("Bill_Sys_BillingCompany.aspx", false); } } else { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } } else { lblErrorMsg.Text = "Activation failed"; } } else { lblErrorMsg.Text = "Activation failed"; } }
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()); } this.objSessionSystem = (Bill_Sys_SystemObject)this.Session["SYSTEM_OBJECT"]; this.objSessionBillingCompany = (Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]; this.objSessionCompanyAppStatus = (Bill_Sys_BillingCompanyObject)this.Session["APPSTATUS"]; this.objSessionUser = (Bill_Sys_UserObject)this.Session["USER_OBJECT"]; this.con1.SourceGrid = this.grdpaidbills; this.txtSearchBox1.SourceGrid = this.grdpaidbills; this.grdpaidbills.Page = this.Page; this.grdpaidbills.PageNumberList = this.con1; this.XGridPaginationDropDownUnPaid.SourceGrid = this.grdBills; this.XGridSearchTextBoxUnPaid.SourceGrid = this.grdBills; this.grdBills.Page = this.Page; this.grdBills.PageNumberList = this.XGridPaginationDropDownUnPaid; this.txtUpdate1.Attributes.Add("onclick", "javascript:CloseEditProcPopup();"); this.txtUpdate2.Attributes.Add("onclick", "javascript:CloseDocumentPopup();"); this.txtUpdate3.Attributes.Add("onclick", "javascript:CloseDocPopup();"); this.txtUpdate4.Attributes.Add("onclick", "javascript:CloseDocPopup();"); this.ddlDateValues.Attributes.Add("onChange", "javascript:SetVisitDate();"); try { if (base.Request.QueryString["popup"] != null) { if (base.Request.QueryString["popup"].ToString().Equals("done")) { this.lblMsg.Text = "Report received successfully."; this.lblMsg.Visible = true; } if (base.Request.QueryString["popup"].ToString().Equals("done1")) { this.lblMsg.Visible = false; } } if (!base.IsPostBack) { this.txtCompanyid.Text = this.objSessionBillingCompany.SZ_COMPANY_ID; if (this.lblMsg.Text.Equals("")) { this.lblMsg.Visible = false; } if (base.Request.QueryString["Flag"] != null) { if (base.Request.QueryString["Flag"].ToString().ToLower() == "paid") { this.lblHeader.Text = "Paid Bills"; this.txtHeading.Text = "Paid Bills"; this.BindBillsGrid("paid"); } else if (base.Request.QueryString["Flag"].ToString().ToLower() == "unpaid") { this.lblHeader.Text = "Un-Paid Bills"; this.txtHeading.Text = "Un-Paid Bills"; this.BindBillsGrid("unpaid"); } else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingattorney") { this.lblHeader.Text = "Missing Attorney"; } else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missinginsurancecompany") { this.lblHeader.Text = "Missing Insurance Company"; } else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingprovider") { this.lblHeader.Text = "Missing Provider"; } else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingclaimnumber") { this.lblHeader.Text = "Missing Claim Number"; } else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingreportnumber") { this.lblHeader.Text = "Missing Report Number"; } else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingpolicyholder") { this.lblHeader.Text = "Missing Policy Holder"; } else if ((base.Request.QueryString["Flag"].ToString().ToLower() == "report") && (base.Request.QueryString["Type"] != null)) { if (base.Request.QueryString["Type"].ToString() == "R") { this.lblHeader.Text = "Received Report"; this.BindGridQueryString("True"); } else { this.lblHeader.Text = "Pending Report"; this.txtHeading.Text = "Pending Report"; this.BindGridQueryString("False"); } } } if (this.objSessionSystem.SZ_CHART_NO == "0") { this.grdpaidbills.Columns[1].Visible = false; this.grdBills.Columns[4].Visible = false; } else { this.grdBills.Columns[4].Visible = true; } if (this.objSessionSystem.SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION != "1") { this.ddlDateValues.Visible = false; this.lblvisitdate.Visible = false; this.lblfrom.Visible = false; this.lblto.Visible = false; this.txtVisitDate.Visible = false; this.imgVisit.Visible = false; this.btnSearch.Visible = false; this.txtToVisitDate.Visible = false; this.imgVisite1.Visible = false; } else { this.ddlDateValues.Visible = true; this.lblvisitdate.Visible = true; this.lblfrom.Visible = true; this.lblto.Visible = true; this.txtVisitDate.Visible = true; this.imgVisit.Visible = true; this.btnSearch.Visible = true; this.txtToVisitDate.Visible = true; this.imgVisite1.Visible = true; } } this.txtVisit.Text = this.drpdown_Documents.SelectedValue.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); } if (this.objSessionCompanyAppStatus.SZ_READ_ONLY.ToString().Equals("True")) { new Bill_Sys_ChangeVersion(this.Page).MakeReadOnlyPage("Bill_Sys_paid_bills.aspx"); } //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()); } btnSendMail.Attributes.Add("onclick", "return Confirm_Send_Mail();"); try { oC_UserObject = (Bill_Sys_UserObject)(Session["USER_OBJECT"]); oC_Account = (Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"]); oC_SystemObject = (Bill_Sys_SystemObject)(Session["SYSTEM_OBJECT"]); if (oC_Account == null || oC_UserObject == null || oC_SystemObject == null) { DisableInput(); lblMessage.Text = "Oops! Your session has expired. You must re-login to proceed !"; lblMessage.ForeColor = Color.Red; return; } if (!IsPostBack) { txtCompanyID.Text = oC_Account.SZ_COMPANY_ID; //setLabels(); if ((oC_SystemObject.SZ_LOCATION == "1")) { extddlLocation.Visible = true; lblLocationName.Visible = true; extddlLocation.Flag_ID = txtCompanyID.Text.ToString(); } extddlCaseType.Flag_ID = txtCompanyID.Text.ToString(); //call to procedure /// extddlCaseType.Text= _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO(); extddlCaseType.Text = _bill_Sys_BillingCompanyDetails_BO.getNF2CaseType(txtCompanyID.Text); BindGrid(); } } catch (Exception ex) { //string strError = ex.Message.ToString(); //strError = strError.Replace("\n", " "); 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 = oC_Account.SZ_READ_ONLY.ToString(); if (app_status.Equals("True")) { Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page); cv.MakeReadOnlyPage("Bill_Sys_ShowUnSentNF2.aspx"); } #endregion //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnPrint_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 { Hp1DAL objHp1 = new Hp1DAL(); objSysObject = new Bill_Sys_SystemObject(); string signNotRequired = (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_ALLOW_HP1_SIGN).ToString(); string flg = objHp1.HP1CheckExist(sz_CompanyID, sz_CaseID, sz_BillNo); if (flg == "1") { if (signNotRequired == "1") { PrintPDF(); } else { if (txtProviderSign1.Text.ToString() != "" && txtProviderSign2.Text.ToString() != "") { PrintPDF(); } else { usrMessage.PutMessage("Please Save Provider Signs."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage); usrMessage.Show(); } } } else { usrMessage.PutMessage("Please Save Record First."); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage); 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); } finally { } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
private void UserLogin() { 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 (this.Session["UserName"] == null) { } try { string str = ""; string str2 = ""; if (base.Request.QueryString["name"] != null) { str2 = base.Request.QueryString["name"].ToString(); } new ArrayList(); this._bill_Sys_LoginBO = new Bill_Sys_LoginBO(); DataSet set = new DataSet(); set = this._bill_Sys_LoginBO.getLoginDetails(this.Session["UserName"].ToString(), str2, HttpContext.Current.Request.UserHostAddress); if ((set.Tables.Count > 0) && (set.Tables[0].Rows.Count > 0)) { this.objAppSettings = (ApplicationSettings_BO)base.Application["OBJECT_APP_SETTINGS"]; if (this.objAppSettings == null) { this.objAppSettings = new ApplicationSettings_BO(); base.Application["OBJECT_APP_SETTINGS"] = this.objAppSettings; } if ((set.Tables[0].Rows.Count == 1) && (set.Tables[0].Rows[0][0].ToString() == "False")) { string str3 = HttpContext.Current.Request.UserHostAddress.ToString(); FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage("IPValidationCheck=false&InvalidIP=" + str3); return; } this._bill_Sys_UserObject = new Bill_Sys_UserObject(); this._bill_Sys_UserObject.SZ_USER_ID = set.Tables[0].Rows[0][0].ToString(); this._bill_Sys_UserObject.SZ_USER_NAME = set.Tables[0].Rows[0][1].ToString(); this._bill_Sys_UserObject.SZ_USER_ROLE = set.Tables[0].Rows[0][4].ToString(); this._bill_Sys_UserObject.SZ_PROVIDER_ID = set.Tables[0].Rows[0][5].ToString(); this._bill_Sys_UserObject.SZ_USER_ROLE_NAME = set.Tables[0].Rows[0][8].ToString(); this._bill_Sys_UserObject.SZ_USER_EMAIL = set.Tables[0].Rows[0]["USER_EMAIL_ID"].ToString(); this._bill_Sys_UserObject.DomainName = set.Tables[0].Rows[0]["DomainName"].ToString(); this.Session["USER_OBJECT"] = this._bill_Sys_UserObject; this._bill_Sys_BillingCompanyObject = new Bill_Sys_BillingCompanyObject(); this._bill_Sys_BillingCompanyObject.SZ_COMPANY_ID = set.Tables[0].Rows[0][2].ToString(); this._bill_Sys_BillingCompanyObject.SZ_COMPANY_NAME = set.Tables[0].Rows[0][3].ToString(); this._bill_Sys_BillingCompanyObject.SZ_PREFIX = set.Tables[0].Rows[0][6].ToString(); this._bill_Sys_BillingCompanyObject.SZ_ADDRESS = set.Tables[0].Rows[0][9].ToString(); this._bill_Sys_BillingCompanyObject.SZ_EMAIL = set.Tables[0].Rows[0][10].ToString(); this._bill_Sys_BillingCompanyObject.SZ_PHONE = set.Tables[0].Rows[0][11].ToString(); this._bill_Sys_BillingCompanyObject.SZ_FAX = set.Tables[0].Rows[0][12].ToString(); if (set.Tables[0].Rows[0][7].ToString() != "") { this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY = Convert.ToBoolean(set.Tables[0].Rows[0][7].ToString()); } else { this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY = false; } if (set.Tables[0].Rows[0][13].ToString() != "") { this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM = Convert.ToBoolean(set.Tables[0].Rows[0][13].ToString()); } else { this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM = false; } if (set.Tables[0].Rows[0]["BT_ATTORNY"].ToString() != "") { this._bill_Sys_BillingCompanyObject.BT_ATTORNY = Convert.ToBoolean(set.Tables[0].Rows[0]["BT_ATTORNY"].ToString()); } else { this._bill_Sys_BillingCompanyObject.BT_ATTORNY = false; } if (set.Tables[0].Rows[0]["BT_PROVIDER"].ToString() != "") { this._bill_Sys_BillingCompanyObject.BT_PROVIDER = Convert.ToBoolean(set.Tables[0].Rows[0]["BT_PROVIDER"].ToString()); } else { this._bill_Sys_BillingCompanyObject.BT_PROVIDER = false; } this.Session["BILLING_COMPANY_OBJECT"] = this._bill_Sys_BillingCompanyObject; //Custom schedular Session["Billing_Company_ID"] = _bill_Sys_BillingCompanyObject.SZ_COMPANY_ID; this._bill_Sys_CaseInfo = new Bill_Sys_Case(); this._bill_Sys_CaseInfo.SZ_CASE_ID = ""; this.Session["CASE_INFO"] = this._bill_Sys_CaseInfo; this._bill_Sys_SystemObject = new Bill_Sys_SystemObject(); DataView view = new DataView(set.Tables[1]); view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00003'"; this._bill_Sys_SystemObject.SZ_DEFAULT_LAW_FIRM = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00004'"; this._bill_Sys_SystemObject.SZ_CHART_NO = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00007'"; this._bill_Sys_SystemObject.SZ_LOCATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00008'"; this._bill_Sys_SystemObject.SZ_CHECKINVALUE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00009'"; this._bill_Sys_SystemObject.AddVisits_SearchByChartNumber = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00014'"; this._bill_Sys_SystemObject.SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00017'"; this._bill_Sys_SystemObject.SZ_SHOW_PROVIDER_DISPLAY_NAME = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00018'"; this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_PHONE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00019'"; this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_SIGNATURE_FOR_NF3 = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00020'"; this._bill_Sys_SystemObject.SZ_SHOW_DOCTOR_SIGNATURE_FOR_NF3 = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; this._bill_Sys_SystemObject.SZ_SHOW_DATE_OF_FIRST_TREATMENT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00022'"; this._bill_Sys_SystemObject.SZ_SHOW_NEW_POM = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00023'"; this._bill_Sys_SystemObject.SZ_ASSIGN_DIAGNOSIS_CODE_TO_VISIT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00025'"; this._bill_Sys_SystemObject.ASSOCIATE_CASE_TYPE_WITH_VISITS = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00026'"; this._bill_Sys_SystemObject.ADD_LOCATION_TO_VISITS = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00024'"; this._bill_Sys_SystemObject.SZ_SHOW_INSURANCE_WITH_BILL = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00029'"; this._bill_Sys_SystemObject.SZ_ALLOW_TO_EDIT_NF2_PDF = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00028'"; this._bill_Sys_SystemObject.SZ_SHOW_NF3_PROCEDURE_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00030'"; this._bill_Sys_SystemObject.ALLOW_TO_ADD_VISIT_FOR_FUTURE_DATE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00031'"; this._bill_Sys_SystemObject.PHONE_FORMATE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00032'"; this._bill_Sys_SystemObject.DONOT_ALLOW_TO_CREATE_BILL_WITHOUT_PATIENT_PHONE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00033'"; this._bill_Sys_SystemObject.DONOT_ALLOW_TO_CREATE_BILL_WITHOUT_LOCATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00034'"; this._bill_Sys_SystemObject.SZ_SHOW_ADD_TO_PREFERED_LIST = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00037'"; this._bill_Sys_SystemObject.SZ_ADD_SECONDARY_INSURANCE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00038'"; this._bill_Sys_SystemObject.SZ_SHOW_ADD_TO_PREFERED_LIST_FOR_DIAGNOSIS_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00049'"; this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_WALK_IN_ON_WORKAREA = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00050'"; this._bill_Sys_SystemObject.SZ_COPY_PATIENT_TO_TEST_FACILITY = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00054'"; this._bill_Sys_SystemObject.SZ_HP1_Display = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00051'"; this._bill_Sys_SystemObject.SZ_MG2_Display = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00062'"; this._bill_Sys_SystemObject.SZ_ALLOW_TO_EDIT_CODE_AMOUNT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00059'"; this._bill_Sys_SystemObject.SZ_ALLOW_HP1_SIGN = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00057'"; this._bill_Sys_SystemObject.SZ_ALLOW_MODIFIER_TO_UPDATE_FOR_PROCEDURE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00080'"; this._bill_Sys_SystemObject.SZ_ADD_APPOINTMENT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00082'"; this._bill_Sys_SystemObject.SZ_ENABLE_CYCLIC_PROCEDURE_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00084'"; this._bill_Sys_SystemObject.IS_EMPLOYER = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00086'"; this._bill_Sys_SystemObject.SZ_ENABLE_CONTRACT_PDF_GENERATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0"; view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00012'"; if (view.ToTable().Rows.Count > 0) { if (view.ToTable().Rows[0][1].ToString() == this._bill_Sys_UserObject.SZ_USER_ID) { this.Session["IPAdmin"] = "True"; } else { this.Session["IPAdmin"] = "False"; } } else { this.Session["IPAdmin"] = "False"; } DataTable table = set.Tables[2]; foreach (DataRow row in table.Rows) { if (row["SZ_CONFIGURATION"].ToString() == "SOFT DELETE") { this._bill_Sys_SystemObject.SZ_SOFT_DELETE = "True"; } else { if (row["SZ_CONFIGURATION"].ToString() == "HARD DELETE") { this._bill_Sys_SystemObject.SZ_HARD_DELETE = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "NEW BILLS") { this._bill_Sys_SystemObject.SZ_NEW_BILL = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "VIEW BILLS") { this._bill_Sys_SystemObject.SZ_VIEW_BILL = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "DELETE BILLS") { this._bill_Sys_SystemObject.SZ_DELETE_BILLS = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "DELETE VISIT") { this._bill_Sys_SystemObject.SZ_DELETE_VIEWS = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "EMG BILL") { this._bill_Sys_SystemObject.SZ_EMG_BILL = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "NOTE DELETE") { this._bill_Sys_SystemObject.SZ_NOTE_DELETE = "True"; continue; } if (row["SZ_CONFIGURATION"].ToString() == "NOTE SOFT DELETE") { this._bill_Sys_SystemObject.SZ_NOTE_SOFT_DELETE = "True"; } } } this.Session["SYSTEM_OBJECT"] = this._bill_Sys_SystemObject; this._bill_Sys_LoginBO.ChangeLoginDate(((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID); this.Session["REMINDER"] = "TRUE"; this.Session["IMDETAILS"] = "TRUE"; string str4 = set.Tables[0].Rows[0][8].ToString(); if (str4.ToLower() == "doctor") { if ((set.Tables.Count > 3) && (set.Tables[3].Rows.Count > 0)) { str = set.Tables[3].Rows[0][0].ToString(); } if (str.ToString().Equals("IM")) { this.Session["PageRedirect"] = "~/Bill_Sys_IM_CheckOut.aspx"; } else { this.Session["PageRedirect"] = @"~/AJAX Pages\Bill_Sys_PatientSearch.aspx"; } } else if (str4.ToLower() == "agent") { this.Session["PageRedirect"] = "~/Agent/Bill_Sys_Agent_SearchCase.aspx"; } else if (this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False")) { if ((str4.ToLower() == "lawfirm attorney") && (this.Session["urlintegration"] != null)) { string s = this.Session["urlintegration"].ToString(); s = base.Server.UrlEncode(s); this.Session["PageRedirect"] = "~/ATT/Bill_Sys_AttorneySearch.aspx?dt=" + s; } if (this.Session["IntDocUrl"] != null) { Bill_Sys_DocumentManagerObject obj2 = new Bill_Sys_DocumentManagerObject(); string str6 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; obj2 = (Bill_Sys_DocumentManagerObject)this.Session["IntDocUrl"]; string str7 = obj2.SZ_CASE_ID; string str8 = obj2.SZ_CASE_NO; string str9 = obj2.SZ_COMAPNY_ID; string str10 = obj2.SZ_LAWFIRM_ID; if (str6 == str10) { this.Session["PageRedirect"] = "~/Document Manager/case/vb_CaseInformation.aspx?caseid=" + str7 + "&caseno=" + str8 + "&cmpid=" + str9; } else { this.Session["PageRedirect"] = @"~/LF\Bill_Sys_SearchCase.aspx"; } } else { this.Session["PageRedirect"] = @"~/LF\Bill_Sys_SearchCase.aspx"; } } else if (this._bill_Sys_BillingCompanyObject.BT_PROVIDER.ToString().Equals("True")) { if (str4.ToLower() == "provider") { this.Session["PageRedirect"] = @"~/Provider\Bill_Sys_SearchCase.aspx"; } } else if (this._bill_Sys_BillingCompanyObject.BT_ATTORNY.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False")) { this.Session["PageRedirect"] = @"~/ATT\Bill_Sys_AttorneySearch.aspx"; } else if (set.Tables[0].Rows[0][6].ToString() != "") { this.Session["PageRedirect"] = "~/AJAX Pages/Bill_Sys_SearchCase.aspx"; } else { this.Session["PageRedirect"] = "~/Bill_Sys_BillingCompany.aspx"; } if (set.Tables[0].Rows[0]["Force_PasswordChange"].ToString() == "True") { base.Response.Redirect(@"AJAX Pages\Bill_Sys_ChangePassword.aspx", false); return; } if (str4.ToLower() == "doctor") { if (str.ToString().Equals("IM")) { base.Response.Redirect("Bill_Sys_IM_CheckOut.aspx", false); } else { base.Response.Redirect(@"AJAX Pages\Bill_Sys_PatientSearch.aspx", false); } } else if (str4.ToLower() == "agent") { base.Response.Redirect(@"Agent\Bill_Sys_Agent_SearchCase.aspx", false); } else if (this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False")) { if ((str4.ToLower() == "lawfirm attorney") && (this.Session["urlintegration"] != null)) { string str11 = this.Session["urlintegration"].ToString(); str11 = base.Server.UrlEncode(str11); str11 = "ATT/Bill_Sys_AttorneySearch.aspx?dt=" + str11; base.Response.Redirect(str11, false); } if (this.Session["IntDocUrl"] != null) { Bill_Sys_DocumentManagerObject obj3 = new Bill_Sys_DocumentManagerObject(); obj3 = (Bill_Sys_DocumentManagerObject)this.Session["IntDocUrl"]; string str12 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; string str13 = obj3.SZ_CASE_ID; string str14 = obj3.SZ_CASE_NO; string str15 = obj3.SZ_COMAPNY_ID; string str16 = obj3.SZ_LAWFIRM_ID; if (str12 == str16) { string url = "Document Manager/case/vb_CaseInformation.aspx?caseid=" + str13 + "&caseno=" + str14 + "&cmpid=" + str15; base.Response.Redirect(url, false); } else { base.Response.Redirect(@"LF\Bill_Sys_SearchCase.aspx", false); } } else { base.Response.Redirect(@"LF\Bill_Sys_SearchCase.aspx", false); } } else if (this._bill_Sys_BillingCompanyObject.BT_PROVIDER.ToString().Equals("True")) { if (str4.ToLower() == "provider") { base.Response.Redirect(@"Provider\Bill_Sys_SearchCase.aspx", false); } } else if (this._bill_Sys_BillingCompanyObject.BT_ATTORNY.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False")) { base.Response.Redirect(@"ATT\Bill_Sys_AttorneySearch.aspx", false); } else if (set.Tables[0].Rows[0][6].ToString() != "") { base.Response.Redirect("AJAX Pages/Bill_Sys_SearchCase.aspx", false); } else { base.Response.Redirect("Bill_Sys_BillingCompany.aspx", false); } } else { FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } this._bill_Sys_BillingCompanyObject.SZ_READ_ONLY = this._bill_Sys_LoginBO.Readonly(); this.Session["APPSTATUS"] = this._bill_Sys_BillingCompanyObject; } 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) { bool _ischeck = false; string _caseID = ""; int _isSameCaseID = 0; _dianosis_Association.EventProcID = Request.QueryString["szpatienttreatmentid"].ToString(); _dianosis_Association.DoctorID = Request.QueryString["szdoctorid"].ToString(); _dianosis_Association.CaseID = Request.QueryString["szcaseid"].ToString(); _dianosis_Association.ProceuderGroupId = Request.QueryString["szprocgroupid"].ToString(); Session["I_Event_ID"] = Request.QueryString["szeventid"].ToString(); Session["DIAGNOS_ASSOCIATION"] = _dianosis_Association; txtEventProcID.Text = Request.QueryString["szpatienttreatmentid"].ToString(); txtEventID.Text = Request.QueryString["szeventid"].ToString(); btnAssign.Attributes.Add("OnClick", "callforSearch();"); btnDeAssociate.Attributes.Add("OnClick", "callforSearch();"); objSystemObject = (Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]; if (!(Request.QueryString["AcBilling"] == null)) { redingdoctd1.InnerHtml = " "; redingdoctd2.InnerHtml = " "; } //tabcontainerDiagnosisCode.ActiveTabIndex = 1; lblMsg.Text = ""; if (!IsPostBack) { extddlSpecialityDia.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; extddlDiagnosisType.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; extddlReadingDoctor.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; //Bil_Sys_Associate_Diagnosis _dianosis_Association = new Bil_Sys_Associate_Diagnosis(); _dianosis_Association = (Bil_Sys_Associate_Diagnosis)Session["DIAGNOS_ASSOCIATION"]; extddlSpecialityDia.Text = _dianosis_Association.ProceuderGroupId; //_dianosis_Association.EventProcID txtCaseID.Text = _dianosis_Association.CaseID; // To Show Rading Doctor At Page Load:- Tushar extddlReadingDoctor.Text = _dianosis_Association.DoctorID; //End Of Code //Put Condition here //------Commented by Kunal-------------------------------------- if (objSystemObject.SZ_ASSIGN_DIAGNOSIS_CODE_TO_VISIT == "1") { GetAssignedProcedureDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, _dianosis_Association.EventProcID, "GET_DIAGNOSIS_CODE"); GetProcedureDiagnosisCode(txtCaseID.Text, txtCompanyID.Text, _dianosis_Association.EventProcID, "GET_DIAGNOSIS_CODE"); } else { GetAssignedDiagnosisCode(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE"); GetDiagnosisCode(txtCaseID.Text, txtCompanyID.Text, "", "GET_DIAGNOSIS_CODE"); } //-----------End------------------------------------------------ grdDiagnosisCode.Visible = false; } if (hdnSearch.Value != "true") { GetAssignedProcedureDiagnosisCode(txtCaseID.Text, txtCompanyID.Text, txtEventProcID.Text, "GET_PROCEDURE_ASSOCIATED_DIAGNOSIS_CODE"); BindGrid(extddlDiagnosisType.Text, txtDiagonosisCode.Text, txtDescription.Text); } else { hdnSearch.Value = ""; } }