液晶标签剩余协议对接 编码

This commit is contained in:
hehaibing-1996
2024-12-10 19:09:43 +08:00
parent c94af9e987
commit 85a35ac34f
17 changed files with 393 additions and 149 deletions

View File

@ -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;
}