Пример #1
0
        public WCSBackStockTaskItemViewModel(BackStockInfo backStockInfo, CreateBackStockResult result)
        {
            this.Title     = "归库任务" + backStockInfo.TaskId;
            _backStockInfo = backStockInfo;
            _result        = result;

            this.Datas.Add(new TaskItemData("收到消息", JsonConvert.SerializeObject(backStockInfo)));
            this.Datas.Add(new TaskItemData("消息回复", JsonConvert.SerializeObject(result)));
        }
Пример #2
0
        public CreateBackStockResult CreateStockIn([FromBody] BackStockInfo backStockInfo)
        {
            CreateBackStockResult result = new CreateBackStockResult()
            {
                Successd = true
            };

            _eventBus.Post(new KeyValuePair <BackStockInfo, CreateBackStockResult>(backStockInfo, result), TimeSpan.Zero);
            return(result);
        }