v1.2.0.13 禾欣现场优化版本
This commit is contained in:
parent
3d7ce863de
commit
02d223c515
@ -146,6 +146,15 @@ namespace LeatherApp
|
|||||||
public static Dictionary<string, string> DownGradeReason;
|
public static Dictionary<string, string> DownGradeReason;
|
||||||
//开启超速报警
|
//开启超速报警
|
||||||
public static bool OpenOverSpeed;
|
public static bool OpenOverSpeed;
|
||||||
|
//开启激光标示
|
||||||
|
public static bool OpenLaser;
|
||||||
|
public static double LED1_Pos { get; set; }
|
||||||
|
public static double LED2_Pos { get; set; }
|
||||||
|
public static double LED3_Pos { get; set; }
|
||||||
|
public static double LED4_Pos { get; set; }
|
||||||
|
public static double LED5_Pos { get; set; }
|
||||||
|
public static double LED6_Pos { get; set; }
|
||||||
|
public static double LED7_Pos { get; set; }
|
||||||
//
|
//
|
||||||
public static void LoadCloudConfig()
|
public static void LoadCloudConfig()
|
||||||
{
|
{
|
||||||
@ -331,6 +340,15 @@ namespace LeatherApp
|
|||||||
ServerIP = ini.ReadString("ServerVD", "ServerIP", "172.16.21.210");
|
ServerIP = ini.ReadString("ServerVD", "ServerIP", "172.16.21.210");
|
||||||
|
|
||||||
JMOffset = ini.ReadDouble("Fun", "JMOffset", 0);
|
JMOffset = ini.ReadDouble("Fun", "JMOffset", 0);
|
||||||
|
|
||||||
|
OpenLaser = ini.ReadBool("Fun", "OpenLaser");
|
||||||
|
LED1_Pos = ini.ReadDouble("LEDOffset", "LED1_Pos", 0);
|
||||||
|
LED2_Pos = ini.ReadDouble("LEDOffset", "LED2_Pos", 0);
|
||||||
|
LED3_Pos = ini.ReadDouble("LEDOffset", "LED3_Pos", 0);
|
||||||
|
LED4_Pos = ini.ReadDouble("LEDOffset", "LED4_Pos", 0);
|
||||||
|
LED5_Pos = ini.ReadDouble("LEDOffset", "LED5_Pos", 0);
|
||||||
|
LED6_Pos = ini.ReadDouble("LEDOffset", "LED6_Pos", 0);
|
||||||
|
LED7_Pos = ini.ReadDouble("LEDOffset", "LED7_Pos", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Dictionary<string, string> LoadDownGradeReasonInfo()
|
public static Dictionary<string, string> LoadDownGradeReasonInfo()
|
||||||
|
@ -1365,8 +1365,8 @@ namespace LeatherApp.Device
|
|||||||
public DataTable excelTable=new DataTable();
|
public DataTable excelTable=new DataTable();
|
||||||
public long[] stopwatch = new long[4];
|
public long[] stopwatch = new long[4];
|
||||||
|
|
||||||
public int xw;
|
public int xw;//大图偏差,缺陷位置计算
|
||||||
|
public int xo;//相机图偏差,激光和打标位置计算
|
||||||
//传统算法使用
|
//传统算法使用
|
||||||
public HObject ho_Img = new HObject();
|
public HObject ho_Img = new HObject();
|
||||||
public HObject ho_imgG = new HObject();
|
public HObject ho_imgG = new HObject();
|
||||||
|
@ -173,6 +173,16 @@ namespace LeatherApp
|
|||||||
|
|
||||||
金属检测输入 = 40,
|
金属检测输入 = 40,
|
||||||
//Y轴复位完成输入 = 41,
|
//Y轴复位完成输入 = 41,
|
||||||
|
|
||||||
|
//新增激光指示
|
||||||
|
LED0 = 50,
|
||||||
|
LED1 = 51,
|
||||||
|
LED2 = 52,
|
||||||
|
LED3 = 53,
|
||||||
|
LED4 = 54,
|
||||||
|
LED5 = 55,
|
||||||
|
LED6 = 56,
|
||||||
|
LED7 = 57,
|
||||||
}
|
}
|
||||||
|
|
||||||
//---
|
//---
|
||||||
|
@ -118,7 +118,14 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<data name="textBox1.Text" xml:space="preserve">
|
<data name="textBox1.Text" xml:space="preserve">
|
||||||
<value>v1.2.0.12(2025-4-09)
|
<value>v1.2.0.13(2025-6-23)
|
||||||
|
1.加入激光标示功能
|
||||||
|
v1.2.0.12(2025-6-10)
|
||||||
|
1.修复成检半检刷新问题
|
||||||
|
2.上传长度改为小数点后一位
|
||||||
|
3.加入幅宽补正
|
||||||
|
4.界面开放报警不停车功能
|
||||||
|
v1.2.0.12(2025-4-09)
|
||||||
1.门幅显示改为有效门幅
|
1.门幅显示改为有效门幅
|
||||||
2.新材料厚度上传修改为最大最小和中间值
|
2.新材料厚度上传修改为最大最小和中间值
|
||||||
3.加入计米器偏差修正功能
|
3.加入计米器偏差修正功能
|
||||||
|
178
LeatherProject/LeatherApp/Page/FHome.Designer.cs
generated
178
LeatherProject/LeatherApp/Page/FHome.Designer.cs
generated
@ -29,14 +29,14 @@
|
|||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FHome));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FHome));
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
this.uiPanel1 = new Sunny.UI.UIPanel();
|
this.uiPanel1 = new Sunny.UI.UIPanel();
|
||||||
this.lblLen = new Sunny.UI.UILabel();
|
this.lblLen = new Sunny.UI.UILabel();
|
||||||
this.lblSpeed = new Sunny.UI.UISymbolLabel();
|
this.lblSpeed = new Sunny.UI.UISymbolLabel();
|
||||||
@ -102,9 +102,7 @@
|
|||||||
this.uiTitlePanel7 = new Sunny.UI.UITitlePanel();
|
this.uiTitlePanel7 = new Sunny.UI.UITitlePanel();
|
||||||
this.btnEditQualifications = new Sunny.UI.UISymbolButton();
|
this.btnEditQualifications = new Sunny.UI.UISymbolButton();
|
||||||
this.lblScanner2Cache = new Sunny.UI.UILabel();
|
this.lblScanner2Cache = new Sunny.UI.UILabel();
|
||||||
this.uiLabel13 = new Sunny.UI.UILabel();
|
|
||||||
this.lblScanner1Cache = new Sunny.UI.UILabel();
|
this.lblScanner1Cache = new Sunny.UI.UILabel();
|
||||||
this.uiLabel11 = new Sunny.UI.UILabel();
|
|
||||||
this.lblDefectQueue2 = new Sunny.UI.UILabel();
|
this.lblDefectQueue2 = new Sunny.UI.UILabel();
|
||||||
this.lblDefectQueue1 = new Sunny.UI.UILabel();
|
this.lblDefectQueue1 = new Sunny.UI.UILabel();
|
||||||
this.lblDefectQueue0 = new Sunny.UI.UILabel();
|
this.lblDefectQueue0 = new Sunny.UI.UILabel();
|
||||||
@ -118,6 +116,8 @@
|
|||||||
this.lineChartHouDu = new Sunny.UI.UILineChart();
|
this.lineChartHouDu = new Sunny.UI.UILineChart();
|
||||||
this.picDefectImage = new LeatherApp.UIExtend.UCImageView();
|
this.picDefectImage = new LeatherApp.UIExtend.UCImageView();
|
||||||
this.ucColorListDefect = new LeatherApp.UIExtend.UCColorList();
|
this.ucColorListDefect = new LeatherApp.UIExtend.UCColorList();
|
||||||
|
this.uiLabel11 = new Sunny.UI.UILabel();
|
||||||
|
this.uiSwitch1 = new Sunny.UI.UISwitch();
|
||||||
this.uiPanel1.SuspendLayout();
|
this.uiPanel1.SuspendLayout();
|
||||||
this.uiTitlePanel1.SuspendLayout();
|
this.uiTitlePanel1.SuspendLayout();
|
||||||
this.uiPanel2.SuspendLayout();
|
this.uiPanel2.SuspendLayout();
|
||||||
@ -974,21 +974,21 @@
|
|||||||
//
|
//
|
||||||
// uiDataGridView1
|
// uiDataGridView1
|
||||||
//
|
//
|
||||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(251)))), ((int)(((byte)(250)))));
|
dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(251)))), ((int)(((byte)(250)))));
|
||||||
this.uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
this.uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
|
||||||
this.uiDataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.uiDataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.uiDataGridView1.BackgroundColor = System.Drawing.Color.White;
|
this.uiDataGridView1.BackgroundColor = System.Drawing.Color.White;
|
||||||
this.uiDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
this.uiDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
||||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.Blue;
|
dataGridViewCellStyle10.BackColor = System.Drawing.Color.Blue;
|
||||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
|
dataGridViewCellStyle10.ForeColor = System.Drawing.Color.White;
|
||||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
this.uiDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
this.uiDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
|
||||||
this.uiDataGridView1.ColumnHeadersHeight = 32;
|
this.uiDataGridView1.ColumnHeadersHeight = 32;
|
||||||
this.uiDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
this.uiDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
||||||
this.uiDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
this.uiDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||||
@ -1003,14 +1003,14 @@
|
|||||||
this.colArea,
|
this.colArea,
|
||||||
this.colZXD,
|
this.colZXD,
|
||||||
this.colTarget});
|
this.colTarget});
|
||||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||||
dataGridViewCellStyle6.BackColor = System.Drawing.Color.White;
|
dataGridViewCellStyle14.BackColor = System.Drawing.Color.White;
|
||||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
dataGridViewCellStyle14.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
|
dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White;
|
||||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(242)))), ((int)(((byte)(238)))));
|
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(242)))), ((int)(((byte)(238)))));
|
||||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||||
this.uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle6;
|
this.uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle14;
|
||||||
this.uiDataGridView1.EnableHeadersVisualStyles = false;
|
this.uiDataGridView1.EnableHeadersVisualStyles = false;
|
||||||
this.uiDataGridView1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.uiDataGridView1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.uiDataGridView1.GridColor = System.Drawing.Color.CornflowerBlue;
|
this.uiDataGridView1.GridColor = System.Drawing.Color.CornflowerBlue;
|
||||||
@ -1018,21 +1018,21 @@
|
|||||||
this.uiDataGridView1.MultiSelect = false;
|
this.uiDataGridView1.MultiSelect = false;
|
||||||
this.uiDataGridView1.Name = "uiDataGridView1";
|
this.uiDataGridView1.Name = "uiDataGridView1";
|
||||||
this.uiDataGridView1.RectColor = System.Drawing.Color.DodgerBlue;
|
this.uiDataGridView1.RectColor = System.Drawing.Color.DodgerBlue;
|
||||||
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||||
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(251)))), ((int)(((byte)(250)))));
|
dataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(251)))), ((int)(((byte)(250)))));
|
||||||
dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
dataGridViewCellStyle7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
dataGridViewCellStyle15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||||
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
this.uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle7;
|
this.uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle15;
|
||||||
this.uiDataGridView1.RowHeadersWidth = 62;
|
this.uiDataGridView1.RowHeadersWidth = 62;
|
||||||
dataGridViewCellStyle8.BackColor = System.Drawing.Color.White;
|
dataGridViewCellStyle16.BackColor = System.Drawing.Color.White;
|
||||||
dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
dataGridViewCellStyle16.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
dataGridViewCellStyle16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||||
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(242)))), ((int)(((byte)(238)))));
|
dataGridViewCellStyle16.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(242)))), ((int)(((byte)(238)))));
|
||||||
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
dataGridViewCellStyle16.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||||
this.uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle8;
|
this.uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle16;
|
||||||
this.uiDataGridView1.RowTemplate.Height = 30;
|
this.uiDataGridView1.RowTemplate.Height = 30;
|
||||||
this.uiDataGridView1.ScrollBarBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(251)))), ((int)(((byte)(250)))));
|
this.uiDataGridView1.ScrollBarBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(251)))), ((int)(((byte)(250)))));
|
||||||
this.uiDataGridView1.ScrollBarColor = System.Drawing.Color.DodgerBlue;
|
this.uiDataGridView1.ScrollBarColor = System.Drawing.Color.DodgerBlue;
|
||||||
@ -1083,9 +1083,9 @@
|
|||||||
// colX
|
// colX
|
||||||
//
|
//
|
||||||
this.colX.DataPropertyName = "X";
|
this.colX.DataPropertyName = "X";
|
||||||
dataGridViewCellStyle3.Format = "N1";
|
dataGridViewCellStyle11.Format = "N1";
|
||||||
dataGridViewCellStyle3.NullValue = null;
|
dataGridViewCellStyle11.NullValue = null;
|
||||||
this.colX.DefaultCellStyle = dataGridViewCellStyle3;
|
this.colX.DefaultCellStyle = dataGridViewCellStyle11;
|
||||||
this.colX.HeaderText = "X(cm)";
|
this.colX.HeaderText = "X(cm)";
|
||||||
this.colX.MinimumWidth = 8;
|
this.colX.MinimumWidth = 8;
|
||||||
this.colX.Name = "colX";
|
this.colX.Name = "colX";
|
||||||
@ -1095,9 +1095,9 @@
|
|||||||
// colY
|
// colY
|
||||||
//
|
//
|
||||||
this.colY.DataPropertyName = "Y";
|
this.colY.DataPropertyName = "Y";
|
||||||
dataGridViewCellStyle4.Format = "N2";
|
dataGridViewCellStyle12.Format = "N2";
|
||||||
dataGridViewCellStyle4.NullValue = null;
|
dataGridViewCellStyle12.NullValue = null;
|
||||||
this.colY.DefaultCellStyle = dataGridViewCellStyle4;
|
this.colY.DefaultCellStyle = dataGridViewCellStyle12;
|
||||||
this.colY.HeaderText = "Y(米)";
|
this.colY.HeaderText = "Y(米)";
|
||||||
this.colY.MinimumWidth = 8;
|
this.colY.MinimumWidth = 8;
|
||||||
this.colY.Name = "colY";
|
this.colY.Name = "colY";
|
||||||
@ -1120,9 +1120,9 @@
|
|||||||
//
|
//
|
||||||
// colArea
|
// colArea
|
||||||
//
|
//
|
||||||
dataGridViewCellStyle5.Format = "N2";
|
dataGridViewCellStyle13.Format = "N2";
|
||||||
dataGridViewCellStyle5.NullValue = null;
|
dataGridViewCellStyle13.NullValue = null;
|
||||||
this.colArea.DefaultCellStyle = dataGridViewCellStyle5;
|
this.colArea.DefaultCellStyle = dataGridViewCellStyle13;
|
||||||
this.colArea.HeaderText = "面积(mm²)";
|
this.colArea.HeaderText = "面积(mm²)";
|
||||||
this.colArea.MinimumWidth = 8;
|
this.colArea.MinimumWidth = 8;
|
||||||
this.colArea.Name = "colArea";
|
this.colArea.Name = "colArea";
|
||||||
@ -1424,11 +1424,11 @@
|
|||||||
// uiTitlePanel7
|
// uiTitlePanel7
|
||||||
//
|
//
|
||||||
this.uiTitlePanel7.BackColor = System.Drawing.Color.White;
|
this.uiTitlePanel7.BackColor = System.Drawing.Color.White;
|
||||||
|
this.uiTitlePanel7.Controls.Add(this.uiSwitch1);
|
||||||
|
this.uiTitlePanel7.Controls.Add(this.uiLabel11);
|
||||||
this.uiTitlePanel7.Controls.Add(this.btnEditQualifications);
|
this.uiTitlePanel7.Controls.Add(this.btnEditQualifications);
|
||||||
this.uiTitlePanel7.Controls.Add(this.lblScanner2Cache);
|
this.uiTitlePanel7.Controls.Add(this.lblScanner2Cache);
|
||||||
this.uiTitlePanel7.Controls.Add(this.uiLabel13);
|
|
||||||
this.uiTitlePanel7.Controls.Add(this.lblScanner1Cache);
|
this.uiTitlePanel7.Controls.Add(this.lblScanner1Cache);
|
||||||
this.uiTitlePanel7.Controls.Add(this.uiLabel11);
|
|
||||||
this.uiTitlePanel7.Controls.Add(this.lblDefectQueue2);
|
this.uiTitlePanel7.Controls.Add(this.lblDefectQueue2);
|
||||||
this.uiTitlePanel7.Controls.Add(this.lblDefectQueue1);
|
this.uiTitlePanel7.Controls.Add(this.lblDefectQueue1);
|
||||||
this.uiTitlePanel7.Controls.Add(this.lblDefectQueue0);
|
this.uiTitlePanel7.Controls.Add(this.lblDefectQueue0);
|
||||||
@ -1480,7 +1480,7 @@
|
|||||||
this.lblScanner2Cache.AutoSize = true;
|
this.lblScanner2Cache.AutoSize = true;
|
||||||
this.lblScanner2Cache.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.lblScanner2Cache.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.lblScanner2Cache.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
this.lblScanner2Cache.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
this.lblScanner2Cache.Location = new System.Drawing.Point(323, 134);
|
this.lblScanner2Cache.Location = new System.Drawing.Point(129, 169);
|
||||||
this.lblScanner2Cache.Name = "lblScanner2Cache";
|
this.lblScanner2Cache.Name = "lblScanner2Cache";
|
||||||
this.lblScanner2Cache.Size = new System.Drawing.Size(19, 21);
|
this.lblScanner2Cache.Size = new System.Drawing.Size(19, 21);
|
||||||
this.lblScanner2Cache.Style = Sunny.UI.UIStyle.Custom;
|
this.lblScanner2Cache.Style = Sunny.UI.UIStyle.Custom;
|
||||||
@ -1489,26 +1489,12 @@
|
|||||||
this.lblScanner2Cache.Text = "0";
|
this.lblScanner2Cache.Text = "0";
|
||||||
this.lblScanner2Cache.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
this.lblScanner2Cache.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
//
|
//
|
||||||
// uiLabel13
|
|
||||||
//
|
|
||||||
this.uiLabel13.AutoSize = true;
|
|
||||||
this.uiLabel13.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
||||||
this.uiLabel13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
|
||||||
this.uiLabel13.Location = new System.Drawing.Point(190, 134);
|
|
||||||
this.uiLabel13.Name = "uiLabel13";
|
|
||||||
this.uiLabel13.Size = new System.Drawing.Size(99, 21);
|
|
||||||
this.uiLabel13.Style = Sunny.UI.UIStyle.Custom;
|
|
||||||
this.uiLabel13.StyleCustomMode = true;
|
|
||||||
this.uiLabel13.TabIndex = 19;
|
|
||||||
this.uiLabel13.Text = "相机2缓存:";
|
|
||||||
this.uiLabel13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
||||||
//
|
|
||||||
// lblScanner1Cache
|
// lblScanner1Cache
|
||||||
//
|
//
|
||||||
this.lblScanner1Cache.AutoSize = true;
|
this.lblScanner1Cache.AutoSize = true;
|
||||||
this.lblScanner1Cache.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.lblScanner1Cache.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.lblScanner1Cache.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
this.lblScanner1Cache.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
this.lblScanner1Cache.Location = new System.Drawing.Point(141, 134);
|
this.lblScanner1Cache.Location = new System.Drawing.Point(104, 169);
|
||||||
this.lblScanner1Cache.Name = "lblScanner1Cache";
|
this.lblScanner1Cache.Name = "lblScanner1Cache";
|
||||||
this.lblScanner1Cache.Size = new System.Drawing.Size(19, 21);
|
this.lblScanner1Cache.Size = new System.Drawing.Size(19, 21);
|
||||||
this.lblScanner1Cache.Style = Sunny.UI.UIStyle.Custom;
|
this.lblScanner1Cache.Style = Sunny.UI.UIStyle.Custom;
|
||||||
@ -1517,26 +1503,12 @@
|
|||||||
this.lblScanner1Cache.Text = "0";
|
this.lblScanner1Cache.Text = "0";
|
||||||
this.lblScanner1Cache.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
this.lblScanner1Cache.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
//
|
//
|
||||||
// uiLabel11
|
|
||||||
//
|
|
||||||
this.uiLabel11.AutoSize = true;
|
|
||||||
this.uiLabel11.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
||||||
this.uiLabel11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
|
||||||
this.uiLabel11.Location = new System.Drawing.Point(8, 134);
|
|
||||||
this.uiLabel11.Name = "uiLabel11";
|
|
||||||
this.uiLabel11.Size = new System.Drawing.Size(99, 21);
|
|
||||||
this.uiLabel11.Style = Sunny.UI.UIStyle.Custom;
|
|
||||||
this.uiLabel11.StyleCustomMode = true;
|
|
||||||
this.uiLabel11.TabIndex = 17;
|
|
||||||
this.uiLabel11.Text = "相机1缓存:";
|
|
||||||
this.uiLabel11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
||||||
//
|
|
||||||
// lblDefectQueue2
|
// lblDefectQueue2
|
||||||
//
|
//
|
||||||
this.lblDefectQueue2.AutoSize = true;
|
this.lblDefectQueue2.AutoSize = true;
|
||||||
this.lblDefectQueue2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.lblDefectQueue2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.lblDefectQueue2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
this.lblDefectQueue2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
this.lblDefectQueue2.Location = new System.Drawing.Point(323, 169);
|
this.lblDefectQueue2.Location = new System.Drawing.Point(322, 169);
|
||||||
this.lblDefectQueue2.Name = "lblDefectQueue2";
|
this.lblDefectQueue2.Name = "lblDefectQueue2";
|
||||||
this.lblDefectQueue2.Size = new System.Drawing.Size(19, 21);
|
this.lblDefectQueue2.Size = new System.Drawing.Size(19, 21);
|
||||||
this.lblDefectQueue2.Style = Sunny.UI.UIStyle.Custom;
|
this.lblDefectQueue2.Style = Sunny.UI.UIStyle.Custom;
|
||||||
@ -1550,7 +1522,7 @@
|
|||||||
this.lblDefectQueue1.AutoSize = true;
|
this.lblDefectQueue1.AutoSize = true;
|
||||||
this.lblDefectQueue1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.lblDefectQueue1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.lblDefectQueue1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
|
this.lblDefectQueue1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
|
||||||
this.lblDefectQueue1.Location = new System.Drawing.Point(292, 169);
|
this.lblDefectQueue1.Location = new System.Drawing.Point(300, 169);
|
||||||
this.lblDefectQueue1.Name = "lblDefectQueue1";
|
this.lblDefectQueue1.Name = "lblDefectQueue1";
|
||||||
this.lblDefectQueue1.Size = new System.Drawing.Size(19, 21);
|
this.lblDefectQueue1.Size = new System.Drawing.Size(19, 21);
|
||||||
this.lblDefectQueue1.Style = Sunny.UI.UIStyle.Custom;
|
this.lblDefectQueue1.Style = Sunny.UI.UIStyle.Custom;
|
||||||
@ -1564,7 +1536,7 @@
|
|||||||
this.lblDefectQueue0.AutoSize = true;
|
this.lblDefectQueue0.AutoSize = true;
|
||||||
this.lblDefectQueue0.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.lblDefectQueue0.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.lblDefectQueue0.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
this.lblDefectQueue0.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
this.lblDefectQueue0.Location = new System.Drawing.Point(261, 169);
|
this.lblDefectQueue0.Location = new System.Drawing.Point(278, 169);
|
||||||
this.lblDefectQueue0.Name = "lblDefectQueue0";
|
this.lblDefectQueue0.Name = "lblDefectQueue0";
|
||||||
this.lblDefectQueue0.Size = new System.Drawing.Size(19, 21);
|
this.lblDefectQueue0.Size = new System.Drawing.Size(19, 21);
|
||||||
this.lblDefectQueue0.Style = Sunny.UI.UIStyle.Custom;
|
this.lblDefectQueue0.Style = Sunny.UI.UIStyle.Custom;
|
||||||
@ -1578,7 +1550,7 @@
|
|||||||
this.lblWaitImageCount.AutoSize = true;
|
this.lblWaitImageCount.AutoSize = true;
|
||||||
this.lblWaitImageCount.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.lblWaitImageCount.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.lblWaitImageCount.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
this.lblWaitImageCount.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
this.lblWaitImageCount.Location = new System.Drawing.Point(117, 169);
|
this.lblWaitImageCount.Location = new System.Drawing.Point(154, 169);
|
||||||
this.lblWaitImageCount.Name = "lblWaitImageCount";
|
this.lblWaitImageCount.Name = "lblWaitImageCount";
|
||||||
this.lblWaitImageCount.Size = new System.Drawing.Size(19, 21);
|
this.lblWaitImageCount.Size = new System.Drawing.Size(19, 21);
|
||||||
this.lblWaitImageCount.Style = Sunny.UI.UIStyle.Custom;
|
this.lblWaitImageCount.Style = Sunny.UI.UIStyle.Custom;
|
||||||
@ -1604,7 +1576,7 @@
|
|||||||
this.uiLabel9.AutoSize = true;
|
this.uiLabel9.AutoSize = true;
|
||||||
this.uiLabel9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.uiLabel9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.uiLabel9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
this.uiLabel9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
this.uiLabel9.Location = new System.Drawing.Point(152, 169);
|
this.uiLabel9.Location = new System.Drawing.Point(181, 169);
|
||||||
this.uiLabel9.Name = "uiLabel9";
|
this.uiLabel9.Name = "uiLabel9";
|
||||||
this.uiLabel9.Size = new System.Drawing.Size(90, 21);
|
this.uiLabel9.Size = new System.Drawing.Size(90, 21);
|
||||||
this.uiLabel9.Style = Sunny.UI.UIStyle.Custom;
|
this.uiLabel9.Style = Sunny.UI.UIStyle.Custom;
|
||||||
@ -1733,6 +1705,32 @@
|
|||||||
this.ucColorListDefect.Text = "ucColorList1";
|
this.ucColorListDefect.Text = "ucColorList1";
|
||||||
this.ucColorListDefect.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
this.ucColorListDefect.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
//
|
//
|
||||||
|
// uiLabel11
|
||||||
|
//
|
||||||
|
this.uiLabel11.AutoSize = true;
|
||||||
|
this.uiLabel11.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.uiLabel11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(29)))), ((int)(((byte)(138)))));
|
||||||
|
this.uiLabel11.Location = new System.Drawing.Point(8, 133);
|
||||||
|
this.uiLabel11.Name = "uiLabel11";
|
||||||
|
this.uiLabel11.Size = new System.Drawing.Size(90, 21);
|
||||||
|
this.uiLabel11.Style = Sunny.UI.UIStyle.Custom;
|
||||||
|
this.uiLabel11.StyleCustomMode = true;
|
||||||
|
this.uiLabel11.TabIndex = 21;
|
||||||
|
this.uiLabel11.Text = "报警不停车";
|
||||||
|
this.uiLabel11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// uiSwitch1
|
||||||
|
//
|
||||||
|
this.uiSwitch1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.uiSwitch1.Location = new System.Drawing.Point(132, 129);
|
||||||
|
this.uiSwitch1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.uiSwitch1.Name = "uiSwitch1";
|
||||||
|
this.uiSwitch1.Size = new System.Drawing.Size(80, 29);
|
||||||
|
this.uiSwitch1.Style = Sunny.UI.UIStyle.Custom;
|
||||||
|
this.uiSwitch1.TabIndex = 22;
|
||||||
|
this.uiSwitch1.Text = "uiSwitch1";
|
||||||
|
this.uiSwitch1.ValueChanged += new Sunny.UI.UISwitch.OnValueChanged(this.uiSwitch1_ValueChanged);
|
||||||
|
//
|
||||||
// FHome
|
// FHome
|
||||||
//
|
//
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
@ -1833,9 +1831,7 @@
|
|||||||
private Sunny.UI.UITextBox txtBarCodeName;
|
private Sunny.UI.UITextBox txtBarCodeName;
|
||||||
private Sunny.UI.UINumPadTextBox numErpLen;
|
private Sunny.UI.UINumPadTextBox numErpLen;
|
||||||
private Sunny.UI.UILabel lblScanner2Cache;
|
private Sunny.UI.UILabel lblScanner2Cache;
|
||||||
private Sunny.UI.UILabel uiLabel13;
|
|
||||||
private Sunny.UI.UILabel lblScanner1Cache;
|
private Sunny.UI.UILabel lblScanner1Cache;
|
||||||
private Sunny.UI.UILabel uiLabel11;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colUid;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colUid;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colCode;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colCode;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colIndex;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colIndex;
|
||||||
@ -1865,5 +1861,7 @@
|
|||||||
private Sunny.UI.UISymbolButton btnCut;
|
private Sunny.UI.UISymbolButton btnCut;
|
||||||
private System.Windows.Forms.RadioButton radioButton2;
|
private System.Windows.Forms.RadioButton radioButton2;
|
||||||
private System.Windows.Forms.RadioButton radioButton1;
|
private System.Windows.Forms.RadioButton radioButton1;
|
||||||
|
private Sunny.UI.UISwitch uiSwitch1;
|
||||||
|
private Sunny.UI.UILabel uiLabel11;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
//#define Oracle //禾欣使用oracle数据库
|
//#define Oracle //禾欣使用oracle数据库
|
||||||
#define NT //新流程
|
#define NT //新流程
|
||||||
//#define UPDATA
|
//#define UPDATA
|
||||||
|
#define LED
|
||||||
|
|
||||||
using Automation.BDaq;
|
using Automation.BDaq;
|
||||||
using DocumentFormat.OpenXml.EMMA;
|
using DocumentFormat.OpenXml.EMMA;
|
||||||
@ -126,6 +127,13 @@ namespace LeatherApp.Page
|
|||||||
mat = _mat;
|
mat = _mat;
|
||||||
CurrDis = dis;
|
CurrDis = dis;
|
||||||
}
|
}
|
||||||
|
public tScanPhotoInfo(int _devIndex, int _photoIndex, Mat _mat, int xoffsrt)
|
||||||
|
{
|
||||||
|
devIndex = _devIndex;
|
||||||
|
photoIndex = _photoIndex;
|
||||||
|
mat = _mat;
|
||||||
|
X_offset = xoffsrt;
|
||||||
|
}
|
||||||
public int devIndex { get; set; }
|
public int devIndex { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 0-n
|
/// 0-n
|
||||||
@ -136,6 +144,11 @@ namespace LeatherApp.Page
|
|||||||
|
|
||||||
public double CurrDis { get; set; }
|
public double CurrDis { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 实际偏差
|
||||||
|
/// </summary>
|
||||||
|
public int X_offset { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -311,8 +324,11 @@ namespace LeatherApp.Page
|
|||||||
picScanner1.Refresh();
|
picScanner1.Refresh();
|
||||||
picScanner2.Refresh();
|
picScanner2.Refresh();
|
||||||
|
|
||||||
|
if (resetCurrKey)
|
||||||
|
{
|
||||||
radioButton1.Checked = false;
|
radioButton1.Checked = false;
|
||||||
radioButton2.Checked = false;
|
radioButton2.Checked = false;
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1455,6 +1471,8 @@ namespace LeatherApp.Page
|
|||||||
|
|
||||||
//
|
//
|
||||||
this.swcDefectPauseForUser.Active = this.defectPauseForUser = productInfo.DefectPauseForUser;
|
this.swcDefectPauseForUser.Active = this.defectPauseForUser = productInfo.DefectPauseForUser;
|
||||||
|
|
||||||
|
this.uiSwitch1.Active = Config.OpenWarnBeep;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1671,6 +1689,14 @@ namespace LeatherApp.Page
|
|||||||
photoIndex = _photoIndex;
|
photoIndex = _photoIndex;
|
||||||
mat = _mat;
|
mat = _mat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ScanPhotoInfo(int _devIndex, int _photoIndex, Mat _mat, int xoffsrt)
|
||||||
|
{
|
||||||
|
devIndex = _devIndex;
|
||||||
|
photoIndex = _photoIndex;
|
||||||
|
mat = _mat;
|
||||||
|
X_offset = xoffsrt;
|
||||||
|
}
|
||||||
public int devIndex { get; set; }
|
public int devIndex { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 0-n
|
/// 0-n
|
||||||
@ -1678,6 +1704,10 @@ namespace LeatherApp.Page
|
|||||||
public int photoIndex { get; set; }
|
public int photoIndex { get; set; }
|
||||||
public string path { get; set; }
|
public string path { get; set; }
|
||||||
public Mat mat { get; set; }
|
public Mat mat { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 实际偏差
|
||||||
|
/// </summary>
|
||||||
|
public int X_offset { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
//private List<Queue<ScanPhotoInfo>> scanPhotoQueue1 = new List<Queue<ScanPhotoInfo>>();
|
//private List<Queue<ScanPhotoInfo>> scanPhotoQueue1 = new List<Queue<ScanPhotoInfo>>();
|
||||||
@ -1704,6 +1734,119 @@ namespace LeatherApp.Page
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 缺陷指示
|
||||||
|
/// <summary>
|
||||||
|
/// 缺陷LED指示
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="data"></param>
|
||||||
|
public void ShowLedOpen(List<DefectInfo> data)
|
||||||
|
{
|
||||||
|
#if LED
|
||||||
|
if (!Config.StopIO && devContainer.devIOCard.IsInit && Config.OpenLaser)
|
||||||
|
{
|
||||||
|
//开启横灯
|
||||||
|
devContainer.io_output(CMDName.LED0);
|
||||||
|
|
||||||
|
//区域1
|
||||||
|
var led1Get = data.Where(x => (x.CentreX + x.X_offset) <= Config.LED1_Pos).ToList();
|
||||||
|
if (led1Get != null && led1Get.Count > 0)
|
||||||
|
{
|
||||||
|
AddTextEvent(DateTime.Now, $"激光指示", $"缺陷位置{Math.Round(led1Get[0].CentreX + led1Get[0].X_offset, 2)}《=LED1位置{Math.Round(Config.LED1_Pos, 2)}");
|
||||||
|
devContainer.io_output(CMDName.LED1);
|
||||||
|
}
|
||||||
|
|
||||||
|
//区域2
|
||||||
|
var led2Get = data.Where(x => (x.CentreX + x.X_offset) <= Config.LED2_Pos
|
||||||
|
&& (x.CentreX + x.X_offset) > Config.LED1_Pos).ToList();
|
||||||
|
if (led2Get != null && led2Get.Count > 0)
|
||||||
|
{
|
||||||
|
AddTextEvent(DateTime.Now, $"激光指示", $"LED1位置{Math.Round(Config.LED1_Pos, 2)}< 缺陷位置{Math.Round(led2Get[0].CentreX + led2Get[0].X_offset, 2)}《=LED2位置{Math.Round(Config.LED2_Pos, 2)}");
|
||||||
|
devContainer.io_output(CMDName.LED1);
|
||||||
|
devContainer.io_output(CMDName.LED2);
|
||||||
|
}
|
||||||
|
|
||||||
|
//区域3
|
||||||
|
var led3Get = data.Where(x => (x.CentreX + x.X_offset) < Config.LED3_Pos
|
||||||
|
&& (x.CentreX + x.X_offset) > Config.LED2_Pos).ToList();
|
||||||
|
if (led3Get != null && led3Get.Count > 0)
|
||||||
|
{
|
||||||
|
AddTextEvent(DateTime.Now, $"激光指示", $"LED2位置{Math.Round(Config.LED2_Pos, 2)}< 缺陷位置{Math.Round(led3Get[0].CentreX + led3Get[0].X_offset, 2)}《LED3位置{Math.Round(Config.LED3_Pos, 2)}");
|
||||||
|
devContainer.io_output(CMDName.LED2);
|
||||||
|
devContainer.io_output(CMDName.LED3);
|
||||||
|
}
|
||||||
|
|
||||||
|
//区域4
|
||||||
|
var led4Get = data.Where(x => (x.CentreX + x.X_offset) <= Config.LED4_Pos
|
||||||
|
&& (x.CentreX + x.X_offset) > Config.LED3_Pos).ToList();
|
||||||
|
if (led4Get != null && led4Get.Count > 0)
|
||||||
|
{
|
||||||
|
AddTextEvent(DateTime.Now, $"激光指示", $"LED3位置{Math.Round(Config.LED3_Pos, 2)}< 缺陷位置{Math.Round(led4Get[0].CentreX + led4Get[0].X_offset, 2)}《=LED4位置{Math.Round(Config.LED4_Pos, 2)}");
|
||||||
|
devContainer.io_output(CMDName.LED3);
|
||||||
|
devContainer.io_output(CMDName.LED4);
|
||||||
|
}
|
||||||
|
|
||||||
|
//区域5
|
||||||
|
var led5Get = data.Where(x => (x.CentreX + x.X_offset) < Config.LED5_Pos
|
||||||
|
&& (x.CentreX + x.X_offset) > Config.LED4_Pos).ToList();
|
||||||
|
if (led5Get != null && led5Get.Count > 0)
|
||||||
|
{
|
||||||
|
AddTextEvent(DateTime.Now, $"激光指示", $"LED4位置{Math.Round(Config.LED4_Pos, 2)}< 缺陷位置{Math.Round(led5Get[0].CentreX + led5Get[0].X_offset, 2)}《LED5位置{Math.Round(Config.LED5_Pos, 2)}");
|
||||||
|
devContainer.io_output(CMDName.LED4);
|
||||||
|
devContainer.io_output(CMDName.LED5);
|
||||||
|
}
|
||||||
|
|
||||||
|
//区域6
|
||||||
|
var led6Get = data.Where(x => (x.CentreX + x.X_offset) < Config.LED6_Pos
|
||||||
|
&& (x.CentreX + x.X_offset) > Config.LED5_Pos).ToList();
|
||||||
|
if (led6Get != null && led6Get.Count > 0)
|
||||||
|
{
|
||||||
|
AddTextEvent(DateTime.Now, $"激光指示", $"LED5位置{Math.Round(Config.LED5_Pos, 2)}< 缺陷位置{Math.Round(led6Get[0].CentreX + led6Get[0].X_offset, 2)}《LED6位置{Math.Round(Config.LED6_Pos, 2)}");
|
||||||
|
devContainer.io_output(CMDName.LED5);
|
||||||
|
devContainer.io_output(CMDName.LED6);
|
||||||
|
}
|
||||||
|
|
||||||
|
//区域7
|
||||||
|
var led7Get = data.Where(x => (x.CentreX + x.X_offset) <= Config.LED7_Pos
|
||||||
|
&& (x.CentreX + x.X_offset) > Config.LED6_Pos).ToList();
|
||||||
|
if (led7Get != null && led7Get.Count > 0)
|
||||||
|
{
|
||||||
|
AddTextEvent(DateTime.Now, $"激光指示", $"LED6位置{Math.Round(Config.LED6_Pos, 2)}< 缺陷位置{Math.Round(led7Get[0].CentreX + led7Get[0].X_offset, 2)}《=LED7位置{Math.Round(Config.LED7_Pos, 2)}");
|
||||||
|
devContainer.io_output(CMDName.LED6);
|
||||||
|
devContainer.io_output(CMDName.LED7);
|
||||||
|
}
|
||||||
|
|
||||||
|
//区域8
|
||||||
|
var led8Get = data.Where(x => (x.CentreX + x.X_offset) >= Config.LED7_Pos).ToList();
|
||||||
|
if (led8Get != null && led8Get.Count > 0)
|
||||||
|
{
|
||||||
|
AddTextEvent(DateTime.Now, $"激光指示", $"缺陷位置{Math.Round(led8Get[0].CentreX + led8Get[0].X_offset, 2)}>=LED7位置{Math.Round(Config.LED7_Pos, 2)}");
|
||||||
|
devContainer.io_output(CMDName.LED7);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// LED指示灯关闭
|
||||||
|
/// </summary>
|
||||||
|
public void ShowLedClose()
|
||||||
|
{
|
||||||
|
#if LED
|
||||||
|
if (!Config.StopIO && devContainer.devIOCard.IsInit && Config.OpenLaser)
|
||||||
|
{
|
||||||
|
devContainer.io_output(CMDName.LED0, false, true, 0);
|
||||||
|
devContainer.io_output(CMDName.LED1, false, true, 0);
|
||||||
|
devContainer.io_output(CMDName.LED2, false, true, 0);
|
||||||
|
devContainer.io_output(CMDName.LED3, false, true, 0);
|
||||||
|
devContainer.io_output(CMDName.LED4, false, true, 0);
|
||||||
|
devContainer.io_output(CMDName.LED5, false, true, 0);
|
||||||
|
devContainer.io_output(CMDName.LED6, false, true, 0);
|
||||||
|
devContainer.io_output(CMDName.LED7, false, true, 0);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region 长度与速度流程
|
#region 长度与速度流程
|
||||||
|
|
||||||
#region 计米器位置和速度
|
#region 计米器位置和速度
|
||||||
@ -2013,6 +2156,9 @@ namespace LeatherApp.Page
|
|||||||
else
|
else
|
||||||
AddTextEvent(DateTime.Now, $"二次检测", $"图像{liPhotoIndex}丢失", WarningEnum.Low, true);
|
AddTextEvent(DateTime.Now, $"二次检测", $"图像{liPhotoIndex}丢失", WarningEnum.Low, true);
|
||||||
|
|
||||||
|
//指示灯
|
||||||
|
ShowLedOpen(lstEditDefect);
|
||||||
|
|
||||||
FHome_Defect frmDefect = new FHome_Defect(curRecord.ProductInfo.ModelName, lstEditDefect, pmat, curRecord, defectWaitList, SectioningLen);
|
FHome_Defect frmDefect = new FHome_Defect(curRecord.ProductInfo.ModelName, lstEditDefect, pmat, curRecord, defectWaitList, SectioningLen);
|
||||||
var sd = frmDefect.ShowDialog();
|
var sd = frmDefect.ShowDialog();
|
||||||
if (sd == DialogResult.OK || sd == DialogResult.Yes)
|
if (sd == DialogResult.OK || sd == DialogResult.Yes)
|
||||||
@ -2080,6 +2226,10 @@ namespace LeatherApp.Page
|
|||||||
//this.reDrawDefectPoints(curRecord.DefectInfoList, new double[] { 0, Math.Round(curRecord.FaceWidthMax + 0.005f, 2) }, new double[] { 0, len });
|
//this.reDrawDefectPoints(curRecord.DefectInfoList, new double[] { 0, Math.Round(curRecord.FaceWidthMax + 0.005f, 2) }, new double[] { 0, len });
|
||||||
AddTextEvent(DateTime.Now, $"二次检测", $"本次忽略{frmDefect.lstDel.Count}个瑕疵,本张图由{liDefectCount} -> {lstEditDefect.Count},总数{curRecord.DefectInfoList.Count}", WarningEnum.Normal, false);
|
AddTextEvent(DateTime.Now, $"二次检测", $"本次忽略{frmDefect.lstDel.Count}个瑕疵,本张图由{liDefectCount} -> {lstEditDefect.Count},总数{curRecord.DefectInfoList.Count}", WarningEnum.Normal, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//指示灯
|
||||||
|
ShowLedClose();
|
||||||
|
|
||||||
this.uiMiniPagination1.TotalCount = curRecord.DefectTotalCount = curRecord.DefectInfoList.Count;
|
this.uiMiniPagination1.TotalCount = curRecord.DefectTotalCount = curRecord.DefectInfoList.Count;
|
||||||
//
|
//
|
||||||
//double len = Math.Round((res.photoIndex + 1) * bmpHeight * 1.0d / Config.cm2px_y + 0.005f, 2);
|
//double len = Math.Round((res.photoIndex + 1) * bmpHeight * 1.0d / Config.cm2px_y + 0.005f, 2);
|
||||||
@ -2215,7 +2365,7 @@ namespace LeatherApp.Page
|
|||||||
if(true)
|
if(true)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (Math.Abs(yqjimi - hdJMDis) * 100 > 10) //在10cm以内不做记录
|
if (Math.Abs(yqjimi - hdJMDis) * 100 > 30) //在30cm以内不做记录
|
||||||
{
|
{
|
||||||
//加入偏差计算
|
//加入偏差计算
|
||||||
d1 = Math.Round(d1 + Config.DataOffset1, 2);
|
d1 = Math.Round(d1 + Config.DataOffset1, 2);
|
||||||
@ -2474,7 +2624,9 @@ namespace LeatherApp.Page
|
|||||||
Stopwatch stopWatch = new Stopwatch();
|
Stopwatch stopWatch = new Stopwatch();
|
||||||
stopWatch.Start();
|
stopWatch.Start();
|
||||||
int marginWidth;
|
int marginWidth;
|
||||||
|
int imgXwidth = Image.Width; //记录原图的宽度
|
||||||
Image = OpenCVUtil.getMaxInsetRect2(Image, devNo == 1 ? true : false, Config.MarginHoleWidth, out marginWidth);
|
Image = OpenCVUtil.getMaxInsetRect2(Image, devNo == 1 ? true : false, Config.MarginHoleWidth, out marginWidth);
|
||||||
|
int xoffset = imgXwidth - marginWidth;//计算裁边之后偏差
|
||||||
//AddTextEvent(DateTime.Now,"裁边", $"(图像{scanPhotos0.photoIndex})-图0裁边后:{mat0.Width}*{mat0.Height}");
|
//AddTextEvent(DateTime.Now,"裁边", $"(图像{scanPhotos0.photoIndex})-图0裁边后:{mat0.Width}*{mat0.Height}");
|
||||||
errStep = 55;
|
errStep = 55;
|
||||||
string time = $"dev{devNo}-图{index}裁边({stopWatch.ElapsedMilliseconds})";
|
string time = $"dev{devNo}-图{index}裁边({stopWatch.ElapsedMilliseconds})";
|
||||||
@ -2631,7 +2783,8 @@ namespace LeatherApp.Page
|
|||||||
else
|
else
|
||||||
AddTextEvent(DateTime.Now, $"二次检测", $"图像{liPhotoIndex}丢失", WarningEnum.Low, true);
|
AddTextEvent(DateTime.Now, $"二次检测", $"图像{liPhotoIndex}丢失", WarningEnum.Low, true);
|
||||||
|
|
||||||
|
//指示灯
|
||||||
|
ShowLedOpen(lstEditDefect);
|
||||||
//var pimage = (Bitmap)pmat.ToBitmap().Clone();
|
//var pimage = (Bitmap)pmat.ToBitmap().Clone();
|
||||||
FHome_Defect frmDefect = new FHome_Defect(curRecord.ProductInfo.ModelName, lstEditDefect, pmat, curRecord, defectWaitList, SectioningLen);
|
FHome_Defect frmDefect = new FHome_Defect(curRecord.ProductInfo.ModelName, lstEditDefect, pmat, curRecord, defectWaitList, SectioningLen);
|
||||||
var sd = frmDefect.ShowDialog();
|
var sd = frmDefect.ShowDialog();
|
||||||
@ -2700,6 +2853,10 @@ namespace LeatherApp.Page
|
|||||||
//this.reDrawDefectPoints(curRecord.DefectInfoList, new double[] { 0, Math.Round(curRecord.FaceWidthMax + 0.005f, 2) }, new double[] { 0, len });
|
//this.reDrawDefectPoints(curRecord.DefectInfoList, new double[] { 0, Math.Round(curRecord.FaceWidthMax + 0.005f, 2) }, new double[] { 0, len });
|
||||||
AddTextEvent(DateTime.Now, $"二次检测", $"本次忽略{frmDefect.lstDel.Count}个瑕疵,本张图由{liDefectCount} -> {lstEditDefect.Count},总数{curRecord.DefectInfoList.Count}", WarningEnum.Normal, false);
|
AddTextEvent(DateTime.Now, $"二次检测", $"本次忽略{frmDefect.lstDel.Count}个瑕疵,本张图由{liDefectCount} -> {lstEditDefect.Count},总数{curRecord.DefectInfoList.Count}", WarningEnum.Normal, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//指示灯
|
||||||
|
ShowLedClose();
|
||||||
|
|
||||||
this.uiMiniPagination1.TotalCount = curRecord.DefectTotalCount = curRecord.DefectInfoList.Count;
|
this.uiMiniPagination1.TotalCount = curRecord.DefectTotalCount = curRecord.DefectInfoList.Count;
|
||||||
//
|
//
|
||||||
//double len = Math.Round((res.photoIndex + 1) * bmpHeight * 1.0d / Config.cm2px_y + 0.005f, 2);
|
//double len = Math.Round((res.photoIndex + 1) * bmpHeight * 1.0d / Config.cm2px_y + 0.005f, 2);
|
||||||
@ -2793,6 +2950,21 @@ namespace LeatherApp.Page
|
|||||||
//只是设备暂停,APP没暂停
|
//只是设备暂停,APP没暂停
|
||||||
devContainer.io_output(CMDName.绿灯输出, false, true, 0);
|
devContainer.io_output(CMDName.绿灯输出, false, true, 0);
|
||||||
devContainer.io_output(CMDName.黄灯输出);
|
devContainer.io_output(CMDName.黄灯输出);
|
||||||
|
if (Config.OpenWarnBeep)
|
||||||
|
{
|
||||||
|
if (Config.OpenBeep)
|
||||||
|
{
|
||||||
|
IsTopAlm = true;
|
||||||
|
Task.Run(async () =>
|
||||||
|
{
|
||||||
|
devContainer.io_output(CMDName.蜂鸣器输出, true, false, 5000);
|
||||||
|
//devContainer.io_output(CMDName.蜂鸣器输出, false, true, Config.BeepTime);
|
||||||
|
await Task.Delay(5);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
devContainer.devIOCard.writeBitState(0, 1, true);
|
devContainer.devIOCard.writeBitState(0, 1, true);
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
{
|
{
|
||||||
@ -2803,12 +2975,13 @@ namespace LeatherApp.Page
|
|||||||
{
|
{
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
{
|
{
|
||||||
devContainer.io_output(CMDName.蜂鸣器输出, false, true, Config.BeepTime);
|
devContainer.io_output(CMDName.蜂鸣器输出, false, true, 5000);
|
||||||
await Task.Delay(5);
|
await Task.Delay(5);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
errStep = 11;
|
errStep = 11;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2840,6 +3013,22 @@ namespace LeatherApp.Page
|
|||||||
//只是设备暂停,APP没暂停
|
//只是设备暂停,APP没暂停
|
||||||
devContainer.io_output(CMDName.绿灯输出, false, true, 0);
|
devContainer.io_output(CMDName.绿灯输出, false, true, 0);
|
||||||
devContainer.io_output(CMDName.黄灯输出);
|
devContainer.io_output(CMDName.黄灯输出);
|
||||||
|
if (Config.OpenWarnBeep)
|
||||||
|
{
|
||||||
|
//强报警!!
|
||||||
|
if (Config.OpenBeep)
|
||||||
|
{
|
||||||
|
IsTopAlm = true;
|
||||||
|
Task.Run(async () =>
|
||||||
|
{
|
||||||
|
devContainer.io_output(CMDName.蜂鸣器输出, true, false, 5000);
|
||||||
|
//devContainer.io_output(CMDName.蜂鸣器输出, false, true, Config.BeepTime);
|
||||||
|
await Task.Delay(5);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
devContainer.devIOCard.writeBitState(0, 1, true);
|
devContainer.devIOCard.writeBitState(0, 1, true);
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
{
|
{
|
||||||
@ -2851,7 +3040,7 @@ namespace LeatherApp.Page
|
|||||||
IsTopAlm = true;
|
IsTopAlm = true;
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
{
|
{
|
||||||
devContainer.io_output(CMDName.蜂鸣器输出, true, false, Config.BeepTime);
|
devContainer.io_output(CMDName.蜂鸣器输出, true, false, 5000);
|
||||||
//devContainer.io_output(CMDName.蜂鸣器输出, false, true, Config.BeepTime);
|
//devContainer.io_output(CMDName.蜂鸣器输出, false, true, Config.BeepTime);
|
||||||
await Task.Delay(5);
|
await Task.Delay(5);
|
||||||
});
|
});
|
||||||
@ -2860,12 +3049,13 @@ namespace LeatherApp.Page
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
errStep = 21;
|
errStep = 21;
|
||||||
//Application.DoEvents();
|
//Application.DoEvents();
|
||||||
}
|
}
|
||||||
_matList1.Enqueue(new tScanPhotoInfo(1, index, Image.Clone()));
|
_matList1.Enqueue(new tScanPhotoInfo(1, index, Image.Clone(), xoffset));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -3244,6 +3434,7 @@ namespace LeatherApp.Page
|
|||||||
qualifiedLimitList = curRecord.ProductInfo.QualifiedLimitList,
|
qualifiedLimitList = curRecord.ProductInfo.QualifiedLimitList,
|
||||||
finishEvent = callBackDefectEvent,
|
finishEvent = callBackDefectEvent,
|
||||||
xw = oxw,
|
xw = oxw,
|
||||||
|
xo = scanPhotos0.X_offset,
|
||||||
CurrDis = tscanPhotos1.CurrDis,
|
CurrDis = tscanPhotos1.CurrDis,
|
||||||
});
|
});
|
||||||
errStep = 10;
|
errStep = 10;
|
||||||
@ -3370,6 +3561,7 @@ namespace LeatherApp.Page
|
|||||||
imageID = imgid,//res.lstDefectBmp[i].Clone(),
|
imageID = imgid,//res.lstDefectBmp[i].Clone(),
|
||||||
PicY = double.Parse(res.excelTable.Rows[i]["Y"].ToString()),//cm
|
PicY = double.Parse(res.excelTable.Rows[i]["Y"].ToString()),//cm
|
||||||
CurrDis = res.CurrDis,
|
CurrDis = res.CurrDis,
|
||||||
|
X_offset = Math.Round((double)res.xo / Config.cm2px_x, 2)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -3394,6 +3586,7 @@ namespace LeatherApp.Page
|
|||||||
imageID = imgid,//res.lstDefectBmp[i].Clone(),
|
imageID = imgid,//res.lstDefectBmp[i].Clone(),
|
||||||
PicY = double.Parse(res.excelTable.Rows[i]["Y"].ToString()),//cm
|
PicY = double.Parse(res.excelTable.Rows[i]["Y"].ToString()),//cm
|
||||||
CurrDis = res.CurrDis,
|
CurrDis = res.CurrDis,
|
||||||
|
X_offset = Math.Round((double)res.xo / Config.cm2px_x, 2)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
defectInfo.ModifyUserCode = defectInfo.CreateUserCode = res.record.CreateUserCode;
|
defectInfo.ModifyUserCode = defectInfo.CreateUserCode = res.record.CreateUserCode;
|
||||||
@ -3473,6 +3666,21 @@ namespace LeatherApp.Page
|
|||||||
//只是设备暂停,APP没暂停
|
//只是设备暂停,APP没暂停
|
||||||
devContainer.io_output(CMDName.绿灯输出, false, true, 0);
|
devContainer.io_output(CMDName.绿灯输出, false, true, 0);
|
||||||
devContainer.io_output(CMDName.黄灯输出);
|
devContainer.io_output(CMDName.黄灯输出);
|
||||||
|
if (Config.OpenWarnBeep)
|
||||||
|
{
|
||||||
|
if (Config.OpenBeep)
|
||||||
|
{
|
||||||
|
IsTopAlm = true;
|
||||||
|
Task.Run(async () =>
|
||||||
|
{
|
||||||
|
devContainer.io_output(CMDName.蜂鸣器输出, true, false, 5000);
|
||||||
|
//devContainer.io_output(CMDName.蜂鸣器输出, false, true, Config.BeepTime);
|
||||||
|
await Task.Delay(5);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
devContainer.devIOCard.writeBitState(0, 1, true);
|
devContainer.devIOCard.writeBitState(0, 1, true);
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
{
|
{
|
||||||
@ -3481,6 +3689,7 @@ namespace LeatherApp.Page
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//接头布接等瑕疵进入分段
|
//接头布接等瑕疵进入分段
|
||||||
@ -4271,7 +4480,7 @@ namespace LeatherApp.Page
|
|||||||
ptLen = Math.Round(devContainer.GetLength(), 2);
|
ptLen = Math.Round(devContainer.GetLength(), 2);
|
||||||
#endif
|
#endif
|
||||||
//校正从复位-》运行,不会新启动
|
//校正从复位-》运行,不会新启动
|
||||||
resetUIValue();
|
resetUIValue(false);
|
||||||
AddTextEvent(DateTime.Now,"启动", "开始测试...");
|
AddTextEvent(DateTime.Now,"启动", "开始测试...");
|
||||||
|
|
||||||
if(Config.OpenClearPic)
|
if(Config.OpenClearPic)
|
||||||
@ -5853,5 +6062,15 @@ namespace LeatherApp.Page
|
|||||||
record.DefectType = "半检";
|
record.DefectType = "半检";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 开启报警不停车
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="value"></param>
|
||||||
|
private void uiSwitch1_ValueChanged(object sender, bool value)
|
||||||
|
{
|
||||||
|
Config.OpenWarnBeep = this.uiSwitch1.Active;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||||
//通过使用 "*",如下所示:
|
//通过使用 "*",如下所示:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.0.11")]
|
[assembly: AssemblyVersion("1.2.0.13")]
|
||||||
[assembly: AssemblyFileVersion("1.2.0.11")]
|
[assembly: AssemblyFileVersion("1.2.0.13")]
|
||||||
|
@ -329,16 +329,16 @@ namespace LeatherApp.Utils
|
|||||||
JH = records.ReelId,
|
JH = records.ReelId,
|
||||||
FJH = string.IsNullOrEmpty(records.PartReelId) ? "0" : records.PartReelId,
|
FJH = string.IsNullOrEmpty(records.PartReelId) ? "0" : records.PartReelId,
|
||||||
Grade = string.IsNullOrEmpty(grade) ? "一等品" : grade,
|
Grade = string.IsNullOrEmpty(grade) ? "一等品" : grade,
|
||||||
Len = slen,
|
Len = Math.Round(slen, 1),
|
||||||
NetLen = jlen,
|
NetLen = Math.Round(jlen, 1),
|
||||||
SegmentCnt = fd,
|
SegmentCnt = fd,
|
||||||
SegmentLen = string.IsNullOrEmpty(fdinfo) ? "无" : fdinfo,
|
SegmentLen = string.IsNullOrEmpty(fdinfo) ? "无" : fdinfo,
|
||||||
DefectType = string.IsNullOrEmpty(records.DefectType) ? "错误" : records.DefectType,
|
DefectType = string.IsNullOrEmpty(records.DefectType) ? "错误" : records.DefectType,
|
||||||
|
|
||||||
MF1 = mf1,
|
MF1 = Math.Round(mf1, 0),
|
||||||
MF2 = mf2,
|
MF2 = Math.Round(mf2, 0),
|
||||||
MF3 = mf3,
|
MF3 = Math.Round(mf3, 0),
|
||||||
AvgMF = agvmf,
|
AvgMF = Math.Round(agvmf, 0),
|
||||||
|
|
||||||
HD1= hd1,
|
HD1= hd1,
|
||||||
HD2= hd2,
|
HD2= hd2,
|
||||||
|
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/50.json
Normal file
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/50.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Direction": 1,
|
||||||
|
"IN_OP_SHOW": [ "XXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"IN_Waiting_Timeout": 0,
|
||||||
|
"OUT_OP_SHOW": [ "XXXH XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"SleepPre": 0,
|
||||||
|
"SleepLater": 0,
|
||||||
|
"AsynRun": false,
|
||||||
|
"Disable": false
|
||||||
|
}
|
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/51.json
Normal file
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/51.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Direction": 1,
|
||||||
|
"IN_OP_SHOW": [ "XXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"IN_Waiting_Timeout": 0,
|
||||||
|
"OUT_OP_SHOW": [ "XXHX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"SleepPre": 0,
|
||||||
|
"SleepLater": 0,
|
||||||
|
"AsynRun": false,
|
||||||
|
"Disable": false
|
||||||
|
}
|
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/52.json
Normal file
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/52.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Direction": 1,
|
||||||
|
"IN_OP_SHOW": [ "XXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"IN_Waiting_Timeout": 0,
|
||||||
|
"OUT_OP_SHOW": [ "XHXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"SleepPre": 0,
|
||||||
|
"SleepLater": 0,
|
||||||
|
"AsynRun": false,
|
||||||
|
"Disable": false
|
||||||
|
}
|
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/53.json
Normal file
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/53.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Direction": 1,
|
||||||
|
"IN_OP_SHOW": [ "XXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"IN_Waiting_Timeout": 0,
|
||||||
|
"OUT_OP_SHOW": [ "HXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"SleepPre": 0,
|
||||||
|
"SleepLater": 0,
|
||||||
|
"AsynRun": false,
|
||||||
|
"Disable": false
|
||||||
|
}
|
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/54.json
Normal file
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/54.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Direction": 1,
|
||||||
|
"IN_OP_SHOW": [ "XXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"IN_Waiting_Timeout": 0,
|
||||||
|
"OUT_OP_SHOW": [ "XXXX XXXX", "XXXH XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"SleepPre": 0,
|
||||||
|
"SleepLater": 0,
|
||||||
|
"AsynRun": false,
|
||||||
|
"Disable": false
|
||||||
|
}
|
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/55.json
Normal file
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/55.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Direction": 1,
|
||||||
|
"IN_OP_SHOW": [ "XXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"IN_Waiting_Timeout": 0,
|
||||||
|
"OUT_OP_SHOW": [ "XXXX XXXX", "XXHX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"SleepPre": 0,
|
||||||
|
"SleepLater": 0,
|
||||||
|
"AsynRun": false,
|
||||||
|
"Disable": false
|
||||||
|
}
|
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/56.json
Normal file
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/56.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Direction": 1,
|
||||||
|
"IN_OP_SHOW": [ "XXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"IN_Waiting_Timeout": 0,
|
||||||
|
"OUT_OP_SHOW": [ "XXXX XXXX", "XHXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"SleepPre": 0,
|
||||||
|
"SleepLater": 0,
|
||||||
|
"AsynRun": false,
|
||||||
|
"Disable": false
|
||||||
|
}
|
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/57.json
Normal file
10
LeatherProject/LeatherApp/bin/Debug/CMDProcess/57.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Direction": 1,
|
||||||
|
"IN_OP_SHOW": [ "XXXX XXXX", "XXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"IN_Waiting_Timeout": 0,
|
||||||
|
"OUT_OP_SHOW": [ "XXXX XXXX", "HXXX XXXX", "XXXX XXXX", "XXXX XXXX" ],
|
||||||
|
"SleepPre": 0,
|
||||||
|
"SleepLater": 0,
|
||||||
|
"AsynRun": false,
|
||||||
|
"Disable": false
|
||||||
|
}
|
@ -78,6 +78,7 @@ OpenClearPic=False
|
|||||||
ClearDays=3
|
ClearDays=3
|
||||||
JMOffset=6.8
|
JMOffset=6.8
|
||||||
OpenOverSpeed=False
|
OpenOverSpeed=False
|
||||||
|
OpenLaser=True
|
||||||
[BOffset]
|
[BOffset]
|
||||||
L_offset=0
|
L_offset=0
|
||||||
R_offset=0
|
R_offset=0
|
||||||
@ -86,3 +87,11 @@ EdgeOffset=3
|
|||||||
DataOffset1=0
|
DataOffset1=0
|
||||||
DataOffset2=0
|
DataOffset2=0
|
||||||
DataOffset3=0
|
DataOffset3=0
|
||||||
|
[LEDOffset]
|
||||||
|
LED1_Pos=0
|
||||||
|
LED2_Pos=0
|
||||||
|
LED3_Pos=0
|
||||||
|
LED4_Pos=0
|
||||||
|
LED5_Pos=0
|
||||||
|
LED6_Pos=0
|
||||||
|
LED7_Pos=0
|
Binary file not shown.
@ -682,3 +682,5 @@ E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\o
|
|||||||
E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\obj\Debug\LeatherApp.Page.EditStandardFrm.resources
|
E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\obj\Debug\LeatherApp.Page.EditStandardFrm.resources
|
||||||
E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\obj\Debug\LeatherApp.Page.GetHeightFrm.resources
|
E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\obj\Debug\LeatherApp.Page.GetHeightFrm.resources
|
||||||
E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\obj\Debug\LeatherApp.Page.WaitFMFrm.resources
|
E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\obj\Debug\LeatherApp.Page.WaitFMFrm.resources
|
||||||
|
E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\bin\Debug\IKapBoardClassLibrary.dll
|
||||||
|
E:\CPL\迈沐智能项目\2023\革博士\源码\V1.0\LeatherProject\LeatherApp\bin\Debug\IKapC.NET.dll
|
||||||
|
@ -279,6 +279,12 @@ namespace Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
//[SugarColumn(IsIgnore = true)]
|
//[SugarColumn(IsIgnore = true)]
|
||||||
public double CurrDis { get; set; }
|
public double CurrDis { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cm 左侧偏移的距离
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(IsIgnore = true)]
|
||||||
|
public double X_offset { get; set; }//cm 左侧偏移的距离
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user