コード例 #1
0
        public void SetRole(int p_oid, ChroniGenNHibernate.Enumerated.Chroni.PractitionerRoleEnum p_role)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Practitioner_setRole) ENABLED START*/

            // Write here your custom code...

            PractitionerCAD practitionerCAD = new PractitionerCAD();
            PractitionerCEN practitionerCEN = new PractitionerCEN(practitionerCAD);

            if (p_oid > 0)
            {
                PractitionerEN practitioner = practitionerCEN.ReadOID(p_oid);

                if (practitioner != null)
                {
                    if (p_role > 0)
                    {
                        practitioner.Role = p_role;
                        practitionerCAD.Modify(practitioner);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
コード例 #2
0
        public void Modify(int p_Practitioner_OID, string p_nif, bool p_active, ChroniGenNHibernate.Enumerated.Chroni.PractitionerRoleEnum p_role, string p_name, string p_surnames, ChroniGenNHibernate.Enumerated.Chroni.GenderEnum p_gender, Nullable <DateTime> p_birthDate, string p_address, string p_email, string p_phone, string p_photo, Nullable <DateTime> p_startDate, Nullable <DateTime> p_endDate, String p_password)
        {
            PractitionerEN practitionerEN = null;

            //Initialized PractitionerEN
            practitionerEN            = new PractitionerEN();
            practitionerEN.Identifier = p_Practitioner_OID;
            practitionerEN.Nif        = p_nif;
            practitionerEN.Active     = p_active;
            practitionerEN.Role       = p_role;
            practitionerEN.Name       = p_name;
            practitionerEN.Surnames   = p_surnames;
            practitionerEN.Gender     = p_gender;
            practitionerEN.BirthDate  = p_birthDate;
            practitionerEN.Address    = p_address;
            practitionerEN.Email      = p_email;
            practitionerEN.Phone      = p_phone;
            practitionerEN.Photo      = p_photo;
            practitionerEN.StartDate  = p_startDate;
            practitionerEN.EndDate    = p_endDate;
            practitionerEN.Password   = Utils.Util.GetEncondeMD5(p_password);
            //Call to PractitionerCAD

            _IPractitionerCAD.Modify(practitionerEN);
        }
コード例 #3
0
        public int New_(string p_nif, bool p_active, ChroniGenNHibernate.Enumerated.Chroni.PractitionerRoleEnum p_role, string p_name, string p_surnames, ChroniGenNHibernate.Enumerated.Chroni.GenderEnum p_gender, Nullable <DateTime> p_birthDate, string p_address, string p_email, string p_phone, string p_photo, Nullable <DateTime> p_startDate, Nullable <DateTime> p_endDate, System.Collections.Generic.IList <int> p_location, String p_password)
        {
            PractitionerEN practitionerEN = null;
            int            oid;

            //Initialized PractitionerEN
            practitionerEN     = new PractitionerEN();
            practitionerEN.Nif = p_nif;

            practitionerEN.Active = p_active;

            practitionerEN.Role = p_role;

            practitionerEN.Name = p_name;

            practitionerEN.Surnames = p_surnames;

            practitionerEN.Gender = p_gender;

            practitionerEN.BirthDate = p_birthDate;

            practitionerEN.Address = p_address;

            practitionerEN.Email = p_email;

            practitionerEN.Phone = p_phone;

            practitionerEN.Photo = p_photo;

            practitionerEN.StartDate = p_startDate;

            practitionerEN.EndDate = p_endDate;


            practitionerEN.Location = new System.Collections.Generic.List <ChroniGenNHibernate.EN.Chroni.LocationEN>();
            if (p_location != null)
            {
                foreach (int item in p_location)
                {
                    ChroniGenNHibernate.EN.Chroni.LocationEN en = new ChroniGenNHibernate.EN.Chroni.LocationEN();
                    en.Identifier = item;
                    practitionerEN.Location.Add(en);
                }
            }

            else
            {
                practitionerEN.Location = new System.Collections.Generic.List <ChroniGenNHibernate.EN.Chroni.LocationEN>();
            }

            practitionerEN.Password = Utils.Util.GetEncondeMD5(p_password);

            //Call to PractitionerCAD

            oid = _IPractitionerCAD.New_(practitionerEN);
            return(oid);
        }
        public double GetAverageByPractitionerRole(ChroniGenNHibernate.Enumerated.Chroni.PractitionerRoleEnum p_practitioner_role)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Assessment_getAverageByPractitionerRole) ENABLED START*/

            // Write here your custom code...

            throw new NotImplementedException("Method GetAverageByPractitionerRole() not yet implemented.");

            /*PROTECTED REGION END*/
        }
コード例 #5
0
        private void init(int identifier
                          , string nif, bool active, ChroniGenNHibernate.Enumerated.Chroni.PractitionerRoleEnum role, string name, string surnames, ChroniGenNHibernate.Enumerated.Chroni.GenderEnum gender, Nullable <DateTime> birthDate, string address, string email, string phone, string photo, Nullable <DateTime> startDate, Nullable <DateTime> endDate, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.LocationEN> location, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.DiaryEN> diary, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.EncounterEN> encounter, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ConversationEN> conversation, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ReclamationEN> reclamation, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ScheduleEN> schedule, String password, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.PatientEN> patient, ChroniGenNHibernate.EN.Chroni.SpecialtyEN specialty, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.AssessmentEN> assessmentPractitioner)
        {
            this.Identifier = identifier;


            this.Nif = nif;

            this.Active = active;

            this.Role = role;

            this.Name = name;

            this.Surnames = surnames;

            this.Gender = gender;

            this.BirthDate = birthDate;

            this.Address = address;

            this.Email = email;

            this.Phone = phone;

            this.Photo = photo;

            this.StartDate = startDate;

            this.EndDate = endDate;

            this.Location = location;

            this.Diary = diary;

            this.Encounter = encounter;

            this.Conversation = conversation;

            this.Reclamation = reclamation;

            this.Schedule = schedule;

            this.Password = password;

            this.Patient = patient;

            this.Specialty = specialty;

            this.AssessmentPractitioner = assessmentPractitioner;
        }
コード例 #6
0
 public PractitionerEN(int identifier, string nif, bool active, ChroniGenNHibernate.Enumerated.Chroni.PractitionerRoleEnum role, string name, string surnames, ChroniGenNHibernate.Enumerated.Chroni.GenderEnum gender, Nullable <DateTime> birthDate, string address, string email, string phone, string photo, Nullable <DateTime> startDate, Nullable <DateTime> endDate, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.LocationEN> location, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.DiaryEN> diary, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.EncounterEN> encounter, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ConversationEN> conversation, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ReclamationEN> reclamation, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ScheduleEN> schedule, String password, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.PatientEN> patient, ChroniGenNHibernate.EN.Chroni.SpecialtyEN specialty, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.AssessmentEN> assessmentPractitioner
                       )
 {
     this.init(Identifier, nif, active, role, name, surnames, gender, birthDate, address, email, phone, photo, startDate, endDate, location, diary, encounter, conversation, reclamation, schedule, password, patient, specialty, assessmentPractitioner);
 }