12 changed files with 1135 additions and 525 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,215 @@ |
|||
namespace InjectionSearch |
|||
{ |
|||
partial class FrmBarCodeSearch2502 |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.components = new System.ComponentModel.Container(); |
|||
GlacialComponents.Controls.GLColumn glColumn5 = new GlacialComponents.Controls.GLColumn(); |
|||
GlacialComponents.Controls.GLColumn glColumn6 = new GlacialComponents.Controls.GLColumn(); |
|||
GlacialComponents.Controls.GLColumn glColumn7 = new GlacialComponents.Controls.GLColumn(); |
|||
GlacialComponents.Controls.GLColumn glColumn8 = new GlacialComponents.Controls.GLColumn(); |
|||
this.panel3 = new System.Windows.Forms.Panel(); |
|||
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.timer1 = new System.Windows.Forms.Timer(this.components); |
|||
this.btnRePrint = new System.Windows.Forms.Button(); |
|||
this.panel3.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel3
|
|||
//
|
|||
this.panel3.BackColor = System.Drawing.SystemColors.Control; |
|||
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel3.Controls.Add(this.btnRePrint); |
|||
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, 5); |
|||
this.panel3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); |
|||
this.panel3.Name = "panel3"; |
|||
this.panel3.Size = new System.Drawing.Size(2498, 120); |
|||
this.panel3.TabIndex = 22; |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.button1.Location = new System.Drawing.Point(2148, 21); |
|||
this.button1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 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(955, 24); |
|||
this.label6.Margin = new System.Windows.Forms.Padding(7, 0, 7, 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(7, 6, 7, 6); |
|||
this.textBox5.Name = "textBox5"; |
|||
this.textBox5.Size = new System.Drawing.Size(827, 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; |
|||
glColumn5.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; |
|||
glColumn5.CheckBoxes = false; |
|||
glColumn5.ImageIndex = -1; |
|||
glColumn5.Name = "Column1"; |
|||
glColumn5.NumericSort = false; |
|||
glColumn5.Text = "条码"; |
|||
glColumn5.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
|||
glColumn5.Width = 300; |
|||
glColumn6.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; |
|||
glColumn6.CheckBoxes = false; |
|||
glColumn6.ImageIndex = -1; |
|||
glColumn6.Name = "Column2"; |
|||
glColumn6.NumericSort = false; |
|||
glColumn6.Text = "产品名称"; |
|||
glColumn6.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
|||
glColumn6.Width = 450; |
|||
glColumn7.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; |
|||
glColumn7.CheckBoxes = false; |
|||
glColumn7.ImageIndex = -1; |
|||
glColumn7.Name = "Column3"; |
|||
glColumn7.NumericSort = false; |
|||
glColumn7.Text = "打印方式"; |
|||
glColumn7.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
|||
glColumn7.Width = 80; |
|||
glColumn8.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None; |
|||
glColumn8.CheckBoxes = false; |
|||
glColumn8.ImageIndex = -1; |
|||
glColumn8.Name = "Column4"; |
|||
glColumn8.NumericSort = false; |
|||
glColumn8.Text = "打印时间"; |
|||
glColumn8.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; |
|||
glColumn8.Width = 220; |
|||
this.glacialList1.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] { |
|||
glColumn5, |
|||
glColumn6, |
|||
glColumn7, |
|||
glColumn8}); |
|||
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(4, 130); |
|||
this.glacialList1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 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(2514, 1493); |
|||
this.glacialList1.SortType = GlacialComponents.Controls.SortTypes.InsertionSort; |
|||
this.glacialList1.SuperFlatHeaderColor = System.Drawing.Color.White; |
|||
this.glacialList1.TabIndex = 23; |
|||
this.glacialList1.Text = "glacialList1"; |
|||
//
|
|||
// timer1
|
|||
//
|
|||
this.timer1.Enabled = true; |
|||
this.timer1.Interval = 5000; |
|||
this.timer1.Tick += new System.EventHandler(this.timer1_Tick); |
|||
//
|
|||
// btnRePrint
|
|||
//
|
|||
this.btnRePrint.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Bold); |
|||
this.btnRePrint.Location = new System.Drawing.Point(11, 6); |
|||
this.btnRePrint.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); |
|||
this.btnRePrint.Name = "btnRePrint"; |
|||
this.btnRePrint.Size = new System.Drawing.Size(310, 101); |
|||
this.btnRePrint.TabIndex = 8; |
|||
this.btnRePrint.Text = "补打条码"; |
|||
this.btnRePrint.UseVisualStyleBackColor = true; |
|||
this.btnRePrint.Click += new System.EventHandler(this.btnRePrint_Click); |
|||
//
|
|||
// FrmBarCodeSearch2502
|
|||
//
|
|||
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.glacialList1); |
|||
this.Controls.Add(this.panel3); |
|||
this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); |
|||
this.Name = "FrmBarCodeSearch2502"; |
|||
this.Text = "条码信息"; |
|||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBarCodeSearch_FormClosing); |
|||
this.Load += new System.EventHandler(this.FrmBarCodeSearch_Load); |
|||
this.panel3.ResumeLayout(false); |
|||
this.panel3.PerformLayout(); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
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.Timer timer1; |
|||
private System.Windows.Forms.Button btnRePrint; |
|||
} |
|||
} |
@ -0,0 +1,246 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Configuration; |
|||
using System.Data; |
|||
using System.Drawing; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
using grproLib; |
|||
using MESClassLibrary; |
|||
using MESClassLibrary.BLL; |
|||
using MESClassLibrary.BLL.BasicInfo; |
|||
using MESClassLibrary.BLL.Injection; |
|||
using MESClassLibrary.BLL.Inspection; |
|||
using MESClassLibrary.BLL.Log; |
|||
using MESClassLibrary.BLL.TruckBox; |
|||
using MESClassLibrary.DAL; |
|||
using MESClassLibrary.EFModel; |
|||
using MESClassLibrary.Model; |
|||
using DataTable = System.Data.DataTable; |
|||
|
|||
namespace InjectionSearch |
|||
{ |
|||
public partial class FrmBarCodeSearch2502 : Form |
|||
{ |
|||
private BarCodeBLL _barCodeBLL = new BarCodeBLL(); |
|||
public FrmBarCodeSearch2502() |
|||
{ |
|||
InitializeComponent(); |
|||
this.Size = new Size(1280, 1024); |
|||
} |
|||
|
|||
|
|||
private void initBarCode() |
|||
{ |
|||
BarCodeBLL bll = new BarCodeBLL(); |
|||
|
|||
glacialList1.Items.Clear(); |
|||
DataTable dt = bll.SearchBarCode(); |
|||
if (dt != null && dt.Rows.Count > 0) |
|||
{ |
|||
for (int i = 0; i < dt.Rows.Count; i++) |
|||
{ |
|||
glacialList1.Items.Add(i.ToString()); |
|||
glacialList1.Items[i].SubItems[0].Text = dt.Rows[i]["BarCode"].ToString(); |
|||
glacialList1.Items[i].SubItems[1].Text = dt.Rows[i]["ProductName"].ToString(); |
|||
glacialList1.Items[i].SubItems[2].Text = dt.Rows[i]["PrintType"].ToString(); |
|||
glacialList1.Items[i].SubItems[3].Text = dt.Rows[i]["CreateTime"].ToString() == "" ? "" : Convert.ToDateTime(dt.Rows[i]["CreateTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss.fff"); |
|||
//glacialList1.Items[i].SubItems[4].Text = dt.Rows[i]["StationNo"].ToString();
|
|||
//glacialList1.Items[i].SubItems[5].Text = dt.Rows[i]["isSupply"].ToString();
|
|||
//glacialList1.Items[i].SubItems[5].Text = dt.Rows[i]["BatchNo"].ToString();
|
|||
glacialList1.Items[i].SubItems[0].Tag = dt.Rows[i]; |
|||
glacialList1.Items[i].SubItems[1].Tag = dt.Rows[i]["TableName"].ToString(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
|
|||
private void FrmBarCodeSearch_Load(object sender, EventArgs e) |
|||
{ |
|||
|
|||
initBarCode(); |
|||
|
|||
GetClass(); |
|||
} |
|||
|
|||
private void GetClass() |
|||
{ |
|||
try |
|||
{ |
|||
DateTime aa = GetDateTime(); |
|||
|
|||
if (GetDateTime().Hour >= 8 && GetDateTime().Hour < 20) |
|||
{ |
|||
Program.Shift = "A班"; |
|||
Program.ProductDate = aa.ToString("yyyy-MM-dd"); |
|||
|
|||
} |
|||
else |
|||
{ |
|||
Program.Shift = "B班"; |
|||
if (GetDateTime().Hour >= 0 && GetDateTime().Hour < 8) |
|||
{ |
|||
Program.ProductDate = aa.AddDays(-1).ToString("yyyy-MM-dd"); |
|||
} |
|||
else |
|||
{ |
|||
Program.ProductDate = aa.ToString("yyyy-MM-dd"); |
|||
} |
|||
} |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
public DateTime GetDateTime() |
|||
{ |
|||
string sql = ""; |
|||
DateTime time; |
|||
DataTable dt; |
|||
try |
|||
{ |
|||
sql = @"select getdate() as time"; |
|||
|
|||
dt = SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, null).Tables[0]; |
|||
if (dt != null && dt.Rows.Count > 0) |
|||
{ |
|||
time = Convert.ToDateTime(dt.Rows[0]["time"].ToString()); |
|||
|
|||
} |
|||
else |
|||
{ |
|||
time = DateTime.Now; |
|||
} |
|||
return time; |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); |
|||
return DateTime.Now; |
|||
} |
|||
} |
|||
|
|||
private static bool IsNumeric(string str) |
|||
{ |
|||
System.Text.RegularExpressions.Regex reg1 = new System.Text.RegularExpressions.Regex(@"^[0-9]\d*$"); |
|||
return reg1.IsMatch(str); |
|||
} |
|||
|
|||
|
|||
|
|||
private void button1_Click(object sender, EventArgs e) |
|||
{ |
|||
BarCodeBLL bll = new BarCodeBLL(); |
|||
DataTable dt = null; |
|||
|
|||
try |
|||
{ |
|||
glacialList1.Items.Clear(); |
|||
if (textBox5.Text.Trim() == "") |
|||
{ |
|||
dt = bll.SearchBarCode(); |
|||
} |
|||
else |
|||
{ |
|||
if (textBox5.Text.Trim().Length == 20) |
|||
{ |
|||
dt = bll.SearchBarCodeByOne(textBox5.Text.Trim()); |
|||
} |
|||
else |
|||
{ |
|||
dt = bll.SearchBarCodeByTwo(textBox5.Text.Trim()); |
|||
} |
|||
} |
|||
|
|||
|
|||
if (dt != null && dt.Rows.Count > 0) |
|||
{ |
|||
for (int i = 0; i < dt.Rows.Count; i++) |
|||
{ |
|||
glacialList1.Items.Add(i.ToString()); |
|||
glacialList1.Items[i].SubItems[0].Text = dt.Rows[i]["BarCode"].ToString(); |
|||
glacialList1.Items[i].SubItems[1].Text = dt.Rows[i]["ProductName"].ToString(); |
|||
glacialList1.Items[i].SubItems[2].Text = dt.Rows[i]["PrintType"].ToString(); |
|||
glacialList1.Items[i].SubItems[3].Text = dt.Rows[i]["PrintTime"].ToString() == "" ? "" : Convert.ToDateTime(dt.Rows[i]["PrintTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss.fff"); |
|||
glacialList1.Items[i].SubItems[4].Text = dt.Rows[i]["MaterialName"].ToString(); |
|||
glacialList1.Items[i].SubItems[5].Text = dt.Rows[i]["BatchNo"].ToString(); |
|||
//glacialList1.Items[i].SubItems[6].Text = dt.Rows[i]["StationNo"].ToString();
|
|||
|
|||
glacialList1.Items[i].SubItems[0].Tag = dt.Rows[i]; |
|||
glacialList1.Items[i].SubItems[1].Tag = dt.Rows[i]["TableName"].ToString(); |
|||
} |
|||
} |
|||
textBox5.Text = ""; |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); |
|||
} |
|||
} |
|||
|
|||
private void FrmBarCodeSearch_FormClosing(object sender, FormClosingEventArgs e) |
|||
{ |
|||
Application.Exit(); |
|||
} |
|||
|
|||
private void timer1_Tick(object sender, EventArgs e) |
|||
{ |
|||
Program.ProductDate = _barCodeBLL.GetServiceTime().ToString(); |
|||
} |
|||
|
|||
private void btnRePrint_Click(object sender, EventArgs e) |
|||
{ |
|||
if (glacialList1.SelectedItems.Count > 0) |
|||
{ |
|||
GlacialComponents.Controls.GLItem gv; |
|||
gv = glacialList1.SelectedItems[0] as GlacialComponents.Controls.GLItem; |
|||
|
|||
DataRow recordRow = gv.SubItems[0].Tag as DataRow; |
|||
string printName = PrintMoudleName(recordRow); |
|||
|
|||
DataTable headTable = new DataTable(); |
|||
headTable.Columns.Add("PrintTime"); |
|||
headTable.Columns.Add("PartNo"); |
|||
headTable.Columns.Add("PartName"); |
|||
headTable.Columns.Add("OneBarCode"); |
|||
headTable.Columns.Add("BarCode"); |
|||
headTable.Columns.Add("Station"); |
|||
DataRow row = headTable.NewRow(); |
|||
row["PrintTime"] = GetDateTime().ToString("yyyy/MM/dd HH:mm:ss"); |
|||
row["PartNo"] = recordRow["PartNo"].ToString(); |
|||
row["PartName"] = recordRow["ProductName"].ToString(); |
|||
row["OneBarCode"] = recordRow["OneBarCode"].ToString(); |
|||
row["BarCode"] = recordRow["BarCode"].ToString(); |
|||
row["Station"] = recordRow["StationNo"].ToString(); |
|||
string reportName = ConfigurationManager.AppSettings["Printer1"].ToString(); |
|||
headTable.Rows.Add(row); |
|||
|
|||
ReportHelper rp = new ReportHelper(printName, headTable, null, (int)GRPaperOrientation.grpoDefault, 1, reportName); |
|||
|
|||
rp.Report.Print(false); |
|||
|
|||
AddRePrintRecords(row); |
|||
} |
|||
} |
|||
|
|||
private void AddRePrintRecords(DataRow row) |
|||
{ |
|||
_barCodeBLL.Add_ReprintRecord(row, Program.OperatorName, Program.OperatorName); |
|||
} |
|||
|
|||
string PrintMoudleName(DataRow row) |
|||
{ |
|||
string stationName = row["StationNo"].ToString(); |
|||
string isSupply = row["isSupply"].ToString(); |
|||
return BussinessHelper.PrintMoudleName(stationName, isSupply); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,123 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
|||
<value>17, 17</value> |
|||
</metadata> |
|||
</root> |
Loading…
Reference in new issue