Ejemplo n.º 1
0
        public static WorkerEnrolledBenefitLimit CreateWorkerEnrolledBenefitLimit(string benefitId,
                                                                                  string personnelNumber,
                                                                                  global::System.DateTimeOffset enrollmentStart,
                                                                                  global::System.DateTimeOffset enrollmentEnd,
                                                                                  decimal deductionLimitPeriodRemaining,
                                                                                  decimal deductionLimitAmount,
                                                                                  global::System.DateTimeOffset contributionLimitEndDate,
                                                                                  global::System.DateTimeOffset deductionLimitEndDate,
                                                                                  decimal contributionLimitPeriodRemaining,
                                                                                  decimal contributionLimitAmount,
                                                                                  global::Microsoft.Dynamics.DataEntities.WorkerEnrolledBenefit workerEnrolledBenefit)
        {
            WorkerEnrolledBenefitLimit workerEnrolledBenefitLimit = new WorkerEnrolledBenefitLimit();

            workerEnrolledBenefitLimit.BenefitId       = benefitId;
            workerEnrolledBenefitLimit.PersonnelNumber = personnelNumber;
            workerEnrolledBenefitLimit.EnrollmentStart = enrollmentStart;
            workerEnrolledBenefitLimit.EnrollmentEnd   = enrollmentEnd;
            workerEnrolledBenefitLimit.DeductionLimitPeriodRemaining    = deductionLimitPeriodRemaining;
            workerEnrolledBenefitLimit.DeductionLimitAmount             = deductionLimitAmount;
            workerEnrolledBenefitLimit.ContributionLimitEndDate         = contributionLimitEndDate;
            workerEnrolledBenefitLimit.DeductionLimitEndDate            = deductionLimitEndDate;
            workerEnrolledBenefitLimit.ContributionLimitPeriodRemaining = contributionLimitPeriodRemaining;
            workerEnrolledBenefitLimit.ContributionLimitAmount          = contributionLimitAmount;
            if ((workerEnrolledBenefit == null))
            {
                throw new global::System.ArgumentNullException("workerEnrolledBenefit");
            }
            workerEnrolledBenefitLimit.WorkerEnrolledBenefit = workerEnrolledBenefit;
            return(workerEnrolledBenefitLimit);
        }
        public static WorkerGarnishmentDetail CreateWorkerGarnishmentDetail(string benefitID,
                                                                            string personnelNumber,
                                                                            global::System.DateTimeOffset enrollmentStart,
                                                                            global::System.DateTimeOffset enrollmentEnd,
                                                                            decimal administrativeFee,
                                                                            global::Microsoft.Dynamics.DataEntities.WorkerEnrolledBenefit workerEnrolledBenefit)
        {
            WorkerGarnishmentDetail workerGarnishmentDetail = new WorkerGarnishmentDetail();

            workerGarnishmentDetail.BenefitID         = benefitID;
            workerGarnishmentDetail.PersonnelNumber   = personnelNumber;
            workerGarnishmentDetail.EnrollmentStart   = enrollmentStart;
            workerGarnishmentDetail.EnrollmentEnd     = enrollmentEnd;
            workerGarnishmentDetail.AdministrativeFee = administrativeFee;
            if ((workerEnrolledBenefit == null))
            {
                throw new global::System.ArgumentNullException("workerEnrolledBenefit");
            }
            workerGarnishmentDetail.WorkerEnrolledBenefit = workerEnrolledBenefit;
            return(workerGarnishmentDetail);
        }
Ejemplo n.º 3
0
 partial void OnWorkerEnrolledBenefitChanging(global::Microsoft.Dynamics.DataEntities.WorkerEnrolledBenefit value);
        public static CoveredBeneficiaryRelationship CreateCoveredBeneficiaryRelationship(string benefitId,
                                                                                          string personnelNumber,
                                                                                          global::System.DateTimeOffset enrollmentStart,
                                                                                          global::System.DateTimeOffset enrollmentEnd,
                                                                                          string relationshipTypeId,
                                                                                          string childPartyId,
                                                                                          string partyRelationshipDataAreaId,
                                                                                          global::System.DateTimeOffset partyRelationshipValidTo,
                                                                                          global::System.DateTimeOffset partyRelationshipValidFrom,
                                                                                          decimal percentage,
                                                                                          global::Microsoft.Dynamics.DataEntities.WorkerEnrolledBenefit workerEnrolledBenefit)
        {
            CoveredBeneficiaryRelationship coveredBeneficiaryRelationship = new CoveredBeneficiaryRelationship();

            coveredBeneficiaryRelationship.BenefitId                   = benefitId;
            coveredBeneficiaryRelationship.PersonnelNumber             = personnelNumber;
            coveredBeneficiaryRelationship.EnrollmentStart             = enrollmentStart;
            coveredBeneficiaryRelationship.EnrollmentEnd               = enrollmentEnd;
            coveredBeneficiaryRelationship.RelationshipTypeId          = relationshipTypeId;
            coveredBeneficiaryRelationship.ChildPartyId                = childPartyId;
            coveredBeneficiaryRelationship.PartyRelationshipDataAreaId = partyRelationshipDataAreaId;
            coveredBeneficiaryRelationship.PartyRelationshipValidTo    = partyRelationshipValidTo;
            coveredBeneficiaryRelationship.PartyRelationshipValidFrom  = partyRelationshipValidFrom;
            coveredBeneficiaryRelationship.Percentage                  = percentage;
            if ((workerEnrolledBenefit == null))
            {
                throw new global::System.ArgumentNullException("workerEnrolledBenefit");
            }
            coveredBeneficiaryRelationship.WorkerEnrolledBenefit = workerEnrolledBenefit;
            return(coveredBeneficiaryRelationship);
        }
Ejemplo n.º 5
0
        public static WorkerEnrolledBenefitDetails CreateWorkerEnrolledBenefitDetails(string benefitId,
                                                                                      string personnelNumber,
                                                                                      global::System.DateTimeOffset enrollmentStart,
                                                                                      global::System.DateTimeOffset enrollmentEnd,
                                                                                      global::System.DateTimeOffset benefitDetailValidFrom,
                                                                                      global::System.DateTimeOffset benefitDetailValidTo,
                                                                                      decimal contributionAmountCur,
                                                                                      long deductionPriorityNumber,
                                                                                      long calculationPriorityNumber,
                                                                                      decimal deductionAmountCur,
                                                                                      global::Microsoft.Dynamics.DataEntities.WorkerEnrolledBenefit workerEnrolledBenefit)
        {
            WorkerEnrolledBenefitDetails workerEnrolledBenefitDetails = new WorkerEnrolledBenefitDetails();

            workerEnrolledBenefitDetails.BenefitId                 = benefitId;
            workerEnrolledBenefitDetails.PersonnelNumber           = personnelNumber;
            workerEnrolledBenefitDetails.EnrollmentStart           = enrollmentStart;
            workerEnrolledBenefitDetails.EnrollmentEnd             = enrollmentEnd;
            workerEnrolledBenefitDetails.BenefitDetailValidFrom    = benefitDetailValidFrom;
            workerEnrolledBenefitDetails.BenefitDetailValidTo      = benefitDetailValidTo;
            workerEnrolledBenefitDetails.ContributionAmountCur     = contributionAmountCur;
            workerEnrolledBenefitDetails.DeductionPriorityNumber   = deductionPriorityNumber;
            workerEnrolledBenefitDetails.CalculationPriorityNumber = calculationPriorityNumber;
            workerEnrolledBenefitDetails.DeductionAmountCur        = deductionAmountCur;
            if ((workerEnrolledBenefit == null))
            {
                throw new global::System.ArgumentNullException("workerEnrolledBenefit");
            }
            workerEnrolledBenefitDetails.WorkerEnrolledBenefit = workerEnrolledBenefit;
            return(workerEnrolledBenefitDetails);
        }