public void BindGrid() { 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()); } DataSet dset; try { Bill_Sys_NotesBO _bill_Sys_NotesBO = new Bill_Sys_NotesBO(); dset = new DataSet(); dset = _bill_Sys_NotesBO.GetBillDetailsFillGrid(txtCompanyID.Text, txtViewBillNumber.Text); grdVerificationReq.DataSource = dset.Tables[0]; grdVerificationReq.DataBind(); } 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) { if (!IsPostBack) { string szProcID = Request.QueryString["Eventprocid"].ToString(); Bill_Sys_NotesBO objNotes = new Bill_Sys_NotesBO(); DataSet ds = new DataSet(); ds = objNotes.GetUnBilledReason(szProcID); if (ds.Tables.Count > 0) { if (ds.Tables[0].Rows.Count > 0) { if (ds.Tables[0].Rows[0]["BT_UNBILLABLE"].ToString().ToLower() == "true") { chkReason.Checked = true; } else { chkReason.Checked = false; } if (ds.Tables[0].Rows[0]["SZ_UNBILLABLE_REASON"].ToString().Trim() != "") { txtAddReason.Text = ds.Tables[0].Rows[0]["SZ_UNBILLABLE_REASON"].ToString().Trim(); } } } } }
public void BindGridforVerification() { //Logging Start string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); }//atul DataSet dset; try { grdVerificationReq.Columns[9].Visible = true; Bill_Sys_NotesBO _bill_Sys_NotesBO = new Bill_Sys_NotesBO(); dset = new DataSet(); dset = _bill_Sys_NotesBO.GetBillDetailsFillGridVerification(txtCompanyID.Text, txtbillnumber.Text); grdVerificationReq.DataSource = dset.Tables[0]; grdVerificationReq.DataBind(); grdVerificationReq.Columns[9].Visible = false; for (int i = 0; i < grdVerificationReq.Items.Count; i++) { if (grdVerificationReq.Items[i].Cells[9].Text != " ") { hfindex.Value = ""; hfverificationId.Value = ""; hfindex.Value = i.ToString(); hfverificationId.Value = grdVerificationReq.Items[i].Cells[5].Text.ToString(); } if (grdVerificationReq.Items[i].Cells[8].Text == "vs") { grdVerificationReq.Items[i].Cells[6].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()); } }
public void BindGridforVerification() { //Logging Start string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); }//atul DataSet dset; try { DataTable dtBillNumbers = new DataTable(); dtBillNumbers.Columns.Add("sz_bill_id", typeof(string)); dtBillNumbers.Columns.Add("sz_assigned_lawfirm_id", typeof(string)); dtBillNumbers.Columns.Add("sz_company_id", typeof(string)); DataRow row = dtBillNumbers.NewRow(); row["sz_bill_id"] = txtbillnumber.Text; dtBillNumbers.Rows.Add(row); //grdVerificationReq.Columns[9].Visible = true; Bill_Sys_NotesBO _bill_Sys_NotesBO = new Bill_Sys_NotesBO(); dset = new DataSet(); dset = this.GetBilEORDetails(dtBillNumbers, txtCompanyID.Text); //_bill_Sys_NotesBO.GetBillDetailsFillGridVerification(txtCompanyID.Text, txtbillnumber.Text); grdVerificationReq.DataSource = dset.Tables[0]; grdVerificationReq.DataBind(); } 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 btnOK_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 { extddlNoteType.Text = "NTY0001"; txtNoteDesc.Text = "Bill # " + Session["TM_SZ_BILL_ID"].ToString() + " - Verification Sent"; _saveOperation = new SaveOperation(); _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "notes.xml"; _saveOperation.SaveMethod(); _bill_Sys_Notes = new Bill_Sys_NotesBO(); _bill_Sys_Notes.UpdateBillStatusForVerification(Session["TM_SZ_BILL_ID"].ToString(), 0, txtNotes.Text); Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ss", "<script language='javascript'> parent.document.getElementById('divid').style.visibility = 'hidden';window.parent.document.location.reload(); parent.document.getElementById('lblMsg').value='Denial added successfully.';</script>"); } 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 btnUpdate_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()); } ArrayList arrAddReason = new ArrayList(); ArrayList arrUpdateReason = new ArrayList(); string StrReasonValue = ""; Bill_Sys_NotesBO objAddReason = new Bill_Sys_NotesBO(); try { if (chkReason.Checked) { StrReasonValue = "1"; } else { StrReasonValue = "0"; } arrAddReason = (ArrayList)Session["AddUnbilledReason"]; for (int i = 0; i < arrAddReason.Count; i++) { string strReason = arrAddReason[i].ToString(); arrUpdateReason.Add(strReason); } int iReturn = objAddReason.AddUnBilledReason(arrUpdateReason, txtAddReason.Text, StrReasonValue); if (iReturn > 0) { usrMessage.PutMessage("Reason Updated Successfully"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } else { usrMessage.PutMessage("Failed"); 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()); } }
protected void lnkscan_Click(object sender, EventArgs e) { Bill_Sys_NotesBO _Bill_Sys_NotesBO = new Bill_Sys_NotesBO(); DataSet dsdetails = new DataSet(); dsdetails = _Bill_Sys_NotesBO.GetPatientDenial(txtCompanyID.Text, txtCaseID.Text); txtcaseno.Text = dsdetails.Tables[0].Rows[0]["SZ_CASE_NO"].ToString(); txtpatientname.Text = dsdetails.Tables[0].Rows[0]["SZ_PATIENT_NAME"].ToString(); int iindex = grdVerificationReq.SelectedIndex; LinkButton btn = (LinkButton)sender; TableCell tc = (TableCell)btn.Parent; DataGridItem it = (DataGridItem)tc.Parent; Bill_Sys_Verification_Desc _objDesc = new Bill_Sys_Verification_Desc(); Bill_Sys_BillTransaction_BO _obj = new Bill_Sys_BillTransaction_BO(); ArrayList objAL = new ArrayList(); ArrayList arrNodeType = new ArrayList(); string szCaesType = ""; string szProcess = ""; int index = it.ItemIndex; Session["NODETYPESCAN"] = ""; Session["NODETYPE"] = ""; //atul Session["SCANVERID"] = it.Cells[5].Text; _objDesc.sz_bill_no = txtViewBillNumber.Text; _objDesc.sz_company_id = txtCompanyID.Text; _objDesc.sz_flag = "VR"; objAL.Add(_objDesc); arrNodeType = _obj.Get_Node_Type(objAL); if (it.Cells[1].Text.ToLower().Equals("verification received")) { szProcess = "VR"; if (arrNodeType.Contains("NFVER")) { szCaesType = "OLD"; arrNodeType.Clear(); arrNodeType.Add("NFDEN"); Session["NODETYPE"] = arrNodeType; } else { szCaesType = "NEW"; Session["NODETYPE"] = arrNodeType; } //Session["NODETYPESCAN"] = "NFDEN"; } Session["ScanBillNo"] = txtViewBillNumber.Text; RedirectToScanApp(iindex, szCaesType, szProcess, arrNodeType[0].ToString()); }
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 { txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; extBillStatus.Flag_ID = txtCompanyID.Text; txtViewBillNumber.Text = Request.QueryString["BillNo"].ToString(); //btnSave.Attributes.Add("onclick", "return formValidator('frmBillStatus','extBillStatus');"); //btnUpdate.Attributes.Add("onclick", "return formValidator('frmBillStatus','extBillStatus');"); btnSave.Attributes.Add("onclick", "return CheckedBillStatus();"); //btnUpdate.Attributes.Add("onclick", "return formValidator('frmDoctor','extBillStatus');"); if (!IsPostBack) { txtVerificationNotes.Text = ""; btnUpdate.Enabled = false; Bill_Sys_NotesBO _bill_Sys_NotesBO = new Bill_Sys_NotesBO(); DataSet dset = new DataSet(); dset = _bill_Sys_NotesBO.GetBillDetailsVerificationPopUp(txtCompanyID.Text, txtViewBillNumber.Text); for (int i = 0; i < dset.Tables[0].Rows.Count; i++) { //txtVerificationNotes.Text = dset.Tables[0].Rows[i]["NOTES"].ToString(); txtVisitDate.Text = dset.Tables[0].Rows[i]["DT_VISIT_DATE"].ToString(); //txtVerificationDate.Text = dset.Tables[0].Rows[i]["DT_VERIFICATION_DATE"].ToString(); extBillStatus.Text = dset.Tables[0].Rows[i]["STATUS_ID"].ToString(); } txtVerificationDate.Text = DateTime.Now.ToString("MM/dd/yyyy"); 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); } #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_VerificationRequestPopup.aspx"); } #endregion //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnNoteSave_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 { Bill_Sys_NotesBO _objNotesBO = new Bill_Sys_NotesBO(); ArrayList _objAL = new ArrayList(); _objAL.Add(Note_Code.New_Note_Added); if (Request.QueryString["Flag"] != null) { if (Request.QueryString["Flag"].ToString() == "True") { _popupBO = new PopupBO(); _objAL.Add(_popupBO.GetCompanyID(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_PATIENT_ID)); } else { _objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); } } else { _objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID); } _objAL.Add(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID); _objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID); if (chkReminderPopup.Checked == true) { _objAL.Add("NTY0002"); } else { _objAL.Add(extddlNotesType.Text); } _objAL.Add(txtNoteDesc.Text); _objNotesBO.SaveNotes(_objAL); txtNoteDesc.Text = ""; chkReminderPopup.Checked = false; lblMsg.Text = "Notes added."; lblMsg.Visible = 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()); } }