Beispiel #1
0
    protected void btnSaveAndGoToNext_Click(object sender, EventArgs e)
    {//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());
        }
        _saveOperation = new SaveOperation();
        WorkerTemplate _obj = new WorkerTemplate();

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


                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "History.xml";
                _saveOperation.SaveMethod();
            }
            else
            {
                updatedata();
            }
            Response.Redirect("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());
        }
    }
Beispiel #2
0
    protected void btnSaveAndGoToNext_Click(object sender, EventArgs e)
    {//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());
        }
        _saveOperation = new SaveOperation();
        WorkerTemplate _obj = new WorkerTemplate();

        try
        {
            if (_obj.CheckPatientExist("SP_MST_EXAM_INFORMATION", Session["PatientID"].ToString()) == false)
            {
                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "ExamInformation.xml";
                _saveOperation.SaveMethod();
            }
            else
            {
                updatedata();
            }

            Save_Patient_Compliments();
            Save_Patient_Injury();
            Save_Patient_Physical_Exam();
            Response.Redirect("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());
        }
    }
Beispiel #3
0
    protected void btnSaveAndGoToNext_Click(object sender, EventArgs e)
    {//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());
        }

        _saveOperation = new SaveOperation();
        WorkerTemplate _obj = new WorkerTemplate();

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


            if (_obj.CheckPatientExist("SP_MST_WORK_STATUS", Session["PatientID"].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.xml";
                _saveOperation.SaveMethod();



                if (chkPatientReturnToWorkWithlimitation.Checked)
                {
                    DeleteLimitations();
                    SaveOtherInformation();
                }
            }
            else
            {
                updatedata();
                //   if (chkPatientReturnToWorkWithlimitation.Checked)
                {
                    DeleteLimitations();
                    SaveOtherInformation();
                }
            }
        }
        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());
        }
    }