浏览代码

===

样式分支
applelon 2 年前
父节点
当前提交
65ebe3abdd
共有 3 个文件被更改,包括 10 次插入3 次删除
  1. +8
    -1
      BPASmartClient.Business/Plugin/DeviceMgr.cs
  2. +1
    -1
      BPASmartClient.Model/物料数据/MaterialDeliveryEvent.cs
  3. +1
    -1
      BPASmartClient.Model/物料数据/RecipeBomEvent.cs

+ 8
- 1
BPASmartClient.Business/Plugin/DeviceMgr.cs 查看文件

@@ -1,5 +1,7 @@
using BPASmartClient.Device;
using BPASmartClient.EventBus;
using BPASmartClient.Helper;
using BPASmartClient.Model;
using BPASmartClient.Peripheral;
using System;
using System.Collections.Generic;
@@ -63,7 +65,12 @@ namespace BPASmartClient.Business

public void StartService()
{
this.devices.ForEach(device => device.StartMain());
this.devices.ForEach(device =>
{
device.StartMain();
//todo请求数据
new RecipeBomEvent() { Id = device.DeviceId}.Publish();
});
}

public void StopService()


+ 1
- 1
BPASmartClient.Model/物料数据/MaterialDeliveryEvent.cs 查看文件

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPASmartClient.Model.物料数据
namespace BPASmartClient.Model
{
public class MaterialDeliveryEvent : BaseEvent
{


+ 1
- 1
BPASmartClient.Model/物料数据/RecipeBomEvent.cs 查看文件

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPASmartClient.Model.物料数据
namespace BPASmartClient.Model
{
public class RecipeBomEvent : BaseEvent
{


正在加载...
取消
保存