液晶标签剩余协议对接 编码
This commit is contained in:
@ -6,6 +6,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TouchSocket.Core;
|
||||
using WCS.BLL.Config;
|
||||
using WCS.BLL.DbModels.Task;
|
||||
using WCS.DAL.Db;
|
||||
using WCS.DAL.DbModels;
|
||||
|
||||
@ -97,7 +98,7 @@ namespace WCS.BLL.HardWare
|
||||
public string ModuleCode { get; set; }
|
||||
public int BoardId { get; set; }
|
||||
public bool IsEnable { get; set; }
|
||||
public Mode CurrentMode { get; set; }
|
||||
public TaskModeEnum CurrentMode { get; set; }
|
||||
/// <summary>
|
||||
/// 是否已发送自检命令
|
||||
/// </summary>
|
||||
@ -112,7 +113,7 @@ namespace WCS.BLL.HardWare
|
||||
|
||||
public void GoInInstoreMode(TCPClient tcpClient)
|
||||
{
|
||||
if (CurrentMode != Mode.待机模式)
|
||||
if (CurrentMode != TaskModeEnum.待机模式)
|
||||
{
|
||||
//TO DO 退出对应的模式 然后再发送进入入库模式
|
||||
}
|
||||
@ -168,7 +169,7 @@ namespace WCS.BLL.HardWare
|
||||
|
||||
public void GoOutInstoreMode(TCPClient tcpClient)
|
||||
{
|
||||
if (CurrentMode == Mode.入库模式)
|
||||
if (CurrentMode == TaskModeEnum.入库模式)
|
||||
{
|
||||
tcpClient.Send(tcpClient.GenerateMessage(BoardId, GoOutInstoreData));
|
||||
}
|
||||
@ -194,7 +195,7 @@ namespace WCS.BLL.HardWare
|
||||
/// <param name="tcpClient"></param>
|
||||
public void ShelfCheck(TCPClient tcpClient)
|
||||
{
|
||||
if (CurrentMode != Mode.待机模式)
|
||||
if (CurrentMode != TaskModeEnum.待机模式)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user