Browse Source

添加返工采集界面

章政 8 years ago
parent
commit
3d7c563770

+ 123 - 0
UAS-MES/CustomControl/DataGrid_View/DataGridViewWithSerialNum.resx

@@ -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="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+</root>

+ 467 - 0
UAS-MES/FunctionCode/Make/Make_GetReMakeSN.Designer.cs

@@ -0,0 +1,467 @@
+namespace UAS_MES.Make
+{
+    partial class Make_GetReMakeSN
+    {
+        /// <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.groupBoxWithBorder1 = new UAS_MES.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
+            this.ma_craftcode = new UAS_MES.CustomControl.ValueLabel.ValueLabel();
+            this.ma_saveimei = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            this.ma_savemacbt = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            this.LockCheckBox = new UAS_MES.CustomControl.CustomCheckBox.LockCheckBox();
+            this.ma_code_label = new System.Windows.Forms.Label();
+            this.ma_code = new UAS_MES.CustomControl.TextBoxWithIcon.MaCodeSearchTextBox();
+            this.pr_spec = new UAS_MES.CustomControl.ValueLabel.ValueLabel();
+            this.getsnqty = new UAS_MES.CustomControl.ValueLabel.ValueLabel();
+            this.pr_code = new UAS_MES.CustomControl.ValueLabel.ValueLabel();
+            this.ma_qty = new UAS_MES.CustomControl.ValueLabel.ValueLabel();
+            this.pr_detail = new UAS_MES.CustomControl.ValueLabel.ValueLabel();
+            this.pr_code_label = new System.Windows.Forms.Label();
+            this.pr_spec_label = new System.Windows.Forms.Label();
+            this.getsnqty_label = new System.Windows.Forms.Label();
+            this.pr_detail_label = new System.Windows.Forms.Label();
+            this.ma_qty_label = new System.Windows.Forms.Label();
+            this.groupBoxWithBorder2 = new UAS_MES.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
+            this.PrintLabel = new System.Windows.Forms.ComboBox();
+            this.PrintLabel_label = new System.Windows.Forms.Label();
+            this.autoPrintCheckBox1 = new UAS_MES.CustomControl.CustomCheckBox.AutoPrintCheckBox();
+            this.PrinterList_label = new System.Windows.Forms.Label();
+            this.PrinterList = new UAS_MES.CustomControl.ComBoxWithFocus.PrinterCombox();
+            this.OperateResult = new UAS_MES.CustomControl.RichText.RichTextAutoBottom();
+            this.groupBoxWithBorder3 = new UAS_MES.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
+            this.ReWorkAsRelateTSN = new System.Windows.Forms.RadioButton();
+            this.ReWorkAsCurrentSN = new System.Windows.Forms.RadioButton();
+            this.label1 = new System.Windows.Forms.Label();
+            this.sn_code = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.ma_id = new UAS_MES.CustomControl.ValueLabel.ValueLabel();
+            this.groupBoxWithBorder1.SuspendLayout();
+            this.groupBoxWithBorder2.SuspendLayout();
+            this.groupBoxWithBorder3.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // groupBoxWithBorder1
+            // 
+            this.groupBoxWithBorder1.BorderColor = System.Drawing.Color.Black;
+            this.groupBoxWithBorder1.Controls.Add(this.ma_id);
+            this.groupBoxWithBorder1.Controls.Add(this.ma_craftcode);
+            this.groupBoxWithBorder1.Controls.Add(this.ma_saveimei);
+            this.groupBoxWithBorder1.Controls.Add(this.ma_savemacbt);
+            this.groupBoxWithBorder1.Controls.Add(this.LockCheckBox);
+            this.groupBoxWithBorder1.Controls.Add(this.ma_code_label);
+            this.groupBoxWithBorder1.Controls.Add(this.ma_code);
+            this.groupBoxWithBorder1.Controls.Add(this.pr_spec);
+            this.groupBoxWithBorder1.Controls.Add(this.getsnqty);
+            this.groupBoxWithBorder1.Controls.Add(this.pr_code);
+            this.groupBoxWithBorder1.Controls.Add(this.ma_qty);
+            this.groupBoxWithBorder1.Controls.Add(this.pr_detail);
+            this.groupBoxWithBorder1.Controls.Add(this.pr_code_label);
+            this.groupBoxWithBorder1.Controls.Add(this.pr_spec_label);
+            this.groupBoxWithBorder1.Controls.Add(this.getsnqty_label);
+            this.groupBoxWithBorder1.Controls.Add(this.pr_detail_label);
+            this.groupBoxWithBorder1.Controls.Add(this.ma_qty_label);
+            this.groupBoxWithBorder1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.groupBoxWithBorder1.Location = new System.Drawing.Point(12, 12);
+            this.groupBoxWithBorder1.Name = "groupBoxWithBorder1";
+            this.groupBoxWithBorder1.Size = new System.Drawing.Size(1091, 183);
+            this.groupBoxWithBorder1.TabIndex = 0;
+            this.groupBoxWithBorder1.TabStop = false;
+            this.groupBoxWithBorder1.Text = "工单信息";
+            this.groupBoxWithBorder1.TextColor = System.Drawing.Color.Black;
+            // 
+            // ma_craftcode
+            // 
+            this.ma_craftcode.AutoSize = true;
+            this.ma_craftcode.CutLength = null;
+            this.ma_craftcode.Location = new System.Drawing.Point(720, 143);
+            this.ma_craftcode.MaximumSize = new System.Drawing.Size(200, 0);
+            this.ma_craftcode.Name = "ma_craftcode";
+            this.ma_craftcode.Size = new System.Drawing.Size(0, 27);
+            this.ma_craftcode.TabIndex = 15;
+            // 
+            // ma_saveimei
+            // 
+            this.ma_saveimei.AutoSize = true;
+            this.ma_saveimei.Location = new System.Drawing.Point(418, 139);
+            this.ma_saveimei.Name = "ma_saveimei";
+            this.ma_saveimei.Power = null;
+            this.ma_saveimei.Size = new System.Drawing.Size(246, 31);
+            this.ma_saveimei.TabIndex = 14;
+            this.ma_saveimei.Text = "保留原有IMEI/网标信息";
+            this.ma_saveimei.UseVisualStyleBackColor = true;
+            // 
+            // ma_savemacbt
+            // 
+            this.ma_savemacbt.AutoSize = true;
+            this.ma_savemacbt.Location = new System.Drawing.Point(43, 139);
+            this.ma_savemacbt.Name = "ma_savemacbt";
+            this.ma_savemacbt.Power = null;
+            this.ma_savemacbt.Size = new System.Drawing.Size(234, 31);
+            this.ma_savemacbt.TabIndex = 13;
+            this.ma_savemacbt.Text = "保留原有MAC/BT信息";
+            this.ma_savemacbt.UseVisualStyleBackColor = true;
+            // 
+            // LockCheckBox
+            // 
+            this.LockCheckBox.AutoSize = true;
+            this.LockCheckBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.LockCheckBox.LeaveEvent = false;
+            this.LockCheckBox.Location = new System.Drawing.Point(322, 46);
+            this.LockCheckBox.Name = "LockCheckBox";
+            this.LockCheckBox.Size = new System.Drawing.Size(61, 24);
+            this.LockCheckBox.TabIndex = 12;
+            this.LockCheckBox.Text = "锁定";
+            this.LockCheckBox.UseVisualStyleBackColor = true;
+            // 
+            // ma_code_label
+            // 
+            this.ma_code_label.AutoSize = true;
+            this.ma_code_label.Location = new System.Drawing.Point(38, 42);
+            this.ma_code_label.Name = "ma_code_label";
+            this.ma_code_label.Size = new System.Drawing.Size(72, 27);
+            this.ma_code_label.TabIndex = 11;
+            this.ma_code_label.Text = "工单号";
+            // 
+            // ma_code
+            // 
+            this.ma_code.AllPower = null;
+            this.ma_code.Caller = null;
+            this.ma_code.Condition = null;
+            this.ma_code.DBTitle = null;
+            this.ma_code.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.ma_code.FormName = null;
+            this.ma_code.Location = new System.Drawing.Point(153, 42);
+            this.ma_code.Name = "ma_code";
+            this.ma_code.Power = null;
+            this.ma_code.ReturnData = null;
+            this.ma_code.SelectField = null;
+            this.ma_code.SetValueField = null;
+            this.ma_code.Size = new System.Drawing.Size(156, 28);
+            this.ma_code.TabIndex = 10;
+            this.ma_code.TableName = null;
+            this.ma_code.TextBoxEnable = true;
+            this.ma_code.UserControlTextChanged += new UAS_MES.CustomControl.TextBoxWithIcon.MaCodeSearchTextBox.OnTextChange(this.ma_code_UserControlTextChanged);
+            // 
+            // pr_spec
+            // 
+            this.pr_spec.AutoSize = true;
+            this.pr_spec.CutLength = null;
+            this.pr_spec.Location = new System.Drawing.Point(826, 96);
+            this.pr_spec.MaximumSize = new System.Drawing.Size(200, 0);
+            this.pr_spec.Name = "pr_spec";
+            this.pr_spec.Size = new System.Drawing.Size(0, 27);
+            this.pr_spec.TabIndex = 9;
+            // 
+            // getsnqty
+            // 
+            this.getsnqty.AutoSize = true;
+            this.getsnqty.CutLength = null;
+            this.getsnqty.Location = new System.Drawing.Point(826, 40);
+            this.getsnqty.MaximumSize = new System.Drawing.Size(200, 0);
+            this.getsnqty.Name = "getsnqty";
+            this.getsnqty.Size = new System.Drawing.Size(0, 27);
+            this.getsnqty.TabIndex = 8;
+            // 
+            // pr_code
+            // 
+            this.pr_code.AutoSize = true;
+            this.pr_code.CutLength = null;
+            this.pr_code.Location = new System.Drawing.Point(148, 96);
+            this.pr_code.MaximumSize = new System.Drawing.Size(200, 0);
+            this.pr_code.Name = "pr_code";
+            this.pr_code.Size = new System.Drawing.Size(0, 27);
+            this.pr_code.TabIndex = 7;
+            this.pr_code.TextChanged += new System.EventHandler(this.pr_code_TextChanged);
+            // 
+            // ma_qty
+            // 
+            this.ma_qty.AutoSize = true;
+            this.ma_qty.CutLength = null;
+            this.ma_qty.Location = new System.Drawing.Point(523, 40);
+            this.ma_qty.MaximumSize = new System.Drawing.Size(200, 0);
+            this.ma_qty.Name = "ma_qty";
+            this.ma_qty.Size = new System.Drawing.Size(0, 27);
+            this.ma_qty.TabIndex = 6;
+            // 
+            // pr_detail
+            // 
+            this.pr_detail.AutoSize = true;
+            this.pr_detail.CutLength = null;
+            this.pr_detail.Location = new System.Drawing.Point(523, 96);
+            this.pr_detail.MaximumSize = new System.Drawing.Size(200, 0);
+            this.pr_detail.Name = "pr_detail";
+            this.pr_detail.Size = new System.Drawing.Size(0, 27);
+            this.pr_detail.TabIndex = 5;
+            // 
+            // pr_code_label
+            // 
+            this.pr_code_label.AutoSize = true;
+            this.pr_code_label.Location = new System.Drawing.Point(38, 96);
+            this.pr_code_label.Name = "pr_code_label";
+            this.pr_code_label.Size = new System.Drawing.Size(92, 27);
+            this.pr_code_label.TabIndex = 4;
+            this.pr_code_label.Text = "产品编号";
+            // 
+            // pr_spec_label
+            // 
+            this.pr_spec_label.AutoSize = true;
+            this.pr_spec_label.Location = new System.Drawing.Point(720, 96);
+            this.pr_spec_label.Name = "pr_spec_label";
+            this.pr_spec_label.Size = new System.Drawing.Size(92, 27);
+            this.pr_spec_label.TabIndex = 3;
+            this.pr_spec_label.Text = "产品规格";
+            // 
+            // getsnqty_label
+            // 
+            this.getsnqty_label.AutoSize = true;
+            this.getsnqty_label.Location = new System.Drawing.Point(720, 40);
+            this.getsnqty_label.Name = "getsnqty_label";
+            this.getsnqty_label.Size = new System.Drawing.Size(92, 27);
+            this.getsnqty_label.TabIndex = 2;
+            this.getsnqty_label.Text = "已维护数";
+            // 
+            // pr_detail_label
+            // 
+            this.pr_detail_label.AutoSize = true;
+            this.pr_detail_label.Location = new System.Drawing.Point(413, 96);
+            this.pr_detail_label.Name = "pr_detail_label";
+            this.pr_detail_label.Size = new System.Drawing.Size(92, 27);
+            this.pr_detail_label.TabIndex = 1;
+            this.pr_detail_label.Text = "产品名称";
+            // 
+            // ma_qty_label
+            // 
+            this.ma_qty_label.AutoSize = true;
+            this.ma_qty_label.Location = new System.Drawing.Point(413, 40);
+            this.ma_qty_label.Name = "ma_qty_label";
+            this.ma_qty_label.Size = new System.Drawing.Size(92, 27);
+            this.ma_qty_label.TabIndex = 0;
+            this.ma_qty_label.Text = "工单数量";
+            // 
+            // groupBoxWithBorder2
+            // 
+            this.groupBoxWithBorder2.BorderColor = System.Drawing.Color.Black;
+            this.groupBoxWithBorder2.Controls.Add(this.PrintLabel);
+            this.groupBoxWithBorder2.Controls.Add(this.PrintLabel_label);
+            this.groupBoxWithBorder2.Controls.Add(this.autoPrintCheckBox1);
+            this.groupBoxWithBorder2.Controls.Add(this.PrinterList_label);
+            this.groupBoxWithBorder2.Controls.Add(this.PrinterList);
+            this.groupBoxWithBorder2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.groupBoxWithBorder2.Location = new System.Drawing.Point(12, 201);
+            this.groupBoxWithBorder2.Name = "groupBoxWithBorder2";
+            this.groupBoxWithBorder2.Size = new System.Drawing.Size(536, 177);
+            this.groupBoxWithBorder2.TabIndex = 13;
+            this.groupBoxWithBorder2.TabStop = false;
+            this.groupBoxWithBorder2.Text = "打印设置";
+            this.groupBoxWithBorder2.TextColor = System.Drawing.Color.Black;
+            // 
+            // PrintLabel
+            // 
+            this.PrintLabel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.PrintLabel.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.PrintLabel.FormattingEnabled = true;
+            this.PrintLabel.Location = new System.Drawing.Point(141, 93);
+            this.PrintLabel.Name = "PrintLabel";
+            this.PrintLabel.Size = new System.Drawing.Size(252, 28);
+            this.PrintLabel.TabIndex = 16;
+            // 
+            // PrintLabel_label
+            // 
+            this.PrintLabel_label.AutoSize = true;
+            this.PrintLabel_label.Location = new System.Drawing.Point(18, 96);
+            this.PrintLabel_label.Name = "PrintLabel_label";
+            this.PrintLabel_label.Size = new System.Drawing.Size(92, 27);
+            this.PrintLabel_label.TabIndex = 15;
+            this.PrintLabel_label.Text = "产品名称";
+            // 
+            // autoPrintCheckBox1
+            // 
+            this.autoPrintCheckBox1.Checked = false;
+            this.autoPrintCheckBox1.Location = new System.Drawing.Point(141, 138);
+            this.autoPrintCheckBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.autoPrintCheckBox1.Name = "autoPrintCheckBox1";
+            this.autoPrintCheckBox1.Size = new System.Drawing.Size(125, 31);
+            this.autoPrintCheckBox1.TabIndex = 14;
+            // 
+            // PrinterList_label
+            // 
+            this.PrinterList_label.AutoSize = true;
+            this.PrinterList_label.Location = new System.Drawing.Point(18, 40);
+            this.PrinterList_label.Name = "PrinterList_label";
+            this.PrinterList_label.Size = new System.Drawing.Size(112, 27);
+            this.PrinterList_label.TabIndex = 13;
+            this.PrinterList_label.Text = "打印机列表";
+            // 
+            // PrinterList
+            // 
+            this.PrinterList.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.PrinterList.Location = new System.Drawing.Point(141, 39);
+            this.PrinterList.Margin = new System.Windows.Forms.Padding(6, 7, 6, 7);
+            this.PrinterList.Name = "PrinterList";
+            this.PrinterList.Size = new System.Drawing.Size(252, 28);
+            this.PrinterList.TabIndex = 0;
+            // 
+            // OperateResult
+            // 
+            this.OperateResult.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OperateResult.Location = new System.Drawing.Point(12, 384);
+            this.OperateResult.Name = "OperateResult";
+            this.OperateResult.Size = new System.Drawing.Size(1091, 213);
+            this.OperateResult.TabIndex = 14;
+            this.OperateResult.Text = "";
+            // 
+            // groupBoxWithBorder3
+            // 
+            this.groupBoxWithBorder3.BorderColor = System.Drawing.Color.Black;
+            this.groupBoxWithBorder3.Controls.Add(this.ReWorkAsRelateTSN);
+            this.groupBoxWithBorder3.Controls.Add(this.ReWorkAsCurrentSN);
+            this.groupBoxWithBorder3.Controls.Add(this.label1);
+            this.groupBoxWithBorder3.Controls.Add(this.sn_code);
+            this.groupBoxWithBorder3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.groupBoxWithBorder3.Location = new System.Drawing.Point(12, 603);
+            this.groupBoxWithBorder3.Name = "groupBoxWithBorder3";
+            this.groupBoxWithBorder3.Size = new System.Drawing.Size(1091, 77);
+            this.groupBoxWithBorder3.TabIndex = 14;
+            this.groupBoxWithBorder3.TabStop = false;
+            this.groupBoxWithBorder3.Text = "输入信息";
+            this.groupBoxWithBorder3.TextColor = System.Drawing.Color.Black;
+            // 
+            // ReWorkAsRelateTSN
+            // 
+            this.ReWorkAsRelateTSN.AutoSize = true;
+            this.ReWorkAsRelateTSN.Location = new System.Drawing.Point(653, 32);
+            this.ReWorkAsRelateTSN.Name = "ReWorkAsRelateTSN";
+            this.ReWorkAsRelateTSN.Size = new System.Drawing.Size(220, 31);
+            this.ReWorkAsRelateTSN.TabIndex = 15;
+            this.ReWorkAsRelateTSN.Text = "以SN关联的TSN返工";
+            this.ReWorkAsRelateTSN.UseVisualStyleBackColor = true;
+            // 
+            // ReWorkAsCurrentSN
+            // 
+            this.ReWorkAsCurrentSN.AutoSize = true;
+            this.ReWorkAsCurrentSN.Checked = true;
+            this.ReWorkAsCurrentSN.Location = new System.Drawing.Point(465, 32);
+            this.ReWorkAsCurrentSN.Name = "ReWorkAsCurrentSN";
+            this.ReWorkAsCurrentSN.Size = new System.Drawing.Size(153, 31);
+            this.ReWorkAsCurrentSN.TabIndex = 14;
+            this.ReWorkAsCurrentSN.TabStop = true;
+            this.ReWorkAsCurrentSN.Text = "以当前号返工";
+            this.ReWorkAsCurrentSN.UseVisualStyleBackColor = true;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(56, 34);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(72, 27);
+            this.label1.TabIndex = 13;
+            this.label1.Text = "输入框";
+            // 
+            // sn_code
+            // 
+            this.sn_code.AllPower = null;
+            this.sn_code.BackColor = System.Drawing.Color.White;
+            this.sn_code.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.sn_code.ID = null;
+            this.sn_code.Location = new System.Drawing.Point(153, 33);
+            this.sn_code.Name = "sn_code";
+            this.sn_code.Power = null;
+            this.sn_code.Size = new System.Drawing.Size(196, 27);
+            this.sn_code.Str = null;
+            this.sn_code.Str1 = null;
+            this.sn_code.Str2 = null;
+            this.sn_code.TabIndex = 0;
+            this.sn_code.KeyDown += new System.Windows.Forms.KeyEventHandler(this.sn_code_KeyDown);
+            // 
+            // ma_id
+            // 
+            this.ma_id.AutoSize = true;
+            this.ma_id.CutLength = null;
+            this.ma_id.Location = new System.Drawing.Point(793, 143);
+            this.ma_id.MaximumSize = new System.Drawing.Size(200, 0);
+            this.ma_id.Name = "ma_id";
+            this.ma_id.Size = new System.Drawing.Size(0, 27);
+            this.ma_id.TabIndex = 16;
+            // 
+            // Make_GetReMakeSN
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1115, 692);
+            this.Controls.Add(this.groupBoxWithBorder3);
+            this.Controls.Add(this.OperateResult);
+            this.Controls.Add(this.groupBoxWithBorder2);
+            this.Controls.Add(this.groupBoxWithBorder1);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Name = "Make_GetReMakeSN";
+            this.Tag = "Make!GetReMakeSN";
+            this.Text = "返工数据采集";
+            this.Load += new System.EventHandler(this.Make_GetReMakeSN_Load);
+            this.SizeChanged += new System.EventHandler(this.Make_GetReMakeSN_SizeChanged);
+            this.groupBoxWithBorder1.ResumeLayout(true);
+            this.groupBoxWithBorder1.PerformLayout();
+            this.groupBoxWithBorder2.ResumeLayout(true);
+            this.groupBoxWithBorder2.PerformLayout();
+            this.groupBoxWithBorder3.ResumeLayout(true);
+            this.groupBoxWithBorder3.PerformLayout();
+            this.ResumeLayout(true);
+
+        }
+
+        #endregion
+
+        private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder groupBoxWithBorder1;
+        private System.Windows.Forms.Label pr_detail_label;
+        private System.Windows.Forms.Label ma_qty_label;
+        private System.Windows.Forms.Label getsnqty_label;
+        private System.Windows.Forms.Label pr_spec_label;
+        private System.Windows.Forms.Label pr_code_label;
+        private CustomControl.ValueLabel.ValueLabel pr_spec;
+        private CustomControl.ValueLabel.ValueLabel getsnqty;
+        private CustomControl.ValueLabel.ValueLabel pr_code;
+        private CustomControl.ValueLabel.ValueLabel ma_qty;
+        private CustomControl.ValueLabel.ValueLabel pr_detail;
+        private CustomControl.TextBoxWithIcon.MaCodeSearchTextBox ma_code;
+        private System.Windows.Forms.Label ma_code_label;
+        private CustomControl.CustomCheckBox.LockCheckBox LockCheckBox;
+        private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder groupBoxWithBorder2;
+        private CustomControl.RichText.RichTextAutoBottom OperateResult;
+        private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder groupBoxWithBorder3;
+        private CustomControl.ComBoxWithFocus.PrinterCombox PrinterList;
+        private CustomControl.CustomCheckBox.AutoPrintCheckBox autoPrintCheckBox1;
+        private System.Windows.Forms.Label PrinterList_label;
+        private System.Windows.Forms.Label PrintLabel_label;
+        private System.Windows.Forms.ComboBox PrintLabel;
+        private CustomControl.TextBoxWithIcon.EnterTextBox sn_code;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.RadioButton ReWorkAsRelateTSN;
+        private System.Windows.Forms.RadioButton ReWorkAsCurrentSN;
+        private CustomControl.CustomCheckBox.CustomCheckBox ma_saveimei;
+        private CustomControl.CustomCheckBox.CustomCheckBox ma_savemacbt;
+        private CustomControl.ValueLabel.ValueLabel ma_craftcode;
+        private CustomControl.ValueLabel.ValueLabel ma_id;
+    }
+}

+ 283 - 0
UAS-MES/FunctionCode/Make/Make_GetReMakeSN.cs

@@ -0,0 +1,283 @@
+using LabelManager2;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Windows.Forms;
+using UAS_MES.DataOperate;
+using UAS_MES.Entity;
+using UAS_MES.PublicForm;
+using UAS_MES.PublicMethod;
+
+namespace UAS_MES.Make
+{
+    public partial class Make_GetReMakeSN : Form
+    {
+        //打印进程
+        ApplicationClass lbl;
+        //初始化打印进程
+        Thread InitPrint;
+
+        LogStringBuilder sql = new LogStringBuilder();
+
+        AutoSizeFormClass asc = new AutoSizeFormClass();
+
+        DataHelper dh;
+
+        DataTable dt;
+
+        private System.DateTime[] indate;
+
+        string ErrMessage;
+
+        public Make_GetReMakeSN()
+        {
+            InitializeComponent();
+        }
+
+        private void InPrint()
+        {
+            try
+            {
+                lbl = new ApplicationClass();
+                BaseUtil.WriteLbl(lbl);
+            }
+            catch (Exception ex)
+            {
+                OperateResult.AppendText("未正确安装CodeSoft软件\n", Color.Red);
+            }
+        }
+
+        private void Make_GetReMakeSN_Load(object sender, EventArgs e)
+        {
+            ma_code.TableName = "make left join product on ma_prodcode=pr_code";
+            ma_code.SelectField = "ma_code # 工单号,pr_code # 产品编号,ma_qty # 工单数量,pr_detail # 产品名称,pr_spec # 产品规格,ma_craftcode # 途程编号";
+            ma_code.FormName = Name;
+            ma_code.SetValueField = new string[] { "ma_code", "pr_code", "ma_qty", "pr_detail", "pr_spec", "ma_craftcode" };
+            ma_code.Condition = "ma_kind='返工' and ma_statuscode='STARTED'";
+            ma_code.DbChange += Ma_code_DbChange;
+
+            ma_code.SetLockCheckBox(LockCheckBox);
+            LockCheckBox.GetMakeCodeCtl(ma_code);
+            dh = new DataHelper();
+
+            OperateResult.AppendText(">>请输入返工工单号\n", Color.Black);
+
+            asc.controllInitializeSize(this);
+            InitPrint = new Thread(InPrint);
+            SetLoadingWindow stw = new SetLoadingWindow(InitPrint, "初始化打印程序");
+            BaseUtil.SetFormCenter(stw);
+            stw.ShowDialog();
+            sn_code.Focus();
+        }
+
+        private void Ma_code_DbChange(object sender, EventArgs e)
+        {
+            DataTable dt = ma_code.ReturnData;
+            BaseUtil.SetFormValue(this.Controls, dt);
+        }
+
+        private void Make_GetReMakeSN_SizeChanged(object sender, EventArgs e)
+        {
+            asc.controlAutoSize(this);
+        }
+
+        private void pr_code_TextChanged(object sender, EventArgs e)
+        {
+            DataTable dt = (DataTable)dh.ExecuteSql("select pl_labelcode||':'||pl_labelname pl_laname,pl_labelname,pl_labelcode,pl_labelurl,pl_indate from productlabel where pl_prodcode='" + pr_code.Text + "' order by pl_isdefault desc ", "select");
+            PrintLabel.DataSource = dt;
+            PrintLabel.DisplayMember = "pl_laname";
+            PrintLabel.ValueMember = "pl_labelcode";
+            indate = new System.DateTime[dt.Rows.Count];
+            for (int i = 0; i < dt.Rows.Count; i++)
+            {
+                BaseUtil.GetPrintLabel(dt.Rows[i]["pl_labelname"].ToString(), dt.Rows[i]["pl_labelurl"].ToString(), dt.Rows[i]["pl_indate"].ToString());
+                indate[i] = Convert.ToDateTime(dt.Rows[i]["pl_indate"].ToString());
+            }
+        }
+
+        private void sn_code_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode == Keys.Enter)
+            {
+                if (ma_code.Text != "")
+                {
+                    //判断是否是途程第一道工序
+                    sql.Clear();
+                    sql.Append("select cd_id from craft left join craftdetail on cd_crid=cr_id where cr_craftcode='" + ma_craftcode.Text + "' ");
+                    sql.Append("and cr_prodcode='" + pr_code.Text + "' and nvl(cd_iffirst,0)<>0 and cd_stepcode='" + User.CurrentStepCode + "'");
+                    dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                    if (dt.Rows.Count > 0)
+                    {
+                        if (sn_code.Text != "")
+                        {
+                            //判断序列号是否有效
+                            string Msid = dh.getFieldDataByCondition("makeserial ", "max(ms_id)", "ms_sncode='" + sn_code.Text + "'").ToString();
+                            if (Msid != "")
+                            {
+                                //序列号信息
+                                sql.Clear();
+                                sql.Append("select ms_beforesn,ms_firstsn,ms_outboxcode,ms_nextmacode,ms_prodcode,ms_salecode,");
+                                sql.Append("MS_IMEI1,MS_MAC,MS_NETCODE,MS_MEID,ms_imei2,ms_imei13,ms_othid1,ms_othid2,ms_othid3");
+                                sql.Append(",MS_OTHCODE3,MS_OTHCODE2,MS_OTHCODE1,ms_bt from makeserial where ms_id='" + Msid + "'");
+                                DataTable SnInf = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                                string ms_prodcode = SnInf.Rows[0]["ma_prodcode"].ToString();
+                                string ms_salecode = SnInf.Rows[0]["ma_salecode"].ToString();
+                                string ms_beforesn = SnInf.Rows[0]["ms_beforesn"].ToString();
+                                //判断是否已装箱
+                                if (SnInf.Rows[0]["ms_outboxcode"].ToString() != "")
+                                {
+                                    OperateResult.AppendText(">>序列号已经装箱:" + SnInf.Rows[0]["ms_outboxcode"].ToString() + ",需要从箱内移除才可以进行返工归属\n", Color.Red, sn_code);
+                                    return;
+                                }
+                                //判断序列号是否已经被使用
+                                if (SnInf.Rows[0]["ms_nextmacode"].ToString() != "")
+                                {
+                                    OperateResult.AppendText(">>序列号已经被工单号:" + SnInf.Rows[0]["ms_nextmacode"].ToString() + "使用\n", Color.Red, sn_code);
+                                    return;
+                                }
+                                //工单信息
+                                sql.Clear();
+                                sql.Append("select ma_salecode,ma_prodcode,ma_inqty,ma_craftcode,ma_qty,nvl(ma_inqty,0) ma_inqty,");
+                                sql.Append("nvl(ma_scrapqty,0)ma_scrapqty,ma_id,nvl(ma_unlimitin,0) ma_unlimitin,ma_wccode from make ");
+                                sql.Append("where ma_code='" + ma_code.Text + "'and ma_kind='返工' and  ma_statuscode='STARTED'");
+                                DataTable MaInf = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                                string ma_prodcode = MaInf.Rows[0]["ma_prodcode"].ToString();
+                                string ma_salecode = MaInf.Rows[0]["ma_salecode"].ToString();
+                                int ma_unlimitin = int.Parse(MaInf.Rows[0]["ma_unlimitin"].ToString());
+                                int ma_iqnty = int.Parse(MaInf.Rows[0]["ma_iqnty"].ToString());
+                                int ma_scrapqty = int.Parse(MaInf.Rows[0]["ma_scrapqty"].ToString());
+                                int ma_qty = int.Parse(MaInf.Rows[0]["ma_qty"].ToString());
+                                if (ma_prodcode != ms_prodcode)
+                                {
+                                    OperateResult.AppendText(">>序列号所属产品" + ms_prodcode + "与返工工单产品不一致\n", Color.Red, sn_code);
+                                    return;
+                                }
+                                if (ms_salecode != "" && ma_salecode != "" && ms_salecode != ma_salecode)
+                                {
+                                    OperateResult.AppendText(">>序列号所属合同" + ms_salecode + "与返工工单合同不一致\n", Color.Red, sn_code);
+                                    return;
+                                }
+                                if (ma_unlimitin == 0 && ma_iqnty - ma_scrapqty + 1 > ma_qty)
+                                {
+                                    OperateResult.AppendText(">>工单不允许超数投产\n", Color.Red, sn_code);
+                                    return;
+                                }
+                                string SN = "";
+                                if (ReWorkAsCurrentSN.Checked)
+                                {
+                                    SN = sn_code.Text;
+                                }
+                                else if (ReWorkAsRelateTSN.Checked)
+                                {
+                                    if (ms_beforesn != "")
+                                    {
+                                        SN = sn_code.Text;
+                                    }
+                                    else
+                                    {
+                                        OperateResult.AppendText(">>序列号不允许为空\n", Color.Red, sn_code);
+                                        return;
+                                    }
+                                }
+                                string netcode = "";
+                                string imeid = "";
+                                string imei1 = "";
+                                string imei2 = "";
+                                string imei3 = "";
+                                string othid1 = "";
+                                string othid2 = "";
+                                string othid3 = "";
+                                string mac = "";
+                                string bt = "";
+                                string othcode1 = "";
+                                string othcode2 = "";
+                                string othcode3 = "";
+                                if (ma_saveimei.Checked)
+                                {
+                                    netcode = SnInf.Rows[0]["MS_NETCODE"].ToString();
+                                    imeid = SnInf.Rows[0]["MS_MEID"].ToString();
+                                    imei1 = SnInf.Rows[0]["MS_IMEI1"].ToString();
+                                    imei2 = SnInf.Rows[0]["ms_imei2"].ToString();
+                                    imei3 = SnInf.Rows[0]["ms_imei3"].ToString();
+                                    othid1 = SnInf.Rows[0]["ms_othid1"].ToString();
+                                    othid2 = SnInf.Rows[0]["ms_othid2"].ToString();
+                                    othid3 = SnInf.Rows[0]["ms_othid3"].ToString();
+                                }
+                                if (ma_savemacbt.Checked)
+                                {
+                                    mac = SnInf.Rows[0]["ms_mac"].ToString();
+                                    bt = SnInf.Rows[0]["ms_bt"].ToString();
+                                    othcode1 = SnInf.Rows[0]["MS_OTHCODE1"].ToString();
+                                    othcode2 = SnInf.Rows[0]["MS_OTHCODE2"].ToString();
+                                    othcode3 = SnInf.Rows[0]["MS_OTHCODE3"].ToString();
+                                }
+                                string craftcode = MaInf.Rows[0]["ma_craftcode"].ToString();
+                                string craftname = MaInf.Rows[0]["ma_craftname"].ToString();
+                                string firstsn = SnInf.Rows[0]["ms_firstsn"].ToString();
+                                //取工作中心
+                                string workcenter = User.WorkCenter;
+                                if (workcenter == "")
+                                    workcenter = MaInf.Rows[0]["ma_wccode"].ToString();
+                                string salecode = MaInf.Rows[0]["ma_salecode"].ToString();
+                                if (salecode == "")
+                                {
+                                    salecode = SnInf.Rows[0]["ms_salecode"].ToString();
+                                    dh.ExecuteSql("update make set ma_salecode='" + salecode + "' where ma_id='" + ma_id + "'", "update");
+                                }
+                                sql.Clear();
+                                sql.Append("insert into MakeSerial(ms_id,ms_code,ms_sncode,ms_prodcode,ms_indate,ms_wccode");
+                                sql.Append(",ms_craftcode,ms_craftname,ms_nextstepcode,ms_status,ms_makecode,ms_linecode");
+                                sql.Append(",ms_sourcecode,ms_maid,ms_firstsn,ms_salecode,ms_mac,ms_bt,ms_othcode1,ms_othcode2,");
+                                sql.Append("ms_othcode3,ms_netcode,ms_imei1,ms_imei2,ms_imei13,ms_meid,ms_othid1,ms_othid2,ms_othid3 ");
+                                sql.Append("values(MakeSerial_seq.nextval,'" + SN + "','" + SN + "','" + pr_code.Text + "',");
+                                sql.Append("sysdate,'" + workcenter + "','" + craftcode + "','" + craftname + "','" + User.CurrentStepCode + "',");
+                                sql.Append("1,'" + ma_code.Text + "','" + User.UserLineCode + "','" + User.UserSourceCode + "','" + ma_id.Text + "',");
+                                sql.Append("'" + firstsn + "','" + salecode + "','" + mac + "','" + bt + "','" + othcode1 + "','" + othcode2 + "','" + othcode3 + "',");
+                                sql.Append("'" + netcode + "','" + imei1 + "','" + imei2 + "','" + imei3 + "','" + imeid + "','" + othid1 + "','" + othid2 + "','" + othid3 + "')");
+                                dh.ExecuteSql(sql.GetString(), "insert");
+                                dh.ExecuteSql("update make set ma_inqty=nvl(ma_inqty,0)+1 where ma_id='" + ma_id + "'", "update");
+                                dh.ExecuteSql("update makeserial set ms_nextmacode='" + ma_code.Text + "' where ms_id='" + Msid + "'", "update");
+                            }
+                            else OperateResult.AppendText(">>序列号" + sn_code.Text + "不存在\n", Color.Red, sn_code);
+                        }
+                        else OperateResult.AppendText(">>序列号不允许为空\n", Color.Red, sn_code);
+                    }
+                    else OperateResult.AppendText(">>该岗位资源对应的工序不是当前返工工单途程中的第一道工序,请切换资源编号\n", Color.Red, sn_code);
+                }
+                else OperateResult.AppendText(">>工单号不允许为空\n", Color.Red, sn_code);
+            }
+        }
+
+        private void ma_code_UserControlTextChanged(object sender, EventArgs e)
+        {
+            if (ma_code.Text.Length >= 5)
+            {
+                if (dh.CheckExist("make", "ma_kind='返工' and ma_statuscode='STARTED' and ma_code='" + ma_code.Text + "'"))
+                {
+                    sql.Clear();
+                    sql.Append("select ma_id,ma_code,pr_code,pr_detail,pr_spec,ma_qty,nvl(ma_savemacbt,0) ma_savemacbt,nvl(ma_saveimei, 0)");
+                    sql.Append("ma_saveimei from make left join product on ma_prodcode=pr_code where ma_code='" + ma_code.Text + "'");
+                    dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                    BaseUtil.SetFormValue(this.Controls, dt);
+                    if (dt.Rows[0]["ma_saveimei"].ToString() != "0")
+                    {
+                        ma_saveimei.Checked = true;
+                    }
+                    if (dt.Rows[0]["ma_savemacbt"].ToString() != "0")
+                    {
+                        ma_savemacbt.Checked = true;
+                    }
+                }
+                //else
+                //{
+                //    OperateResult.AppendText(">>不存在返工工单" + ma_code.Text + "\n", Color.Red);
+                //}
+            }
+        }
+    }
+}

+ 120 - 0
UAS-MES/FunctionCode/Make/Make_GetReMakeSN.resx

@@ -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>