private InventoryWeavingMovement GenerateMovement(InventoryWeavingDocumentItem item)
        {
            InventoryWeavingMovement movement = new InventoryWeavingMovement
            {
                Quantity      = item.Quantity,
                QuantityPiece = item.QuantityPiece,
                InventoryWeavingDocumentItemId = item.Id
            };

            return(movement);
        }
Exemplo n.º 2
0
        public InventoryWeavingDocument CopyData(InventoryWeavingDocument oldData)
        {
            InventoryWeavingDocument newData = new InventoryWeavingDocument();

            PropertyCopier <InventoryWeavingDocument, InventoryWeavingDocument> .Copy(oldData, newData);

            newData.Items = new List <InventoryWeavingDocumentItem>();
            foreach (var oldItem in oldData.Items)
            {
                InventoryWeavingDocumentItem newItem = new InventoryWeavingDocumentItem();

                PropertyCopier <InventoryWeavingDocumentItem, InventoryWeavingDocumentItem> .Copy(oldItem, newItem);

                newData.Items.Add(newItem);
            }

            return(newData);
        }