Example #1
0
    protected void btnSaveAndGoToNext_Click(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), "");

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        _saveOperation = new SaveOperation();
        WorkerTemplate _obj = new WorkerTemplate();

        try
        {
            if (_obj.PatientExistCheckForWC4("SP_MST_HISTORY_NEW", Session["TEMPLATE_BILL_NO"].ToString()) == false)
            {
                //txthdnInjury.Text = chklstInjury.SelectedValue;
                //txthdnHospitalization.Text = chklstHospitalization.SelectedValue;
                //txthdnPreviouslyTreated.Text = chkPreviouslyTreated.SelectedValue;

                txtPrevTreat.Text       = rdlstPreviouslyTreated.SelectedIndex.ToString();
                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "History_New.xml";
                _saveOperation.SaveMethod();
            }
            else
            {
                updatedata();
            }
            Response.Redirect("Bill_Sys_ExamInformation.aspx", false);
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void btnSaveAndGoToNext_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());
        }
        _saveOperation = new SaveOperation();
        WorkerTemplate _obj = new WorkerTemplate();

        try
        {
            if (_obj.PatientExistCheckForWC4("SP_MST_EXAM_INFORMATION_NEW", Session["TEMPLATE_BILL_NO"].ToString()) == false)
            {
                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "ExamInformation_New.xml";
                _saveOperation.SaveMethod();
            }
            else
            {
                updatedata();
            }

            Save_Patient_Compliments();
            Save_Patient_Injury();
            Save_Patient_Physical_Exam();
            Response.Redirect("Bill_Sys_DoctorOpinion.aspx", false);
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void btnSaveAndGoToNext_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());
        }
        _saveOperation = new SaveOperation();
        WorkerTemplate _obj = new WorkerTemplate();

        try
        {
            if (_obj.PatientExistCheckForWC4("SP_MST_DOCTORS_OPINION_NEW", Session["TEMPLATE_BILL_NO"].ToString()) == false)
            {
                //txthdnHistoryOfInjury.Text = chkHistoryOfInjury.SelectedValue;
                //txthdnMedicalCauses.Text = chkMedicalCauses.SelectedValue ;
                //txthdnObjectiveFindings.Text = chkObjectiveFindings.SelectedValue;

                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "DoctorOpinion_New.xml";
                _saveOperation.SaveMethod();
            }
            else
            {
                updatedata();
            }
            Response.Redirect("Bill_Sys_PlanOfCare.aspx", false);
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void btnSaveAndGoToNext_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());
        }
        _saveOperation = new SaveOperation();
        WorkerTemplate _obj = new WorkerTemplate();

        try
        {
            if (rdlstPatientMissedWork.SelectedValue != "0")
            {
                txtPatientMissedWorkDate.Text = "";
            }


            if (_obj.PatientExistCheckForWC4("SP_MST_WORK_STATUS_NEW", Session["TEMPLATE_BILL_NO"].ToString()) == false)
            {
                loadReqData();

                if (rdlstPatientMissedWork.SelectedValue.ToString().Equals(""))
                {
                    txtPatientMissedWork.Text = "-1";
                }
                else
                {
                    txtPatientMissedWork.Text = rdlstPatientMissedWork.SelectedValue.ToString();
                }

                if (rdlstPatientCurrentlyWorking.SelectedValue.ToString().Equals(""))
                {
                    txtPatientCurrentlyWorking.Text = "-1";
                }
                else
                {
                    txtPatientCurrentlyWorking.Text = rdlstPatientCurrentlyWorking.SelectedValue.ToString();
                }


                if (rdlstDidPatientReturn.SelectedValue.ToString().Equals(""))
                {
                    txtDidPatientReturn.Text = "-1";
                }
                else
                {
                    txtDidPatientReturn.Text = rdlstDidPatientReturn.SelectedValue.ToString();
                }

                if (rdlstHowLongLimitaionApply.SelectedValue.ToString().Equals(""))
                {
                    txtHowLongLimitaionApply.Text = "-1";
                }
                else
                {
                    txtHowLongLimitaionApply.Text = rdlstHowLongLimitaionApply.SelectedValue.ToString();
                }


                if (rdlstDiscussPatientReturn.SelectedValue.ToString().Equals(""))
                {
                    txtDiscussPatientReturn.Text = "-1";
                }
                else
                {
                    txtDiscussPatientReturn.Text = rdlstDiscussPatientReturn.SelectedValue.ToString();
                }

                if (rdlstHealthCareProvider.SelectedValue.ToString().Equals(""))
                {
                    txtHealthCareProvider.Text = "-1";
                }
                else
                {
                    txtHealthCareProvider.Text = rdlstHealthCareProvider.SelectedValue.ToString();
                }



                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "WorkStatus_New.xml";
                _saveOperation.SaveMethod();



                if (chkPatientReturnToWorkWithlimitation.Checked)
                {
                    DeleteLimitations();
                    SaveOtherInformation();
                }
            }
            else
            {
                updatedata();
                //   if (chkPatientReturnToWorkWithlimitation.Checked)
                {
                    DeleteLimitations();
                    SaveOtherInformation();
                }
            }

            LoadData();
        }
        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());
        }
    }