|
|
@@ -100,8 +100,13 @@ namespace BPASmartClient.MorkS |
|
|
|
{ |
|
|
|
var res = mORKS.doOrderEvents.FirstOrDefault(p => p.MorkOrder.SuborderId == subid); |
|
|
|
string goodName = string.Empty; |
|
|
|
if (res != null) goodName = res.MorkOrder.GoodsName; |
|
|
|
EventBus.EventBus.GetInstance().Publish(new OrderStatusChangedEvent() { GoodName = goodName, Status = oRDER_STATUS, SubOrderId = subid, deviceClientType = DeviceType }); |
|
|
|
string SortNum = string.Empty; |
|
|
|
if (res != null) |
|
|
|
{ |
|
|
|
goodName = res.MorkOrder.GoodsName; |
|
|
|
SortNum = res.MorkOrder.SortNum.ToString(); |
|
|
|
} |
|
|
|
EventBus.EventBus.GetInstance().Publish(new OrderStatusChangedEvent() { SortNum = SortNum, GoodName = goodName, Status = oRDER_STATUS, SubOrderId = subid, deviceClientType = DeviceType }); |
|
|
|
} |
|
|
|
|
|
|
|
private void GetStatus(string key, Action<object> action) |
|
|
@@ -235,6 +240,18 @@ namespace BPASmartClient.MorkS |
|
|
|
mORKS.doOrderEvents.Add(order); |
|
|
|
if (order.MorkOrder.GoodBatchings == null) return; |
|
|
|
OrderCount++; |
|
|
|
|
|
|
|
new OrderStatusChangedEvent() |
|
|
|
{ |
|
|
|
DeviceId = DeviceId, |
|
|
|
SubOrderId = order.MorkOrder.SuborderId, |
|
|
|
Status = ORDER_STATUS.WAIT, |
|
|
|
GoodName = order.MorkOrder.GoodsName, |
|
|
|
SortNum = order.MorkOrder.SortNum.ToString(), |
|
|
|
deviceClientType = DeviceType |
|
|
|
}.Publish(); |
|
|
|
|
|
|
|
|
|
|
|
DeviceProcessLogShow($"接收到{OrderCount}次订单"); |
|
|
|
foreach (var item in order.MorkOrder.GoodBatchings) |
|
|
|
{ |
|
|
|