public void SetMeasureType(int p_oid, ChroniGenNHibernate.Enumerated.Chroni.MeasureTypeEnum p_measureType)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Observation_setMeasureType) ENABLED START*/

            // Write here your custom code...

            ObservationCAD observationCAD = new ObservationCAD();
            ObservationCEN observationCEN = new ObservationCEN(observationCAD);

            if (p_oid > 0)
            {
                ObservationEN observation = observationCEN.ReadOID(p_oid);

                if (observation != null)
                {
                    if (p_measureType > 0)
                    {
                        observation.MeasureType = p_measureType;
                        observationCAD.Modify(observation);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
Example #2
0
        private void init(int identifier
                          , ChroniGenNHibernate.Enumerated.Chroni.MeasureTypeEnum measureType, string name, Nullable <DateTime> dateEntry, string note, Nullable <DateTime> dateAdded, ChroniGenNHibernate.EN.Chroni.DiaryEN diary, Nullable <DateTime> dateObservation, ChroniGenNHibernate.Enumerated.Chroni.ObservationCategoryEnum category, ChroniGenNHibernate.Enumerated.Chroni.SymptomGradeEnum grade, double value1, double value2, int personOID)
        {
            this.Identifier = identifier;


            this.MeasureType = measureType;

            this.Name = name;

            this.DateEntry = dateEntry;

            this.Note = note;

            this.DateAdded = dateAdded;

            this.Diary = diary;

            this.DateObservation = dateObservation;

            this.Category = category;

            this.Grade = grade;

            this.Value1 = value1;

            this.Value2 = value2;

            this.PersonOID = personOID;
        }
Example #3
0
        public int New_(ChroniGenNHibernate.Enumerated.Chroni.MeasureTypeEnum p_measureType, string p_name, Nullable <DateTime> p_dateEntry, string p_note, Nullable <DateTime> p_dateAdded, int p_diary, Nullable <DateTime> p_dateObservation, ChroniGenNHibernate.Enumerated.Chroni.ObservationCategoryEnum p_category, ChroniGenNHibernate.Enumerated.Chroni.SymptomGradeEnum p_grade, double p_value1, double p_value2, int p_personOID)
        {
            ObservationEN observationEN = null;
            int           oid;

            //Initialized ObservationEN
            observationEN             = new ObservationEN();
            observationEN.MeasureType = p_measureType;

            observationEN.Name = p_name;

            observationEN.DateEntry = p_dateEntry;

            observationEN.Note = p_note;

            observationEN.DateAdded = p_dateAdded;


            if (p_diary != -1)
            {
                // El argumento p_diary -> Property diary es oid = false
                // Lista de oids identifier
                observationEN.Diary            = new ChroniGenNHibernate.EN.Chroni.DiaryEN();
                observationEN.Diary.Identifier = p_diary;
            }

            observationEN.DateObservation = p_dateObservation;

            observationEN.Category = p_category;

            observationEN.Grade = p_grade;

            observationEN.Value1 = p_value1;

            observationEN.Value2 = p_value2;

            observationEN.PersonOID = p_personOID;

            //Call to ObservationCAD

            oid = _IObservationCAD.New_(observationEN);
            return(oid);
        }
Example #4
0
        public void Modify(int p_Observation_OID, ChroniGenNHibernate.Enumerated.Chroni.MeasureTypeEnum p_measureType, string p_name, Nullable <DateTime> p_dateEntry, string p_note, Nullable <DateTime> p_dateAdded, Nullable <DateTime> p_dateObservation, ChroniGenNHibernate.Enumerated.Chroni.ObservationCategoryEnum p_category, ChroniGenNHibernate.Enumerated.Chroni.SymptomGradeEnum p_grade, double p_value1, double p_value2, int p_personOID)
        {
            ObservationEN observationEN = null;

            //Initialized ObservationEN
            observationEN                 = new ObservationEN();
            observationEN.Identifier      = p_Observation_OID;
            observationEN.MeasureType     = p_measureType;
            observationEN.Name            = p_name;
            observationEN.DateEntry       = p_dateEntry;
            observationEN.Note            = p_note;
            observationEN.DateAdded       = p_dateAdded;
            observationEN.DateObservation = p_dateObservation;
            observationEN.Category        = p_category;
            observationEN.Grade           = p_grade;
            observationEN.Value1          = p_value1;
            observationEN.Value2          = p_value2;
            observationEN.PersonOID       = p_personOID;
            //Call to ObservationCAD

            _IObservationCAD.Modify(observationEN);
        }
Example #5
0
 public ObservationEN(int identifier, ChroniGenNHibernate.Enumerated.Chroni.MeasureTypeEnum measureType, string name, Nullable <DateTime> dateEntry, string note, Nullable <DateTime> dateAdded, ChroniGenNHibernate.EN.Chroni.DiaryEN diary, Nullable <DateTime> dateObservation, ChroniGenNHibernate.Enumerated.Chroni.ObservationCategoryEnum category, ChroniGenNHibernate.Enumerated.Chroni.SymptomGradeEnum grade, double value1, double value2, int personOID
                      )
 {
     this.init(Identifier, measureType, name, dateEntry, note, dateAdded, diary, dateObservation, category, grade, value1, value2, personOID);
 }