Browse Source

===

样式分支
applelon 2 years ago
parent
commit
65ebe3abdd
3 changed files with 10 additions and 3 deletions
  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 View File

@@ -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 View File

@@ -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 View File

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

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


Loading…
Cancel
Save