public static PersonCertificate CreatePersonCertificate(string partyNumber,
                                                                string certificateTypeId,
                                                                global::System.DateTimeOffset startDate,
                                                                global::System.DateTimeOffset endDate,
                                                                global::Microsoft.Dynamics.DataEntities.Person person,
                                                                global::Microsoft.Dynamics.DataEntities.CertificateType certificateType)
        {
            PersonCertificate personCertificate = new PersonCertificate();

            personCertificate.PartyNumber       = partyNumber;
            personCertificate.CertificateTypeId = certificateTypeId;
            personCertificate.StartDate         = startDate;
            personCertificate.EndDate           = endDate;
            if ((person == null))
            {
                throw new global::System.ArgumentNullException("person");
            }
            personCertificate.Person = person;
            if ((certificateType == null))
            {
                throw new global::System.ArgumentNullException("certificateType");
            }
            personCertificate.CertificateType = certificateType;
            return(personCertificate);
        }
Ejemplo n.º 2
0
        public static PersonLaborUnion CreatePersonLaborUnion(string partyNumber,
                                                              string unionId,
                                                              global::System.DateTimeOffset startDate,
                                                              global::System.DateTimeOffset endDate,
                                                              global::Microsoft.Dynamics.DataEntities.Person person,
                                                              global::Microsoft.Dynamics.DataEntities.Unions laborUnion)
        {
            PersonLaborUnion personLaborUnion = new PersonLaborUnion();

            personLaborUnion.PartyNumber = partyNumber;
            personLaborUnion.UnionId     = unionId;
            personLaborUnion.StartDate   = startDate;
            personLaborUnion.EndDate     = endDate;
            if ((person == null))
            {
                throw new global::System.ArgumentNullException("person");
            }
            personLaborUnion.Person = person;
            if ((laborUnion == null))
            {
                throw new global::System.ArgumentNullException("laborUnion");
            }
            personLaborUnion.LaborUnion = laborUnion;
            return(personLaborUnion);
        }
        public static PersonIdentificationNumber CreatePersonIdentificationNumber(string partyNumber,
                                                                                  string identificationTypeId,
                                                                                  string identificationNumber,
                                                                                  global::System.DateTimeOffset issuedDate,
                                                                                  global::System.DateTimeOffset expirationDate,
                                                                                  global::Microsoft.Dynamics.DataEntities.Person person)
        {
            PersonIdentificationNumber personIdentificationNumber = new PersonIdentificationNumber();

            personIdentificationNumber.PartyNumber          = partyNumber;
            personIdentificationNumber.IdentificationTypeId = identificationTypeId;
            personIdentificationNumber.IdentificationNumber = identificationNumber;
            personIdentificationNumber.IssuedDate           = issuedDate;
            personIdentificationNumber.ExpirationDate       = expirationDate;
            if ((person == null))
            {
                throw new global::System.ArgumentNullException("person");
            }
            personIdentificationNumber.Person = person;
            return(personIdentificationNumber);
        }
Ejemplo n.º 4
0
 partial void OnPersonChanging(global::Microsoft.Dynamics.DataEntities.Person value);
Ejemplo n.º 5
0
        public static PersonCourse CreatePersonCourse(string partyNumber, string courses, global::System.DateTimeOffset startDate, global::System.DateTimeOffset endDate, global::Microsoft.Dynamics.DataEntities.Person person)
        {
            PersonCourse personCourse = new PersonCourse();

            personCourse.PartyNumber = partyNumber;
            personCourse.Courses     = courses;
            personCourse.StartDate   = startDate;
            personCourse.EndDate     = endDate;
            if ((person == null))
            {
                throw new global::System.ArgumentNullException("person");
            }
            personCourse.Person = person;
            return(personCourse);
        }
Ejemplo n.º 6
0
        public static BaseWorker CreateBaseWorker(string personnelNumber, global::System.DateTimeOffset birthDate, global::System.DateTimeOffset disabledVerificationDate, global::System.DateTimeOffset deceasedDate, global::Microsoft.Dynamics.DataEntities.Person person)
        {
            BaseWorker baseWorker = new BaseWorker();

            baseWorker.PersonnelNumber          = personnelNumber;
            baseWorker.BirthDate                = birthDate;
            baseWorker.DisabledVerificationDate = disabledVerificationDate;
            baseWorker.DeceasedDate             = deceasedDate;
            if ((person == null))
            {
                throw new global::System.ArgumentNullException("person");
            }
            baseWorker.Person = person;
            return(baseWorker);
        }
Ejemplo n.º 7
0
        public static CourseInstructor CreateCourseInstructor(string dataAreaId, string personId, global::Microsoft.Dynamics.DataEntities.Person person)
        {
            CourseInstructor courseInstructor = new CourseInstructor();

            courseInstructor.dataAreaId = dataAreaId;
            courseInstructor.PersonId   = personId;
            if ((person == null))
            {
                throw new global::System.ArgumentNullException("person");
            }
            courseInstructor.Person = person;
            return(courseInstructor);
        }