1、修复数量在生产过程中清空

2、优化测试结果状态显示
3、优化治具状态显示
4、增加吸嘴状态显示
5、优化扫码NG的也弹框提示可以重试和跳过
master
lhiven 12 months ago
parent 4f3bf55ea4
commit 69c260945c

@ -30,17 +30,22 @@ namespace Rs.MotionPlat.Commom
public static bool Pause { get; set; } = false;
public static void Init()
{
GlobalVar.NeedCheckEnvironment = true;
InitDb();
SysConfigParam.Init();
int errNum = 0;
TestFixtureManager.Instance.StartLister();
if (GlobalVar.IsSimTest)
{
SimulateTesterManager.Instance.Init();
}
//Task.Run(() => {
if(!GlobalVar.VirtualAxis)
if (!GlobalVar.VirtualAxis)
{
TestFixtureManager.Instance.StartLister();
VisionHelper.Init();
//SimulateTesterManager.Instance.Init();
#region 初始化固高卡
ErrorCode errCode = GugaoPulseCardManager.Instance.Init();
if (errCode > ErrorCode.Ok)

@ -272,12 +272,13 @@
//
// lblStatus
//
this.lblStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
this.lblStatus.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblStatus.Location = new System.Drawing.Point(95, 151);
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(205, 29);
this.lblStatus.TabIndex = 3;
this.lblStatus.Text = "NoConnect";
this.lblStatus.Text = "None";
this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lblSN

@ -37,50 +37,92 @@ namespace Rs.MotionPlat
if (lblStatus.Text != tf.Status.ToString())
{
lblStatus.Text = tf.Status.ToString();
}
if (tf.Status== ETestFixtureStatus.Testing)
{
if(lblFixtureName.BackColor != Color.Blue)
{
lblFixtureName.BackColor = Color.Blue;
}
if (tf.Product!=null && lblSN.Text != tf.Product.SN)
switch (tf.Status)
{
lblSN.Text = tf.Product.SN;
case ETestFixtureStatus.NoConnect:
btnReset.Enabled = false;
lblStatus.BackColor = Color.Gray;
break;
case ETestFixtureStatus.IDLE:
btnReset.Enabled = true;
lblStatus.BackColor = Color.Green;
if (tf.Product != null)
{
if (tf.Product.Result == "true" && lblFixtureName.BackColor != Color.Green)
{
lblResult.BackColor = Color.Green;
}
if (tf.Product.Result == "false" && lblFixtureName.BackColor != Color.Red)
{
lblResult.BackColor = Color.Red;
}
if (tf.Product != null && tf.Product.Result != null && lblResult.Text != tf.Product.Result)
{
lblResult.Text = tf.Product.Result.ToString();
}
}
else
{
lblSN.Text = "";
lblFixtureName.BackColor = Color.FromArgb(56, 56, 56);
}
break;
case ETestFixtureStatus.Testing:
if (tf.Product != null && lblSN.Text != tf.Product.SN)
{
lblSN.Text = tf.Product.SN;
}
lblStatus.BackColor = Color.Blue;
break;
case ETestFixtureStatus.Warning:
lblStatus.BackColor = Color.Red;
btnReset.Enabled = true;
break;
case ETestFixtureStatus.Homing:
btnReset.Enabled = false;
lblStatus.BackColor = Color.Yellow;
break;
}
}
else if(tf.Status== ETestFixtureStatus.IDLE)
{
if (tf.Product != null)
{
if (tf.Product.Result == "true" && lblFixtureName.BackColor != Color.Green)
{
lblFixtureName.BackColor = Color.Green;
}
if (tf.Product.Result == "false" && lblFixtureName.BackColor != Color.Red)
{
lblFixtureName.BackColor = Color.Red;
}
if (tf.Product!=null && tf.Product.Result!=null && lblResult.Text != tf.Product.Result)
{
lblResult.Text = tf.Product.Result.ToString();
}
}
else
{
lblSN.Text = "";
lblFixtureName.BackColor = Color.FromArgb(56, 56, 56);
}
}
else if(tf.Status== ETestFixtureStatus.Homing)
{
if(btnReset.Enabled!=false)
{
btnReset.Enabled = false;
}
}
//if (tf.Status== ETestFixtureStatus.Testing)
//{
// if (tf.Product!=null && lblSN.Text != tf.Product.SN)
// {
// lblSN.Text = tf.Product.SN;
// }
//}
//else if(tf.Status== ETestFixtureStatus.IDLE)
//{
// if (tf.Product != null)
// {
// if (tf.Product.Result == "true" && lblFixtureName.BackColor != Color.Green)
// {
// lblFixtureName.BackColor = Color.Green;
// }
// if (tf.Product.Result == "false" && lblFixtureName.BackColor != Color.Red)
// {
// lblFixtureName.BackColor = Color.Red;
// }
// if (tf.Product!=null && tf.Product.Result!=null && lblResult.Text != tf.Product.Result)
// {
// lblResult.Text = tf.Product.Result.ToString();
// }
// }
// else
// {
// lblSN.Text = "";
// lblFixtureName.BackColor = Color.FromArgb(56, 56, 56);
// }
//}
//else if(tf.Status== ETestFixtureStatus.Homing)
//{
// if(btnReset.Enabled!=false)
// {
// btnReset.Enabled = false;
// }
//}
if(lblName.Text!=tf.MachineID)
{
lblName.Text = tf.MachineID;
@ -116,89 +158,6 @@ namespace Rs.MotionPlat
}
}
//public void BindEntity(TestFixture tf)
//{
// this.lblIndex.Text = tf.Index.ToString();
// tf.OnProChange += Tf_OnProChange;
// //this.lblStatus.DataBindings.Add("Text", tf, "Status");
// lblPassCount.DataBindings.Add("Text", tf, "PassCount");
// lblTotalCount.DataBindings.Add("Text", tf, "TotalCount");
// //lblIndex.DataBindings.Add("Text",tf, "Index");
// //lblYield.DataBindings.Add("Text", tf, "Yield");
// //lblResult.DataBindings.Add("Text", tf, "Result");
// lblName.DataBindings.Add("Text", tf, "MachineID");
// //lblEnable.DataBindings.Add("Text", tf, "Enable");
// //lblLastCT.DataBindings.Add("Text", tf, "LastCT");
// lblLotName.Text = GlobalVar.LotName;
//}
//private void Tf_OnProChange(string arg1, object arg2)
//{
// this.Invoke(new Action(() => {
// switch (arg1)
// {
// case "Enable":
// if (arg2.ToString() == "False")
// {
// this.lblFixtureName.Enabled = false;
// }
// else
// {
// this.lblFixtureName.Enabled = true;
// }
// this.lblEnable.Text = arg2.ToString();
// break;
// case "Status":
// if (arg2.ToString() == "Testing")
// {
// lblFixtureName.BackColor = Color.Blue;
// }
// else if(arg2.ToString()=="Homing")
// {
// btnReset.Enabled = false;
// }
// else
// {
// btnReset.Enabled = true;
// }
// this.lblStatus.Text = arg2.ToString();
// break;
// case "Yield":
// this.lblYield.Text = $"{(double.Parse(arg2.ToString()) * 100).ToString("0.00")}%";
// break;
// case "Product":
// if (arg2 != null)
// {
// lblSN.Text = ((TestProduct)arg2).SN;
// }
// else
// {
// lblSN.Text = "";
// lblFixtureName.BackColor = Color.FromArgb(56, 56, 56);
// }
// break;
// case "Result":
// if (arg2.ToString() == "true")
// {
// lblFixtureName.BackColor = Color.Green ;
// }
// else
// {
// lblFixtureName.BackColor = Color.Red;
// }
// lblResult.Text = arg2.ToString();
// break;
// case "LastCT":
// this.lblLastCT.Text = double.Parse(arg2.ToString()).ToString("0.000");
// break;
// default:
// break;
// }
// }));
//}
private void btnReset_Click(object sender, EventArgs e)
{
TestFixtureManager.Instance.GetTestFixture(int.Parse(this.lblIndex.Text)).Home();

@ -91,7 +91,12 @@ namespace Rs.MotionPlat.Entitys
public void Clear()
{
this.Product = null;
this.PassCount= 0;
}
public void ClearData()
{
this.PassCount = 0;
this.TotalCount = 0;
}

@ -587,16 +587,24 @@ namespace Rs.MotionPlat
private void cboxTestMode_SelectedIndexChanged(object sender, EventArgs e)
{
SysConfigParam.Update("TestMode", cboxTestMode.SelectedItem.ToString());
if(cboxTestMode.SelectedItem!=null && cboxTestMode.SelectedItem.ToString()=="GRR")
{
GlobalTray.GrrTray.ChangeStatus(ESlotStatus.NotHave);
for (int i=0;i<GlobalVar.GrrProductNum;i++)
{
GlobalTray.GrrTray.ChangeStatus(i+1,ESlotStatus.Have);
}
}
}
private void btnClearData_Click(object sender, EventArgs e)
{
TestFixtureManager.Instance.GetTestFixture(1).Clear();
TestFixtureManager.Instance.GetTestFixture(2).Clear();
TestFixtureManager.Instance.GetTestFixture(3).Clear();
TestFixtureManager.Instance.GetTestFixture(4).Clear();
TestFixtureManager.Instance.GetTestFixture(5).Clear();
TestFixtureManager.Instance.GetTestFixture(6).Clear();
TestFixtureManager.Instance.GetTestFixture(1).ClearData();
TestFixtureManager.Instance.GetTestFixture(2).ClearData();
TestFixtureManager.Instance.GetTestFixture(3).ClearData();
TestFixtureManager.Instance.GetTestFixture(4).ClearData();
TestFixtureManager.Instance.GetTestFixture(5).ClearData();
TestFixtureManager.Instance.GetTestFixture(6).ClearData();
}
private void btnLight_Click(object sender, EventArgs e)
@ -616,5 +624,13 @@ namespace Rs.MotionPlat
SelectProductFrm selectPro = new SelectProductFrm();
selectPro.ShowDialog();
}
private void btnNozzleStatus_Click(object sender, EventArgs e)
{
NozzleStatusFrm nozzleFrm = new NozzleStatusFrm();
nozzleFrm.TopMost = true;
nozzleFrm.ShowInTaskbar = false;
nozzleFrm.Show();
}
}
}

@ -78,6 +78,7 @@ namespace Rs.MotionPlat
this.panel13 = new System.Windows.Forms.Panel();
this.btnLight = new System.Windows.Forms.Button();
this.panel14 = new System.Windows.Forms.Panel();
this.btnSelectProduct = new System.Windows.Forms.Button();
this.panel15 = new System.Windows.Forms.Panel();
this.cboxTestMode = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
@ -150,7 +151,10 @@ namespace Rs.MotionPlat
this.timertc4 = new System.Windows.Forms.Timer(this.components);
this.timertc5 = new System.Windows.Forms.Timer(this.components);
this.timertc6 = new System.Windows.Forms.Timer(this.components);
this.btnSelectProduct = new System.Windows.Forms.Button();
this.panel22 = new System.Windows.Forms.Panel();
this.panel23 = new System.Windows.Forms.Panel();
this.panel24 = new System.Windows.Forms.Panel();
this.btnNozzleStatus = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.tableLayoutPanel3.SuspendLayout();
this.panel3.SuspendLayout();
@ -191,6 +195,7 @@ namespace Rs.MotionPlat
this.tabPage2.SuspendLayout();
this.tableLayoutPanel5.SuspendLayout();
this.tableLayoutPanel4.SuspendLayout();
this.panel22.SuspendLayout();
this.SuspendLayout();
//
// timer1
@ -624,6 +629,9 @@ namespace Rs.MotionPlat
this.tableLayoutPanel7.Controls.Add(this.panel15, 1, 2);
this.tableLayoutPanel7.Controls.Add(this.label4, 0, 1);
this.tableLayoutPanel7.Controls.Add(this.label5, 0, 2);
this.tableLayoutPanel7.Controls.Add(this.panel22, 0, 3);
this.tableLayoutPanel7.Controls.Add(this.panel23, 0, 4);
this.tableLayoutPanel7.Controls.Add(this.panel24, 0, 5);
this.tableLayoutPanel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel7.Location = new System.Drawing.Point(3, 17);
this.tableLayoutPanel7.Name = "tableLayoutPanel7";
@ -792,6 +800,19 @@ namespace Rs.MotionPlat
this.panel14.Size = new System.Drawing.Size(119, 36);
this.panel14.TabIndex = 3;
//
// btnSelectProduct
//
this.btnSelectProduct.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.btnSelectProduct.FlatAppearance.BorderSize = 0;
this.btnSelectProduct.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSelectProduct.Location = new System.Drawing.Point(16, 3);
this.btnSelectProduct.Name = "btnSelectProduct";
this.btnSelectProduct.Size = new System.Drawing.Size(88, 32);
this.btnSelectProduct.TabIndex = 0;
this.btnSelectProduct.Text = "挑料";
this.btnSelectProduct.UseVisualStyleBackColor = false;
this.btnSelectProduct.Click += new System.EventHandler(this.btnSelectProduct_Click);
//
// panel15
//
this.panel15.Controls.Add(this.cboxTestMode);
@ -1719,18 +1740,43 @@ namespace Rs.MotionPlat
this.timertc6.Interval = 500;
this.timertc6.Tick += new System.EventHandler(this.timertc6_Tick);
//
// btnSelectProduct
// panel22
//
this.btnSelectProduct.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.btnSelectProduct.FlatAppearance.BorderSize = 0;
this.btnSelectProduct.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSelectProduct.Location = new System.Drawing.Point(16, 3);
this.btnSelectProduct.Name = "btnSelectProduct";
this.btnSelectProduct.Size = new System.Drawing.Size(88, 32);
this.btnSelectProduct.TabIndex = 0;
this.btnSelectProduct.Text = "挑料";
this.btnSelectProduct.UseVisualStyleBackColor = false;
this.btnSelectProduct.Click += new System.EventHandler(this.btnSelectProduct_Click);
this.panel22.Controls.Add(this.btnNozzleStatus);
this.panel22.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel22.Location = new System.Drawing.Point(4, 133);
this.panel22.Name = "panel22";
this.panel22.Size = new System.Drawing.Size(77, 36);
this.panel22.TabIndex = 7;
//
// panel23
//
this.panel23.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel23.Location = new System.Drawing.Point(4, 176);
this.panel23.Name = "panel23";
this.panel23.Size = new System.Drawing.Size(77, 36);
this.panel23.TabIndex = 7;
//
// panel24
//
this.panel24.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel24.Location = new System.Drawing.Point(4, 219);
this.panel24.Name = "panel24";
this.panel24.Size = new System.Drawing.Size(77, 36);
this.panel24.TabIndex = 7;
//
// btnNozzleStatus
//
this.btnNozzleStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.btnNozzleStatus.FlatAppearance.BorderSize = 0;
this.btnNozzleStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnNozzleStatus.Location = new System.Drawing.Point(10, 4);
this.btnNozzleStatus.Name = "btnNozzleStatus";
this.btnNozzleStatus.Size = new System.Drawing.Size(56, 32);
this.btnNozzleStatus.TabIndex = 0;
this.btnNozzleStatus.Text = "Nozzle";
this.btnNozzleStatus.UseVisualStyleBackColor = false;
this.btnNozzleStatus.Click += new System.EventHandler(this.btnNozzleStatus_Click);
//
// FormMain
//
@ -1786,6 +1832,7 @@ namespace Rs.MotionPlat
this.tabPage2.ResumeLayout(false);
this.tableLayoutPanel5.ResumeLayout(false);
this.tableLayoutPanel4.ResumeLayout(false);
this.panel22.ResumeLayout(false);
this.ResumeLayout(false);
}
@ -1909,5 +1956,9 @@ namespace Rs.MotionPlat
private System.Windows.Forms.Button btnClearData;
private System.Windows.Forms.Button btnLight;
private System.Windows.Forms.Button btnSelectProduct;
private System.Windows.Forms.Panel panel22;
private System.Windows.Forms.Button btnNozzleStatus;
private System.Windows.Forms.Panel panel23;
private System.Windows.Forms.Panel panel24;
}
}

@ -340,6 +340,13 @@ namespace Rs.MotionPlat
selectPro.Show();
});
new HotKeyManager(Keys.N, 1, (o, arg) => {
NozzleStatusFrm nozzleFrm = new NozzleStatusFrm();
nozzleFrm.TopMost = true;
nozzleFrm.ShowInTaskbar = false;
nozzleFrm.Show();
});
new HotKeyManager(Keys.V, 1, (o, arg) => {
LocationData ld = new LocationData();
ld.StartPosition= FormStartPosition.CenterScreen;

@ -0,0 +1,110 @@
namespace Rs.MotionPlat
{
partial class NozzleStatusFrm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.NozzleIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Status = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SN = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// timer1
//
this.timer1.Interval = 500;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.NozzleIndex,
this.Status,
this.SN});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 40);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(541, 182);
this.dataGridView1.TabIndex = 3;
//
// NozzleIndex
//
this.NozzleIndex.DataPropertyName = "Index";
this.NozzleIndex.FillWeight = 15F;
this.NozzleIndex.HeaderText = "NozzleIndex";
this.NozzleIndex.Name = "NozzleIndex";
//
// Status
//
this.Status.DataPropertyName = "Status";
this.Status.FillWeight = 25F;
this.Status.HeaderText = "Status";
this.Status.Name = "Status";
//
// SN
//
this.SN.DataPropertyName = "SN";
this.SN.FillWeight = 60F;
this.SN.HeaderText = "SN";
this.SN.Name = "SN";
//
// NozzleStatusFrm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(541, 222);
this.Controls.Add(this.dataGridView1);
this.HeadText = "NozzleStatus";
this.Name = "NozzleStatusFrm";
this.ShowMax = false;
this.ShowMin = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "NozzleStatusFrm";
this.Load += new System.EventHandler(this.NozzleStatusFrm_Load);
this.Controls.SetChildIndex(this.dataGridView1, 0);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn NozzleIndex;
private System.Windows.Forms.DataGridViewTextBoxColumn Status;
private System.Windows.Forms.DataGridViewTextBoxColumn SN;
}
}

@ -0,0 +1,44 @@
using Rs.MotionPlat.Commom;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Rs.MotionPlat
{
public partial class NozzleStatusFrm : BaseFormHeader
{
public NozzleStatusFrm()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
List<Nozzle> nozzles = NozzleManager.GetAllNozzles();
this.dataGridView1.Rows.Clear();
foreach (Nozzle item in nozzles)
{
int rowIndex = this.dataGridView1.Rows.Add();
this.dataGridView1.Rows[rowIndex].Cells[0].Value = item.NozzleIndex;
this.dataGridView1.Rows[rowIndex].Cells[1].Value = item.Status;
if(item.Product!=null)
{
this.dataGridView1.Rows[rowIndex].Cells[2].Value = item.Product.SN;
}
}
}
private void NozzleStatusFrm_Load(object sender, EventArgs e)
{
this.dataGridView1.AutoGenerateColumns = false;
this.timer1.Enabled = true;
}
}
}

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="NozzleIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Status.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

@ -187,6 +187,12 @@
</Compile>
<Compile Include="Module\StockModule.cs" />
<Compile Include="Module\TakeTrayModule.cs" />
<Compile Include="NozzleStatusFrm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="NozzleStatusFrm.Designer.cs">
<DependentUpon>NozzleStatusFrm.cs</DependentUpon>
</Compile>
<Compile Include="SysConfig\FixtureConfig.cs">
<SubType>Form</SubType>
</Compile>
@ -501,6 +507,9 @@
<EmbeddedResource Include="MoveDebug.resx">
<DependentUpon>MoveDebug.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="NozzleStatusFrm.resx">
<DependentUpon>NozzleStatusFrm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OldTest.resx">
<DependentUpon>OldTest.cs</DependentUpon>
</EmbeddedResource>

@ -37,7 +37,6 @@
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.SlotIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Qrcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnStop = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
@ -78,7 +77,6 @@
//
// panel1
//
this.panel1.Controls.Add(this.btnStop);
this.panel1.Controls.Add(this.btnSelect);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(3, 107);
@ -129,16 +127,6 @@
this.Qrcode.HeaderText = "Qrcode";
this.Qrcode.Name = "Qrcode";
//
// btnStop
//
this.btnStop.ForeColor = System.Drawing.Color.Black;
this.btnStop.Location = new System.Drawing.Point(371, 6);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(124, 39);
this.btnStop.TabIndex = 0;
this.btnStop.Text = "暂停";
this.btnStop.UseVisualStyleBackColor = true;
//
// SelectProductFrm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -175,6 +163,5 @@
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn SlotIndex;
private System.Windows.Forms.DataGridViewTextBoxColumn Qrcode;
private System.Windows.Forms.Button btnStop;
}
}

@ -34,6 +34,7 @@ namespace Rs.MotionPlat.SysConfig
/// </summary>
void SelectProduct()
{
this.dataGridView1.Rows.Clear();
Task.Run(() => {
string fileName = string.Empty;
string selectDir = $"d:\\Select\\{DateTime.Now.ToString("yyyyMMdd")}";
@ -90,13 +91,17 @@ namespace Rs.MotionPlat.SysConfig
}
else if (fixtureret.Result == EOneGrabSixteenResult.LocationOkScanBarcodeFail)
{
logInfo = $"{i + 1},NG\r\n";
Invoke(new Action(() => {
dataGridView1.Rows.Add(i + 1, "NG");
}));
EButtonType buttonSelect = Msgbox.ShowDialog(EButtonType.Retry | EButtonType.Skip, $"穴位{i + 1}扫码失败");
if (buttonSelect == EButtonType.Skip)
{
logInfo = $"{i + 1},NG\r\n";
Invoke(new Action(() => {
dataGridView1.Rows.Add(i + 1, "NG");
}));
File.AppendAllText(Path.Combine(selectDir, fileName), logInfo);
exit = true;
File.AppendAllText(Path.Combine(selectDir, fileName), logInfo);
exit = true;
}
}
else if (fixtureret.Result == EOneGrabSixteenResult.Slant)
{

@ -123,10 +123,4 @@
<metadata name="Qrcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SlotIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Qrcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
Loading…
Cancel
Save