Example #1
0
        private void TestInventoryAdjustTemp()
        {
            InventoryAdjustContractInfo adjustContractInfo = new InventoryAdjustContractInfo();

            adjustContractInfo.ReferenceSysNo = "111";
            adjustContractInfo.AdjustItemList = new List <InventoryAdjustItemInfo>();

            InventoryAdjustItemInfo adjustItem1 = new InventoryAdjustItemInfo()
            {
                ProductSysNo   = 36492,
                StockSysNo     = 51,
                AdjustQuantity = 2
            };
            InventoryAdjustItemInfo adjustItem2 = new InventoryAdjustItemInfo()
            {
                ProductSysNo   = 999998,
                StockSysNo     = 51,
                AdjustQuantity = -9
            };

            adjustContractInfo.AdjustItemList.Add(adjustItem1);
            adjustContractInfo.AdjustItemList.Add(adjustItem2);

            adjustContractInfo.SourceBizFunctionName = InventoryAdjustSourceBizFunction.SO_Order;
            adjustContractInfo.SourceActionName      = InventoryAdjustSourceAction.Create;
            Object r61 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);
        }
Example #2
0
        private void TestInventoryAdjust()
        {
            InventoryAdjustContractInfo adjustContractInfo = new InventoryAdjustContractInfo();

            adjustContractInfo.ReferenceSysNo = "111";
            adjustContractInfo.AdjustItemList = new List <InventoryAdjustItemInfo>();

            InventoryAdjustItemInfo adjustItem1 = new InventoryAdjustItemInfo()
            {
                ProductSysNo   = 999999,
                StockSysNo     = 51,
                AdjustQuantity = 9
            };
            InventoryAdjustItemInfo adjustItem2 = new InventoryAdjustItemInfo()
            {
                ProductSysNo   = 999998,
                StockSysNo     = 51,
                AdjustQuantity = -9
            };

            adjustContractInfo.AdjustItemList.Add(adjustItem1);
            adjustContractInfo.AdjustItemList.Add(adjustItem2);


            adjustContractInfo.SourceBizFunctionName = InventoryAdjustSourceBizFunction.Inventory_LendRequest;
            adjustContractInfo.SourceActionName      = InventoryAdjustSourceAction.Create;
            Object r11 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Abandon;
            Object r12 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.CancelAbandon;
            Object r13 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Update;
            Object r14 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.OutStock;
            Object r15 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Return;
            Object r16 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceBizFunctionName = InventoryAdjustSourceBizFunction.Inventory_AdjustRequest;
            adjustContractInfo.SourceActionName      = InventoryAdjustSourceAction.Create;
            Object r21 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Abandon;
            Object r22 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.CancelAbandon;
            Object r23 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Update;
            Object r24 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.OutStock;
            Object r25 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceBizFunctionName = InventoryAdjustSourceBizFunction.Inventory_ConvertRequest;
            adjustContractInfo.SourceActionName      = InventoryAdjustSourceAction.Create;
            Object r31 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Abandon;
            Object r32 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.CancelAbandon;
            Object r33 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Update;
            Object r34 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.OutStock;
            Object r35 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceBizFunctionName = InventoryAdjustSourceBizFunction.Inventory_ShiftRequest;
            adjustContractInfo.SourceActionName      = InventoryAdjustSourceAction.Create;
            Object r41 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Abandon;
            Object r42 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.CancelAbandon;
            Object r43 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Update;
            Object r44 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.OutStock;
            Object r45 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.InStock;
            Object r46 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.AbandonForPO;
            Object r47 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceBizFunctionName = InventoryAdjustSourceBizFunction.Inventory_VirtualRequest;
            adjustContractInfo.SourceActionName      = InventoryAdjustSourceAction.Create;
            Object r51 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.CreateForJob;
            Object r52 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Run;
            Object r53 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Close;
            Object r54 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceBizFunctionName = InventoryAdjustSourceBizFunction.SO_Order;
            adjustContractInfo.SourceActionName      = InventoryAdjustSourceAction.Create;
            Object r61 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Abandon;
            Object r62 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Abandon_RecoverStock;
            Object r63 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.OutStock;
            Object r64 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.WHUpdate;
            Object r65 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.Pending;
            Object r66 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceBizFunctionName = InventoryAdjustSourceBizFunction.PO_Order;
            adjustContractInfo.SourceActionName      = InventoryAdjustSourceAction.Audit;
            Object r71 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.CancelAudit;
            Object r72 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.StopInStock;
            Object r73 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);

            adjustContractInfo.SourceActionName = InventoryAdjustSourceAction.InStock;
            Object r74 = ObjectFactory <ProductInventoryAppService> .Instance.AdjustProductInventory(adjustContractInfo);
        }