|
|
|
@ -59,12 +59,15 @@ namespace Aucma.Core.CodeBinding.ViewModels
|
|
|
|
|
timer.Interval = TimeSpan.FromSeconds(1);
|
|
|
|
|
timer.Tick += Timer_Tick;
|
|
|
|
|
timer.Start();
|
|
|
|
|
|
|
|
|
|
Scanner1State(false);
|
|
|
|
|
Scanner2State(false);
|
|
|
|
|
|
|
|
|
|
// Job_AllState_Quartz.RefreshStateEvent += RefreshStatus;
|
|
|
|
|
// MvCodeHelper.RefreshStateEvent += RefreshScanner;
|
|
|
|
|
TouchSocketService.RefreshStateEvent += RefreshScanner;
|
|
|
|
|
// InitHikRobot();
|
|
|
|
|
GunBusiness.InstanceSerialPort3();
|
|
|
|
|
|
|
|
|
|
// InitHikRobot();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 开启海康扫码器
|
|
|
|
@ -103,7 +106,6 @@ namespace Aucma.Core.CodeBinding.ViewModels
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GunBusiness.InstanceSerialPort3();
|
|
|
|
|
|
|
|
|
|
Business.MvCodeHelper.Liner();
|
|
|
|
|
});
|
|
|
|
@ -126,7 +128,7 @@ namespace Aucma.Core.CodeBinding.ViewModels
|
|
|
|
|
|
|
|
|
|
if (ip == SnScannerIp)
|
|
|
|
|
{
|
|
|
|
|
Scanner1State(flag); ;
|
|
|
|
|
Scanner1State(flag);
|
|
|
|
|
}
|
|
|
|
|
else if (ip == MesScannerIp)
|
|
|
|
|
{
|
|
|
|
|