Example #1
0
        public static AllocationRuleDestination CreateAllocationRuleDestination(string dataAreaId,
                                                                                string rule,
                                                                                decimal lineNumber,
                                                                                decimal fixedWeight,
                                                                                decimal fixedPercentage,
                                                                                global::Microsoft.Dynamics.DataEntities.AllocationRule allocationRule)
        {
            AllocationRuleDestination allocationRuleDestination = new AllocationRuleDestination();

            allocationRuleDestination.dataAreaId      = dataAreaId;
            allocationRuleDestination.Rule            = rule;
            allocationRuleDestination.LineNumber      = lineNumber;
            allocationRuleDestination.FixedWeight     = fixedWeight;
            allocationRuleDestination.FixedPercentage = fixedPercentage;
            if ((allocationRule == null))
            {
                throw new global::System.ArgumentNullException("allocationRule");
            }
            allocationRuleDestination.AllocationRule = allocationRule;
            return(allocationRuleDestination);
        }
Example #2
0
        public static AllocationRuleSource CreateAllocationRuleSource(string dataAreaId, string rule, decimal lineNumber, global::Microsoft.Dynamics.DataEntities.AllocationRule allocationRule)
        {
            AllocationRuleSource allocationRuleSource = new AllocationRuleSource();

            allocationRuleSource.dataAreaId = dataAreaId;
            allocationRuleSource.Rule       = rule;
            allocationRuleSource.LineNumber = lineNumber;
            if ((allocationRule == null))
            {
                throw new global::System.ArgumentNullException("allocationRule");
            }
            allocationRuleSource.AllocationRule = allocationRule;
            return(allocationRuleSource);
        }
Example #3
0
 partial void OnAllocationRuleChanging(global::Microsoft.Dynamics.DataEntities.AllocationRule value);