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);
        }
        public static BudgetControlDimensionAttribute CreateBudgetControlDimensionAttribute(string dataAreaId, string legalEntityId, string dimensionAttributeId, int position, global::Microsoft.Dynamics.DataEntities.BudgetControlConfiguration budgetControlConfigurations)
        {
            BudgetControlDimensionAttribute budgetControlDimensionAttribute = new BudgetControlDimensionAttribute();

            budgetControlDimensionAttribute.dataAreaId           = dataAreaId;
            budgetControlDimensionAttribute.LegalEntityId        = legalEntityId;
            budgetControlDimensionAttribute.DimensionAttributeId = dimensionAttributeId;
            budgetControlDimensionAttribute.Position             = position;
            if ((budgetControlConfigurations == null))
            {
                throw new global::System.ArgumentNullException("budgetControlConfigurations");
            }
            budgetControlDimensionAttribute.BudgetControlConfigurations = budgetControlConfigurations;
            return(budgetControlDimensionAttribute);
        }
 partial void OnBudgetControlConfigurationsChanging(global::Microsoft.Dynamics.DataEntities.BudgetControlConfiguration value);
Exemple #4
0
        public static BudgetControlMessageLevel CreateBudgetControlMessageLevel(string dataAreaId, string legalEntityId, string userGroupId, global::Microsoft.Dynamics.DataEntities.BudgetControlConfiguration budgetControlConfigurations, global::Microsoft.Dynamics.DataEntities.UserGroup budgetControlMessageLevelEntity_RelatedRole_SystemUserGroupEntity)
        {
            BudgetControlMessageLevel budgetControlMessageLevel = new BudgetControlMessageLevel();

            budgetControlMessageLevel.dataAreaId    = dataAreaId;
            budgetControlMessageLevel.LegalEntityId = legalEntityId;
            budgetControlMessageLevel.UserGroupId   = userGroupId;
            if ((budgetControlConfigurations == null))
            {
                throw new global::System.ArgumentNullException("budgetControlConfigurations");
            }
            budgetControlMessageLevel.BudgetControlConfigurations = budgetControlConfigurations;
            if ((budgetControlMessageLevelEntity_RelatedRole_SystemUserGroupEntity == null))
            {
                throw new global::System.ArgumentNullException("budgetControlMessageLevelEntity_RelatedRole_SystemUserGroupEntity");
            }
            budgetControlMessageLevel.BudgetControlMessageLevelEntity_RelatedRole_SystemUserGroupEntity = budgetControlMessageLevelEntity_RelatedRole_SystemUserGroupEntity;
            return(budgetControlMessageLevel);
        }
        public static BudgetControlRule CreateBudgetControlRule(string dataAreaId, string legalEntityId, string name, decimal budgetThresholdPercent, global::Microsoft.Dynamics.DataEntities.BudgetControlConfiguration budgetControlConfigurations)
        {
            BudgetControlRule budgetControlRule = new BudgetControlRule();

            budgetControlRule.dataAreaId             = dataAreaId;
            budgetControlRule.LegalEntityId          = legalEntityId;
            budgetControlRule.Name                   = name;
            budgetControlRule.BudgetThresholdPercent = budgetThresholdPercent;
            if ((budgetControlConfigurations == null))
            {
                throw new global::System.ArgumentNullException("budgetControlConfigurations");
            }
            budgetControlRule.BudgetControlConfigurations = budgetControlConfigurations;
            return(budgetControlRule);
        }
 partial void OnBudgetControlConfigurationOverrideUserGroupOptionChanging(global::Microsoft.Dynamics.DataEntities.BudgetControlConfiguration value);
        public static BudgetControlOverBudgetPermission CreateBudgetControlOverBudgetPermission(string dataAreaId, string legalEntityId, string userGroupId, global::Microsoft.Dynamics.DataEntities.BudgetControlConfiguration budgetControlConfigurationOverrideUserGroupOption, global::Microsoft.Dynamics.DataEntities.UserGroup systemUserGroups)
        {
            BudgetControlOverBudgetPermission budgetControlOverBudgetPermission = new BudgetControlOverBudgetPermission();

            budgetControlOverBudgetPermission.dataAreaId    = dataAreaId;
            budgetControlOverBudgetPermission.LegalEntityId = legalEntityId;
            budgetControlOverBudgetPermission.UserGroupId   = userGroupId;
            if ((budgetControlConfigurationOverrideUserGroupOption == null))
            {
                throw new global::System.ArgumentNullException("budgetControlConfigurationOverrideUserGroupOption");
            }
            budgetControlOverBudgetPermission.BudgetControlConfigurationOverrideUserGroupOption = budgetControlConfigurationOverrideUserGroupOption;
            if ((systemUserGroups == null))
            {
                throw new global::System.ArgumentNullException("systemUserGroups");
            }
            budgetControlOverBudgetPermission.SystemUserGroups = systemUserGroups;
            return(budgetControlOverBudgetPermission);
        }
        public static BudgetControlDocumentsAndJournals CreateBudgetControlDocumentsAndJournals(string dataAreaId, string legalEntityId, global::Microsoft.Dynamics.DataEntities.BudgetControlConfiguration budgetControlConfigurations)
        {
            BudgetControlDocumentsAndJournals budgetControlDocumentsAndJournals = new BudgetControlDocumentsAndJournals();

            budgetControlDocumentsAndJournals.dataAreaId    = dataAreaId;
            budgetControlDocumentsAndJournals.LegalEntityId = legalEntityId;
            if ((budgetControlConfigurations == null))
            {
                throw new global::System.ArgumentNullException("budgetControlConfigurations");
            }
            budgetControlDocumentsAndJournals.BudgetControlConfigurations = budgetControlConfigurations;
            return(budgetControlDocumentsAndJournals);
        }