public static TotalCompStatementSectionTax CreateTotalCompStatementSectionTax(string statementSectionId, string countryRegionId, string taxGroupId, string taxCodeId, global::Microsoft.Dynamics.DataEntities.TotalCompStatementSectionHeader hcmTotalCompStatementSectionHeaderEntity) { TotalCompStatementSectionTax totalCompStatementSectionTax = new TotalCompStatementSectionTax(); totalCompStatementSectionTax.StatementSectionId = statementSectionId; totalCompStatementSectionTax.CountryRegionId = countryRegionId; totalCompStatementSectionTax.TaxGroupId = taxGroupId; totalCompStatementSectionTax.TaxCodeId = taxCodeId; if ((hcmTotalCompStatementSectionHeaderEntity == null)) { throw new global::System.ArgumentNullException("hcmTotalCompStatementSectionHeaderEntity"); } totalCompStatementSectionTax.HcmTotalCompStatementSectionHeaderEntity = hcmTotalCompStatementSectionHeaderEntity; return(totalCompStatementSectionTax); }
public static TotalCompStatementSectionBenefit CreateTotalCompStatementSectionBenefit(string statementSectionId, string benefitId, global::Microsoft.Dynamics.DataEntities.Benefit hcmBenefitEntity, global::Microsoft.Dynamics.DataEntities.TotalCompStatementSectionHeader hcmTotalCompStatementSectionHeaderEntity) { TotalCompStatementSectionBenefit totalCompStatementSectionBenefit = new TotalCompStatementSectionBenefit(); totalCompStatementSectionBenefit.StatementSectionId = statementSectionId; totalCompStatementSectionBenefit.BenefitId = benefitId; if ((hcmBenefitEntity == null)) { throw new global::System.ArgumentNullException("hcmBenefitEntity"); } totalCompStatementSectionBenefit.HcmBenefitEntity = hcmBenefitEntity; if ((hcmTotalCompStatementSectionHeaderEntity == null)) { throw new global::System.ArgumentNullException("hcmTotalCompStatementSectionHeaderEntity"); } totalCompStatementSectionBenefit.HcmTotalCompStatementSectionHeaderEntity = hcmTotalCompStatementSectionHeaderEntity; return(totalCompStatementSectionBenefit); }
partial void OnHcmTotalCompStatementSectionHeaderEntityChanging(global::Microsoft.Dynamics.DataEntities.TotalCompStatementSectionHeader value);
public static TotalCompStatementSectionEarning CreateTotalCompStatementSectionEarning(string statementSectionId, string earningCodeGroupId, string earningCodeId, global::Microsoft.Dynamics.DataEntities.TotalCompStatementSectionHeader hcmTotalCompStatementSectionHeaderEntity, global::Microsoft.Dynamics.DataEntities.EarningCodeGroup payrollEarningCodeGroupEntity) { TotalCompStatementSectionEarning totalCompStatementSectionEarning = new TotalCompStatementSectionEarning(); totalCompStatementSectionEarning.StatementSectionId = statementSectionId; totalCompStatementSectionEarning.EarningCodeGroupId = earningCodeGroupId; totalCompStatementSectionEarning.EarningCodeId = earningCodeId; if ((hcmTotalCompStatementSectionHeaderEntity == null)) { throw new global::System.ArgumentNullException("hcmTotalCompStatementSectionHeaderEntity"); } totalCompStatementSectionEarning.HcmTotalCompStatementSectionHeaderEntity = hcmTotalCompStatementSectionHeaderEntity; if ((payrollEarningCodeGroupEntity == null)) { throw new global::System.ArgumentNullException("payrollEarningCodeGroupEntity"); } totalCompStatementSectionEarning.PayrollEarningCodeGroupEntity = payrollEarningCodeGroupEntity; return(totalCompStatementSectionEarning); }