partial void OnAssetGroupValueModelSetupValueModelChanging(global::Microsoft.Dynamics.DataEntities.ValueModelSetup value);
public static FixedAssetGroupValueModelSetup CreateFixedAssetGroupValueModelSetup(string dataAreaId, string fixedAssetGroupId, string valueModelId, int specialDepreciationAllocationPeriods, int serviceLifeMonths, int depreciationPeriods, int serviceLifeYears, decimal serviceLife, global::Microsoft.Dynamics.DataEntities.ValueModelSetup assetGroupValueModelSetupValueModel) { FixedAssetGroupValueModelSetup fixedAssetGroupValueModelSetup = new FixedAssetGroupValueModelSetup(); fixedAssetGroupValueModelSetup.dataAreaId = dataAreaId; fixedAssetGroupValueModelSetup.FixedAssetGroupId = fixedAssetGroupId; fixedAssetGroupValueModelSetup.ValueModelId = valueModelId; fixedAssetGroupValueModelSetup.SpecialDepreciationAllocationPeriods = specialDepreciationAllocationPeriods; fixedAssetGroupValueModelSetup.ServiceLifeMonths = serviceLifeMonths; fixedAssetGroupValueModelSetup.DepreciationPeriods = depreciationPeriods; fixedAssetGroupValueModelSetup.ServiceLifeYears = serviceLifeYears; fixedAssetGroupValueModelSetup.ServiceLife = serviceLife; if ((assetGroupValueModelSetupValueModel == null)) { throw new global::System.ArgumentNullException("assetGroupValueModelSetupValueModel"); } fixedAssetGroupValueModelSetup.AssetGroupValueModelSetupValueModel = assetGroupValueModelSetupValueModel; return(fixedAssetGroupValueModelSetup); }
partial void OnAssetPostingProfileDisposalValueModelChanging(global::Microsoft.Dynamics.DataEntities.ValueModelSetup value);
public static FixedAssetPostingProfileDisposal CreateFixedAssetPostingProfileDisposal(string dataAreaId, string postingProfileId, string valueModelId, string accountRelation, global::Microsoft.Dynamics.DataEntities.ValueModelSetup assetPostingProfileDisposalValueModel) { FixedAssetPostingProfileDisposal fixedAssetPostingProfileDisposal = new FixedAssetPostingProfileDisposal(); fixedAssetPostingProfileDisposal.dataAreaId = dataAreaId; fixedAssetPostingProfileDisposal.PostingProfileId = postingProfileId; fixedAssetPostingProfileDisposal.ValueModelId = valueModelId; fixedAssetPostingProfileDisposal.AccountRelation = accountRelation; if ((assetPostingProfileDisposalValueModel == null)) { throw new global::System.ArgumentNullException("assetPostingProfileDisposalValueModel"); } fixedAssetPostingProfileDisposal.AssetPostingProfileDisposalValueModel = assetPostingProfileDisposalValueModel; return(fixedAssetPostingProfileDisposal); }
partial void OnValueModelSetupDerivedValueModelChanging(global::Microsoft.Dynamics.DataEntities.ValueModelSetup value);
public static FixedAssetValueModelSetupDerivedValueModel CreateFixedAssetValueModelSetupDerivedValueModel(string dataAreaId, string valueModelId, string derivedValueModelId, global::Microsoft.Dynamics.DataEntities.ValueModelSetup valueModelSetupValueModel) { FixedAssetValueModelSetupDerivedValueModel fixedAssetValueModelSetupDerivedValueModel = new FixedAssetValueModelSetupDerivedValueModel(); fixedAssetValueModelSetupDerivedValueModel.dataAreaId = dataAreaId; fixedAssetValueModelSetupDerivedValueModel.ValueModelId = valueModelId; fixedAssetValueModelSetupDerivedValueModel.DerivedValueModelId = derivedValueModelId; if ((valueModelSetupValueModel == null)) { throw new global::System.ArgumentNullException("valueModelSetupValueModel"); } fixedAssetValueModelSetupDerivedValueModel.ValueModelSetupValueModel = valueModelSetupValueModel; return(fixedAssetValueModelSetupDerivedValueModel); }