Example #1
0
            /// <summary>
            /// Gets all transfer order lines that meet the supplied criteria.
            /// </summary>
            /// <param name="request">The data service request.</param>
            /// <returns>The data service response.</returns>
            private static EntityDataServiceResponse <TransferOrderLine> GetTransferOrder(GetTransferOrderDataRequest request)
            {
                InventoryDataManager            dataManager = GetDataManagerInstance(request.RequestContext);
                PagedResult <TransferOrderLine> lines       = dataManager.GetTransferOrder(request.OrderId, request.QueryResultSettings);

                return(new EntityDataServiceResponse <TransferOrderLine>(lines));
            }
Example #2
0
            /// <summary>
            /// Gets all purchase order lines that meet the supplied criteria.
            /// </summary>
            /// <param name="request">The data service request.</param>
            /// <returns>The data service response.</returns>
            private static EntityDataServiceResponse <PurchaseOrderLine> GetPurchaseOrder(GetPurchaseOrderDataRequest request)
            {
                InventoryDataManager            dataManager = GetDataManagerInstance(request.RequestContext);
                PagedResult <PurchaseOrderLine> orders      = dataManager.GetPurchaseOrder(request.OrderId, request.QueryResultSettings);

                return(new EntityDataServiceResponse <PurchaseOrderLine>(orders));
            }
Example #3
0
        static void Main(string[] args)
        {
            var credentialData    = @"C:\Users\v-dohoop\Desktop\credential.csv";
            var inventoryData     = @"C:\Users\v-dohoop\Desktop\inventory.csv";
            var output            = new OutputConsole();
            var input             = new InputConsole();
            var credentialManager = new CredentialManager(credentialData, output);
            var inventoryManager  = new InventoryDataManager(inventoryData, output);
            var logic             = new AppLogic(output, input, credentialManager, inventoryManager);

            logic.Run();
        }