ruoxing.wang
2 months ago
50 changed files with 6343 additions and 969 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,191 @@ |
|||
|
|||
namespace InjectionPC |
|||
{ |
|||
partial class FrmPackageDetail |
|||
{ |
|||
/// <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() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.txtPackageCode = new System.Windows.Forms.TextBox(); |
|||
this.btnSearch = new System.Windows.Forms.Button(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.箱单号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.条码 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.注塑码 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.零件号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.时间 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.tableLayoutPanel1.SuspendLayout(); |
|||
this.panel1.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// tableLayoutPanel1
|
|||
//
|
|||
this.tableLayoutPanel1.ColumnCount = 1; |
|||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|||
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0); |
|||
this.tableLayoutPanel1.Controls.Add(this.dataGridView1, 0, 1); |
|||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; |
|||
this.tableLayoutPanel1.RowCount = 3; |
|||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F)); |
|||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F)); |
|||
this.tableLayoutPanel1.Size = new System.Drawing.Size(1785, 967); |
|||
this.tableLayoutPanel1.TabIndex = 0; |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.Controls.Add(this.txtPackageCode); |
|||
this.panel1.Controls.Add(this.btnSearch); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel1.Location = new System.Drawing.Point(3, 3); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(1779, 54); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// txtPackageCode
|
|||
//
|
|||
this.txtPackageCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.txtPackageCode.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.txtPackageCode.Location = new System.Drawing.Point(1115, 5); |
|||
this.txtPackageCode.Name = "txtPackageCode"; |
|||
this.txtPackageCode.Size = new System.Drawing.Size(483, 44); |
|||
this.txtPackageCode.TabIndex = 1; |
|||
//
|
|||
// btnSearch
|
|||
//
|
|||
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|||
this.btnSearch.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.btnSearch.Location = new System.Drawing.Point(1627, 0); |
|||
this.btnSearch.Name = "btnSearch"; |
|||
this.btnSearch.Size = new System.Drawing.Size(153, 51); |
|||
this.btnSearch.TabIndex = 0; |
|||
this.btnSearch.Text = "查 询"; |
|||
this.btnSearch.UseVisualStyleBackColor = true; |
|||
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.箱单号, |
|||
this.条码, |
|||
this.注塑码, |
|||
this.零件号, |
|||
this.时间}); |
|||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.dataGridView1.Location = new System.Drawing.Point(3, 63); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.RowHeadersWidth = 82; |
|||
this.dataGridView1.RowTemplate.Height = 37; |
|||
this.dataGridView1.Size = new System.Drawing.Size(1779, 841); |
|||
this.dataGridView1.TabIndex = 1; |
|||
//
|
|||
// 箱单号
|
|||
//
|
|||
this.箱单号.DataPropertyName = "BoxNo"; |
|||
this.箱单号.HeaderText = "箱单号"; |
|||
this.箱单号.MinimumWidth = 10; |
|||
this.箱单号.Name = "箱单号"; |
|||
this.箱单号.Width = 300; |
|||
//
|
|||
// 条码
|
|||
//
|
|||
this.条码.DataPropertyName = "BarCode"; |
|||
this.条码.HeaderText = "条码"; |
|||
this.条码.MinimumWidth = 10; |
|||
this.条码.Name = "条码"; |
|||
this.条码.Width = 300; |
|||
//
|
|||
// 注塑码
|
|||
//
|
|||
this.注塑码.DataPropertyName = "OneBarCode"; |
|||
this.注塑码.HeaderText = "注塑码"; |
|||
this.注塑码.MinimumWidth = 10; |
|||
this.注塑码.Name = "注塑码"; |
|||
this.注塑码.Width = 200; |
|||
//
|
|||
// 零件号
|
|||
//
|
|||
this.零件号.DataPropertyName = "PartNo"; |
|||
this.零件号.HeaderText = "零件号"; |
|||
this.零件号.MinimumWidth = 10; |
|||
this.零件号.Name = "零件号"; |
|||
this.零件号.Width = 200; |
|||
//
|
|||
// 时间
|
|||
//
|
|||
this.时间.DataPropertyName = "CreateTime"; |
|||
this.时间.HeaderText = "时间"; |
|||
this.时间.MinimumWidth = 10; |
|||
this.时间.Name = "时间"; |
|||
this.时间.Width = 200; |
|||
//
|
|||
// FrmPackageDetail
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(1785, 967); |
|||
this.Controls.Add(this.tableLayoutPanel1); |
|||
this.Name = "FrmPackageDetail"; |
|||
this.Text = "箱单详细信息"; |
|||
this.tableLayoutPanel1.ResumeLayout(false); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private System.Windows.Forms.TextBox txtPackageCode; |
|||
private System.Windows.Forms.Button btnSearch; |
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 箱单号; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 条码; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 注塑码; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 零件号; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 时间; |
|||
} |
|||
} |
@ -0,0 +1,37 @@ |
|||
using MESClassLibrary.BLL.BasicInfo; |
|||
using MESClassLibrary.BLL.Inspection; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Drawing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace InjectionPC |
|||
{ |
|||
public partial class FrmPackageDetail : Form |
|||
{ |
|||
private BarCodeBLL _barCodeBLL = new BarCodeBLL(); |
|||
private InjectionBoxBLL _injectionBoxBLL = new InjectionBoxBLL(); |
|||
private string _packageCode = string.Empty; |
|||
|
|||
public FrmPackageDetail(string pPackageCode) |
|||
{ |
|||
InitializeComponent(); |
|||
this._packageCode = pPackageCode; |
|||
txtPackageCode.Text = pPackageCode; |
|||
dataGridView1.AutoGenerateColumns = false; |
|||
btnSearch_Click(null, null); |
|||
} |
|||
|
|||
private void btnSearch_Click(object sender, EventArgs e) |
|||
{ |
|||
string boxCode = txtPackageCode.Text?.Trim(); |
|||
DataTable dt = _barCodeBLL.SearchBarCode(boxCode, Program.tableName, "200"); |
|||
|
|||
dataGridView1.DataSource = dt; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,135 @@ |
|||
<?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="箱单号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="条码.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="注塑码.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="零件号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="时间.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
</root> |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,153 @@ |
|||
|
|||
namespace InjectionSearch |
|||
{ |
|||
partial class FrmBarCodeReplace |
|||
{ |
|||
/// <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.label1 = new System.Windows.Forms.Label(); |
|||
this.lbBoxCode = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.lbOldCode = new System.Windows.Forms.Label(); |
|||
this.txtNewCode = new System.Windows.Forms.TextBox(); |
|||
this.btnOK = new System.Windows.Forms.Button(); |
|||
this.btnClose = new System.Windows.Forms.Button(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("宋体", 16.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label1.Location = new System.Drawing.Point(215, 127); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(127, 43); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "箱码:"; |
|||
//
|
|||
// lbBoxCode
|
|||
//
|
|||
this.lbBoxCode.AutoSize = true; |
|||
this.lbBoxCode.Font = new System.Drawing.Font("宋体", 16.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.lbBoxCode.Location = new System.Drawing.Point(360, 127); |
|||
this.lbBoxCode.Name = "lbBoxCode"; |
|||
this.lbBoxCode.Size = new System.Drawing.Size(63, 43); |
|||
this.lbBoxCode.TabIndex = 1; |
|||
this.lbBoxCode.Text = " "; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("宋体", 16.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label2.Location = new System.Drawing.Point(129, 235); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(213, 43); |
|||
this.label2.TabIndex = 2; |
|||
this.label2.Text = "不良条码:"; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.Font = new System.Drawing.Font("宋体", 16.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label3.Location = new System.Drawing.Point(172, 370); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(170, 43); |
|||
this.label3.TabIndex = 3; |
|||
this.label3.Text = "新条码:"; |
|||
//
|
|||
// lbOldCode
|
|||
//
|
|||
this.lbOldCode.AutoSize = true; |
|||
this.lbOldCode.Font = new System.Drawing.Font("宋体", 16.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.lbOldCode.Location = new System.Drawing.Point(360, 235); |
|||
this.lbOldCode.Name = "lbOldCode"; |
|||
this.lbOldCode.Size = new System.Drawing.Size(63, 43); |
|||
this.lbOldCode.TabIndex = 4; |
|||
this.lbOldCode.Text = " "; |
|||
//
|
|||
// txtNewCode
|
|||
//
|
|||
this.txtNewCode.Font = new System.Drawing.Font("宋体", 16.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.txtNewCode.Location = new System.Drawing.Point(368, 367); |
|||
this.txtNewCode.Name = "txtNewCode"; |
|||
this.txtNewCode.Size = new System.Drawing.Size(682, 57); |
|||
this.txtNewCode.TabIndex = 5; |
|||
//
|
|||
// btnOK
|
|||
//
|
|||
this.btnOK.Font = new System.Drawing.Font("宋体", 16.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.btnOK.Location = new System.Drawing.Point(273, 618); |
|||
this.btnOK.Name = "btnOK"; |
|||
this.btnOK.Size = new System.Drawing.Size(211, 109); |
|||
this.btnOK.TabIndex = 6; |
|||
this.btnOK.Text = "替换"; |
|||
this.btnOK.UseVisualStyleBackColor = true; |
|||
this.btnOK.Click += new System.EventHandler(this.btnOK_Click); |
|||
//
|
|||
// btnClose
|
|||
//
|
|||
this.btnClose.Font = new System.Drawing.Font("宋体", 16.125F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.btnClose.Location = new System.Drawing.Point(809, 618); |
|||
this.btnClose.Name = "btnClose"; |
|||
this.btnClose.Size = new System.Drawing.Size(211, 109); |
|||
this.btnClose.TabIndex = 7; |
|||
this.btnClose.Text = "取消"; |
|||
this.btnClose.UseVisualStyleBackColor = true; |
|||
this.btnClose.Click += new System.EventHandler(this.btnClose_Click); |
|||
//
|
|||
// FrmBarCodeReplace
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(1418, 859); |
|||
this.Controls.Add(this.btnClose); |
|||
this.Controls.Add(this.btnOK); |
|||
this.Controls.Add(this.txtNewCode); |
|||
this.Controls.Add(this.lbOldCode); |
|||
this.Controls.Add(this.label3); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.lbBoxCode); |
|||
this.Controls.Add(this.label1); |
|||
this.Name = "FrmBarCodeReplace"; |
|||
this.Text = "不良零件替换"; |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label lbBoxCode; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label lbOldCode; |
|||
private System.Windows.Forms.TextBox txtNewCode; |
|||
private System.Windows.Forms.Button btnOK; |
|||
private System.Windows.Forms.Button btnClose; |
|||
} |
|||
} |
@ -0,0 +1,125 @@ |
|||
using MESClassLibrary.BLL.BasicInfo; |
|||
using MESClassLibrary.BLL.Injection; |
|||
using MESClassLibrary.BLL.Inspection; |
|||
using MESClassLibrary.Model; |
|||
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 InjectionSearch |
|||
{ |
|||
public partial class FrmBarCodeReplace : Form |
|||
{ |
|||
private BarCodeBLL _barCodeBLL = new BarCodeBLL(); |
|||
private InjectionBoxBLL _injectionBoxBLL = new InjectionBoxBLL(); |
|||
private BadInjectionBLL _badInjectionBLL = new BadInjectionBLL(); |
|||
private WmsBLL wmsBLL = new WmsBLL(); |
|||
|
|||
public FrmBarCodeReplace(DataRow barCodeRow) |
|||
{ |
|||
InitializeComponent(); |
|||
this.StartPosition = FormStartPosition.CenterParent; |
|||
lbBoxCode.Text = barCodeRow["BoxNo"].ToString(); |
|||
lbOldCode.Text = barCodeRow["OneBarCode"].ToString(); |
|||
} |
|||
|
|||
private void btnOK_Click(object sender, EventArgs e) |
|||
{ |
|||
try |
|||
{ |
|||
string newCode = txtNewCode.Text?.Trim(); |
|||
string oldCode = lbOldCode.Text?.Trim(); |
|||
string boxCode = lbBoxCode.Text?.Trim(); |
|||
if (string.IsNullOrEmpty(newCode)) |
|||
{ |
|||
MessageBox.Show("新条码不能为空."); |
|||
return; |
|||
} |
|||
|
|||
|
|||
DataTable dt = _barCodeBLL.SearchBarCodeByOne(newCode); |
|||
if (dt.Rows.Count == 0) |
|||
{ |
|||
MessageBox.Show($"输入条码{newCode}在系统中不存在."); |
|||
return; |
|||
} |
|||
if (dt.Rows[0]["IsBad"].ToString() == "1") |
|||
{ |
|||
MessageBox.Show($"输入条码{newCode}已报废,无法使用."); |
|||
return; |
|||
} |
|||
if (!string.IsNullOrEmpty(dt.Rows[0]["BoxNo"].ToString())) |
|||
{ |
|||
MessageBox.Show($"输入条码{newCode}已绑定箱码{dt.Rows[0]["BoxNo"].ToString()},无法使用."); |
|||
return; |
|||
} |
|||
|
|||
DataTable oldTable = _barCodeBLL.SearchBarCodeByOne(oldCode); |
|||
if (oldTable.Rows.Count == 0) |
|||
{ |
|||
MessageBox.Show($"原有条码{oldCode}在系统中不存在."); |
|||
return; |
|||
} |
|||
string boxNo = oldTable.Rows[0]["BoxNo"].ToString(); |
|||
if (string.IsNullOrEmpty(boxNo)) |
|||
{ |
|||
MessageBox.Show($"不良条码{oldCode}未绑定箱码,无法替换."); |
|||
return; |
|||
} |
|||
if (oldTable.Rows[0]["PartNo"].ToString()?.ToLower() != dt.Rows[0]["PartNo"].ToString()?.ToLower()) |
|||
{ |
|||
MessageBox.Show($"新零件号{oldTable.Rows[0]["PartNo"].ToString()}与原零件号{dt.Rows[0]["PartNo"].ToString()}不一致,无法替换."); |
|||
return; |
|||
} |
|||
//打印箱码才能替换
|
|||
if( wmsBLL.IsSendPackageCode(boxCode) == false) |
|||
{ |
|||
MessageBox.Show($"箱码{boxCode}尚未报工,无法此处替换."); |
|||
return; |
|||
} |
|||
|
|||
DialogResult result = MessageBox.Show($"确认用条码{newCode}替换原有条码{oldCode},确认将原有条码{oldCode}进行报废处理?", "提示", MessageBoxButtons.OKCancel, |
|||
MessageBoxIcon.Information); |
|||
if (result == DialogResult.Cancel) return; |
|||
|
|||
|
|||
//新条码更新箱码
|
|||
//旧条码清空箱码,IsBad=1
|
|||
//旧条码插入tb_Bad_Injection表报废记录
|
|||
//_barCodeBLL.UpdateBoxNoByID(oldTable.Rows[0]["TableName"].ToString(), boxNo, dt.Rows[0]["ID"].ToString());
|
|||
|
|||
//_barCodeBLL.UpdateBoxNoNull(oldTable.Rows[0]["TableName"].ToString(), oldTable.Rows[0]["ID"].ToString());
|
|||
|
|||
BadInjectionModel model = new BadInjectionModel(); |
|||
model.ID = Guid.NewGuid().ToString(); |
|||
model.OneBarCode = oldTable.Rows[0]["OneBarCode"].ToString(); |
|||
model.BarCode = oldTable.Rows[0]["BarCode"].ToString(); |
|||
model.StationID = oldTable.Rows[0]["StationID"].ToString(); |
|||
model.BadPosition = ""; |
|||
model.BadReason = "不良替换自动报废"; |
|||
model.PlanID = oldTable.Rows[0]["PlanID"].ToString(); |
|||
//_badInjectionBLL.Add_Info(model);
|
|||
_barCodeBLL.BarCodeReplace(oldTable.Rows[0]["TableName"].ToString(), dt.Rows[0]["TableName"].ToString(), boxNo, oldTable.Rows[0]["ID"].ToString(), dt.Rows[0]["ID"].ToString(), dt.Rows[0]["OneBarCode"].ToString(), dt.Rows[0]["BarCode"].ToString(), model); |
|||
|
|||
MessageBox.Show($"替换成功.原条码[{oldCode}]已被报废."); |
|||
this.Close(); |
|||
} |
|||
catch(Exception ex) |
|||
{ |
|||
MessageBox.Show("操作失败,失败原因:" + ex.Message); |
|||
} |
|||
|
|||
} |
|||
|
|||
private void btnClose_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?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> |
|||
</root> |
@ -0,0 +1,662 @@ |
|||
namespace InjectionSearch |
|||
{ |
|||
partial class FrmBarCodeSearch2408 |
|||
{ |
|||
/// <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() |
|||
{ |
|||
GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn(); |
|||
GlacialComponents.Controls.GLColumn glColumn2 = new GlacialComponents.Controls.GLColumn(); |
|||
GlacialComponents.Controls.GLColumn glColumn3 = new GlacialComponents.Controls.GLColumn(); |
|||
GlacialComponents.Controls.GLColumn glColumn4 = new GlacialComponents.Controls.GLColumn(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.comboBox1 = new System.Windows.Forms.ComboBox(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.textBox1 = new System.Windows.Forms.TextBox(); |
|||
this.textBox2 = new System.Windows.Forms.TextBox(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.cboxHandBox = new System.Windows.Forms.CheckBox(); |
|||
this.comboBox2 = new System.Windows.Forms.ComboBox(); |
|||
this.label7 = new System.Windows.Forms.Label(); |
|||
this.label16 = new System.Windows.Forms.Label(); |
|||
this.label5 = new System.Windows.Forms.Label(); |
|||
this.textBox4 = new System.Windows.Forms.TextBox(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.textBox3 = new System.Windows.Forms.TextBox(); |
|||
this.label19 = new System.Windows.Forms.Label(); |
|||
this.label11 = new System.Windows.Forms.Label(); |
|||
this.label10 = new System.Windows.Forms.Label(); |
|||
this.panel3 = new System.Windows.Forms.Panel(); |
|||
this.btnBoxRePrint = new System.Windows.Forms.Button(); |
|||
this.btnPackage = new System.Windows.Forms.Button(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.textBox5 = new System.Windows.Forms.TextBox(); |
|||
this.glacialList1 = new GlacialComponents.Controls.GlacialList(); |
|||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); |
|||
this.groupBox2 = new System.Windows.Forms.GroupBox(); |
|||
this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); |
|||
this.comBoxSizeL = new System.Windows.Forms.ComboBox(); |
|||
this.label38 = new System.Windows.Forms.Label(); |
|||
this.lbPackageCodeL = new System.Windows.Forms.Label(); |
|||
this.pnBoxReprint = new System.Windows.Forms.Panel(); |
|||
this.btnPrintCancel = new System.Windows.Forms.Button(); |
|||
this.btnRePrint = new System.Windows.Forms.Button(); |
|||
this.txtRePrintBoxCode = new System.Windows.Forms.TextBox(); |
|||
this.label24 = new System.Windows.Forms.Label(); |
|||
this.panel1.SuspendLayout(); |
|||
this.panel3.SuspendLayout(); |
|||
this.tableLayoutPanel1.SuspendLayout(); |
|||
this.groupBox2.SuspendLayout(); |
|||
this.tableLayoutPanel4.SuspendLayout(); |
|||
this.pnBoxReprint.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.label1.Location = new System.Drawing.Point(180, 118); |
|||
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(202, 58); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "产品:"; |
|||
//
|
|||
// comboBox1
|
|||
//
|
|||
this.comboBox1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.comboBox1.FormattingEnabled = true; |
|||
this.comboBox1.Location = new System.Drawing.Point(444, 114); |
|||
this.comboBox1.Margin = new System.Windows.Forms.Padding(6); |
|||
this.comboBox1.Name = "comboBox1"; |
|||
this.comboBox1.Size = new System.Drawing.Size(1250, 66); |
|||
this.comboBox1.TabIndex = 1; |
|||
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.label2.Location = new System.Drawing.Point(170, 218); |
|||
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(261, 58); |
|||
this.label2.TabIndex = 2; |
|||
this.label2.Text = "零件号:"; |
|||
//
|
|||
// textBox1
|
|||
//
|
|||
this.textBox1.Enabled = false; |
|||
this.textBox1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.textBox1.Location = new System.Drawing.Point(444, 202); |
|||
this.textBox1.Margin = new System.Windows.Forms.Padding(6); |
|||
this.textBox1.Name = "textBox1"; |
|||
this.textBox1.Size = new System.Drawing.Size(474, 74); |
|||
this.textBox1.TabIndex = 3; |
|||
//
|
|||
// textBox2
|
|||
//
|
|||
this.textBox2.Enabled = false; |
|||
this.textBox2.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.textBox2.Location = new System.Drawing.Point(444, 304); |
|||
this.textBox2.Margin = new System.Windows.Forms.Padding(6); |
|||
this.textBox2.Name = "textBox2"; |
|||
this.textBox2.Size = new System.Drawing.Size(1250, 74); |
|||
this.textBox2.TabIndex = 4; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.label3.Location = new System.Drawing.Point(180, 326); |
|||
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(202, 58); |
|||
this.label3.TabIndex = 5; |
|||
this.label3.Text = "原料:"; |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BackColor = System.Drawing.Color.Aquamarine; |
|||
this.panel1.Controls.Add(this.cboxHandBox); |
|||
this.panel1.Controls.Add(this.comboBox2); |
|||
this.panel1.Controls.Add(this.label7); |
|||
this.panel1.Controls.Add(this.label16); |
|||
this.panel1.Controls.Add(this.label5); |
|||
this.panel1.Controls.Add(this.textBox4); |
|||
this.panel1.Controls.Add(this.label4); |
|||
this.panel1.Controls.Add(this.textBox3); |
|||
this.panel1.Controls.Add(this.label1); |
|||
this.panel1.Controls.Add(this.label3); |
|||
this.panel1.Controls.Add(this.comboBox1); |
|||
this.panel1.Controls.Add(this.textBox2); |
|||
this.panel1.Controls.Add(this.label2); |
|||
this.panel1.Controls.Add(this.textBox1); |
|||
this.panel1.Location = new System.Drawing.Point(370, 1082); |
|||
this.panel1.Margin = new System.Windows.Forms.Padding(6); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(2008, 634); |
|||
this.panel1.TabIndex = 6; |
|||
//
|
|||
// cboxHandBox
|
|||
//
|
|||
this.cboxHandBox.AutoSize = true; |
|||
this.cboxHandBox.Checked = true; |
|||
this.cboxHandBox.CheckState = System.Windows.Forms.CheckState.Checked; |
|||
this.cboxHandBox.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.cboxHandBox.Location = new System.Drawing.Point(1394, 32); |
|||
this.cboxHandBox.Margin = new System.Windows.Forms.Padding(4); |
|||
this.cboxHandBox.Name = "cboxHandBox"; |
|||
this.cboxHandBox.Size = new System.Drawing.Size(293, 62); |
|||
this.cboxHandBox.TabIndex = 15; |
|||
this.cboxHandBox.Tag = "true"; |
|||
this.cboxHandBox.Text = "打印箱码"; |
|||
this.cboxHandBox.UseVisualStyleBackColor = true; |
|||
//
|
|||
// comboBox2
|
|||
//
|
|||
this.comboBox2.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.comboBox2.FormattingEnabled = true; |
|||
this.comboBox2.Location = new System.Drawing.Point(444, 16); |
|||
this.comboBox2.Margin = new System.Windows.Forms.Padding(6); |
|||
this.comboBox2.Name = "comboBox2"; |
|||
this.comboBox2.Size = new System.Drawing.Size(408, 66); |
|||
this.comboBox2.TabIndex = 12; |
|||
//
|
|||
// label7
|
|||
//
|
|||
this.label7.AutoSize = true; |
|||
this.label7.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.label7.Location = new System.Drawing.Point(180, 32); |
|||
this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label7.Name = "label7"; |
|||
this.label7.Size = new System.Drawing.Size(202, 58); |
|||
this.label7.TabIndex = 11; |
|||
this.label7.Text = "机台:"; |
|||
//
|
|||
// label16
|
|||
//
|
|||
this.label16.AutoSize = true; |
|||
this.label16.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label16.Location = new System.Drawing.Point(980, 420); |
|||
this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label16.Name = "label16"; |
|||
this.label16.Size = new System.Drawing.Size(265, 58); |
|||
this.label16.TabIndex = 10; |
|||
this.label16.Text = "(yyMMdd)"; |
|||
//
|
|||
// label5
|
|||
//
|
|||
this.label5.AutoSize = true; |
|||
this.label5.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.label5.Location = new System.Drawing.Point(172, 518); |
|||
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label5.Name = "label5"; |
|||
this.label5.Size = new System.Drawing.Size(202, 58); |
|||
this.label5.TabIndex = 8; |
|||
this.label5.Text = "数量:"; |
|||
//
|
|||
// textBox4
|
|||
//
|
|||
this.textBox4.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.textBox4.Location = new System.Drawing.Point(444, 518); |
|||
this.textBox4.Margin = new System.Windows.Forms.Padding(6); |
|||
this.textBox4.Name = "textBox4"; |
|||
this.textBox4.Size = new System.Drawing.Size(474, 74); |
|||
this.textBox4.TabIndex = 9; |
|||
this.textBox4.Text = "10"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.label4.Location = new System.Drawing.Point(160, 438); |
|||
this.label4.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(261, 58); |
|||
this.label4.TabIndex = 6; |
|||
this.label4.Text = "批次号:"; |
|||
//
|
|||
// textBox3
|
|||
//
|
|||
this.textBox3.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.textBox3.Location = new System.Drawing.Point(444, 414); |
|||
this.textBox3.Margin = new System.Windows.Forms.Padding(6); |
|||
this.textBox3.Name = "textBox3"; |
|||
this.textBox3.Size = new System.Drawing.Size(474, 74); |
|||
this.textBox3.TabIndex = 7; |
|||
//
|
|||
// label19
|
|||
//
|
|||
this.label19.BackColor = System.Drawing.Color.DeepSkyBlue; |
|||
this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.label19.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label19.Location = new System.Drawing.Point(2372, 1082); |
|||
this.label19.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label19.Name = "label19"; |
|||
this.label19.Size = new System.Drawing.Size(144, 632); |
|||
this.label19.TabIndex = 17; |
|||
this.label19.Text = "打印条码"; |
|||
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.label19.Click += new System.EventHandler(this.label19_Click); |
|||
//
|
|||
// label11
|
|||
//
|
|||
this.label11.BackColor = System.Drawing.Color.DeepSkyBlue; |
|||
this.label11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.label11.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label11.Location = new System.Drawing.Point(4, 1082); |
|||
this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label11.Name = "label11"; |
|||
this.label11.Size = new System.Drawing.Size(362, 632); |
|||
this.label11.TabIndex = 18; |
|||
this.label11.Text = "打印信息:"; |
|||
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// label10
|
|||
//
|
|||
this.label10.BackColor = System.Drawing.Color.DeepSkyBlue; |
|||
this.label10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.label10.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label10.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label10.Location = new System.Drawing.Point(6, 0); |
|||
this.label10.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label10.Name = "label10"; |
|||
this.label10.Size = new System.Drawing.Size(350, 596); |
|||
this.label10.TabIndex = 19; |
|||
this.label10.Text = "打印记录:"; |
|||
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// panel3
|
|||
//
|
|||
this.panel3.BackColor = System.Drawing.SystemColors.Control; |
|||
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel3.Controls.Add(this.btnBoxRePrint); |
|||
this.panel3.Controls.Add(this.btnPackage); |
|||
this.panel3.Controls.Add(this.button1); |
|||
this.panel3.Controls.Add(this.label6); |
|||
this.panel3.Controls.Add(this.textBox5); |
|||
this.panel3.Location = new System.Drawing.Point(4, 4); |
|||
this.panel3.Margin = new System.Windows.Forms.Padding(6); |
|||
this.panel3.Name = "panel3"; |
|||
this.panel3.Size = new System.Drawing.Size(2498, 120); |
|||
this.panel3.TabIndex = 22; |
|||
//
|
|||
// btnBoxRePrint
|
|||
//
|
|||
this.btnBoxRePrint.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.btnBoxRePrint.Location = new System.Drawing.Point(332, 6); |
|||
this.btnBoxRePrint.Margin = new System.Windows.Forms.Padding(6); |
|||
this.btnBoxRePrint.Name = "btnBoxRePrint"; |
|||
this.btnBoxRePrint.Size = new System.Drawing.Size(310, 100); |
|||
this.btnBoxRePrint.TabIndex = 8; |
|||
this.btnBoxRePrint.Text = "箱码补打"; |
|||
this.btnBoxRePrint.UseVisualStyleBackColor = true; |
|||
this.btnBoxRePrint.Click += new System.EventHandler(this.btnBoxRePrint_Click); |
|||
//
|
|||
// btnPackage
|
|||
//
|
|||
this.btnPackage.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.btnPackage.Location = new System.Drawing.Point(10, 6); |
|||
this.btnPackage.Margin = new System.Windows.Forms.Padding(6); |
|||
this.btnPackage.Name = "btnPackage"; |
|||
this.btnPackage.Size = new System.Drawing.Size(310, 100); |
|||
this.btnPackage.TabIndex = 7; |
|||
this.btnPackage.Text = "不良替换"; |
|||
this.btnPackage.UseVisualStyleBackColor = true; |
|||
this.btnPackage.Click += new System.EventHandler(this.btnPackage_Click); |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.button1.Location = new System.Drawing.Point(2148, 20); |
|||
this.button1.Margin = new System.Windows.Forms.Padding(6); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(190, 86); |
|||
this.button1.TabIndex = 6; |
|||
this.button1.Text = "查询"; |
|||
this.button1.UseVisualStyleBackColor = true; |
|||
this.button1.Click += new System.EventHandler(this.button1_Click); |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.label6.Location = new System.Drawing.Point(954, 24); |
|||
this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(261, 58); |
|||
this.label6.TabIndex = 4; |
|||
this.label6.Text = "条码号:"; |
|||
//
|
|||
// textBox5
|
|||
//
|
|||
this.textBox5.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.textBox5.Location = new System.Drawing.Point(1252, 18); |
|||
this.textBox5.Margin = new System.Windows.Forms.Padding(6); |
|||
this.textBox5.Name = "textBox5"; |
|||
this.textBox5.Size = new System.Drawing.Size(826, 74); |
|||
this.textBox5.TabIndex = 5; |
|||
//
|
|||
// glacialList1
|
|||
//
|
|||
this.glacialList1.AllowColumnResize = true; |
|||
this.glacialList1.AllowMultiselect = false; |
|||
this.glacialList1.AlternateBackground = System.Drawing.Color.DarkGreen; |
|||
this.glacialList1.AlternatingColors = false; |
|||
this.glacialList1.AutoHeight = true; |
|||
this.glacialList1.BackColor = System.Drawing.SystemColors.ControlLightLight; |
|||
this.glacialList1.BackgroundStretchToFit = true; |
|||
glColumn1.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; |
|||
glColumn1.CheckBoxes = false; |
|||
glColumn1.ImageIndex = -1; |
|||
glColumn1.Name = "Column1"; |
|||
glColumn1.NumericSort = false; |
|||
glColumn1.Text = "条码"; |
|||
glColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
|||
glColumn1.Width = 300; |
|||
glColumn2.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; |
|||
glColumn2.CheckBoxes = false; |
|||
glColumn2.ImageIndex = -1; |
|||
glColumn2.Name = "Column2"; |
|||
glColumn2.NumericSort = false; |
|||
glColumn2.Text = "产品名称"; |
|||
glColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
|||
glColumn2.Width = 450; |
|||
glColumn3.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; |
|||
glColumn3.CheckBoxes = false; |
|||
glColumn3.ImageIndex = -1; |
|||
glColumn3.Name = "Column3"; |
|||
glColumn3.NumericSort = false; |
|||
glColumn3.Text = "打印方式"; |
|||
glColumn3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
|||
glColumn3.Width = 80; |
|||
glColumn4.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; |
|||
glColumn4.CheckBoxes = false; |
|||
glColumn4.ImageIndex = -1; |
|||
glColumn4.Name = "Column4"; |
|||
glColumn4.NumericSort = false; |
|||
glColumn4.Text = "打印时间"; |
|||
glColumn4.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
|||
glColumn4.Width = 220; |
|||
this.glacialList1.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] { |
|||
glColumn1, |
|||
glColumn2, |
|||
glColumn3, |
|||
glColumn4}); |
|||
this.glacialList1.ControlStyle = GlacialComponents.Controls.GLControlStyles.Normal; |
|||
this.glacialList1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.glacialList1.FullRowSelect = true; |
|||
this.glacialList1.GridColor = System.Drawing.Color.DeepSkyBlue; |
|||
this.glacialList1.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth; |
|||
this.glacialList1.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridSolid; |
|||
this.glacialList1.GridTypes = GlacialComponents.Controls.GLGridTypes.gridNormal; |
|||
this.glacialList1.HeaderHeight = 40; |
|||
this.glacialList1.HeaderVisible = true; |
|||
this.glacialList1.HeaderWordWrap = false; |
|||
this.glacialList1.HotColumnTracking = false; |
|||
this.glacialList1.HotItemTracking = false; |
|||
this.glacialList1.HotTrackingColor = System.Drawing.Color.LightGray; |
|||
this.glacialList1.HoverEvents = false; |
|||
this.glacialList1.HoverTime = 1; |
|||
this.glacialList1.ImageList = null; |
|||
this.glacialList1.ItemHeight = 39; |
|||
this.glacialList1.ItemWordWrap = false; |
|||
this.glacialList1.Location = new System.Drawing.Point(370, 130); |
|||
this.glacialList1.Margin = new System.Windows.Forms.Padding(6); |
|||
this.glacialList1.Name = "glacialList1"; |
|||
this.glacialList1.Selectable = true; |
|||
this.glacialList1.SelectedTextColor = System.Drawing.Color.White; |
|||
this.glacialList1.SelectionColor = System.Drawing.Color.Lime; |
|||
this.glacialList1.ShowBorder = true; |
|||
this.glacialList1.ShowFocusRect = false; |
|||
this.glacialList1.Size = new System.Drawing.Size(2148, 946); |
|||
this.glacialList1.SortType = GlacialComponents.Controls.SortTypes.InsertionSort; |
|||
this.glacialList1.SuperFlatHeaderColor = System.Drawing.Color.White; |
|||
this.glacialList1.TabIndex = 23; |
|||
this.glacialList1.Text = "glacialList1"; |
|||
//
|
|||
// tableLayoutPanel1
|
|||
//
|
|||
this.tableLayoutPanel1.ColumnCount = 1; |
|||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|||
this.tableLayoutPanel1.Controls.Add(this.groupBox2, 0, 1); |
|||
this.tableLayoutPanel1.Controls.Add(this.label10, 0, 0); |
|||
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 134); |
|||
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4); |
|||
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; |
|||
this.tableLayoutPanel1.RowCount = 2; |
|||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 63.3705F)); |
|||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 36.6295F)); |
|||
this.tableLayoutPanel1.Size = new System.Drawing.Size(362, 942); |
|||
this.tableLayoutPanel1.TabIndex = 24; |
|||
//
|
|||
// groupBox2
|
|||
//
|
|||
this.groupBox2.BackColor = System.Drawing.Color.Aquamarine; |
|||
this.groupBox2.Controls.Add(this.tableLayoutPanel4); |
|||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.groupBox2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold); |
|||
this.groupBox2.Location = new System.Drawing.Point(4, 600); |
|||
this.groupBox2.Margin = new System.Windows.Forms.Padding(4); |
|||
this.groupBox2.Name = "groupBox2"; |
|||
this.groupBox2.Padding = new System.Windows.Forms.Padding(4); |
|||
this.groupBox2.Size = new System.Drawing.Size(354, 338); |
|||
this.groupBox2.TabIndex = 20; |
|||
this.groupBox2.TabStop = false; |
|||
this.groupBox2.Text = "装箱信息"; |
|||
//
|
|||
// tableLayoutPanel4
|
|||
//
|
|||
this.tableLayoutPanel4.ColumnCount = 2; |
|||
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 40F)); |
|||
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 60F)); |
|||
this.tableLayoutPanel4.Controls.Add(this.comBoxSizeL, 1, 1); |
|||
this.tableLayoutPanel4.Controls.Add(this.label38, 0, 1); |
|||
this.tableLayoutPanel4.Controls.Add(this.lbPackageCodeL, 0, 0); |
|||
this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.tableLayoutPanel4.Location = new System.Drawing.Point(4, 36); |
|||
this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(4); |
|||
this.tableLayoutPanel4.Name = "tableLayoutPanel4"; |
|||
this.tableLayoutPanel4.RowCount = 2; |
|||
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 49.99751F)); |
|||
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50.0025F)); |
|||
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); |
|||
this.tableLayoutPanel4.Size = new System.Drawing.Size(346, 298); |
|||
this.tableLayoutPanel4.TabIndex = 3; |
|||
//
|
|||
// comBoxSizeL
|
|||
//
|
|||
this.comBoxSizeL.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|||
this.comBoxSizeL.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
|||
this.comBoxSizeL.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.comBoxSizeL.FormattingEnabled = true; |
|||
this.comBoxSizeL.Items.AddRange(new object[] { |
|||
"A班", |
|||
"B班"}); |
|||
this.comBoxSizeL.Location = new System.Drawing.Point(144, 187); |
|||
this.comBoxSizeL.Margin = new System.Windows.Forms.Padding(6); |
|||
this.comBoxSizeL.Name = "comBoxSizeL"; |
|||
this.comBoxSizeL.Size = new System.Drawing.Size(182, 72); |
|||
this.comBoxSizeL.TabIndex = 3; |
|||
//
|
|||
// label38
|
|||
//
|
|||
this.label38.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|||
this.label38.BackColor = System.Drawing.Color.Transparent; |
|||
this.label38.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label38.Location = new System.Drawing.Point(6, 196); |
|||
this.label38.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); |
|||
this.label38.Name = "label38"; |
|||
this.label38.Size = new System.Drawing.Size(116, 54); |
|||
this.label38.TabIndex = 1; |
|||
this.label38.Text = "规格:"; |
|||
this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// lbPackageCodeL
|
|||
//
|
|||
this.lbPackageCodeL.Anchor = System.Windows.Forms.AnchorStyles.Left; |
|||
this.lbPackageCodeL.AutoSize = true; |
|||
this.tableLayoutPanel4.SetColumnSpan(this.lbPackageCodeL, 2); |
|||
this.lbPackageCodeL.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.lbPackageCodeL.Location = new System.Drawing.Point(4, 55); |
|||
this.lbPackageCodeL.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.lbPackageCodeL.Name = "lbPackageCodeL"; |
|||
this.lbPackageCodeL.Size = new System.Drawing.Size(0, 37); |
|||
this.lbPackageCodeL.TabIndex = 5; |
|||
//
|
|||
// pnBoxReprint
|
|||
//
|
|||
this.pnBoxReprint.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.pnBoxReprint.Controls.Add(this.btnPrintCancel); |
|||
this.pnBoxReprint.Controls.Add(this.btnRePrint); |
|||
this.pnBoxReprint.Controls.Add(this.txtRePrintBoxCode); |
|||
this.pnBoxReprint.Controls.Add(this.label24); |
|||
this.pnBoxReprint.Location = new System.Drawing.Point(560, 426); |
|||
this.pnBoxReprint.Margin = new System.Windows.Forms.Padding(5); |
|||
this.pnBoxReprint.Name = "pnBoxReprint"; |
|||
this.pnBoxReprint.Size = new System.Drawing.Size(1397, 150); |
|||
this.pnBoxReprint.TabIndex = 25; |
|||
this.pnBoxReprint.Visible = false; |
|||
//
|
|||
// btnPrintCancel
|
|||
//
|
|||
this.btnPrintCancel.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.btnPrintCancel.Location = new System.Drawing.Point(1197, 44); |
|||
this.btnPrintCancel.Margin = new System.Windows.Forms.Padding(5); |
|||
this.btnPrintCancel.Name = "btnPrintCancel"; |
|||
this.btnPrintCancel.Size = new System.Drawing.Size(160, 60); |
|||
this.btnPrintCancel.TabIndex = 3; |
|||
this.btnPrintCancel.Text = "取消"; |
|||
this.btnPrintCancel.UseVisualStyleBackColor = true; |
|||
this.btnPrintCancel.Click += new System.EventHandler(this.btnPrintCancel_Click); |
|||
//
|
|||
// btnRePrint
|
|||
//
|
|||
this.btnRePrint.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.btnRePrint.Location = new System.Drawing.Point(1027, 40); |
|||
this.btnRePrint.Margin = new System.Windows.Forms.Padding(5); |
|||
this.btnRePrint.Name = "btnRePrint"; |
|||
this.btnRePrint.Size = new System.Drawing.Size(160, 60); |
|||
this.btnRePrint.TabIndex = 2; |
|||
this.btnRePrint.Text = "确定"; |
|||
this.btnRePrint.UseVisualStyleBackColor = true; |
|||
this.btnRePrint.Click += new System.EventHandler(this.btnRePrint_Click); |
|||
//
|
|||
// txtRePrintBoxCode
|
|||
//
|
|||
this.txtRePrintBoxCode.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.txtRePrintBoxCode.Location = new System.Drawing.Point(208, 44); |
|||
this.txtRePrintBoxCode.Margin = new System.Windows.Forms.Padding(5); |
|||
this.txtRePrintBoxCode.Name = "txtRePrintBoxCode"; |
|||
this.txtRePrintBoxCode.Size = new System.Drawing.Size(737, 55); |
|||
this.txtRePrintBoxCode.TabIndex = 1; |
|||
//
|
|||
// label24
|
|||
//
|
|||
this.label24.AutoSize = true; |
|||
this.label24.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label24.Location = new System.Drawing.Point(27, 52); |
|||
this.label24.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); |
|||
this.label24.Name = "label24"; |
|||
this.label24.Size = new System.Drawing.Size(190, 42); |
|||
this.label24.TabIndex = 0; |
|||
this.label24.Text = "箱单号:"; |
|||
this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// FrmBarCodeSearch2408
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(2528, 1638); |
|||
this.Controls.Add(this.pnBoxReprint); |
|||
this.Controls.Add(this.tableLayoutPanel1); |
|||
this.Controls.Add(this.glacialList1); |
|||
this.Controls.Add(this.panel3); |
|||
this.Controls.Add(this.label11); |
|||
this.Controls.Add(this.label19); |
|||
this.Controls.Add(this.panel1); |
|||
this.Margin = new System.Windows.Forms.Padding(6); |
|||
this.Name = "FrmBarCodeSearch2408"; |
|||
this.Text = "条码信息"; |
|||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBarCodeSearch_FormClosing); |
|||
this.Load += new System.EventHandler(this.FrmBarCodeSearch_Load); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.panel3.ResumeLayout(false); |
|||
this.panel3.PerformLayout(); |
|||
this.tableLayoutPanel1.ResumeLayout(false); |
|||
this.groupBox2.ResumeLayout(false); |
|||
this.tableLayoutPanel4.ResumeLayout(false); |
|||
this.tableLayoutPanel4.PerformLayout(); |
|||
this.pnBoxReprint.ResumeLayout(false); |
|||
this.pnBoxReprint.PerformLayout(); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.ComboBox comboBox1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.TextBox textBox1; |
|||
private System.Windows.Forms.TextBox textBox2; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private System.Windows.Forms.Label label5; |
|||
private System.Windows.Forms.TextBox textBox4; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.TextBox textBox3; |
|||
private System.Windows.Forms.Label label16; |
|||
private System.Windows.Forms.Label label19; |
|||
private System.Windows.Forms.Label label11; |
|||
private System.Windows.Forms.Label label10; |
|||
private System.Windows.Forms.Panel panel3; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.TextBox textBox5; |
|||
private GlacialComponents.Controls.GlacialList glacialList1; |
|||
private System.Windows.Forms.ComboBox comboBox2; |
|||
private System.Windows.Forms.Label label7; |
|||
private System.Windows.Forms.Button btnPackage; |
|||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; |
|||
private System.Windows.Forms.GroupBox groupBox2; |
|||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4; |
|||
public System.Windows.Forms.ComboBox comBoxSizeL; |
|||
private System.Windows.Forms.Label label38; |
|||
private System.Windows.Forms.Label lbPackageCodeL; |
|||
private System.Windows.Forms.CheckBox cboxHandBox; |
|||
private System.Windows.Forms.Button btnBoxRePrint; |
|||
private System.Windows.Forms.Panel pnBoxReprint; |
|||
private System.Windows.Forms.Button btnPrintCancel; |
|||
private System.Windows.Forms.Button btnRePrint; |
|||
private System.Windows.Forms.TextBox txtRePrintBoxCode; |
|||
private System.Windows.Forms.Label label24; |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,120 @@ |
|||
<?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> |
|||
</root> |
@ -0,0 +1,299 @@ |
|||
|
|||
namespace InjectionSearch |
|||
{ |
|||
partial class FrmPackageDetail |
|||
{ |
|||
/// <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() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); |
|||
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); |
|||
this.txtPackageCode = new System.Windows.Forms.TextBox(); |
|||
this.btnSearch = new System.Windows.Forms.Button(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); |
|||
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.箱单号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.条码 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.注塑码 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.零件号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.不良替换 = new System.Windows.Forms.DataGridViewButtonColumn(); |
|||
this.时间 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.tableLayoutPanel1.SuspendLayout(); |
|||
this.panel1.SuspendLayout(); |
|||
this.tableLayoutPanel2.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// tableLayoutPanel1
|
|||
//
|
|||
this.tableLayoutPanel1.ColumnCount = 1; |
|||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|||
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0); |
|||
this.tableLayoutPanel1.Controls.Add(this.dataGridView1, 0, 1); |
|||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; |
|||
this.tableLayoutPanel1.RowCount = 3; |
|||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F)); |
|||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); |
|||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F)); |
|||
this.tableLayoutPanel1.Size = new System.Drawing.Size(2331, 1192); |
|||
this.tableLayoutPanel1.TabIndex = 0; |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.Controls.Add(this.label3); |
|||
this.panel1.Controls.Add(this.label2); |
|||
this.panel1.Controls.Add(this.label1); |
|||
this.panel1.Controls.Add(this.dateTimePicker2); |
|||
this.panel1.Controls.Add(this.dateTimePicker1); |
|||
this.panel1.Controls.Add(this.tableLayoutPanel2); |
|||
this.panel1.Controls.Add(this.txtPackageCode); |
|||
this.panel1.Controls.Add(this.btnSearch); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel1.Location = new System.Drawing.Point(3, 3); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(2325, 54); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// tableLayoutPanel2
|
|||
//
|
|||
this.tableLayoutPanel2.ColumnCount = 1; |
|||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); |
|||
this.tableLayoutPanel2.Controls.Add(this.toolStrip1, 0, 0); |
|||
this.tableLayoutPanel2.Location = new System.Drawing.Point(3, -3); |
|||
this.tableLayoutPanel2.Name = "tableLayoutPanel2"; |
|||
this.tableLayoutPanel2.RowCount = 1; |
|||
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); |
|||
this.tableLayoutPanel2.Size = new System.Drawing.Size(751, 56); |
|||
this.tableLayoutPanel2.TabIndex = 2; |
|||
//
|
|||
// toolStrip1
|
|||
//
|
|||
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32); |
|||
this.toolStrip1.Location = new System.Drawing.Point(0, 0); |
|||
this.toolStrip1.Name = "toolStrip1"; |
|||
this.toolStrip1.Size = new System.Drawing.Size(751, 56); |
|||
this.toolStrip1.TabIndex = 0; |
|||
this.toolStrip1.Text = "toolStrip1"; |
|||
//
|
|||
// txtPackageCode
|
|||
//
|
|||
this.txtPackageCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.txtPackageCode.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.txtPackageCode.Location = new System.Drawing.Point(1771, 5); |
|||
this.txtPackageCode.Name = "txtPackageCode"; |
|||
this.txtPackageCode.Size = new System.Drawing.Size(373, 44); |
|||
this.txtPackageCode.TabIndex = 1; |
|||
//
|
|||
// btnSearch
|
|||
//
|
|||
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|||
this.btnSearch.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.btnSearch.Location = new System.Drawing.Point(2173, 0); |
|||
this.btnSearch.Name = "btnSearch"; |
|||
this.btnSearch.Size = new System.Drawing.Size(153, 51); |
|||
this.btnSearch.TabIndex = 0; |
|||
this.btnSearch.Text = "查 询"; |
|||
this.btnSearch.UseVisualStyleBackColor = true; |
|||
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.箱单号, |
|||
this.条码, |
|||
this.注塑码, |
|||
this.零件号, |
|||
this.不良替换, |
|||
this.时间}); |
|||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.dataGridView1.Location = new System.Drawing.Point(3, 63); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.RowHeadersWidth = 82; |
|||
this.dataGridView1.RowTemplate.Height = 37; |
|||
this.dataGridView1.Size = new System.Drawing.Size(2325, 1066); |
|||
this.dataGridView1.TabIndex = 1; |
|||
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick); |
|||
//
|
|||
// dateTimePicker1
|
|||
//
|
|||
this.dateTimePicker1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|||
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm"; |
|||
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; |
|||
this.dateTimePicker1.Location = new System.Drawing.Point(1082, 10); |
|||
this.dateTimePicker1.Name = "dateTimePicker1"; |
|||
this.dateTimePicker1.Size = new System.Drawing.Size(264, 35); |
|||
this.dateTimePicker1.TabIndex = 3; |
|||
//
|
|||
// dateTimePicker2
|
|||
//
|
|||
this.dateTimePicker2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|||
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd HH:mm"; |
|||
this.dateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Custom; |
|||
this.dateTimePicker2.Location = new System.Drawing.Point(1385, 10); |
|||
this.dateTimePicker2.Name = "dateTimePicker2"; |
|||
this.dateTimePicker2.Size = new System.Drawing.Size(264, 35); |
|||
this.dateTimePicker2.TabIndex = 4; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|||
this.label1.AutoSize = true; |
|||
this.label1.Location = new System.Drawing.Point(1353, 16); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(22, 24); |
|||
this.label1.TabIndex = 5; |
|||
this.label1.Text = "-"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|||
this.label2.AutoSize = true; |
|||
this.label2.Location = new System.Drawing.Point(1013, 16); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(58, 24); |
|||
this.label2.TabIndex = 6; |
|||
this.label2.Text = "时间"; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|||
this.label3.AutoSize = true; |
|||
this.label3.Location = new System.Drawing.Point(1702, 14); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(58, 24); |
|||
this.label3.TabIndex = 7; |
|||
this.label3.Text = "箱码"; |
|||
//
|
|||
// 箱单号
|
|||
//
|
|||
this.箱单号.DataPropertyName = "BoxNo"; |
|||
this.箱单号.HeaderText = "箱单号"; |
|||
this.箱单号.MinimumWidth = 10; |
|||
this.箱单号.Name = "箱单号"; |
|||
this.箱单号.Width = 300; |
|||
//
|
|||
// 条码
|
|||
//
|
|||
this.条码.DataPropertyName = "BarCode"; |
|||
this.条码.HeaderText = "条码"; |
|||
this.条码.MinimumWidth = 10; |
|||
this.条码.Name = "条码"; |
|||
this.条码.Width = 200; |
|||
//
|
|||
// 注塑码
|
|||
//
|
|||
this.注塑码.DataPropertyName = "OneBarCode"; |
|||
this.注塑码.HeaderText = "注塑码"; |
|||
this.注塑码.MinimumWidth = 10; |
|||
this.注塑码.Name = "注塑码"; |
|||
this.注塑码.Width = 200; |
|||
//
|
|||
// 零件号
|
|||
//
|
|||
this.零件号.DataPropertyName = "PartNo"; |
|||
this.零件号.HeaderText = "零件号"; |
|||
this.零件号.MinimumWidth = 10; |
|||
this.零件号.Name = "零件号"; |
|||
this.零件号.Width = 150; |
|||
//
|
|||
// 不良替换
|
|||
//
|
|||
this.不良替换.DataPropertyName = "Replace"; |
|||
this.不良替换.HeaderText = "不良替换"; |
|||
this.不良替换.MinimumWidth = 10; |
|||
this.不良替换.Name = "不良替换"; |
|||
this.不良替换.Text = "不良替换"; |
|||
this.不良替换.Width = 200; |
|||
//
|
|||
// 时间
|
|||
//
|
|||
this.时间.DataPropertyName = "CreateTime"; |
|||
this.时间.HeaderText = "时间"; |
|||
this.时间.MinimumWidth = 10; |
|||
this.时间.Name = "时间"; |
|||
this.时间.Width = 200; |
|||
//
|
|||
// FrmPackageDetail
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(2331, 1192); |
|||
this.Controls.Add(this.tableLayoutPanel1); |
|||
this.Name = "FrmPackageDetail"; |
|||
this.Text = "箱单详细信息"; |
|||
this.tableLayoutPanel1.ResumeLayout(false); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.tableLayoutPanel2.ResumeLayout(false); |
|||
this.tableLayoutPanel2.PerformLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private System.Windows.Forms.TextBox txtPackageCode; |
|||
private System.Windows.Forms.Button btnSearch; |
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; |
|||
private System.Windows.Forms.ToolStrip toolStrip1; |
|||
private System.Windows.Forms.DateTimePicker dateTimePicker1; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.DateTimePicker dateTimePicker2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 箱单号; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 条码; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 注塑码; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 零件号; |
|||
private System.Windows.Forms.DataGridViewButtonColumn 不良替换; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn 时间; |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
using MESClassLibrary.BLL.BasicInfo; |
|||
using MESClassLibrary.BLL.Inspection; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Drawing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace InjectionSearch |
|||
{ |
|||
public partial class FrmPackageDetail : Form |
|||
{ |
|||
private BarCodeBLL _barCodeBLL = new BarCodeBLL(); |
|||
private InjectionBoxBLL _injectionBoxBLL = new InjectionBoxBLL(); |
|||
private string _packageCode = string.Empty; |
|||
|
|||
public FrmPackageDetail(string pPackageCode) |
|||
{ |
|||
InitializeComponent(); |
|||
this._packageCode = pPackageCode; |
|||
txtPackageCode.Text = pPackageCode; |
|||
dataGridView1.AutoGenerateColumns = false; |
|||
if(!string.IsNullOrEmpty(pPackageCode)) |
|||
btnSearch_Click(null, null); |
|||
} |
|||
|
|||
private void btnSearch_Click(object sender, EventArgs e) |
|||
{ |
|||
string boxCode = txtPackageCode.Text?.Trim(); |
|||
|
|||
string date1 = this.dateTimePicker1.Value.ToString("yyyy-MM-dd 00:00:00"); |
|||
if (string.IsNullOrWhiteSpace(this.dateTimePicker1.Text)) |
|||
{ |
|||
date1 = "1900-01-01 00:00:00"; |
|||
} |
|||
string date2 = this.dateTimePicker2.Value.ToString("yyyy-MM-dd 23:59:59"); |
|||
if (string.IsNullOrWhiteSpace(this.dateTimePicker2.Text)) |
|||
{ |
|||
date2 = "9999-01-01 00:00:00"; |
|||
} |
|||
|
|||
string whereStr = $" CreateTime > '{date1}' and CreateTime<'{date2}' "; |
|||
if (!string.IsNullOrEmpty(txtPackageCode.Text.Trim())) |
|||
{ |
|||
whereStr = whereStr + $" and BoxNo='{txtPackageCode.Text.Trim()}'"; |
|||
} |
|||
|
|||
DataTable dt = _barCodeBLL.SearchBarCodeByWhere(whereStr, "v_Code", "200"); |
|||
if (!dt.Columns.Contains("Replace")) |
|||
{ |
|||
dt.Columns.Add("Replace"); |
|||
} |
|||
foreach(DataRow dr in dt.Rows) |
|||
{ |
|||
dr["Replace"] = "不良替换"; |
|||
} |
|||
dataGridView1.DataSource = dt; |
|||
} |
|||
|
|||
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) |
|||
{ |
|||
if (e.RowIndex >= 0 && e.RowIndex != -1 && !dataGridView1.Rows[e.RowIndex].IsNewRow) |
|||
{ |
|||
|
|||
if (e.ColumnIndex == 4) |
|||
{ |
|||
DataRow dataRow = (this.dataGridView1[e.ColumnIndex, e.RowIndex].OwningRow.DataBoundItem as DataRowView).Row; |
|||
FrmBarCodeReplace frm = new FrmBarCodeReplace(dataRow); |
|||
frm.ShowDialog(); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,141 @@ |
|||
<?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="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
|||
<value>17, 17</value> |
|||
</metadata> |
|||
<metadata name="箱单号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="条码.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="注塑码.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="零件号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="不良替换.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="时间.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
</root> |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,18 @@ |
|||
using MESClassLibrary.DAL.BasicInfo; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
using System.Linq; |
|||
using System.Text; |
|||
|
|||
namespace MESClassLibrary.BLL.BasicInfo |
|||
{ |
|||
public class BasicBLL1 |
|||
{ |
|||
private BasicDAL1 _basicDAL1 = new BasicDAL1(); |
|||
public DataTable GetPackageSize() |
|||
{ |
|||
return _basicDAL1.GetPackageSize(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,67 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Text; |
|||
using MESClassLibrary.BLL.Log; |
|||
using MESClassLibrary.DAL; |
|||
using MESClassLibrary.DAL.BasicInfo; |
|||
using MESClassLibrary.DAL.Injection; |
|||
using MESClassLibrary.Enum; |
|||
using MESClassLibrary.Model; |
|||
|
|||
namespace MESClassLibrary.BLL.Injection |
|||
{ |
|||
public class WmsBLL |
|||
{ |
|||
private WmsDAL da=new WmsDAL(); |
|||
private BarCodeDAl barCodeDal = new BarCodeDAl(); |
|||
|
|||
public string SaveInterface(string boxNo,string lastBoxNo1,string lastBoxNo2, WmsInterfaceEnum interfaceType) |
|||
{ |
|||
//上一个是否传递成功,没成功重新传 左侧
|
|||
if (!string.IsNullOrEmpty(lastBoxNo1)) |
|||
{ |
|||
bool exsit = da.IsSendPackageCode(lastBoxNo1); |
|||
if(exsit == false) |
|||
{ |
|||
SendToInterface(lastBoxNo1); |
|||
} |
|||
} |
|||
//上一个是否传递成功,没成功重新传 右侧侧
|
|||
if (!string.IsNullOrEmpty(lastBoxNo2)) |
|||
{ |
|||
bool exsit = da.IsSendPackageCode(lastBoxNo2); |
|||
if (exsit == false) |
|||
{ |
|||
SendToInterface(lastBoxNo2); |
|||
} |
|||
} |
|||
string rst = SendToInterface(boxNo); |
|||
if (!string.IsNullOrEmpty(rst)) |
|||
{ |
|||
LogErrBLL.AddInfo(rst, MethodBase.GetCurrentMethod()); |
|||
} |
|||
return rst; |
|||
|
|||
|
|||
|
|||
} |
|||
|
|||
private string SendToInterface(string boxNo) |
|||
{ |
|||
DataTable barCodeTable = barCodeDal.SearchInfoByBox(boxNo); |
|||
|
|||
|
|||
string rst = da.SaveInterface(barCodeTable); |
|||
return rst; |
|||
} |
|||
|
|||
public bool IsSendPackageCode(string pacakgCode) |
|||
{ |
|||
return da.IsSendPackageCode(pacakgCode); |
|||
} |
|||
|
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
using MESClassLibrary.BLL.Log; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Text; |
|||
|
|||
namespace MESClassLibrary.DAL.BasicInfo |
|||
{ |
|||
public class BasicDAL1 |
|||
{ |
|||
public DataTable GetPackageSize() |
|||
{ |
|||
try |
|||
{ |
|||
string sql = @"SELECT * from tb_A_PackageSize "; |
|||
|
|||
return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, null).Tables[0]; |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); |
|||
return null; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,110 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
using System.Data.SqlClient; |
|||
using System.Linq; |
|||
using System.Text; |
|||
|
|||
namespace MESClassLibrary.DAL |
|||
{ |
|||
public class LocalDBService |
|||
{ |
|||
// Token: 0x06000058 RID: 88 RVA: 0x00004839 File Offset: 0x00003839
|
|||
public LocalDBService(string conn) |
|||
{ |
|||
SqlHelper.sqlCommandTimeOut = 3000; |
|||
m_conn = conn; |
|||
} |
|||
|
|||
// Token: 0x06000059 RID: 89 RVA: 0x00004863 File Offset: 0x00003863
|
|||
public void BeginTrans() |
|||
{ |
|||
this.m_connection = new SqlConnection(LocalDBService.m_conn); |
|||
this.m_connection.Open(); |
|||
this.m_trans = this.m_connection.BeginTransaction(); |
|||
this.IsInTrans = true; |
|||
} |
|||
|
|||
// Token: 0x0600005A RID: 90 RVA: 0x0000489C File Offset: 0x0000389C
|
|||
public void Commit() |
|||
{ |
|||
if (this.IsInTrans) |
|||
{ |
|||
this.m_trans.Commit(); |
|||
} |
|||
} |
|||
|
|||
// Token: 0x0600005B RID: 91 RVA: 0x000048C8 File Offset: 0x000038C8
|
|||
public void Rollback() |
|||
{ |
|||
if (this.IsInTrans) |
|||
{ |
|||
this.m_trans.Rollback(); |
|||
} |
|||
} |
|||
|
|||
// Token: 0x0600005C RID: 92 RVA: 0x000048F1 File Offset: 0x000038F1
|
|||
public void EndTrans() |
|||
{ |
|||
this.m_connection.Close(); |
|||
this.IsInTrans = false; |
|||
} |
|||
|
|||
// Token: 0x0600005D RID: 93 RVA: 0x00004908 File Offset: 0x00003908
|
|||
public DataSet Exec_DataSet(string sql) |
|||
{ |
|||
DataSet result; |
|||
if (this.IsInTrans) |
|||
{ |
|||
result = SqlHelper.ExecuteDataset(this.m_trans, CommandType.Text, sql); |
|||
} |
|||
else |
|||
{ |
|||
result = SqlHelper.ExecuteDataset(LocalDBService.m_conn, CommandType.Text, sql); |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
// Token: 0x0600005E RID: 94 RVA: 0x00004948 File Offset: 0x00003948
|
|||
public object Exec_Object(string sql) |
|||
{ |
|||
object result; |
|||
if (this.IsInTrans) |
|||
{ |
|||
result = SqlHelper.ExecuteScalar(this.m_trans, CommandType.Text, sql); |
|||
} |
|||
else |
|||
{ |
|||
result = SqlHelper.ExecuteScalar(LocalDBService.m_conn, CommandType.Text, sql); |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
// Token: 0x0600005F RID: 95 RVA: 0x00004988 File Offset: 0x00003988
|
|||
public bool Exec_NonQuery(string sql) |
|||
{ |
|||
int num; |
|||
if (this.IsInTrans) |
|||
{ |
|||
num = SqlHelper.ExecuteNonQuery(this.m_trans, CommandType.Text, sql); |
|||
} |
|||
else |
|||
{ |
|||
num = SqlHelper.ExecuteNonQuery(LocalDBService.m_conn, CommandType.Text, sql); |
|||
} |
|||
return num > 0; |
|||
} |
|||
|
|||
// Token: 0x04000006 RID: 6
|
|||
public static string m_conn = string.Empty; |
|||
|
|||
// Token: 0x04000007 RID: 7
|
|||
private SqlTransaction m_trans = null; |
|||
|
|||
// Token: 0x04000008 RID: 8
|
|||
private SqlConnection m_connection = null; |
|||
|
|||
// Token: 0x04000009 RID: 9
|
|||
private bool IsInTrans = false; |
|||
} |
|||
} |
@ -0,0 +1,102 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Text; |
|||
using MESClassLibrary.BLL; |
|||
using MESClassLibrary.BLL.Log; |
|||
using MESClassLibrary.EFModel; |
|||
using MESClassLibrary.Enum; |
|||
using MESClassLibrary.Model; |
|||
using Newtonsoft.Json; |
|||
using Newtonsoft.Json.Converters; |
|||
|
|||
namespace MESClassLibrary.DAL.Injection |
|||
{ |
|||
public class WmsDAL |
|||
{ |
|||
public string SaveInterface(DataTable barCodeTable) |
|||
{ |
|||
LocalDBService local = new LocalDBService(SqlHelper.GetConnSting()); |
|||
try |
|||
{ |
|||
local.BeginTrans(); |
|||
foreach (DataRow dr in barCodeTable.Rows) |
|||
{ |
|||
string sql = $" insert into tb_Injectionn_Interface(PackageCode,OneBarCode,BarCode,Remark)" + |
|||
$" values ('{dr["BoxNo"]}','{dr["OneBarCode"]}','{dr["BarCode"]}','')"; |
|||
local.Exec_NonQuery(sql); |
|||
} |
|||
local.Commit(); |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
if (local != null) |
|||
{ |
|||
local.Rollback(); |
|||
} |
|||
return ex.Message; |
|||
} |
|||
finally |
|||
{ |
|||
if (local != null) |
|||
{ |
|||
local.EndTrans(); |
|||
} |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
public bool DeleteRecord(LocalDBService localDB,string boxNo,string oneBarCode,string barCode ) |
|||
{ |
|||
try |
|||
{ |
|||
string sql = $"delete from tb_Injectionn_Interface where PackageCode='{boxNo}' and OneBarCode='{oneBarCode}' and BarCode='{barCode}'"; |
|||
localDB.Exec_NonQuery(sql); |
|||
return true; |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); |
|||
return false; |
|||
} |
|||
} |
|||
public bool AddRecord(LocalDBService localDB, string boxNo, string oneBarCode, string barCode) |
|||
{ |
|||
try |
|||
{ |
|||
string sql = $"insert into tb_Injectionn_Interface(PackageCode,OneBarCode,BarCode,Remark) values ('{boxNo}','{oneBarCode}','{barCode}','')"; |
|||
localDB.Exec_NonQuery(sql); |
|||
return true; |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); |
|||
return false; |
|||
} |
|||
} |
|||
/// <summary>
|
|||
/// 箱码是否已传递到wms
|
|||
/// </summary>
|
|||
/// <param name="pacakgCode"></param>
|
|||
/// <returns></returns>
|
|||
public bool IsSendPackageCode(string pacakgCode) |
|||
{ |
|||
try |
|||
{ |
|||
string sql = $" select * from tb_Injectionn_Interface where PackageCode='{pacakgCode}'"; |
|||
DataTable dt = SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, null).Tables[0]; |
|||
|
|||
return dt.Rows.Count>0; |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); |
|||
return true; |
|||
} |
|||
} |
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
|
|||
namespace MESClassLibrary.Enum |
|||
{ |
|||
public enum WmsInterfaceEnum |
|||
{ |
|||
塑件箱码报工 |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
|
|||
namespace MESClassLibrary.Model |
|||
{ |
|||
public class WmsModel |
|||
{ |
|||
|
|||
} |
|||
} |
Loading…
Reference in new issue