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))); }
public CreateBackStockResult CreateStockIn([FromBody] BackStockInfo backStockInfo) { CreateBackStockResult result = new CreateBackStockResult() { Successd = true }; _eventBus.Post(new KeyValuePair <BackStockInfo, CreateBackStockResult>(backStockInfo, result), TimeSpan.Zero); return(result); }