shim %!s(int64=8) %!d(string=hai) anos
pai
achega
6bd02866da

+ 248 - 0
UAS-MES/FunctionCode/Make/Make_UpdateCollectCode.Designer.cs

@@ -0,0 +1,248 @@
+namespace UAS_MES.FunctionCode.Make
+{
+    partial class Make_UpdateCollectCode
+    {
+        /// <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.collectCodeRules = new System.Windows.Forms.DataGridView();
+            this.label1 = new System.Windows.Forms.Label();
+            this.OperateResult = new UAS_MES.CustomControl.RichText.RichTextAutoBottom();
+            this.inputValue = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.label2 = new System.Windows.Forms.Label();
+            this.psr_type = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.psr_prefix = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.psr_length = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.collects = new UAS_MES.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
+            this.Mac = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            this.Bt = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            this.NetCode = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            this.Imei1 = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            this.Imei2 = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            this.Imei3 = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            ((System.ComponentModel.ISupportInitialize)(this.collectCodeRules)).BeginInit();
+            this.collects.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // collectCodeRules
+            // 
+            this.collectCodeRules.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.collectCodeRules.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.psr_type,
+            this.psr_prefix,
+            this.psr_length});
+            this.collectCodeRules.Location = new System.Drawing.Point(300, 73);
+            this.collectCodeRules.Name = "collectCodeRules";
+            this.collectCodeRules.RowTemplate.Height = 30;
+            this.collectCodeRules.Size = new System.Drawing.Size(733, 287);
+            this.collectCodeRules.TabIndex = 6;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(297, 27);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(80, 18);
+            this.label1.TabIndex = 7;
+            this.label1.Text = "防呆规则";
+            // 
+            // 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(27, 408);
+            this.OperateResult.Margin = new System.Windows.Forms.Padding(4);
+            this.OperateResult.Name = "OperateResult";
+            this.OperateResult.Size = new System.Drawing.Size(1006, 228);
+            this.OperateResult.TabIndex = 88;
+            this.OperateResult.Text = "";
+            // 
+            // inputValue
+            // 
+            this.inputValue.AllPower = null;
+            this.inputValue.BackColor = System.Drawing.Color.White;
+            this.inputValue.ID = null;
+            this.inputValue.Location = new System.Drawing.Point(204, 667);
+            this.inputValue.Name = "inputValue";
+            this.inputValue.Power = null;
+            this.inputValue.Size = new System.Drawing.Size(257, 28);
+            this.inputValue.Str = null;
+            this.inputValue.Str1 = null;
+            this.inputValue.Str2 = null;
+            this.inputValue.TabIndex = 90;
+            this.inputValue.KeyDown += new System.Windows.Forms.KeyEventHandler(this.inputValue_KeyDown);
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(57, 670);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(62, 18);
+            this.label2.TabIndex = 91;
+            this.label2.Text = "采集栏";
+            // 
+            // psr_type
+            // 
+            this.psr_type.HeaderText = "采集项";
+            this.psr_type.Name = "psr_type";
+            this.psr_type.Width = 230;
+            // 
+            // psr_prefix
+            // 
+            this.psr_prefix.HeaderText = "前缀";
+            this.psr_prefix.Name = "psr_prefix";
+            this.psr_prefix.Width = 230;
+            // 
+            // psr_length
+            // 
+            this.psr_length.HeaderText = "长度";
+            this.psr_length.Name = "psr_length";
+            this.psr_length.Width = 230;
+            // 
+            // collects
+            // 
+            this.collects.BorderColor = System.Drawing.Color.Black;
+            this.collects.Controls.Add(this.Imei3);
+            this.collects.Controls.Add(this.Imei2);
+            this.collects.Controls.Add(this.Imei1);
+            this.collects.Controls.Add(this.NetCode);
+            this.collects.Controls.Add(this.Bt);
+            this.collects.Controls.Add(this.Mac);
+            this.collects.Location = new System.Drawing.Point(27, 27);
+            this.collects.Name = "collects";
+            this.collects.Size = new System.Drawing.Size(188, 333);
+            this.collects.TabIndex = 92;
+            this.collects.TabStop = false;
+            this.collects.TextColor = System.Drawing.Color.Black;
+            // 
+            // Mac
+            // 
+            this.Mac.AutoSize = true;
+            this.Mac.Location = new System.Drawing.Point(37, 31);
+            this.Mac.Name = "Mac";
+            this.Mac.Power = null;
+            this.Mac.Size = new System.Drawing.Size(106, 22);
+            this.Mac.TabIndex = 0;
+            this.Mac.Text = "MAC/WIFI";
+            this.Mac.UseVisualStyleBackColor = true;
+            // 
+            // Bt
+            // 
+            this.Bt.AutoSize = true;
+            this.Bt.Location = new System.Drawing.Point(37, 81);
+            this.Bt.Name = "Bt";
+            this.Bt.Power = null;
+            this.Bt.Size = new System.Drawing.Size(52, 22);
+            this.Bt.TabIndex = 1;
+            this.Bt.Text = "BT";
+            this.Bt.UseVisualStyleBackColor = true;
+            // 
+            // NetCode
+            // 
+            this.NetCode.AutoSize = true;
+            this.NetCode.Location = new System.Drawing.Point(38, 129);
+            this.NetCode.Name = "NetCode";
+            this.NetCode.Power = null;
+            this.NetCode.Size = new System.Drawing.Size(70, 22);
+            this.NetCode.TabIndex = 2;
+            this.NetCode.Text = "网标";
+            this.NetCode.UseVisualStyleBackColor = true;
+            // 
+            // Imei1
+            // 
+            this.Imei1.AutoSize = true;
+            this.Imei1.Location = new System.Drawing.Point(38, 185);
+            this.Imei1.Name = "Imei1";
+            this.Imei1.Power = null;
+            this.Imei1.Size = new System.Drawing.Size(79, 22);
+            this.Imei1.TabIndex = 3;
+            this.Imei1.Text = "IMEI1";
+            this.Imei1.UseVisualStyleBackColor = true;
+            // 
+            // Imei2
+            // 
+            this.Imei2.AutoSize = true;
+            this.Imei2.Location = new System.Drawing.Point(37, 232);
+            this.Imei2.Name = "Imei2";
+            this.Imei2.Power = null;
+            this.Imei2.Size = new System.Drawing.Size(79, 22);
+            this.Imei2.TabIndex = 4;
+            this.Imei2.Text = "IMEI2";
+            this.Imei2.UseVisualStyleBackColor = true;
+            // 
+            // Imei3
+            // 
+            this.Imei3.AutoSize = true;
+            this.Imei3.Location = new System.Drawing.Point(37, 283);
+            this.Imei3.Name = "Imei3";
+            this.Imei3.Power = null;
+            this.Imei3.Size = new System.Drawing.Size(79, 22);
+            this.Imei3.TabIndex = 5;
+            this.Imei3.Text = "IMEI3";
+            this.Imei3.UseVisualStyleBackColor = true;
+            // 
+            // Make_UpdateCollectCode
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1120, 724);
+            this.Controls.Add(this.collects);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.inputValue);
+            this.Controls.Add(this.OperateResult);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.collectCodeRules);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Name = "Make_UpdateCollectCode";
+            this.Text = "Make!UpdateCollectCode";
+            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Make_UpdateCollectCode_FormClosing);
+            this.Load += new System.EventHandler(this.Make_UpdateCollectCode_Load);
+            this.SizeChanged += new System.EventHandler(this.Make_UpdateCollectCode_SizeChanged);
+            ((System.ComponentModel.ISupportInitialize)(this.collectCodeRules)).EndInit();
+            this.collects.ResumeLayout(false);
+            this.collects.PerformLayout();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+        private System.Windows.Forms.DataGridView collectCodeRules;
+        private System.Windows.Forms.Label label1;
+        private CustomControl.RichText.RichTextAutoBottom OperateResult;
+        private CustomControl.TextBoxWithIcon.EnterTextBox inputValue;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn psr_type;
+        private System.Windows.Forms.DataGridViewTextBoxColumn psr_prefix;
+        private System.Windows.Forms.DataGridViewTextBoxColumn psr_length;
+        private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder collects;
+        private CustomControl.CustomCheckBox.CustomCheckBox Imei3;
+        private CustomControl.CustomCheckBox.CustomCheckBox Imei2;
+        private CustomControl.CustomCheckBox.CustomCheckBox Imei1;
+        private CustomControl.CustomCheckBox.CustomCheckBox NetCode;
+        private CustomControl.CustomCheckBox.CustomCheckBox Bt;
+        private CustomControl.CustomCheckBox.CustomCheckBox Mac;
+    }
+}

+ 255 - 0
UAS-MES/FunctionCode/Make/Make_UpdateCollectCode.cs

@@ -0,0 +1,255 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using UAS_MES.DataOperate;
+using UAS_MES.Entity;
+using UAS_MES.PublicMethod;
+
+namespace UAS_MES.FunctionCode.Make
+{
+    public partial class Make_UpdateCollectCode : Form
+    {
+        AutoSizeFormClass asc = new AutoSizeFormClass();
+
+        LogStringBuilder sql = new LogStringBuilder();
+
+        DataHelper dh;
+
+        DataTable dt;
+
+        DataTable info;
+
+        int step = 0;
+
+        List<CheckBox> list = new List<CheckBox>();//记录勾选的控件
+
+        string ms_id = "";
+
+        StringBuilder sb ;
+        string sncode = "";
+        public Make_UpdateCollectCode()
+        {
+            InitializeComponent();
+        }
+
+        private void Make_UpdateCollectCode_Load(object sender, EventArgs e)
+        {
+            asc.controllInitializeSize(this);
+            dt = new DataTable();
+            OperateResult.AppendText(">>请先勾选需要更新的项,通过采集栏输入SN,更新项具体数据\n", Color.Black);
+        }
+
+        private void Make_UpdateCollectCode_FormClosing(object sender, FormClosingEventArgs e)
+        {
+
+        }
+
+        private void Make_UpdateCollectCode_SizeChanged(object sender, EventArgs e)
+        {
+            asc.controlAutoSize(this);
+        }
+
+        private void inputValue_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode==Keys.Enter)
+            {
+                //输入不能为空
+                if (inputValue.Text=="")
+                {
+                    OperateResult.AppendText("<<输入不能为空\n", Color.Red);
+                    return;
+                }
+                if (step == 0)
+                {
+                    //判断是否有已勾选的项次
+                    foreach (Control ctl in collects.Controls)
+                    {
+                        if ((ctl as CheckBox).Checked)
+                        {
+                            list.Add((ctl as CheckBox));
+                        }
+                    }
+                    if (list.Count>0)
+                    {
+                        //无勾选的内容
+                        OperateResult.AppendText("<<请先勾选需要更新的信息\n", Color.Red);
+                        return;
+                    }
+                    //判断TSN或者SN是否存在
+                    ms_id = dh.getFieldDataByCondition("makeserial", "max(ms_id)", "ms_sncode ='" + inputValue.Text + "' or exists (select 1 from  makesnrelation where beforesn='" + inputValue.Text + "'  and ms_makecode=makecode)").ToString();
+                    sncode = inputValue.Text;
+                    if (ms_id == "")
+                    {
+                        OperateResult.AppendText("<<SN错误,不存在\n", Color.Red, inputValue);
+                        return;
+                    }
+                    //查询序列号状态
+                    dt = (DataTable)dh.ExecuteSql("select ms_status,ms_makecode from makeserial where ms_id='"+ms_id+"'", "select");
+                    //序列号状态码必须是3
+                    if (dt.Rows[0]["ms_status"].ToString()!="3")
+                    {
+                        OperateResult.AppendText("<<序列号必须是待维修状态\n", Color.Red, inputValue);
+                        return;
+                    }
+                    sql.Clear();
+                    sql.Append("select * from (select rownum rn, ms_prodcode,ms_makecode,ms_salecode,");
+                    sql.Append("ms_mac,ms_imei1,ms_bt,ms_netcode,ms_imei2,ms_imei3  from makeserial ");
+                    sql.Append("where ms_firstsn=(select ms_firstsn from makeserial where ms_id='"+ms_id+"')");
+                    sql.Append(" and (nvl(ms_mac,' ')<>' ' or nvl(ms_bt,' ')<>' ' or nvl(ms_imei1,' ')<>' ' ) order by ms_id asc)where rn=1;");
+                    dt = (DataTable)dh.ExecuteSql(sql.GetString(),"select");
+                    //无值则提示没有需要更新的信息
+                    if (dt.Rows.Count == 0)
+                    {
+                        OperateResult.AppendText("<<序列号" + inputValue.Text + "没有需要更新的信息\n", Color.Red, inputValue);
+                        return;
+                    }
+                    else
+                    {
+                        info = (DataTable)dh.ExecuteSql("select psr_type,psr_prefix,psr_length from productsnrule where psr_prodcode='"+dt.Rows[0]["ms_prodcode"].ToString() +"'", "select");
+                        //查询规则显示
+                        collectCodeRules.DataSource = info;
+                    }
+                    step = 1;
+                    OperateResult.AppendText("<<请输入"+((CheckBox)list[0]).Text+"\n", Color.Green, inputValue);
+                    sb = new StringBuilder();
+                }
+                else
+                //采集的关联采集信息
+                {
+                    //从第一个开始
+                    switch (((CheckBox)list[step-1]).Text)
+                    {
+                        case "MAC/WIFI":
+                        case "BT":
+                            if (dh.CheckExist("makeserial", "ms_" + ((CheckBox)list[step - 1]).Text.Split('/')[0] + " ='" + inputValue.Text + "' and ms_id='" + ms_id + "'"))
+                            {
+                                //如果一样提示用户“MAC 不允许与原来的值一致”,“请采集MAC”;
+                                OperateResult.AppendText("<<" + ((CheckBox)list[step - 1]).Text.Split('/')[0] + "不允许与原来的值一致\n", Color.Red);
+                            }
+                            else
+                            {
+                                //判断是否有合同号MAC范围
+                                if (dh.CheckExist("SaleMacBTRange", "sr_sacode='"+dt.Rows[0]["ms_salecode"].ToString()+"' and sr_type='"+ ((CheckBox)list[step - 1]).Text.Split('/')[0] + "'"))
+                                {
+                                    //有范围的情况下看是否在范围内
+                                    if (!dh.CheckExist("SaleMacBTRange", "sr_sacode='" + dt.Rows[0]["ms_salecode"].ToString() + "' and  sr_type='" + ((CheckBox)list[step - 1]).Text.Split('/')[0] + "' AND  '" + inputValue.Text + "' between sr_startcode and sr_endcode"))
+                                    {
+                                        OperateResult.AppendText("<<" + ((CheckBox)list[step - 1]).Text.Split('/')[0] + ":" + inputValue.Text + "错误,不在合同防呆范围内\n", Color.Red, inputValue);
+                                        OperateResult.AppendText(">>请采集" + ((CheckBox)list[step - 1]).Text.Split('/')[0] + "\n", Color.Black);
+                                        return;
+                                    }
+                                }
+                                //验证长度前缀
+                                if (!checkPrefixAndLength()) {
+                                    return;
+                                }
+                                //验证长度前缀通过,验证数据库
+                                if (dh.CheckExist("makeserial", "ms_status in (1,2,3) and nvl(ms_nextmacode,' ')<>' ' and  ms_'"+ ((CheckBox)list[step - 1]).Text.Split('/')[0] + "'='"+inputValue.Text+"'"))
+                                {
+                                    OperateResult.AppendText("<<" + ((CheckBox)list[step - 1]).Text + ":" + inputValue.Text + "错误,已被使用\n", Color.Red, inputValue);
+                                    return;
+                                }
+                                //通过校验
+                                sb.Append("ms_"+((CheckBox)list[step - 1]).Text.Split('/')[0]+" = '"+inputValue.Text+"',");
+                            }
+                            break;
+                        case "网标":
+                        case "IMEI1":
+                        case "IMEI2":
+                        case "IMEI3":
+                            //验证长度前缀
+                            if (!checkPrefixAndLength()) {
+                                return;
+                            }
+                            //验证长度前缀通过,验证数据库
+                            if (dh.CheckExist("makeserial", "ms_status in (1,2,3) and nvl(ms_nextmacode,' ')<>' ' and  ms_'" + ((CheckBox)list[step - 1]).Text == "网标" ? "NETCODE" : ((CheckBox)list[step - 1]).Text + "'='" + inputValue.Text + "'"))
+                            {
+                                OperateResult.AppendText("<<" + ((CheckBox)list[step - 1]).Text + ":" + inputValue.Text + "错误,已被使用\n", Color.Red, inputValue);
+                                return;
+                            }
+                            //通过校验
+                            sb.Append("ms_" + ((CheckBox)list[step - 1]).Text == "网标" ? "NETCODE" : ((CheckBox)list[step - 1]).Text+" = '"+inputValue.Text+"',");
+                            break;
+                    }
+                    //判断是否是最后一个
+                    if (step == list.Count)
+                    {
+                        //更新数据库
+                        sql.Clear();
+                        sql.Append("update makeserial set ");
+                        sql.Append(sb.ToString().Substring(0,sb.ToString().Length-1));
+                        sql.Append(" where ms_id='"+ms_id+"'");
+                        dh.ExecuteSql(sql.GetString(),"update");
+                        //提示烧录成功
+                        OperateResult.AppendText(">>烧录成功\n", Color.Green);
+                        //记录日志
+                        LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, dt.Rows[0]["ms_makecode"].ToString(), User.UserLineCode, User.UserSourceCode, "更新烧录", "转换成功", sncode,"");
+                        step = 0;
+                        //清除规则
+                        dt = null;
+                        //聚焦,提示
+                        inputValue.Focus();
+                        OperateResult.AppendText("<<请采集SN\n", Color.Black);
+                        //清除LIST
+                        list.Clear();
+                    }
+                    else
+                    {
+                        step++;
+                        //请输入下一个
+                        OperateResult.AppendText(">>请采集" + ((CheckBox)list[step-1]).Text.Split('/')[0] + "\n", Color.Black);
+                    }
+                }
+            }
+        }
+        private bool checkPrefixAndLength()
+        {
+            //找到对应的规则
+            for(int i=0;i<info.Rows.Count;i++)
+            {
+                if ((((CheckBox)list[step - 1]).Text.Split('/')[0]=="网标"?"NETCODE": ((CheckBox)list[step - 1]).Text.Split('/')[0])==info.Rows[i]["psr_type"].ToString())
+                {
+                    //校验长度
+                    if ((info.Rows[i]["psr_length"].ToString() == "" ? true : inputValue.Text.Length != int.Parse(info.Rows[i]["psr_length"].ToString())))
+                    {
+                        OperateResult.AppendText(">>" + info.Rows[i]["psr_type"] + "长度校验不通过,请重新输入\n", Color.Red);
+                        OperateResult.AppendText(">>请重新输入" + info.Rows[i]["psr_type"] + "\n", Color.Black, inputValue);
+                        break;
+                        return false;
+                    }
+                    //校验前缀
+                    //以|符号分割前缀
+                    string[] preFixs = info.Rows[i]["psr_prefix"].ToString().Split('|');
+                    //只要满足其中一个前缀条件即可
+                    bool isfit = false;
+                    for (int j = 0; j < preFixs.Length; j++)
+                    {
+                        if (preFixs[j] == "" ? true : inputValue.Text.StartsWith(preFixs[j]))
+                        {
+                            //满足其中一条即可
+                            isfit = true;
+                            break;
+                        }
+                    }
+                    if (!isfit)
+                    {
+                        OperateResult.AppendText(">>" + info.Rows[i]["psr_type"] + "前缀校验不通过,请重新输入\n", Color.Red);
+                        OperateResult.AppendText(">>请重新输入" + info.Rows[i]["psr_type"] + "\n", Color.Black, inputValue);
+                        break;
+                        return false;
+                    }
+                    break;
+                    return true;
+                }
+            }
+            OperateResult.AppendText(">>无对应规则\n", Color.Red, inputValue);
+            return false;
+        }
+    }
+}

+ 129 - 0
UAS-MES/FunctionCode/Make/Make_UpdateCollectCode.resx

@@ -0,0 +1,129 @@
+<?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="psr_type.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="psr_prefix.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="psr_length.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>