|
@@ -9,6 +9,7 @@ using SCADA_DAQ.Plugin.Machine;
|
|
|
using SCADA_DAQ.Plugin.Machine.Device;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
+using System.Collections.ObjectModel;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
@@ -63,6 +64,8 @@ namespace SCADA_DAQ.Customer.Views.Menu.UctFrmBackOfSortingDelivery
|
|
|
HeteromorphosisDelivery.Delivery.Left.DataContext = _PLC.GetListenReg(SortingDeliveryMachine.Tag_HeteromorphosisRollerState);
|
|
|
HeteromorphosisDelivery.Delivery.Right.DataContext = _PLC.GetListenReg(SortingDeliveryMachine.Tag_HeteromorphosisRollerState);
|
|
|
var regGroup = _PLC.ListenReg.Where(t => t.Value.Comment.GroupName == "手动" && t.Value.Comment.Annotation != "").ToList();
|
|
|
+ CodeInfo.ClearNGQueue.Click += ClearNGQueue_Click;
|
|
|
+
|
|
|
|
|
|
string[] delivery1Str = new string[]
|
|
|
{
|
|
@@ -161,6 +164,14 @@ namespace SCADA_DAQ.Customer.Views.Menu.UctFrmBackOfSortingDelivery
|
|
|
_Sbr1.BarCodeReceived += _Sbr1_BarCodeReceived;
|
|
|
}
|
|
|
|
|
|
+ private void ClearNGQueue_Click(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ if (MessageBox.Show("当前队列将会清空,是否继续?") == MessageBoxResult.OK)
|
|
|
+ {
|
|
|
+ _PLC.LeftLoversOrAbnormal.Clear();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void _Sbr1_BarCodeReceived(object sender, SCADA.BarcodeReader.BarcodeReceivedEventArgs e)
|
|
|
{
|
|
|
Dispatcher.Invoke(() =>
|