partial void OnSystemUserGroupsChanging(global::Microsoft.Dynamics.DataEntities.UserGroup value);
        public static BudgetControlRuleOverBudgetPermission CreateBudgetControlRuleOverBudgetPermission(string dataAreaId,
                                                                                                        string legalEntityId,
                                                                                                        string ruleName,
                                                                                                        string userGroupId,
                                                                                                        global::Microsoft.Dynamics.DataEntities.BudgetControlRule budgetControlRules,
                                                                                                        global::Microsoft.Dynamics.DataEntities.UserGroup systemUserGroups)
        {
            BudgetControlRuleOverBudgetPermission budgetControlRuleOverBudgetPermission = new BudgetControlRuleOverBudgetPermission();

            budgetControlRuleOverBudgetPermission.dataAreaId    = dataAreaId;
            budgetControlRuleOverBudgetPermission.LegalEntityId = legalEntityId;
            budgetControlRuleOverBudgetPermission.RuleName      = ruleName;
            budgetControlRuleOverBudgetPermission.UserGroupId   = userGroupId;
            if ((budgetControlRules == null))
            {
                throw new global::System.ArgumentNullException("budgetControlRules");
            }
            budgetControlRuleOverBudgetPermission.BudgetControlRules = budgetControlRules;
            if ((systemUserGroups == null))
            {
                throw new global::System.ArgumentNullException("systemUserGroups");
            }
            budgetControlRuleOverBudgetPermission.SystemUserGroups = systemUserGroups;
            return(budgetControlRuleOverBudgetPermission);
        }
コード例 #3
0
 partial void OnBudgetControlMessageLevelEntity_RelatedRole_SystemUserGroupEntityChanging(global::Microsoft.Dynamics.DataEntities.UserGroup value);
コード例 #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);
        }
コード例 #5
0
        public static UserGroupUserList CreateUserGroupUserList(string userId, string groupId, global::Microsoft.Dynamics.DataEntities.SystemUser systemUser, global::Microsoft.Dynamics.DataEntities.UserGroup userGroup)
        {
            UserGroupUserList userGroupUserList = new UserGroupUserList();

            userGroupUserList.userId  = userId;
            userGroupUserList.groupId = groupId;
            if ((systemUser == null))
            {
                throw new global::System.ArgumentNullException("systemUser");
            }
            userGroupUserList.SystemUser = systemUser;
            if ((userGroup == null))
            {
                throw new global::System.ArgumentNullException("userGroup");
            }
            userGroupUserList.UserGroup = userGroup;
            return(userGroupUserList);
        }
        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);
        }