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*/
        }
Beispiel #2
0
        public void SetDateObservation(int p_oid, Nullable <DateTime> p_dateObservation)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Observation_setDateObservation) 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_dateObservation != null)
                    {
                        observation.DateObservation = p_dateObservation;
                        observationCAD.Modify(observation);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
        public void SetValue2(int p_oid, double p_value2)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Observation_setValue2) 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_value2 >= 0)
                    {
                        observation.Value2 = p_value2;
                        observationCAD.Modify(observation);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
Beispiel #4
0
        public void SetNote(int p_oid, string p_note)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Observation_setNote) 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 (!string.IsNullOrEmpty(p_note))
                    {
                        observation.Note = p_note;
                        observationCAD.Modify(observation);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }