public void saveData() { 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()); } _OTPT_PATIENT_DAO = new OTPT_PATIENT_DAO(); _objOTPT = new OTPT(); try { _OTPT_PATIENT_DAO.SZ_PATIENT_ID = txtPatientID.Text; _OTPT_PATIENT_DAO.SZ_CASE_ID = txtCaseID.Text; _OTPT_PATIENT_DAO.SZ_BILL_NO = txtBillNumber.Text; _OTPT_PATIENT_DAO.SZ_PATIENT_INJURY_PLACE = txtaddcitytown.Text; string sztimeofenjury = ddlHours.Text + ":" + ddlMinutes.Text; string sztimetype = ddlTime.Text; _OTPT_PATIENT_DAO.SZ_TIME_OF_INJURY = sztimeofenjury; _OTPT_PATIENT_DAO.SZ_TIME_TYPE = sztimetype; _OTPT_PATIENT_DAO.SZ_TREATEMNET_UNDER = rdlstTaxType.SelectedValue; //if (rdlstTaxType.SelectedValue == "0") //{ // _OTPT_PATIENT_DAO.SZ_TREATEMNET_UNDER = rdlstTaxType.SelectedItem.Value; //} //else if (rdlstTaxType.SelectedValue == "1") //{ // _OTPT_PATIENT_DAO.SZ_TREATEMNET_UNDER = rdlstTaxType.SelectedItem.Value; //} //else if (rdlstTaxType.SelectedValue == "2") //{ // _OTPT_PATIENT_DAO.SZ_TREATEMNET_UNDER = rdlstTaxType.SelectedItem.Value; //} _OTPT_PATIENT_DAO.DT_DATE_OF_PRV_HISTROY = txtHistoryInjuryDate.Text; _OTPT_PATIENT_DAO.SZ_COMPANY_ID = txtCompanyID.Text; _OTPT_PATIENT_DAO.SZ_REFFERING_PHYSICIAN = txtReffering.Text; _OTPT_PATIENT_DAO.SZ_REFFERING_PHYSICIAN_ADDRESS = txtrefferingaddress.Text; _OTPT_PATIENT_DAO.SZ_REFFERING_TELEPHONE_NO = txtrefferingtelno.Text; _objOTPT.Save_Patient_Info(_OTPT_PATIENT_DAO); } 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 LoadData() { 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()); } _objOTPT = new OTPT(); _OTPT_HISTROY_DAO = new OTPT_HISTROY_DAO(); DataSet dsgethistroy = new DataSet(); try { dsgethistroy = _objOTPT.GET_Histroy_Information_OTPT(txtCaseID.Text, txtCompanyID.Text); if (dsgethistroy.Tables.Count > 0) { if (dsgethistroy.Tables[0].Rows.Count > 0) { if (dsgethistroy.Tables[0].Rows[0].ToString() != "" && dsgethistroy.Tables[0].Rows[0].ToString() != null) { txtDiagnosis.Text = dsgethistroy.Tables[0].Rows[0]["SZ_PHYSICIAN_REFERRING"].ToString(); txtprehistroyinjury.Text = dsgethistroy.Tables[0].Rows[0]["SZ_PRE_INJURY_HISTROY"].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()); } }
public void saveData() { 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()); } _OTPT_THERAPIST_DAO = new OTPT_THERAPIST_DAO(); obj_OTPT = new OTPT(); try { _OTPT_THERAPIST_DAO.SZ_CASE_ID = txtCaseID.Text; _OTPT_THERAPIST_DAO.SZ_BILL_NO = txtBillNo.Text; if (rdlstTaxType.SelectedValue == "0") { _OTPT_THERAPIST_DAO.SZ_BT_SSN_EIN = rdlstTaxType.SelectedValue; } else if (rdlstTaxType.SelectedValue == "1") { _OTPT_THERAPIST_DAO.SZ_BT_SSN_EIN = rdlstTaxType.SelectedValue; } _OTPT_THERAPIST_DAO.SZ_COMPANY_ID = txtCompanyID.Text; obj_OTPT.Patient_Therapist_Info(_OTPT_THERAPIST_DAO); } 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 LoadData() { 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()); } OTPT _objOTPT = new OTPT(); DataSet dsbilling = new DataSet(); try { dsbilling = _objOTPT.GET_OCT_Bills_Table(txtBillNumber.Text); grdBillingInformation.DataSource = dsbilling; grdBillingInformation.DataBind(); txtDiagnosis.Text = dsbilling.Tables[0].Rows[0]["SZ_DIGNOSIS"].ToString(); lblTotalChargeAmt.Text = dsbilling.Tables[0].Rows[0]["BILL_AMOUNT"].ToString(); lblTotalPaidAmt.Text = dsbilling.Tables[0].Rows[0]["PAID_AMOUNT"].ToString(); lblTotalBalanceAmt.Text = dsbilling.Tables[0].Rows[0]["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()); } }
private void SaveData() { 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()); } _OTPT_HISTROY_DAO = new OTPT_HISTROY_DAO(); _objOTPT = new OTPT(); try { _OTPT_HISTROY_DAO.SZ_PATIENT_ID = txtPatientID.Text; _OTPT_HISTROY_DAO.SZ_CASE_ID = txtCaseID.Text; _OTPT_HISTROY_DAO.SZ_BILL_NO = txtBillNumber.Text; _OTPT_HISTROY_DAO.SZ_PHYSICIAN_REFERRING = txtDiagnosis.Text; _OTPT_HISTROY_DAO.SZ_PRE_INJURY_HISTROY = txtprehistroyinjury.Text; _OTPT_HISTROY_DAO.SZ_COMPANY_ID = txtCompanyID.Text; _objOTPT.Save_History_Info(_OTPT_HISTROY_DAO); } 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 LoadData() { 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()); } obj_OTPT = new OTPT(); DataSet ds_therapist_info = new DataSet(); DataSet dsgettherapist = new DataSet(); _editOperation = new EditOperation(); try { ds_therapist_info = obj_OTPT.GET_Therapist_Info_OTPT(txtBillNo.Text); // dsgettherapist = obj_OTPT.GET_Therapist_Information_OTPT(txtCaseID.Text, txtCompanyID.Text); if (ds_therapist_info.Tables.Count > 0) { if (ds_therapist_info.Tables[0].Rows.Count > 0) { if (ds_therapist_info.Tables[0].Rows[0].ItemArray[0].ToString() != "" && ds_therapist_info.Tables[0].Rows[0].ItemArray[0].ToString() != null) { txtTheripastName.Text = ds_therapist_info.Tables[0].Rows[0]["SZ_DOCTOR_NAME"].ToString(); txtbillingaddress.Text = ds_therapist_info.Tables[0].Rows[0]["SZ_OFFICE"].ToString(); txtfederaltaxidnumber.Text = ds_therapist_info.Tables[0].Rows[0]["SZ_FEDERAL_TAX_ID"].ToString(); txtnynlicenseno.Text = ds_therapist_info.Tables[0].Rows[0]["SZ_DOCTOR_LICENSE_NUMBER"].ToString(); if (ds_therapist_info.Tables[0].Rows[0]["BIT_TAX_ID_TYPE"].ToString().Trim() == "True") { rdlstTaxType.SelectedIndex = 0; } else if (ds_therapist_info.Tables[0].Rows[0]["BIT_TAX_ID_TYPE"].ToString().Trim() == "False") { rdlstTaxType.SelectedIndex = 1; } } } } //if (dsgettherapist.Tables.Count > 0) //{ // if (dsgettherapist.Tables[0].Rows.Count > 0) // { // if (dsgettherapist.Tables[0].Rows[0].ToString() != "" && dsgettherapist.Tables[0].Rows[0].ToString() != null) // { // if (dsgettherapist.Tables[0].Rows[0]["BT_SSN_EIN"].ToString().Trim() == "0") // { // rdlstTaxType.SelectedIndex = 0; // } // else // { // rdlstTaxType.SelectedIndex = 1; // } // } // } //} } 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 LoadData() { 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 ds_report_info = new DataSet(); objOTPT = new OTPT(); try { ds_report_info = objOTPT.GET_Report_Information_OTPT(txtCaseID.Text, txtCompanyID.Text); if (ds_report_info.Tables.Count > 0) { if (ds_report_info.Tables[0].Rows.Count > 0) { if (ds_report_info.Tables[0].Rows[0].ToString() != "" && ds_report_info.Tables[0].Rows[0].ToString() != null) { if (ds_report_info.Tables[0].Rows[0]["BT_OCCUPATIOANL_THERP_REPORT"].ToString().Trim() == "1") { chkOCCUPATIONAL.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_OCCUPATIOANL_THERP_REPORT"].ToString().Trim() == "0") { chkOCCUPATIONAL.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_PHYSICAL_THERP_REPORT"].ToString().Trim() == "1") { chkPHYSICAL.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_PHYSICAL_THERP_REPORT"].ToString().Trim() == "0") { chkPHYSICAL.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_48HR_INI_REPORT"].ToString().Trim() == "1") { chk48Hour.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_48HR_INI_REPORT"].ToString().Trim() == "0") { chk48Hour.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_15DAY_INI_REPORT"].ToString().Trim() == "1") { chk15Day.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_15DAY_INI_REPORT"].ToString().Trim() == "0") { chk15Day.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_90DAY_PRO_REPORT"].ToString().Trim() == "1") { chk90Day.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_90DAY_PRO_REPORT"].ToString().Trim() == "0") { chk90Day.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_PPO"].ToString().Trim() == "1") { rdlstPPO.SelectedIndex = 0; } else if (ds_report_info.Tables[0].Rows[0]["BT_PPO"].ToString().Trim() == "0") { rdlstPPO.SelectedIndex = 1; } else if (ds_report_info.Tables[0].Rows[0]["BT_PPO"].ToString().Trim() == "2") { rdlstPPO.SelectedIndex = 2; } } } } } 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 SaveData() { 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()); } obj_OTPT_DAO = new OTPT_DAO(); objOTPT = new OTPT(); string sz_bt_occup = "0"; string sz_bt_physical = "0"; string sz_bt_48Hour = "0"; string sz_bt_15Day = "0"; string sz_bt_90Day = "0"; string sz_bt_PPO = "2"; try { if (chkOCCUPATIONAL.Checked == true) { sz_bt_occup = "1"; } if (chkPHYSICAL.Checked == true) { sz_bt_physical = "1"; } if (chk48Hour.Checked == true) { sz_bt_48Hour = "1"; } if (chk15Day.Checked == true) { sz_bt_15Day = "1"; } if (chk90Day.Checked == true) { sz_bt_90Day = "1"; } //if (rdlstPPO.SelectedValue=="0") //{ // sz_bt_PPO = "0"; //} //else if (rdlstPPO.SelectedValue == "1") //{ // sz_bt_PPO = "1"; //} //else if (rdlstPPO.SelectedValue == "2") //{ // sz_bt_PPO = "2"; //} obj_OTPT_DAO.SZ_CASE_ID = txtCaseID.Text; obj_OTPT_DAO.SZ_PATIENT_ID = txtPatientID.Text; obj_OTPT_DAO.SZ_BILL_NO = txtBillNumber.Text; obj_OTPT_DAO.SZ_BT_OCCUPATIONAL = sz_bt_occup; obj_OTPT_DAO.SZ_BT_PHYSICAL = sz_bt_physical; obj_OTPT_DAO.SZ_BT_48_HOUR = sz_bt_48Hour; obj_OTPT_DAO.SZ_BT_15_DAY = sz_bt_15Day; obj_OTPT_DAO.SZ_BT_90_DAY = sz_bt_90Day; obj_OTPT_DAO.SZ_BT_PPO = rdlstPPO.SelectedValue; obj_OTPT_DAO.SZ_COMPANY_ID = txtCompanyID.Text; objOTPT.Patient_Report_Info(obj_OTPT_DAO); } 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 LoadData() { 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()); } obj_OTPT = new OTPT(); DataSet dsevlutreatment = new DataSet(); try { dsevlutreatment = obj_OTPT.GET_Evalution_and_Treatment_Information_OTPT(txtCaseID.Text, txtCompanyID.Text); if (dsevlutreatment.Tables.Count > 0) { if (dsevlutreatment.Tables[0].Rows.Count > 0) { if (dsevlutreatment.Tables[0].Rows[0].ToString() != "" && dsevlutreatment.Tables[0].Rows[0].ToString() != null) { string referall = dsevlutreatment.Tables[0].Rows[0]["BT_REFRERAL_FOR"].ToString(); if (referall == "0") { rdbreferral.SelectedIndex = 0; txtcondition.Enabled = false; txtTreatment.Enabled = false; txtfrequency.Enabled = false; txtPeriod.Enabled = false; rdlstDiagnosisTestandReferral.Enabled = false; chkTreatment.Enabled = false; } else if (referall == "1") { rdbreferral.SelectedIndex = 1; txtEvaluation.Enabled = false; } else if (referall == "2") { rdbreferral.SelectedIndex = 2; } txtEvaluation.Text = dsevlutreatment.Tables[0].Rows[0]["SZ_EVALUTION_DESC"].ToString(); txtcondition.Text = dsevlutreatment.Tables[0].Rows[0]["SZ_PATIENT_CONDITION"].ToString(); txtTreatment.Text = dsevlutreatment.Tables[0].Rows[0]["SZ_TREATMENT"].ToString(); string treatmentplan = dsevlutreatment.Tables[0].Rows[0]["BT_TREATMENT_PLAN"].ToString(); if (treatmentplan == "1") { rdlstDiagnosisTestandReferral.SelectedIndex = 0; } else if (treatmentplan == "0") { rdlstDiagnosisTestandReferral.SelectedIndex = 1; txtfrequency.Enabled = false; txtPeriod.Enabled = false; } else if (treatmentplan == "2") { rdlstDiagnosisTestandReferral.SelectedIndex = 2; } txtfrequency.Text = dsevlutreatment.Tables[0].Rows[0]["SZ_FREQUENCY"].ToString(); txtPeriod.Text = dsevlutreatment.Tables[0].Rows[0]["SZ_PERIOD"].ToString(); txtVisitDate.Text = dsevlutreatment.Tables[0].Rows[0]["DT_DATE_OF_VISIT_REPORT"].ToString(); txtFirstVisitDate.Text = dsevlutreatment.Tables[0].Rows[0]["DT_DATE_OF_FIRST_VISIT"].ToString(); string patientseen = dsevlutreatment.Tables[0].Rows[0]["BT_PATIENT_SEEN_AGAIN"].ToString(); if (patientseen == "1") { rdnpatientseen.SelectedIndex = 0; } else if (patientseen == "0") { rdnpatientseen.SelectedIndex = 1; } else if (patientseen == "2") { rdnpatientseen.SelectedIndex = 2; } txtPatientSeen.Text = dsevlutreatment.Tables[0].Rows[0]["SZ_PATIENT_SEEN_YES"].ToString(); string attendoctor = dsevlutreatment.Tables[0].Rows[0]["BT_PATIENT_ATTENDING_DOCTOR"].ToString(); if (attendoctor == "1") { rbpatientAttendingDoctor.SelectedIndex = 0; } else if (attendoctor == "0") { rbpatientAttendingDoctor.SelectedIndex = 1; } else if (attendoctor == "2") { rbpatientAttendingDoctor.SelectedIndex = 2; } string patientworking = dsevlutreatment.Tables[0].Rows[0]["BT_PATIENT_WORKING"].ToString(); if (patientworking == "1") { rbPatientWorking.SelectedIndex = 0; } else if (patientworking == "0") { rbPatientWorking.SelectedIndex = 1; } else if (patientworking == "2") { rbPatientWorking.SelectedIndex = 2; } txtlimitedwork.Text = dsevlutreatment.Tables[0].Rows[0]["SZ_LIMITED_WORK"].ToString(); txtregularwork.Text = dsevlutreatment.Tables[0].Rows[0]["SZ_REGULAR_WORK"].ToString(); if (dsevlutreatment.Tables[0].Rows[0]["BT_ADDITIONAL_SPACE"].ToString() == "1") { chkTreatment.Checked = true; } else if (dsevlutreatment.Tables[0].Rows[0]["BT_ADDITIONAL_SPACE"].ToString() == "0") { chkTreatment.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()); } }
private void SaveData() { 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()); } //rdbreferral try { obj_OTPT_Treatment = new OTPT_TREATMENT_DAO(); obj_OTPT = new OTPT(); obj_OTPT_Treatment.SZ_PATIENT_ID = txtPatientID.Text; obj_OTPT_Treatment.SZ_CASE_ID = txtCaseID.Text; obj_OTPT_Treatment.SZ_BILL_NO = txtBillNumber.Text; obj_OTPT_Treatment.BT_REFRERAL_FOR = rdbreferral.SelectedValue; obj_OTPT_Treatment.SZ_EVALUTION_DESC = txtEvaluation.Text; obj_OTPT_Treatment.SZ_PATIENT_CONDITION = txtcondition.Text; obj_OTPT_Treatment.SZ_TREATMENT = txtTreatment.Text; obj_OTPT_Treatment.BT_TREATMENT_PLAN = rdlstDiagnosisTestandReferral.SelectedValue; obj_OTPT_Treatment.SZ_FREQUENCY = txtfrequency.Text; obj_OTPT_Treatment.SZ_PERIOD = txtPeriod.Text; obj_OTPT_Treatment.DT_DATE_OF_VISIT_REPORT = txtVisitDate.Text; obj_OTPT_Treatment.DT_DATE_OF_FIRST_VISIT = txtFirstVisitDate.Text; obj_OTPT_Treatment.BT_PATIENT_SEEN_AGAIN = rdnpatientseen.SelectedValue; obj_OTPT_Treatment.SZ_PATIENT_SEEN_YES = txtPatientSeen.Text; obj_OTPT_Treatment.BT_PATIENT_ATTENDING_DOCTOR = rbpatientAttendingDoctor.SelectedValue; obj_OTPT_Treatment.BT_PATIENT_WORKING = rbPatientWorking.SelectedValue; obj_OTPT_Treatment.SZ_LIMITED_WORK = txtlimitedwork.Text; obj_OTPT_Treatment.SZ_REGULAR_WORK = txtregularwork.Text; obj_OTPT_Treatment.SZ_COMPANY_ID = txtCompanyID.Text; if (chkTreatment.Checked) { obj_OTPT_Treatment.BT_ADDITIONAL_SPACE = "1"; } else { obj_OTPT_Treatment.BT_ADDITIONAL_SPACE = "0"; } obj_OTPT.Patient_Treatment_Info(obj_OTPT_Treatment); } 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 LoadData() { 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 ds_patient_info = new DataSet(); DataSet ds_get_patient_info = new DataSet(); _objOTPT = new OTPT(); _editOperation = new EditOperation(); try { string sz_Bill_No = txtBillNumber.Text; string sz_Case_Id = txtCaseID.Text; ds_patient_info = _objOTPT.GET_Patient_Info_OTPT(sz_Case_Id); ds_get_patient_info = _objOTPT.GET_Patient_Information_OTPT(sz_Case_Id, txtCompanyID.Text); if (ds_patient_info.Tables.Count > 0) { if (ds_patient_info.Tables[0].Rows.Count > 0) { if (ds_patient_info.Tables[0].Rows[0].ToString() != "" && ds_patient_info.Tables[0].Rows[0].ToString() != null) { txtPatientFirstName.Text = ds_patient_info.Tables[0].Rows[0]["SZ_PATIENT_FIRST_NAME"].ToString(); txtPatientMiddleName.Text = ds_patient_info.Tables[0].Rows[0]["MI"].ToString(); txtPatientLastName.Text = ds_patient_info.Tables[0].Rows[0]["SZ_PATIENT_LAST_NAME"].ToString(); txtPatientStreet.Text = ds_patient_info.Tables[0].Rows[0]["SZ_PATIENT_STREET"].ToString(); txtPatientCity.Text = ds_patient_info.Tables[0].Rows[0]["SZ_PATIENT_CITY"].ToString(); extddlPatientState.Text = ds_patient_info.Tables[0].Rows[0]["SZ_PATIENT_STATE"].ToString(); txtPatientZip.Text = ds_patient_info.Tables[0].Rows[0]["SZ_PATIENT_ZIP"].ToString(); txtPatientPhone.Text = ds_patient_info.Tables[0].Rows[0]["SZ_PATIENT_PHONE"].ToString(); txtDateOfInjury.Text = ds_patient_info.Tables[0].Rows[0]["DT_INJURY"].ToString(); txtPatientDOB.Text = ds_patient_info.Tables[0].Rows[0]["DT_DOB"].ToString(); txtSSN.Text = ds_patient_info.Tables[0].Rows[0]["SZ_SOCIAL_SECURITY_NO"].ToString(); txtEmployer.Text = ds_patient_info.Tables[0].Rows[0]["SZ_EMPLOYER_NAME"].ToString(); txtWCBCaseNumber.Text = ds_patient_info.Tables[0].Rows[0]["SZ_WCB_NO"].ToString(); txtCaseCarrierNo.Text = ds_patient_info.Tables[0].Rows[0]["SZ_CLAIM_NUMBER"].ToString(); txtInsuranceCarr.Text = ds_patient_info.Tables[0].Rows[0]["SZ_INSURANCE_NAME"].ToString(); if (txtDateOfInjury.Text.Trim() != "") { DateTime dt = new DateTime(); dt = Convert.ToDateTime(txtDateOfInjury.Text); txtDateOfInjury.Text = dt.ToString("MM/dd/yyyy"); } if (txtPatientDOB.Text != "") { DateTime dt = new DateTime(); dt = Convert.ToDateTime(txtPatientDOB.Text); txtPatientDOB.Text = dt.ToString("MM/dd/yyyy"); } } } } if (ds_get_patient_info.Tables.Count > 0) { if (ds_get_patient_info.Tables[0].Rows.Count > 0) { if (ds_get_patient_info.Tables[0].Rows[0].ToString() != "" && ds_get_patient_info.Tables[0].Rows[0].ToString() != null) { txtaddcitytown.Text = ds_get_patient_info.Tables[0].Rows[0]["SZ_PATIENT_INJURY_PLACE"].ToString(); if (ds_get_patient_info.Tables[0].Rows[0]["SZ_TREATEMNET_UNDER"].ToString().Trim() == "0") { rdlstTaxType.SelectedIndex = 0; } else if (ds_get_patient_info.Tables[0].Rows[0]["SZ_TREATEMNET_UNDER"].ToString().Trim() == "1") { rdlstTaxType.SelectedIndex = 1; } else if (ds_get_patient_info.Tables[0].Rows[0]["SZ_TREATEMNET_UNDER"].ToString().Trim() == "2") { rdlstTaxType.SelectedIndex = 2; } string sztimeinjury = ds_get_patient_info.Tables[0].Rows[0]["SZ_TIME_OF_INJURY"].ToString(); //string sztreatmentunder = ds_get_patient_info.Tables[0].Rows[0]["SZ_TREATEMNET_UNDER"].ToString(); //if (sztreatmentunder == "0") //{ // rdlstTaxType.SelectedIndex = 0; //} //else if (sztreatmentunder == "1") //{ // rdlstTaxType.SelectedIndex = 1; //} txtHistoryInjuryDate.Text = ds_get_patient_info.Tables[0].Rows[0]["DT_DATE_OF_PRV_HISTROY"].ToString(); string ddltime = ds_get_patient_info.Tables[0].Rows[0]["SZ_TIME_TYPE"].ToString(); string strtimehr = sztimeinjury.Substring(0, 2); string strtimemin = sztimeinjury.Substring(3, 2); if (ddltime.Trim() == "AM") { ddlTime.SelectedIndex = 0; } else if (ddltime.Trim() == "PM") { ddlTime.SelectedIndex = 1; } int iHH = Convert.ToInt32(strtimehr.Trim()); ddlHours.SelectedIndex = iHH; int iMM = Convert.ToInt32(strtimemin.Trim()); ddlMinutes.SelectedIndex = iMM; txtReffering.Text = ds_get_patient_info.Tables[0].Rows[0]["SZ_REFFERING_PHYSICIAN"].ToString(); txtrefferingaddress.Text = ds_get_patient_info.Tables[0].Rows[0]["SZ_REFFERING_PHYSICIAN_ADDRESS"].ToString(); txtrefferingtelno.Text = ds_get_patient_info.Tables[0].Rows[0]["SZ_REFFERING_TELEPHONE_NO"].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()); } }