Example #1
0
        private void init(int identifier
                          , string subject, Nullable <DateTime> statusDate, string target, ChroniGenNHibernate.Enumerated.Chroni.GoalCategoryEnum category, string description, ChroniGenNHibernate.Enumerated.Chroni.GoalStatusEnum status, ChroniGenNHibernate.Enumerated.Chroni.GoalPriorityEnum priority, string note, ChroniGenNHibernate.EN.Chroni.CarePlanEN carePlan)
        {
            this.Identifier = identifier;


            this.Subject = subject;

            this.StatusDate = statusDate;

            this.Target = target;

            this.Category = category;

            this.Description = description;

            this.Status = status;

            this.Priority = priority;

            this.Note = note;

            this.CarePlan = carePlan;
        }
        public void Modify(int p_Goal_OID, string p_subject, Nullable <DateTime> p_statusDate, string p_target, ChroniGenNHibernate.Enumerated.Chroni.GoalCategoryEnum p_category, string p_description, ChroniGenNHibernate.Enumerated.Chroni.GoalStatusEnum p_status, ChroniGenNHibernate.Enumerated.Chroni.GoalPriorityEnum p_priority, string p_note)
        {
            GoalEN goalEN = null;

            //Initialized GoalEN
            goalEN             = new GoalEN();
            goalEN.Identifier  = p_Goal_OID;
            goalEN.Subject     = p_subject;
            goalEN.StatusDate  = p_statusDate;
            goalEN.Target      = p_target;
            goalEN.Category    = p_category;
            goalEN.Description = p_description;
            goalEN.Status      = p_status;
            goalEN.Priority    = p_priority;
            goalEN.Note        = p_note;
            //Call to GoalCAD

            _IGoalCAD.Modify(goalEN);
        }
Example #3
0
 public GoalEN(int identifier, string subject, Nullable <DateTime> statusDate, string target, ChroniGenNHibernate.Enumerated.Chroni.GoalCategoryEnum category, string description, ChroniGenNHibernate.Enumerated.Chroni.GoalStatusEnum status, ChroniGenNHibernate.Enumerated.Chroni.GoalPriorityEnum priority, string note, ChroniGenNHibernate.EN.Chroni.CarePlanEN carePlan
               )
 {
     this.init(Identifier, subject, statusDate, target, category, description, status, priority, note, carePlan);
 }
        public int New_(string p_subject, Nullable <DateTime> p_statusDate, string p_target, ChroniGenNHibernate.Enumerated.Chroni.GoalCategoryEnum p_category, string p_description, ChroniGenNHibernate.Enumerated.Chroni.GoalStatusEnum p_status, ChroniGenNHibernate.Enumerated.Chroni.GoalPriorityEnum p_priority, string p_note, int p_carePlan)
        {
            GoalEN goalEN = null;
            int    oid;

            //Initialized GoalEN
            goalEN         = new GoalEN();
            goalEN.Subject = p_subject;

            goalEN.StatusDate = p_statusDate;

            goalEN.Target = p_target;

            goalEN.Category = p_category;

            goalEN.Description = p_description;

            goalEN.Status = p_status;

            goalEN.Priority = p_priority;

            goalEN.Note = p_note;


            if (p_carePlan != -1)
            {
                // El argumento p_carePlan -> Property carePlan es oid = false
                // Lista de oids identifier
                goalEN.CarePlan            = new ChroniGenNHibernate.EN.Chroni.CarePlanEN();
                goalEN.CarePlan.Identifier = p_carePlan;
            }

            //Call to GoalCAD

            oid = _IGoalCAD.New_(goalEN);
            return(oid);
        }