public static CDSInventoryOnHandEntry CreateCDSInventoryOnHandEntry(string dataAreaId,
                                                                            string requestId,
                                                                            string inventorySiteId,
                                                                            string inventoryWarehouseId,
                                                                            global::System.DateTimeOffset aTPDate,
                                                                            decimal availableOrderedQuantity,
                                                                            decimal orderQuantity,
                                                                            decimal onHandQuantity,
                                                                            decimal aTPQuantity,
                                                                            decimal availableOnHandQuantity,
                                                                            decimal projectedIssueQuantity,
                                                                            decimal projectedOnHandQuantity,
                                                                            decimal onOrderQuantity,
                                                                            decimal totalAvailableQuantity,
                                                                            decimal orderedQuantity,
                                                                            decimal projectedReceiptQuantity,
                                                                            decimal unavailableOnHandQuantity,
                                                                            decimal reservedOrderedQuantity,
                                                                            decimal reservedOnHandQuantity,
                                                                            global::Microsoft.Dynamics.DataEntities.OperationalSite operationalSites,
                                                                            global::Microsoft.Dynamics.DataEntities.Warehouse warehouses)
        {
            CDSInventoryOnHandEntry cDSInventoryOnHandEntry = new CDSInventoryOnHandEntry();

            cDSInventoryOnHandEntry.dataAreaId           = dataAreaId;
            cDSInventoryOnHandEntry.RequestId            = requestId;
            cDSInventoryOnHandEntry.InventorySiteId      = inventorySiteId;
            cDSInventoryOnHandEntry.InventoryWarehouseId = inventoryWarehouseId;
            cDSInventoryOnHandEntry.ATPDate = aTPDate;
            cDSInventoryOnHandEntry.AvailableOrderedQuantity = availableOrderedQuantity;
            cDSInventoryOnHandEntry.OrderQuantity            = orderQuantity;
            cDSInventoryOnHandEntry.OnHandQuantity           = onHandQuantity;
            cDSInventoryOnHandEntry.ATPQuantity               = aTPQuantity;
            cDSInventoryOnHandEntry.AvailableOnHandQuantity   = availableOnHandQuantity;
            cDSInventoryOnHandEntry.ProjectedIssueQuantity    = projectedIssueQuantity;
            cDSInventoryOnHandEntry.ProjectedOnHandQuantity   = projectedOnHandQuantity;
            cDSInventoryOnHandEntry.OnOrderQuantity           = onOrderQuantity;
            cDSInventoryOnHandEntry.TotalAvailableQuantity    = totalAvailableQuantity;
            cDSInventoryOnHandEntry.OrderedQuantity           = orderedQuantity;
            cDSInventoryOnHandEntry.ProjectedReceiptQuantity  = projectedReceiptQuantity;
            cDSInventoryOnHandEntry.UnavailableOnHandQuantity = unavailableOnHandQuantity;
            cDSInventoryOnHandEntry.ReservedOrderedQuantity   = reservedOrderedQuantity;
            cDSInventoryOnHandEntry.ReservedOnHandQuantity    = reservedOnHandQuantity;
            if ((operationalSites == null))
            {
                throw new global::System.ArgumentNullException("operationalSites");
            }
            cDSInventoryOnHandEntry.OperationalSites = operationalSites;
            if ((warehouses == null))
            {
                throw new global::System.ArgumentNullException("warehouses");
            }
            cDSInventoryOnHandEntry.Warehouses = warehouses;
            return(cDSInventoryOnHandEntry);
        }
Exemplo n.º 2
0
 partial void OnOperationalSiteChanging(global::Microsoft.Dynamics.DataEntities.OperationalSite value);
Exemplo n.º 3
0
        public static InventOperationalSiteCurrentPostalAddress CreateInventOperationalSiteCurrentPostalAddress(string dataAreaId,
                                                                                                                string operationalSiteLegalEntityId,
                                                                                                                string operationalSiteId,
                                                                                                                string addressLocationId,
                                                                                                                decimal addressLongitude,
                                                                                                                decimal addressLatitude,
                                                                                                                global::Microsoft.Dynamics.DataEntities.OperationalSite operationalSite,
                                                                                                                global::Microsoft.Dynamics.DataEntities.AddressCountryRegion addressCountryRegion)
        {
            InventOperationalSiteCurrentPostalAddress inventOperationalSiteCurrentPostalAddress = new InventOperationalSiteCurrentPostalAddress();

            inventOperationalSiteCurrentPostalAddress.dataAreaId = dataAreaId;
            inventOperationalSiteCurrentPostalAddress.OperationalSiteLegalEntityId = operationalSiteLegalEntityId;
            inventOperationalSiteCurrentPostalAddress.OperationalSiteId            = operationalSiteId;
            inventOperationalSiteCurrentPostalAddress.AddressLocationId            = addressLocationId;
            inventOperationalSiteCurrentPostalAddress.AddressLongitude             = addressLongitude;
            inventOperationalSiteCurrentPostalAddress.AddressLatitude = addressLatitude;
            if ((operationalSite == null))
            {
                throw new global::System.ArgumentNullException("operationalSite");
            }
            inventOperationalSiteCurrentPostalAddress.OperationalSite = operationalSite;
            if ((addressCountryRegion == null))
            {
                throw new global::System.ArgumentNullException("addressCountryRegion");
            }
            inventOperationalSiteCurrentPostalAddress.AddressCountryRegion = addressCountryRegion;
            return(inventOperationalSiteCurrentPostalAddress);
        }