38 lines
896 B
C#
38 lines
896 B
C#
using WcsMain.Common;
|
|
|
|
namespace WcsMain.Business.Led;
|
|
|
|
public class LedShow
|
|
{
|
|
private static LedShow? _instance;
|
|
public static LedShow Instance() => _instance ??= new LedShow();
|
|
|
|
|
|
/// <summary>
|
|
/// 显示默认值
|
|
/// </summary>
|
|
public void ShowDefault()
|
|
{
|
|
CommonTool.LedUsing.ShowDefaultMsg("192.168.103.16", "入库站台");
|
|
CommonTool.LedUsing.ShowDefaultMsg("192.168.103.17", "出库站台");
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 显示入库显示屏
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
public DateTime ShowTaskInMessage(string message)
|
|
{
|
|
CommonTool.LedUsing.ShowDefaultMsg("192.168.103.16", message);
|
|
return DateTime.Now;
|
|
}
|
|
|
|
public DateTime ShowTaskOutMessage(string message)
|
|
{
|
|
CommonTool.LedUsing.ShowDefaultMsg("192.168.103.17", message);
|
|
return DateTime.Now;
|
|
}
|
|
|
|
|
|
} |