public static BudgetControlCycleModel CreateBudgetControlCycleModel(string dataAreaId, string legalEntityId, string budgetCycleName, string budgetCycleTimeSpanName, string budgetCycleTimeSpanFiscalCalendarId, global::System.DateTimeOffset startDate, global::System.DateTimeOffset endDate, global::Microsoft.Dynamics.DataEntities.BudgetCycle budgetCycles, global::Microsoft.Dynamics.DataEntities.BudgetControlConfiguration budgetControlConfigurations) { BudgetControlCycleModel budgetControlCycleModel = new BudgetControlCycleModel(); budgetControlCycleModel.dataAreaId = dataAreaId; budgetControlCycleModel.LegalEntityId = legalEntityId; budgetControlCycleModel.BudgetCycleName = budgetCycleName; budgetControlCycleModel.BudgetCycleTimeSpanName = budgetCycleTimeSpanName; budgetControlCycleModel.BudgetCycleTimeSpanFiscalCalendarId = budgetCycleTimeSpanFiscalCalendarId; budgetControlCycleModel.StartDate = startDate; budgetControlCycleModel.EndDate = endDate; if ((budgetCycles == null)) { throw new global::System.ArgumentNullException("budgetCycles"); } budgetControlCycleModel.BudgetCycles = budgetCycles; if ((budgetControlConfigurations == null)) { throw new global::System.ArgumentNullException("budgetControlConfigurations"); } budgetControlCycleModel.BudgetControlConfigurations = budgetControlConfigurations; return(budgetControlCycleModel); }
partial void OnBudgetCyclesChanging(global::Microsoft.Dynamics.DataEntities.BudgetCycle value);
public static BudgetTrackingWorkspaceParameters CreateBudgetTrackingWorkspaceParameters(string dataAreaId, string userId, decimal revenueBudgetThresholdPercent, decimal expenseBudgetThresholdPercent, global::System.DateTimeOffset fiscalPeriodEnd, global::System.DateTimeOffset fiscalPeriodStart, global::Microsoft.Dynamics.DataEntities.FinancialDimensionSet expenseFinancialDimensionSets, global::Microsoft.Dynamics.DataEntities.BudgetModel budgetModels, global::Microsoft.Dynamics.DataEntities.FiscalPeriod fiscalPeriods, global::Microsoft.Dynamics.DataEntities.OrganizationHierarchyType organizationHierarchyTypes, global::Microsoft.Dynamics.DataEntities.FinancialDimensionSet revenueFinancialDimensionSets, global::Microsoft.Dynamics.DataEntities.BudgetPlanProcess budgetPlanProcesses, global::Microsoft.Dynamics.DataEntities.BudgetCycle budgetCycles) { BudgetTrackingWorkspaceParameters budgetTrackingWorkspaceParameters = new BudgetTrackingWorkspaceParameters(); budgetTrackingWorkspaceParameters.dataAreaId = dataAreaId; budgetTrackingWorkspaceParameters.UserId = userId; budgetTrackingWorkspaceParameters.RevenueBudgetThresholdPercent = revenueBudgetThresholdPercent; budgetTrackingWorkspaceParameters.ExpenseBudgetThresholdPercent = expenseBudgetThresholdPercent; budgetTrackingWorkspaceParameters.FiscalPeriodEnd = fiscalPeriodEnd; budgetTrackingWorkspaceParameters.FiscalPeriodStart = fiscalPeriodStart; if ((expenseFinancialDimensionSets == null)) { throw new global::System.ArgumentNullException("expenseFinancialDimensionSets"); } budgetTrackingWorkspaceParameters.ExpenseFinancialDimensionSets = expenseFinancialDimensionSets; if ((budgetModels == null)) { throw new global::System.ArgumentNullException("budgetModels"); } budgetTrackingWorkspaceParameters.BudgetModels = budgetModels; if ((fiscalPeriods == null)) { throw new global::System.ArgumentNullException("fiscalPeriods"); } budgetTrackingWorkspaceParameters.FiscalPeriods = fiscalPeriods; if ((organizationHierarchyTypes == null)) { throw new global::System.ArgumentNullException("organizationHierarchyTypes"); } budgetTrackingWorkspaceParameters.OrganizationHierarchyTypes = organizationHierarchyTypes; if ((revenueFinancialDimensionSets == null)) { throw new global::System.ArgumentNullException("revenueFinancialDimensionSets"); } budgetTrackingWorkspaceParameters.RevenueFinancialDimensionSets = revenueFinancialDimensionSets; if ((budgetPlanProcesses == null)) { throw new global::System.ArgumentNullException("budgetPlanProcesses"); } budgetTrackingWorkspaceParameters.BudgetPlanProcesses = budgetPlanProcesses; if ((budgetCycles == null)) { throw new global::System.ArgumentNullException("budgetCycles"); } budgetTrackingWorkspaceParameters.BudgetCycles = budgetCycles; return(budgetTrackingWorkspaceParameters); }