示例#1
0
        public void SetNote(int p_oid, string p_note)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Encounter_setNote) ENABLED START*/

            // Write here your custom code...

            EncounterCAD encounterCAD = new EncounterCAD();
            EncounterCEN encounterCEN = new EncounterCEN(encounterCAD);

            if (p_oid > 0)
            {
                EncounterEN encounter = encounterCEN.ReadOID(p_oid);

                if (encounter != null)
                {
                    if (!string.IsNullOrEmpty(p_note))
                    {
                        encounter.Note = p_note;
                        encounterCAD.Modify(encounter);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
        public void SetPriority(int p_oid, ChroniGenNHibernate.Enumerated.Chroni.EncounterPriorityEnum p_prioridad)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Encounter_setPriority) ENABLED START*/

            // Write here your custom code...

            EncounterCAD encounterCAD = new EncounterCAD();
            EncounterCEN encounterCEN = new EncounterCEN(encounterCAD);

            if (p_oid > 0)
            {
                EncounterEN encounter = encounterCEN.ReadOID(p_oid);

                if (encounter != null)
                {
                    if (p_prioridad > 0)
                    {
                        encounter.Priority = p_prioridad;
                        encounterCAD.Modify(encounter);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }