Esempio n. 1
0
    private void SavePlanOfCare()
    {//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();
        _editOperation = new EditOperation();
        try
        {
            if (txtPlanofCareID.Text != "")
            {
                _editOperation.Primary_Value = txtPlanofCareID.Text;
                _editOperation.WebPage       = this.Page;
                _editOperation.Xml_File      = "PlanOfCare.xml";
                _editOperation.UpdateMethod();
            }
            else
            {
                if (rdlstMedicationRestrictions.SelectedValue == "0")
                {
                    txtMedicationRestrictions.Text = "";
                }

                if (rdlstTreatmentGuidelines.SelectedValue == "1")
                {
                    txtTreatmentGuidelines.Text = txtVarianceGuideline.Text;
                }
                _saveOperation.WebPage  = this.Page;
                _saveOperation.Xml_File = "PlanOfCare.xml";
                _saveOperation.SaveMethod();
                _workerstemplate     = new workers_templateC4_2();
                txtPlanofCareID.Text = _workerstemplate.GetPlanOfCareLatestID(txtPatientID.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());
        }
    }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE;
        txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
        txtPatientID.Text = Session["PatientID"].ToString();
        txtProposedWorkTreatment.Attributes.Add("Onkeyup", "CheckLengthProposedWorkTreatment(this,320)");
        txtMedicationRestrictions.Attributes.Add("Onkeyup", "CheckLengthMedicationRestrictions(this,232)");

        //txtPatientID.Text = "PI00003";
        if (!IsPostBack)
        {
            _workerstemplate     = new workers_templateC4_2();
            txtPlanofCareID.Text = _workerstemplate.GetPlanOfCareLatestID(txtPatientID.Text);
            LoadData();
        }
        #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_PlanOfCare.aspx");
        }
        #endregion
    }