Пример #1
0
        public static EmploymentDetail CreateEmploymentDetail(string personnelNumber,
                                                              string legalEntityId,
                                                              global::System.DateTimeOffset employmentStartDate,
                                                              global::System.DateTimeOffset employmentEndDate,
                                                              global::System.DateTimeOffset validFrom,
                                                              global::System.DateTimeOffset validTo,
                                                              int workerNoticeAmount,
                                                              global::System.DateTimeOffset transitionDate,
                                                              global::System.DateTimeOffset lastDateWorked,
                                                              int employerNoticeAmount,
                                                              global::System.DateTimeOffset adjustedWorkerStartDate,
                                                              global::System.DateTimeOffset workerStartDate,
                                                              global::Microsoft.Dynamics.DataEntities.Employment employment)
        {
            EmploymentDetail employmentDetail = new EmploymentDetail();

            employmentDetail.PersonnelNumber         = personnelNumber;
            employmentDetail.LegalEntityId           = legalEntityId;
            employmentDetail.EmploymentStartDate     = employmentStartDate;
            employmentDetail.EmploymentEndDate       = employmentEndDate;
            employmentDetail.ValidFrom               = validFrom;
            employmentDetail.ValidTo                 = validTo;
            employmentDetail.WorkerNoticeAmount      = workerNoticeAmount;
            employmentDetail.TransitionDate          = transitionDate;
            employmentDetail.LastDateWorked          = lastDateWorked;
            employmentDetail.EmployerNoticeAmount    = employerNoticeAmount;
            employmentDetail.AdjustedWorkerStartDate = adjustedWorkerStartDate;
            employmentDetail.WorkerStartDate         = workerStartDate;
            if ((employment == null))
            {
                throw new global::System.ArgumentNullException("employment");
            }
            employmentDetail.Employment = employment;
            return(employmentDetail);
        }
        public static EmploymentTerm CreateEmploymentTerm(string personnelNumber,
                                                          string legalEntityId,
                                                          global::System.DateTimeOffset employmentStartDate,
                                                          global::System.DateTimeOffset employmentEndDate,
                                                          string agreementTermId,
                                                          global::System.DateTimeOffset validFrom,
                                                          global::System.DateTimeOffset validTo,
                                                          global::Microsoft.Dynamics.DataEntities.Employment employment,
                                                          global::Microsoft.Dynamics.DataEntities.AgreementTerm agreementTerm)
        {
            EmploymentTerm employmentTerm = new EmploymentTerm();

            employmentTerm.PersonnelNumber     = personnelNumber;
            employmentTerm.LegalEntityId       = legalEntityId;
            employmentTerm.EmploymentStartDate = employmentStartDate;
            employmentTerm.EmploymentEndDate   = employmentEndDate;
            employmentTerm.AgreementTermId     = agreementTermId;
            employmentTerm.ValidFrom           = validFrom;
            employmentTerm.ValidTo             = validTo;
            if ((employment == null))
            {
                throw new global::System.ArgumentNullException("employment");
            }
            employmentTerm.Employment = employment;
            if ((agreementTerm == null))
            {
                throw new global::System.ArgumentNullException("agreementTerm");
            }
            employmentTerm.AgreementTerm = agreementTerm;
            return(employmentTerm);
        }
        public static EmploymentContractor CreateEmploymentContractor(string personnelNumber,
                                                                      string employmentLegalEntityId,
                                                                      global::System.DateTimeOffset employmentStartDate,
                                                                      global::System.DateTimeOffset employmentEndDate,
                                                                      global::System.DateTimeOffset startDate,
                                                                      global::System.DateTimeOffset endDate,
                                                                      global::Microsoft.Dynamics.DataEntities.Employment employment)
        {
            EmploymentContractor employmentContractor = new EmploymentContractor();

            employmentContractor.PersonnelNumber         = personnelNumber;
            employmentContractor.EmploymentLegalEntityId = employmentLegalEntityId;
            employmentContractor.EmploymentStartDate     = employmentStartDate;
            employmentContractor.EmploymentEndDate       = employmentEndDate;
            employmentContractor.StartDate = startDate;
            employmentContractor.EndDate   = endDate;
            if ((employment == null))
            {
                throw new global::System.ArgumentNullException("employment");
            }
            employmentContractor.Employment = employment;
            return(employmentContractor);
        }
Пример #4
0
 partial void OnEmploymentChanging(global::Microsoft.Dynamics.DataEntities.Employment value);