Commit fb51bfe5 LN

界面修改。增加中英文处理

1 个父辈 1ad53a19

namespace TSA_V
{
partial class FrmHistorySearch
{
/// <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.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnExit = new System.Windows.Forms.Button();
this.DgvPointInfo = new System.Windows.Forms.DataGridView();
this.DgvOperateInfo = new System.Windows.Forms.DataGridView();
this.label3 = new System.Windows.Forms.Label();
this.BtnQuery = new System.Windows.Forms.Button();
this.DtpTimeBack = new System.Windows.Forms.DateTimePicker();
this.DtpTimeFront = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label();
this.TxtCode = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.pcol_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pcol_PartNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pcol_PointName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pcol_CreateDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_ProName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_ProType = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_BoardWidth = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_BoardLength = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_AoiResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_UserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_CreateDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DgvPointInfo)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DgvOperateInfo)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.btnExit);
this.groupBox1.Controls.Add(this.DgvPointInfo);
this.groupBox1.Controls.Add(this.DgvOperateInfo);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.BtnQuery);
this.groupBox1.Controls.Add(this.DtpTimeBack);
this.groupBox1.Controls.Add(this.DtpTimeFront);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.TxtCode);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(6, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(1221, 675);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "历史记录查询";
//
// btnExit
//
this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnExit.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnExit.Location = new System.Drawing.Point(1098, 21);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(100, 35);
this.btnExit.TabIndex = 16;
this.btnExit.Text = "退出";
this.btnExit.UseVisualStyleBackColor = true;
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
//
// DgvPointInfo
//
this.DgvPointInfo.AllowUserToAddRows = false;
this.DgvPointInfo.AllowUserToDeleteRows = false;
this.DgvPointInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.DgvPointInfo.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DgvPointInfo.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.pcol_ID,
this.pcol_PartNum,
this.pcol_PointName,
this.pcol_CreateDate});
this.DgvPointInfo.Location = new System.Drawing.Point(6, 262);
this.DgvPointInfo.Name = "DgvPointInfo";
this.DgvPointInfo.ReadOnly = true;
this.DgvPointInfo.RowHeadersWidth = 10;
this.DgvPointInfo.RowTemplate.Height = 23;
this.DgvPointInfo.Size = new System.Drawing.Size(1211, 404);
this.DgvPointInfo.TabIndex = 15;
//
// DgvOperateInfo
//
this.DgvOperateInfo.AllowUserToAddRows = false;
this.DgvOperateInfo.AllowUserToDeleteRows = false;
this.DgvOperateInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.DgvOperateInfo.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DgvOperateInfo.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.col_ID,
this.col_ProName,
this.col_ProType,
this.col_BarCode,
this.col_BoardWidth,
this.col_BoardLength,
this.col_AoiResult,
this.col_UserName,
this.col_CreateDate});
this.DgvOperateInfo.Location = new System.Drawing.Point(6, 75);
this.DgvOperateInfo.Name = "DgvOperateInfo";
this.DgvOperateInfo.ReadOnly = true;
this.DgvOperateInfo.RowHeadersWidth = 10;
this.DgvOperateInfo.RowTemplate.Height = 23;
this.DgvOperateInfo.Size = new System.Drawing.Size(1211, 179);
this.DgvOperateInfo.TabIndex = 14;
this.DgvOperateInfo.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvOperateInfo_CellClick);
//
// label3
//
this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(616, 28);
this.label3.Margin = new System.Windows.Forms.Padding(3);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(85, 21);
this.label3.TabIndex = 13;
this.label3.Text = "结束时间";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// BtnQuery
//
this.BtnQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnQuery.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnQuery.Location = new System.Drawing.Point(956, 21);
this.BtnQuery.Name = "BtnQuery";
this.BtnQuery.Size = new System.Drawing.Size(100, 35);
this.BtnQuery.TabIndex = 12;
this.BtnQuery.Text = "查询";
this.BtnQuery.UseVisualStyleBackColor = true;
this.BtnQuery.Click += new System.EventHandler(this.BtnQuery_Click);
//
// DtpTimeBack
//
this.DtpTimeBack.CustomFormat = "yyyy/MM/dd HH:mm:ss";
this.DtpTimeBack.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.DtpTimeBack.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.DtpTimeBack.Location = new System.Drawing.Point(707, 25);
this.DtpTimeBack.Name = "DtpTimeBack";
this.DtpTimeBack.ShowCheckBox = true;
this.DtpTimeBack.Size = new System.Drawing.Size(197, 26);
this.DtpTimeBack.TabIndex = 11;
//
// DtpTimeFront
//
this.DtpTimeFront.CustomFormat = "yyyy/MM/dd HH:mm:ss";
this.DtpTimeFront.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.DtpTimeFront.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.DtpTimeFront.Location = new System.Drawing.Point(402, 25);
this.DtpTimeFront.Name = "DtpTimeFront";
this.DtpTimeFront.ShowCheckBox = true;
this.DtpTimeFront.Size = new System.Drawing.Size(197, 26);
this.DtpTimeFront.TabIndex = 10;
//
// label2
//
this.label2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(311, 28);
this.label2.Margin = new System.Windows.Forms.Padding(3);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(85, 21);
this.label2.TabIndex = 9;
this.label2.Text = "开始时间";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// TxtCode
//
this.TxtCode.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.TxtCode.Location = new System.Drawing.Point(97, 25);
this.TxtCode.Name = "TxtCode";
this.TxtCode.Size = new System.Drawing.Size(197, 26);
this.TxtCode.TabIndex = 8;
//
// label1
//
this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(6, 28);
this.label1.Margin = new System.Windows.Forms.Padding(3);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(85, 21);
this.label1.TabIndex = 7;
this.label1.Text = "条码";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// pcol_ID
//
this.pcol_ID.HeaderText = "ID";
this.pcol_ID.Name = "pcol_ID";
this.pcol_ID.ReadOnly = true;
this.pcol_ID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// pcol_PartNum
//
this.pcol_PartNum.HeaderText = "PartNum";
this.pcol_PartNum.Name = "pcol_PartNum";
this.pcol_PartNum.ReadOnly = true;
this.pcol_PartNum.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.pcol_PartNum.Width = 160;
//
// pcol_PointName
//
this.pcol_PointName.HeaderText = "PointName";
this.pcol_PointName.Name = "pcol_PointName";
this.pcol_PointName.ReadOnly = true;
this.pcol_PointName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.pcol_PointName.Width = 160;
//
// pcol_CreateDate
//
this.pcol_CreateDate.HeaderText = "CreateDate";
this.pcol_CreateDate.Name = "pcol_CreateDate";
this.pcol_CreateDate.ReadOnly = true;
this.pcol_CreateDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.pcol_CreateDate.Width = 160;
//
// col_ID
//
this.col_ID.HeaderText = "ID";
this.col_ID.Name = "col_ID";
this.col_ID.ReadOnly = true;
this.col_ID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.col_ID.Width = 80;
//
// col_ProName
//
this.col_ProName.HeaderText = "ProName";
this.col_ProName.Name = "col_ProName";
this.col_ProName.ReadOnly = true;
this.col_ProName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.col_ProName.Width = 160;
//
// col_ProType
//
this.col_ProType.HeaderText = "ProType";
this.col_ProType.Name = "col_ProType";
this.col_ProType.ReadOnly = true;
this.col_ProType.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.col_ProType.Width = 160;
//
// col_BarCode
//
this.col_BarCode.HeaderText = "BarCode";
this.col_BarCode.Name = "col_BarCode";
this.col_BarCode.ReadOnly = true;
this.col_BarCode.Width = 120;
//
// col_BoardWidth
//
this.col_BoardWidth.HeaderText = "BoardWidth";
this.col_BoardWidth.Name = "col_BoardWidth";
this.col_BoardWidth.ReadOnly = true;
this.col_BoardWidth.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.col_BoardWidth.Width = 120;
//
// col_BoardLength
//
this.col_BoardLength.HeaderText = "BoardLength";
this.col_BoardLength.Name = "col_BoardLength";
this.col_BoardLength.ReadOnly = true;
this.col_BoardLength.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.col_BoardLength.Width = 120;
//
// col_AoiResult
//
this.col_AoiResult.HeaderText = "AoiResult";
this.col_AoiResult.Name = "col_AoiResult";
this.col_AoiResult.ReadOnly = true;
this.col_AoiResult.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.col_AoiResult.Width = 120;
//
// col_UserName
//
this.col_UserName.HeaderText = "UserName";
this.col_UserName.Name = "col_UserName";
this.col_UserName.ReadOnly = true;
this.col_UserName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// col_CreateDate
//
this.col_CreateDate.HeaderText = "CreateDate";
this.col_CreateDate.Name = "col_CreateDate";
this.col_CreateDate.ReadOnly = true;
this.col_CreateDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.col_CreateDate.Width = 120;
//
// FrmHistorySearch
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1234, 685);
this.Controls.Add(this.groupBox1);
this.Name = "FrmHistorySearch";
this.Text = "历史记录";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.frmHistorySearch_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.DgvPointInfo)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DgvOperateInfo)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button BtnQuery;
private System.Windows.Forms.DateTimePicker DtpTimeBack;
private System.Windows.Forms.DateTimePicker DtpTimeFront;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox TxtCode;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.DataGridView DgvPointInfo;
private System.Windows.Forms.DataGridView DgvOperateInfo;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.DataGridViewTextBoxColumn pcol_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn pcol_PartNum;
private System.Windows.Forms.DataGridViewTextBoxColumn pcol_PointName;
private System.Windows.Forms.DataGridViewTextBoxColumn pcol_CreateDate;
private System.Windows.Forms.DataGridViewTextBoxColumn col_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn col_ProName;
private System.Windows.Forms.DataGridViewTextBoxColumn col_ProType;
private System.Windows.Forms.DataGridViewTextBoxColumn col_BarCode;
private System.Windows.Forms.DataGridViewTextBoxColumn col_BoardWidth;
private System.Windows.Forms.DataGridViewTextBoxColumn col_BoardLength;
private System.Windows.Forms.DataGridViewTextBoxColumn col_AoiResult;
private System.Windows.Forms.DataGridViewTextBoxColumn col_UserName;
private System.Windows.Forms.DataGridViewTextBoxColumn col_CreateDate;
}
}
\ No newline at end of file \ No newline at end of file
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 TSA_V
{
public partial class FrmHistorySearch : FrmBase
{
public FrmHistorySearch()
{
InitializeComponent();
}
private void frmHistorySearch_Load(object sender, EventArgs e)
{
DtpTimeFront.Value = DateTime.Now.AddHours(-8);
DtpTimeBack.Value = DateTime.Now;
LoadColName();
}
private void LoadColName()
{
col_ID.HeaderText = ResourceCulture.GetString("ID");
col_ProName.HeaderText = ResourceCulture.GetString("程序名称");
col_ProType.HeaderText = ResourceCulture.GetString("程序类型");
col_BarCode.HeaderText = ResourceCulture.GetString("条码");
col_BoardWidth.HeaderText = ResourceCulture.GetString("宽度");
col_BoardLength.HeaderText = ResourceCulture.GetString("长度");
col_AoiResult.HeaderText = ResourceCulture.GetString("结果");
col_UserName.HeaderText = ResourceCulture.GetString("用户");
col_CreateDate.HeaderText = ResourceCulture.GetString("时间");
pcol_CreateDate.HeaderText = ResourceCulture.GetString("时间");
pcol_ID.HeaderText = ResourceCulture.GetString("ID");
pcol_PartNum.HeaderText = ResourceCulture.GetString("编号");
pcol_PointName.HeaderText = ResourceCulture.GetString("名称");
}
private void BtnQuery_Click(object sender, EventArgs e)
{
string timeFront = null, timeBack = null;
if (DtpTimeFront.Checked) timeFront = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DtpTimeFront.Value);
if (DtpTimeBack.Checked) timeBack = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DtpTimeBack.Value);
bool rtn = DeviceLibrary.DB.db.QueryHistory(TxtCode.Text, timeFront, timeBack, out string[][] data);
if (rtn)
{
DgvOperateInfo.Rows.Clear();
if (data.Length == 0)
MessageBox.Show("没有找到记录");
else
for (int i = 0; i < data.Length; i++)
DgvOperateInfo.Rows.Add(data[i]);
}
else
{
MessageBox.Show("查询出错", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void DgvOperateInfo_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (DgvOperateInfo.CurrentCell == null) return;
string id = DgvOperateInfo.Rows[DgvOperateInfo.CurrentCell.RowIndex].Cells[0].Value.ToString();
bool rtn = DeviceLibrary.DB.db.QueryPointInfo(id, out string[][] data);
if (rtn)
{
DgvPointInfo.Rows.Clear();
if (data.Length == 0)
MessageBox.Show("没有找到记录");
else
for (int i = 0; i < data.Length; i++)
DgvPointInfo.Rows.Add(data[i]);
}
else
{
MessageBox.Show("查询出错", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void btnExit_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
<?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="pcol_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pcol_PartNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pcol_PointName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pcol_CreateDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_ProName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_ProType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_BarCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_BoardWidth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_BoardLength.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_AoiResult.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_UserName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_CreateDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pcol_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pcol_PartNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pcol_PointName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pcol_CreateDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_ProName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_ProType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_BarCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_BoardWidth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_BoardLength.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_AoiResult.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_UserName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_CreateDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
\ No newline at end of file \ No newline at end of file
...@@ -7,6 +7,7 @@ using System.Linq; ...@@ -7,6 +7,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using TSA_V.Common;
namespace TSA_V namespace TSA_V
{ {
...@@ -15,6 +16,9 @@ namespace TSA_V ...@@ -15,6 +16,9 @@ namespace TSA_V
public FrmLogin() public FrmLogin()
{ {
InitializeComponent(); InitializeComponent();
string str = ConfigAppSettings.GetValue(Setting_Init.Default_Language);
LogUtil.info("默认语言:" + str);
ResourceCulture.SetCurrentCulture(str);
} }
private void BtnLogin_Click(object sender, EventArgs e) private void BtnLogin_Click(object sender, EventArgs e)
......
...@@ -344,8 +344,10 @@ namespace TSA_V ...@@ -344,8 +344,10 @@ namespace TSA_V
private void BtnHistory_Click(object sender, EventArgs e) private void BtnHistory_Click(object sender, EventArgs e)
{ {
FrmHistory frm = new FrmHistory(); FrmHistorySearch frm = new FrmHistorySearch();
frm.ShowDialog(); frm.ShowDialog();
//FrmHistory frm = new FrmHistory();
//frm.ShowDialog();
} }
} }
} }
...@@ -2215,4 +2215,58 @@ ...@@ -2215,4 +2215,58 @@
<data name="FrmLogin_Text" xml:space="preserve"> <data name="FrmLogin_Text" xml:space="preserve">
<value>Login</value> <value>Login</value>
</data> </data>
<data name="FrmHistorySearch_btnExit_Text" xml:space="preserve">
<value>Exit</value>
</data>
<data name="FrmHistorySearch_BtnQuery_Text" xml:space="preserve">
<value>Search</value>
</data>
<data name="FrmHistorySearch_groupBox1_Text" xml:space="preserve">
<value>History query</value>
</data>
<data name="FrmHistorySearch_label1_Text" xml:space="preserve">
<value>Code</value>
</data>
<data name="FrmHistorySearch_label2_Text" xml:space="preserve">
<value>start time</value>
</data>
<data name="FrmHistorySearch_label3_Text" xml:space="preserve">
<value>end time</value>
</data>
<data name="FrmHistorySearch_Text" xml:space="preserve">
<value>HISTORY</value>
</data>
<data name="ID" xml:space="preserve">
<value>ID</value>
</data>
<data name="程序名称" xml:space="preserve">
<value>program name </value>
</data>
<data name="程序类型" xml:space="preserve">
<value>program type</value>
</data>
<data name="条码" xml:space="preserve">
<value>barcode</value>
</data>
<data name="宽度" xml:space="preserve">
<value>width ↑</value>
</data>
<data name="长度" xml:space="preserve">
<value>length→</value>
</data>
<data name="结果" xml:space="preserve">
<value>result</value>
</data>
<data name="用户" xml:space="preserve">
<value>username</value>
</data>
<data name="时间" xml:space="preserve">
<value>creat time</value>
</data>
<data name="编号" xml:space="preserve">
<value>point no</value>
</data>
<data name="名称" xml:space="preserve">
<value>point name</value>
</data>
</root> </root>
\ No newline at end of file \ No newline at end of file
...@@ -2229,4 +2229,59 @@ ...@@ -2229,4 +2229,59 @@
<data name="FrmLogin_Text" xml:space="preserve"> <data name="FrmLogin_Text" xml:space="preserve">
<value>登录</value> <value>登录</value>
</data> </data>
<data name="FrmHistorySearch_btnExit_Text" xml:space="preserve">
<value>退出</value>
</data>
<data name="FrmHistorySearch_BtnQuery_Text" xml:space="preserve">
<value>查询</value>
</data>
<data name="FrmHistorySearch_groupBox1_Text" xml:space="preserve">
<value>历史记录查询</value>
</data>
<data name="FrmHistorySearch_label1_Text" xml:space="preserve">
<value>条码</value>
</data>
<data name="FrmHistorySearch_label2_Text" xml:space="preserve">
<value>开始时间</value>
</data>
<data name="FrmHistorySearch_label3_Text" xml:space="preserve">
<value>结束时间</value>
</data>
<data name="FrmHistorySearch_Text" xml:space="preserve">
<value>历史记录</value>
</data>
<data name="ID" xml:space="preserve">
<value>ID</value>
</data>
<data name="程序名称" xml:space="preserve">
<value>程序名称</value>
</data>
<data name="程序类型" xml:space="preserve">
<value>程序类型</value>
</data>
<data name="条码" xml:space="preserve">
<value>条码</value>
</data>
<data name="宽度" xml:space="preserve">
<value>宽度 ↑</value>
</data>
<data name="长度" xml:space="preserve">
<value>长度→</value>
</data>
<data name="结果" xml:space="preserve">
<value>结果</value>
</data>
<data name="用户" xml:space="preserve">
<value>用户</value>
</data>
<data name="时间" xml:space="preserve">
<value>时间</value>
</data>
<data name="编号" xml:space="preserve">
<value>编号</value>
</data>
<data name="名称" xml:space="preserve">
<value>名称</value>
</data>
</root> </root>
\ No newline at end of file \ No newline at end of file
...@@ -163,6 +163,12 @@ ...@@ -163,6 +163,12 @@
<Compile Include="FrmHistory.Designer.cs"> <Compile Include="FrmHistory.Designer.cs">
<DependentUpon>FrmHistory.cs</DependentUpon> <DependentUpon>FrmHistory.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmHistorySearch.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmHistorySearch.Designer.cs">
<DependentUpon>FrmHistorySearch.cs</DependentUpon>
</Compile>
<Compile Include="FrmLogin.cs"> <Compile Include="FrmLogin.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -324,6 +330,9 @@ ...@@ -324,6 +330,9 @@
<EmbeddedResource Include="FrmHistory.resx"> <EmbeddedResource Include="FrmHistory.resx">
<DependentUpon>FrmHistory.cs</DependentUpon> <DependentUpon>FrmHistory.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmHistorySearch.resx">
<DependentUpon>FrmHistorySearch.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmLogin.resx"> <EmbeddedResource Include="FrmLogin.resx">
<DependentUpon>FrmLogin.cs</DependentUpon> <DependentUpon>FrmLogin.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!