Exemple #1
0
        protected void InitializeGoalsPage()
        {
            InitializeGoalsGrid();


            var careMeasures =

                from currentCareMeasure in MercuryApplication.CareMeasuresAvailable(true)

                where ((currentCareMeasure.Enabled) && (currentCareMeasure.Visible))

                select currentCareMeasure;


            CarePlanGoalCareMeasureSelection.DataSource = careMeasures;

            CarePlanGoalCareMeasureSelection.DataTextField = "Name";

            CarePlanGoalCareMeasureSelection.DataValueField = "Id";

            CarePlanGoalCareMeasureSelection.DataBind();

            return;
        }
Exemple #2
0
        private void InitializeCarePlanGoal()
        {
            Client.Core.Individual.Case.MemberCaseCarePlanGoal carePlanGoal = CarePlanGoal;

            if (carePlanGoal == null)
            {
                return;
            }


            System.Web.UI.HtmlControls.HtmlControl titlePanel = (System.Web.UI.HtmlControls.HtmlControl)FindControl("TitlePanel_" + carePlanGoal.MemberCaseCarePlan.Status.ToString());

            if (titlePanel != null)
            {
                titlePanel.Visible = true;
            }


            // MAP PROPERTY VALUES INTO CONTROLS

            CarePlanGoalEditName.Text = CarePlanGoalName.Text = carePlanGoal.Name;

            // CARE PLAN GOAL STATUS

            CarePlanGoalEditClinicalNarrative.Text = CarePlanGoalClinicalNarrative.Text = carePlanGoal.ClinicalNarrative;

            CarePlanGoalEditCommonNarrative.Text = CarePlanGoalCommonNarrative.Text = carePlanGoal.CommonNarrative;

            CarePlanGoalMeasureName.Text = carePlanGoal.CareMeasureName;

            CarePlanGoalMeasureName.ToolTip = (carePlanGoal.CareMeasure != null) ? carePlanGoal.CareMeasure.Description : String.Empty;


            // EDIT PANELS BASED ON CARE PLAN GOAL STATUS (GOAL STATUS IS MORE DETAILED THAN CARE PLAN STATUS)

            System.Web.UI.HtmlControls.HtmlControl carePlanGoalEditPanel = (System.Web.UI.HtmlControls.HtmlControl)FindControl("CarePlanGoalEditPanel_" + carePlanGoal.MemberCaseCarePlan.Status.ToString());

            if (carePlanGoalEditPanel != null)
            {
                carePlanGoalEditPanel.Visible = true;
            }


            #region EDIT PANEL - UNDER DEVELOPMENT

            CarePlanGoalTimeframeSelection.SelectedValue = ((Int32)carePlanGoal.GoalTimeframe).ToString();

            CarePlanGoalScheduleValue.Value = carePlanGoal.ScheduleValue;

            CarePlanGoalScheduleQualifierSelection.SelectedValue = ((Int32)carePlanGoal.ScheduleQualifier).ToString();


            List <Client.Core.Individual.CareMeasure> careMeasuresAvailable =

                (from currentCareMeasure in MercuryApplication.CareMeasuresAvailable(true)

                 where (((currentCareMeasure.Enabled) && (currentCareMeasure.Visible)) || (currentCareMeasure.Id == carePlanGoal.CareMeasureId))

                 select currentCareMeasure).ToList();


            CarePlanGoalCareMeasureSelection.DataSource = careMeasuresAvailable;

            CarePlanGoalCareMeasureSelection.DataTextField = "Name";

            CarePlanGoalCareMeasureSelection.DataValueField = "Id";

            CarePlanGoalCareMeasureSelection.SelectedValue = carePlanGoal.CareMeasureId.ToString();

            #endregion


            CarePlanGoalInterventionsGrid.Rebind();

            return;
        }