Browse Source

换错误提示音

shim 8 years ago
parent
commit
9e86a68734

+ 1 - 1
UAS-MES/App.config

@@ -41,7 +41,7 @@
   <applicationSettings>
     <UAS_MES.Properties.Settings>
       <setting name="MES" serializeAs="String">
-        <value>Password=select!#%*(;User ID=UAS_MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.253.6)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</value>
+        <value>Password=select!#%*(;User ID=UAS_MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=218.17.158.219)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</value>
       </setting>
     </UAS_MES.Properties.Settings>
   </applicationSettings>

+ 1 - 1
UAS-MES/CustomControl/RichText/RichTextAutoBottom.cs

@@ -9,7 +9,7 @@ namespace UAS_MES.CustomControl.RichText
     public partial class RichTextAutoBottom : RichTextBox
     {
         Thread thread;
-        string FileName = Application.StartupPath + @"\Resources\Sound\3291.wav";
+        string FileName = Application.StartupPath + @"\Resources\Sound\5185.wav";
 
         public RichTextAutoBottom()
         {

+ 377 - 0
UAS-MES/FunctionCode/Make/Make_SeqProgramTransform.Designer.cs

@@ -0,0 +1,377 @@
+namespace UAS_MES.FunctionCode.Make
+{
+    partial class Make_SeqProgramTransform
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Make_SeqProgramTransform));
+            this.ms_macode_label = new System.Windows.Forms.Label();
+            this.ma_prodcode_label = new System.Windows.Forms.Label();
+            this.pr_detail_label = new System.Windows.Forms.Label();
+            this.remain_qty_label = new System.Windows.Forms.Label();
+            this.PrintNum_label = new System.Windows.Forms.Label();
+            this.ms_macode = new System.Windows.Forms.Label();
+            this.remain_qty = new System.Windows.Forms.Label();
+            this.ma_prodcode = new System.Windows.Forms.Label();
+            this.count = new System.Windows.Forms.Label();
+            this.pr_detail = new System.Windows.Forms.Label();
+            this.TSNLength_checkBox = new System.Windows.Forms.CheckBox();
+            this.SNLength_checkBox = new System.Windows.Forms.CheckBox();
+            this.TSNPre_checkBox = new System.Windows.Forms.CheckBox();
+            this.SNPre_checkBox = new System.Windows.Forms.CheckBox();
+            this.TSNLength = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.SNLength = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.TSNPre = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.SNPre = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.tip = new System.Windows.Forms.Label();
+            this.OperateResult = new UAS_MES.CustomControl.RichText.RichTextAutoBottom();
+            this.cancel = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
+            this.in_label = new System.Windows.Forms.Label();
+            this.code = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.SuspendLayout();
+            // 
+            // ms_macode_label
+            // 
+            this.ms_macode_label.AutoSize = true;
+            this.ms_macode_label.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.ms_macode_label.Location = new System.Drawing.Point(38, 36);
+            this.ms_macode_label.Name = "ms_macode_label";
+            this.ms_macode_label.Size = new System.Drawing.Size(110, 31);
+            this.ms_macode_label.TabIndex = 0;
+            this.ms_macode_label.Text = "工单编号";
+            // 
+            // ma_prodcode_label
+            // 
+            this.ma_prodcode_label.AutoSize = true;
+            this.ma_prodcode_label.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.ma_prodcode_label.Location = new System.Drawing.Point(442, 36);
+            this.ma_prodcode_label.Name = "ma_prodcode_label";
+            this.ma_prodcode_label.Size = new System.Drawing.Size(110, 31);
+            this.ma_prodcode_label.TabIndex = 1;
+            this.ma_prodcode_label.Text = "产品编号";
+            // 
+            // pr_detail_label
+            // 
+            this.pr_detail_label.AutoSize = true;
+            this.pr_detail_label.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.pr_detail_label.Location = new System.Drawing.Point(801, 36);
+            this.pr_detail_label.Name = "pr_detail_label";
+            this.pr_detail_label.Size = new System.Drawing.Size(110, 31);
+            this.pr_detail_label.TabIndex = 2;
+            this.pr_detail_label.Text = "产品名称";
+            // 
+            // remain_qty_label
+            // 
+            this.remain_qty_label.AutoSize = true;
+            this.remain_qty_label.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.remain_qty_label.Location = new System.Drawing.Point(38, 91);
+            this.remain_qty_label.Name = "remain_qty_label";
+            this.remain_qty_label.Size = new System.Drawing.Size(86, 31);
+            this.remain_qty_label.TabIndex = 3;
+            this.remain_qty_label.Text = "剩余数";
+            // 
+            // PrintNum_label
+            // 
+            this.PrintNum_label.AutoSize = true;
+            this.PrintNum_label.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.PrintNum_label.Location = new System.Drawing.Point(442, 91);
+            this.PrintNum_label.Name = "PrintNum_label";
+            this.PrintNum_label.Size = new System.Drawing.Size(62, 31);
+            this.PrintNum_label.TabIndex = 4;
+            this.PrintNum_label.Text = "计数";
+            // 
+            // ms_macode
+            // 
+            this.ms_macode.AutoSize = true;
+            this.ms_macode.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.ms_macode.Location = new System.Drawing.Point(191, 36);
+            this.ms_macode.Name = "ms_macode";
+            this.ms_macode.Size = new System.Drawing.Size(0, 31);
+            this.ms_macode.TabIndex = 5;
+            // 
+            // remain_qty
+            // 
+            this.remain_qty.AutoSize = true;
+            this.remain_qty.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.remain_qty.Location = new System.Drawing.Point(185, 90);
+            this.remain_qty.Name = "remain_qty";
+            this.remain_qty.Size = new System.Drawing.Size(0, 31);
+            this.remain_qty.TabIndex = 6;
+            // 
+            // ma_prodcode
+            // 
+            this.ma_prodcode.AutoSize = true;
+            this.ma_prodcode.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.ma_prodcode.Location = new System.Drawing.Point(570, 36);
+            this.ma_prodcode.Name = "ma_prodcode";
+            this.ma_prodcode.Size = new System.Drawing.Size(0, 31);
+            this.ma_prodcode.TabIndex = 7;
+            // 
+            // count
+            // 
+            this.count.AutoSize = true;
+            this.count.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.count.Location = new System.Drawing.Point(558, 91);
+            this.count.Name = "count";
+            this.count.Size = new System.Drawing.Size(0, 31);
+            this.count.TabIndex = 8;
+            // 
+            // pr_detail
+            // 
+            this.pr_detail.AutoSize = true;
+            this.pr_detail.Font = new System.Drawing.Font("微软雅黑", 12F);
+            this.pr_detail.Location = new System.Drawing.Point(955, 36);
+            this.pr_detail.Name = "pr_detail";
+            this.pr_detail.Size = new System.Drawing.Size(0, 31);
+            this.pr_detail.TabIndex = 9;
+            // 
+            // TSNLength_checkBox
+            // 
+            this.TSNLength_checkBox.AutoSize = true;
+            this.TSNLength_checkBox.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.TSNLength_checkBox.Location = new System.Drawing.Point(44, 153);
+            this.TSNLength_checkBox.Name = "TSNLength_checkBox";
+            this.TSNLength_checkBox.Size = new System.Drawing.Size(117, 31);
+            this.TSNLength_checkBox.TabIndex = 10;
+            this.TSNLength_checkBox.Text = "TSN长度";
+            this.TSNLength_checkBox.UseVisualStyleBackColor = true;
+            // 
+            // SNLength_checkBox
+            // 
+            this.SNLength_checkBox.AutoSize = true;
+            this.SNLength_checkBox.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.SNLength_checkBox.Location = new System.Drawing.Point(44, 200);
+            this.SNLength_checkBox.Name = "SNLength_checkBox";
+            this.SNLength_checkBox.Size = new System.Drawing.Size(106, 31);
+            this.SNLength_checkBox.TabIndex = 11;
+            this.SNLength_checkBox.Text = "SN长度";
+            this.SNLength_checkBox.UseVisualStyleBackColor = true;
+            // 
+            // TSNPre_checkBox
+            // 
+            this.TSNPre_checkBox.AutoSize = true;
+            this.TSNPre_checkBox.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.TSNPre_checkBox.Location = new System.Drawing.Point(448, 153);
+            this.TSNPre_checkBox.Name = "TSNPre_checkBox";
+            this.TSNPre_checkBox.Size = new System.Drawing.Size(117, 31);
+            this.TSNPre_checkBox.TabIndex = 12;
+            this.TSNPre_checkBox.Text = "TSN前缀";
+            this.TSNPre_checkBox.UseVisualStyleBackColor = true;
+            // 
+            // SNPre_checkBox
+            // 
+            this.SNPre_checkBox.AutoSize = true;
+            this.SNPre_checkBox.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.SNPre_checkBox.Location = new System.Drawing.Point(448, 201);
+            this.SNPre_checkBox.Name = "SNPre_checkBox";
+            this.SNPre_checkBox.Size = new System.Drawing.Size(106, 31);
+            this.SNPre_checkBox.TabIndex = 13;
+            this.SNPre_checkBox.Text = "SN前缀";
+            this.SNPre_checkBox.UseVisualStyleBackColor = true;
+            // 
+            // TSNLength
+            // 
+            this.TSNLength.AllPower = null;
+            this.TSNLength.BackColor = System.Drawing.Color.White;
+            this.TSNLength.ID = null;
+            this.TSNLength.Location = new System.Drawing.Point(191, 155);
+            this.TSNLength.Name = "TSNLength";
+            this.TSNLength.Negative = false;
+            this.TSNLength.Power = null;
+            this.TSNLength.Size = new System.Drawing.Size(196, 28);
+            this.TSNLength.Str = null;
+            this.TSNLength.Str1 = null;
+            this.TSNLength.Str2 = null;
+            this.TSNLength.TabIndex = 14;
+            // 
+            // SNLength
+            // 
+            this.SNLength.AllPower = null;
+            this.SNLength.BackColor = System.Drawing.Color.White;
+            this.SNLength.ID = null;
+            this.SNLength.Location = new System.Drawing.Point(191, 203);
+            this.SNLength.Name = "SNLength";
+            this.SNLength.Negative = false;
+            this.SNLength.Power = null;
+            this.SNLength.Size = new System.Drawing.Size(196, 28);
+            this.SNLength.Str = null;
+            this.SNLength.Str1 = null;
+            this.SNLength.Str2 = null;
+            this.SNLength.TabIndex = 15;
+            // 
+            // TSNPre
+            // 
+            this.TSNPre.AllPower = null;
+            this.TSNPre.BackColor = System.Drawing.Color.White;
+            this.TSNPre.ID = null;
+            this.TSNPre.Location = new System.Drawing.Point(601, 155);
+            this.TSNPre.Name = "TSNPre";
+            this.TSNPre.Power = null;
+            this.TSNPre.Size = new System.Drawing.Size(196, 28);
+            this.TSNPre.Str = null;
+            this.TSNPre.Str1 = null;
+            this.TSNPre.Str2 = null;
+            this.TSNPre.TabIndex = 16;
+            // 
+            // SNPre
+            // 
+            this.SNPre.AllPower = null;
+            this.SNPre.BackColor = System.Drawing.Color.White;
+            this.SNPre.ID = null;
+            this.SNPre.Location = new System.Drawing.Point(601, 203);
+            this.SNPre.Name = "SNPre";
+            this.SNPre.Power = null;
+            this.SNPre.Size = new System.Drawing.Size(196, 28);
+            this.SNPre.Str = null;
+            this.SNPre.Str1 = null;
+            this.SNPre.Str2 = null;
+            this.SNPre.TabIndex = 17;
+            // 
+            // tip
+            // 
+            this.tip.AutoSize = true;
+            this.tip.Location = new System.Drawing.Point(41, 252);
+            this.tip.Name = "tip";
+            this.tip.Size = new System.Drawing.Size(116, 18);
+            this.tip.TabIndex = 18;
+            this.tip.Text = "采集提示信息";
+            // 
+            // OperateResult
+            // 
+            this.OperateResult.Location = new System.Drawing.Point(44, 291);
+            this.OperateResult.Name = "OperateResult";
+            this.OperateResult.Size = new System.Drawing.Size(1159, 356);
+            this.OperateResult.TabIndex = 19;
+            this.OperateResult.Text = "";
+            // 
+            // cancel
+            // 
+            this.cancel.AllPower = null;
+            this.cancel.BackColor = System.Drawing.Color.Transparent;
+            this.cancel.DownImage = ((System.Drawing.Image)(resources.GetObject("cancel.DownImage")));
+            this.cancel.Image = null;
+            this.cancel.IsShowBorder = true;
+            this.cancel.Location = new System.Drawing.Point(429, 669);
+            this.cancel.MoveImage = ((System.Drawing.Image)(resources.GetObject("cancel.MoveImage")));
+            this.cancel.Name = "cancel";
+            this.cancel.NormalImage = ((System.Drawing.Image)(resources.GetObject("cancel.NormalImage")));
+            this.cancel.Power = null;
+            this.cancel.Size = new System.Drawing.Size(75, 28);
+            this.cancel.TabIndex = 20;
+            this.cancel.Text = "取消";
+            this.cancel.UseVisualStyleBackColor = false;
+            // 
+            // in_label
+            // 
+            this.in_label.AutoSize = true;
+            this.in_label.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.in_label.Location = new System.Drawing.Point(52, 672);
+            this.in_label.Name = "in_label";
+            this.in_label.Size = new System.Drawing.Size(72, 27);
+            this.in_label.TabIndex = 21;
+            this.in_label.Text = "录入框";
+            // 
+            // code
+            // 
+            this.code.AllPower = null;
+            this.code.BackColor = System.Drawing.Color.White;
+            this.code.ID = null;
+            this.code.Location = new System.Drawing.Point(147, 669);
+            this.code.Name = "code";
+            this.code.Power = null;
+            this.code.Size = new System.Drawing.Size(196, 28);
+            this.code.Str = null;
+            this.code.Str1 = null;
+            this.code.Str2 = null;
+            this.code.TabIndex = 22;
+            this.code.KeyDown += new System.Windows.Forms.KeyEventHandler(this.code_KeyDown);
+            // 
+            // Make_SeqProgramTransform
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1252, 712);
+            this.Controls.Add(this.code);
+            this.Controls.Add(this.in_label);
+            this.Controls.Add(this.cancel);
+            this.Controls.Add(this.OperateResult);
+            this.Controls.Add(this.tip);
+            this.Controls.Add(this.SNPre);
+            this.Controls.Add(this.TSNPre);
+            this.Controls.Add(this.SNLength);
+            this.Controls.Add(this.TSNLength);
+            this.Controls.Add(this.SNPre_checkBox);
+            this.Controls.Add(this.TSNPre_checkBox);
+            this.Controls.Add(this.SNLength_checkBox);
+            this.Controls.Add(this.TSNLength_checkBox);
+            this.Controls.Add(this.pr_detail);
+            this.Controls.Add(this.count);
+            this.Controls.Add(this.ma_prodcode);
+            this.Controls.Add(this.remain_qty);
+            this.Controls.Add(this.ms_macode);
+            this.Controls.Add(this.PrintNum_label);
+            this.Controls.Add(this.remain_qty_label);
+            this.Controls.Add(this.pr_detail_label);
+            this.Controls.Add(this.ma_prodcode_label);
+            this.Controls.Add(this.ms_macode_label);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Name = "Make_SeqProgramTransform";
+            this.Tag = "Make!SeqProgramTransform";
+            this.Load += new System.EventHandler(this.Make_SeqProgramTransform_Load);
+            this.SizeChanged += new System.EventHandler(this.序列烧录转换_SizeChanged);
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Label ms_macode_label;
+        private System.Windows.Forms.Label ma_prodcode_label;
+        private System.Windows.Forms.Label pr_detail_label;
+        private System.Windows.Forms.Label remain_qty_label;
+        private System.Windows.Forms.Label PrintNum_label;
+        private System.Windows.Forms.Label ms_macode;
+        private System.Windows.Forms.Label remain_qty;
+        private System.Windows.Forms.Label ma_prodcode;
+        private System.Windows.Forms.Label count;
+        private System.Windows.Forms.Label pr_detail;
+        private System.Windows.Forms.CheckBox TSNLength_checkBox;
+        private System.Windows.Forms.CheckBox SNLength_checkBox;
+        private System.Windows.Forms.CheckBox TSNPre_checkBox;
+        private System.Windows.Forms.CheckBox SNPre_checkBox;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox TSNLength;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox SNLength;
+        private CustomControl.TextBoxWithIcon.EnterTextBox TSNPre;
+        private CustomControl.TextBoxWithIcon.EnterTextBox SNPre;
+        private System.Windows.Forms.Label tip;
+        private CustomControl.RichText.RichTextAutoBottom OperateResult;
+        private CustomControl.ButtonUtil.NormalButton cancel;
+        private System.Windows.Forms.Label in_label;
+        private CustomControl.TextBoxWithIcon.EnterTextBox code;
+    }
+}

+ 119 - 0
UAS-MES/FunctionCode/Make/Make_SeqProgramTransform.cs

@@ -0,0 +1,119 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using UAS_MES.DataOperate;
+using UAS_MES.Entity;
+using UAS_MES.PublicMethod;
+
+namespace UAS_MES.FunctionCode.Make
+{
+    public partial class Make_SeqProgramTransform : Form
+    {
+        AutoSizeFormClass asc = new AutoSizeFormClass();
+
+        DataHelper dh;
+        //原序列号
+        string TSN;
+        //转换后序列号
+        string SN;
+        //错误信息
+        string errorMessage;
+        //存放productsnrelation表中的数据
+        DataTable dt;
+
+        public Make_SeqProgramTransform()
+        {
+            InitializeComponent();
+        }
+
+        private void Make_SeqProgramTransform_Load(object sender, EventArgs e)
+        {
+            asc.controllInitializeSize(this);
+            dh = new DataHelper();
+            code.Focus();
+            //提示用户“>>请输入TSN号”
+            OperateResult.AppendText(">>请输入TSN号\n", Color.Green);
+        }
+
+        private void 序列烧录转换_SizeChanged(object sender, EventArgs e)
+        {
+            asc.controlAutoSize(this);
+        }
+
+        private void code_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode==Keys.Enter)
+            {
+                if (code.Text != "")
+                {
+                    OperateResult.AppendText(">>序列号:" + code.Text + " , 发送请求\n", Color.Green);
+                    //判断用户是否锁定输入TSN长度,
+                    if (!checkLengthOrPre(TSNLength_checkBox, TSNLength, "长度")) {
+                        return;
+                    }
+                    //判断用户是否锁定输入TSN前缀,
+                    if (!checkLengthOrPre(TSNPre_checkBox, TSNPre, "前缀")) {
+                        return;
+                    }
+                    string oMakecode="";
+                    string oMsid="";
+                    //核对工序
+                    if (LogicHandler.CheckStepSNAndMacode(ms_macode.Text, User.UserSourceCode, code.Text, User.UserCode, out oMakecode, out oMsid, out errorMessage))
+                    {
+                        //按照out出的工单号查出工单相关信息,并赋值到相关空间
+
+                    }
+                    else {
+                        OperateResult.AppendText(">>" + errorMessage + "\n", Color.Red);
+                    }
+                }
+                else {
+                    OperateResult.AppendText(">>输入不能为空\n", Color.Red);
+                }
+            }
+        }
+        /// <summary>
+        /// 检验长度或者前缀是否合法
+        /// </summary>
+        /// <param name="checkbox"></param>
+        /// <param name="c"></param>
+        /// <param name="info"></param>
+        private bool checkLengthOrPre(CheckBox checkbox, TextBox textbox, string type)
+        {
+            if (checkbox.Checked == true)
+            {
+                if (type == "长度")
+                {
+                    //则判断输入转换前的序列号长度是否合法,不合法则提示
+                    if (code.Text.Trim().Length != int.Parse(textbox.Text))
+                    {
+                        //序列号校验错误,长度错误
+                        OperateResult.AppendText(">>TSN号" + code.Text + "校验错误,长度错误\n", Color.Red);
+                        code.Text = "";
+                        OperateResult.AppendText("<<请重新输入TSN\n", Color.Green);
+                        return false;
+                    }
+                }
+                else if (type == "前缀")
+                {
+                    //则判断输入转换前的序列号前缀是否合法,不合法则提示
+                    if (!code.Text.StartsWith(textbox.Text.Trim()))
+                    {
+                        //序列号校验错误,前缀错误
+                        OperateResult.AppendText(">>TSN号" + code.Text + "校验错误,前缀错误\n", Color.Red);
+                        code.Text = "";
+                        OperateResult.AppendText("<<请重新输入TSN\n", Color.Green);
+                        return false;
+                    }
+                }
+                return true;
+            }
+            return true;
+        }
+    }
+}

+ 159 - 0
UAS-MES/FunctionCode/Make/Make_SeqProgramTransform.resx

@@ -0,0 +1,159 @@
+<?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>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="cancel.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFcSURBVFhH5di7UsJAFMbxtDT6QMI76IAFT0npIE0K
+        GcRORxHklpAIBHLfbILV8XxeNsMznJ35F5vu+82kWYuILD4N7oq75roCw27sb/x5WBdc27btntY64o/i
+        DnZjPxy4S6A0R6PHO1WUNHc9ep4uxIXd2D8eP/XZowWUThBG+n3p0stsKbbJ0qFDFFfscQuUbpzm9Pqx
+        Eh8c4PGLkuX0Nl+LDw4GJckUTRaO+OBQo+SKpitXfHAwKClfZuuN+OBgUDJV0NzxxAeHM5TFxhffGUpe
+        aFp5n+KDg0FRfHH8nfjgUKPoktztXnxwMCgFX7xdID441ChlRf7+ID44GBTNl21wFB8capSqot0xFB8c
+        /lE6Wa70IU5oH0Ziw/5cFebpoPUwHPbL04nCJKUgisWF3dgPB3gABc9v7fvBoBcnaVKdvkha2I39cPjx
+        oPrhusndcPinpIXd2N8gIusbTaFspKtR2SQAAAAASUVORK5CYII=
+</value>
+  </data>
+  <data name="cancel.MoveImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFzSURBVFhH5djNSgJRGMZxL2P2gTfQFbZvHSEZFBEW
+        CEIQBEIgVFiS9qXWoDmp4/fHzDmjM2a+vU/QqUVX0DvwXxxn9fwYXJwYEcXWNzIWt83dcq7AsBv7LXgA
+        ZI0r71/aaqjCJf8o7sFu7IcDFwdK4vimrv1oSZXRnArdQFzYjf3pQkOzRxIoVWc6X5X6M7ruBGIr9mbU
+        9MIVe9hAcXvBO125WnxwgMcXSpcPF20tPjgYlI5eUK6lxAcHg9Lmw3nTFx8cDEpLLSjr+OKDg0FpqojO
+        Gp744GBQ3vyITutT8cHBoDheRCe1ifjgYFBe+ZCxJ+KDg0GpT0NKv4zFBweDUpuEdFQdiQ8OBsXmw2Fl
+        JD44/KCM53TwNBQfHAzKMx/2Hgfig8M3SrXYUasUfz67DwOxYf9dV5urg+RWzta4aEnxn83OfV9c2I39
+        cIAHUOJceTNbUfmW94GX0sJu7IcDPH5fXCe4EvfXxe5/D7ux3yKi2CfkPhTy27lqkwAAAABJRU5ErkJg
+        gg==
+</value>
+  </data>
+  <data name="cancel.NormalImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGVSURBVFhH5di7agJRFIXhDSKoYBQEC8FCECwEQRBE
+        4uUVEtTiPKVlom2wttM6IfF+15njXHRnL19jD/zFmanWV8zAEDNTp9OJS6/Sm2QUht3YH4cHtdvtF6k7
+        mUwG1tqd3FR3YTf2w0FKUVOu6XT68Xgw3+8PtWH/bDYbCkeLGo1Gz/d9JwzvrL0gCKx49KlerxtIBUGo
+        PjjAg2q1mqDc2fN99cEBHlStVk0oB+t56oMDPKhSqZggDNm1N/XBAR5ULpeNvGD46rrqgwM8qFQqGV8O
+        56ujPjjAg4rFosFL5ni5qA8O8KBCoWBuns/701l9cIAH5fN5QfF4dzipDw7woFwuZ+zN483+oD44wIOy
+        2azB52i13asPDvCgTCZjHGt5sdmqDw7woHQ6bRzX8ny1UR8c4EHJZNJc5fC7XKsPDvCgRCLR2x9Pzt9q
+        zT+Lpdqw/3A6W/HoUywWa32Nx8OL4zwffM8X6sJu7IcDPCgajaak7udoNNjsdgc81BZ2Yz8c4PH8cR2J
+        ROJSU3qXjMKwG/vjzEz/skOI3Zqgv7AAAAAASUVORK5CYII=
+</value>
+  </data>
+</root>

+ 2 - 2
UAS-MES/Properties/Settings.Designer.cs

@@ -86,8 +86,8 @@ namespace UAS_MES.Properties {
         [global::System.Configuration.ApplicationScopedSettingAttribute()]
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [global::System.Configuration.DefaultSettingValueAttribute("Password=select!#%*(;User ID=UAS_MES;Pooling=false;Data Source=(DESCRIPTION=(ADDR" +
-            "ESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.253.6)(PORT=1521)))(CONNECT_DATA=(" +
-            "SERVER=DEDICATED)(SERVICE_NAME=orcl)));")]
+            "ESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=218.17.158.219)(PORT=1521)))(CONNECT_DATA=" +
+            "(SERVER=DEDICATED)(SERVICE_NAME=orcl)));")]
         public string MES {
             get {
                 return ((string)(this["MES"]));

+ 1 - 1
UAS-MES/Properties/Settings.settings

@@ -18,7 +18,7 @@
       <Value Profile="(Default)" />
     </Setting>
     <Setting Name="MES" Type="System.String" Scope="Application">
-      <Value Profile="(Default)">Password=select!#%*(;User ID=UAS_MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.253.6)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</Value>
+      <Value Profile="(Default)">Password=select!#%*(;User ID=UAS_MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=218.17.158.219)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</Value>
     </Setting>
     <Setting Name="DefaultCollectionValue" Type="System.String" Scope="User">
       <Value Profile="(Default)">DefaultValue</Value>

BIN
UAS-MES/Resources/Sound/5185.wav


+ 10 - 0
UAS-MES/UAS-MES.csproj

@@ -443,6 +443,12 @@
     <Compile Include="FunctionCode\Make\Make_NewMatainInf.Designer.cs">
       <DependentUpon>Make_NewMatainInf.cs</DependentUpon>
     </Compile>
+    <Compile Include="FunctionCode\Make\Make_SeqProgramTransform.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FunctionCode\Make\Make_SeqProgramTransform.Designer.cs">
+      <DependentUpon>Make_SeqProgramTransform.cs</DependentUpon>
+    </Compile>
     <Compile Include="FunctionCode\Special\Special_MendLabel.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -899,6 +905,9 @@
     <EmbeddedResource Include="FunctionCode\Make\Make_NewMatainInf.resx">
       <DependentUpon>Make_NewMatainInf.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FunctionCode\Make\Make_SeqProgramTransform.resx">
+      <DependentUpon>Make_SeqProgramTransform.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FunctionCode\Special\Special_MendLabel.resx">
       <DependentUpon>Special_MendLabel.cs</DependentUpon>
     </EmbeddedResource>
@@ -1095,6 +1104,7 @@
   </ItemGroup>
   <ItemGroup>
     <Content Include="Resources\Sound\3291.wav" />
+    <Content Include="Resources\Sound\5185.wav" />
     <Content Include="U_Icon.ico" />
     <None Include="Resources\timg.jpg" />
     <None Include="Resources\matte_white_square_icon_business_tool_hammer_128px_571061_easyicon.net.ico" />