コード例 #1
0
        public static ProductStyleGroupLine CreateProductStyleGroupLine(string productStyleGroupId,
                                                                        string productStyleId,
                                                                        decimal displayOrder,
                                                                        int replenishmentWeight,
                                                                        global::Microsoft.Dynamics.DataEntities.ProductStyle productStyle,
                                                                        global::Microsoft.Dynamics.DataEntities.ProductStyleGroup productStyleGroup)
        {
            ProductStyleGroupLine productStyleGroupLine = new ProductStyleGroupLine();

            productStyleGroupLine.ProductStyleGroupId = productStyleGroupId;
            productStyleGroupLine.ProductStyleId      = productStyleId;
            productStyleGroupLine.DisplayOrder        = displayOrder;
            productStyleGroupLine.ReplenishmentWeight = replenishmentWeight;
            if ((productStyle == null))
            {
                throw new global::System.ArgumentNullException("productStyle");
            }
            productStyleGroupLine.ProductStyle = productStyle;
            if ((productStyleGroup == null))
            {
                throw new global::System.ArgumentNullException("productStyleGroup");
            }
            productStyleGroupLine.ProductStyleGroup = productStyleGroup;
            return(productStyleGroupLine);
        }
コード例 #2
0
 partial void OnProductStyleGroupChanging(global::Microsoft.Dynamics.DataEntities.ProductStyleGroup value);