Exemplo n.º 1
0
        public static WorkOrderAddResponse Add(MbClient client)
        {
            WorkOrderAddRequest request = new WorkOrderAddRequest();

            //request.WorkorderType = "0";
            //request.MbOrderId = "140507009032";
            //request.OrderId = "000032282";
            //request.Remark = "C# SDK 测试";

            //000032298","mb_order_id":"140507009045

            request.WorkorderType = "0";
            request.MbOrderId     = "140506998996";
            request.OrderId       = "000032275";
            request.Remark        = "C# SDK 测试";

            List <OosItem> items = new List <OosItem>();

            items.Add(new OosItem
            {
                SkuId    = "50967790148",
                Quantity = "1"
            });

            request.OosItems = items;

            return(client.Execute <WorkOrderAddResponse>(request));
        }
Exemplo n.º 2
0
        public static WorkOrderCancelResponse Cancel(MbClient client)
        {
            WorkOrderCancelRequest request = new WorkOrderCancelRequest();

            request.WorkorderId = "00000366";

            return(client.Execute <WorkOrderCancelResponse>(request));
        }
Exemplo n.º 3
0
        public static WorkOrderSingleQueryResponse SingleGet(MbClient client)
        {
            WorkOrderSingleQueryRequest request = new WorkOrderSingleQueryRequest();

            request.WorkorderId = "00000366";

            return(client.Execute <WorkOrderSingleQueryResponse>(request));
        }
Exemplo n.º 4
0
        public static WorkOrderBatchQueryResponse BatchGet(MbClient client)
        {
            WorkOrderBatchQueryRequest request = new WorkOrderBatchQueryRequest();

            //request.PageNo = "1";
            request.PageSize = "5";

            return(client.Execute <WorkOrderBatchQueryResponse>(request));
        }
Exemplo n.º 5
0
        public static WorkOrderConfirmResponse Confirm(MbClient client)
        {
            WorkOrderConfirmRequest request = new WorkOrderConfirmRequest();

            request.WorkorderType = "0";
            request.MbOrderId     = "140506998996";
            request.OrderId       = "000032275";
            request.Remark        = "C# SDK 测试";
            request.WorkorderId   = "00000367";

            List <OosItem> items = new List <OosItem>();

            items.Add(new OosItem
            {
                SkuId    = "50967790148",
                Quantity = "1"
            });

            request.OosItems = items;

            return(client.Execute <WorkOrderConfirmResponse>(request));
        }
Exemplo n.º 6
0
        public static GetBatchOrderResponse BatchGet(MbClient client)
        {
            GetBatchOrderRequest request = new GetBatchOrderRequest();

            return(client.Execute <GetBatchOrderResponse>(request));
        }