|
|
|
|
@ -14,6 +14,7 @@ using System.Linq;
|
|
|
|
|
using System.Security.Cryptography;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using static System.Runtime.CompilerServices.RuntimeHelpers;
|
|
|
|
|
|
|
|
|
|
namespace Sln.Iot.Business
|
|
|
|
|
{
|
|
|
|
|
@ -24,15 +25,24 @@ namespace Sln.Iot.Business
|
|
|
|
|
private readonly PLCConnect _plc = PLCConnect.Instance;
|
|
|
|
|
|
|
|
|
|
private readonly SerilogHelper _log = SerilogHelper.Instance;
|
|
|
|
|
private TrayBindingService trayBindingService = TrayBindingService.Instance;
|
|
|
|
|
|
|
|
|
|
private ErrorAnalyseBusiness _errorAnalyse;
|
|
|
|
|
private RecipeBusiness _recipeBusiness;
|
|
|
|
|
|
|
|
|
|
public TestBusiness()
|
|
|
|
|
{
|
|
|
|
|
_errorAnalyse = new ErrorAnalyseBusiness();
|
|
|
|
|
_recipeBusiness = new RecipeBusiness();
|
|
|
|
|
//_errorAnalyse = new ErrorAnalyseBusiness();
|
|
|
|
|
//_recipeBusiness = new RecipeBusiness();
|
|
|
|
|
//_timer = new Timer(TimerCallback, null, 0, 1000);
|
|
|
|
|
|
|
|
|
|
//sql更新
|
|
|
|
|
//取出work唯一guid(tid)
|
|
|
|
|
var traycode = "M3\0\0\0\0\0\0\0\0\0\0";
|
|
|
|
|
traycode = traycode.Replace("\0", "");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool res = trayBindingService.UpDateTime(DateTime.Now.ToString(), traycode, "1");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|