فهرست منبع

治具领用归还

yhluo 5 روز پیش
والد
کامیت
e74760a35a

+ 742 - 0
UAS_MES_YTDZ/FunctionCode/Make/Make_ToolingManager.Designer.cs

@@ -0,0 +1,742 @@
+namespace UAS_MES_NEW.Make
+{
+    partial class Make_ToolingManager
+    {
+        /// <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.TopBox = new System.Windows.Forms.Panel();
+            this.cancel = new System.Windows.Forms.Button();
+            this.prevTimeVal = new System.Windows.Forms.TextBox();
+            this.prevTimeLab = new System.Windows.Forms.Label();
+            this.prevTypeVal = new System.Windows.Forms.TextBox();
+            this.prevTypeLab = new System.Windows.Forms.Label();
+            this.typeVal = new System.Windows.Forms.ComboBox();
+            this.typeLab = new System.Windows.Forms.Label();
+            this.toolingVal = new System.Windows.Forms.TextBox();
+            this.toolingLab = new System.Windows.Forms.Label();
+            this.ExeBox = new System.Windows.Forms.TabControl();
+            this.ExePage1 = new System.Windows.Forms.TabPage();
+            this.Container = new System.Windows.Forms.TableLayoutPanel();
+            this.MsgBox = new UAS_MES_NEW.CustomControl.RichText.RichTextAutoBottom();
+            this.Page1Box = new System.Windows.Forms.TableLayoutPanel();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.panel2 = new System.Windows.Forms.Panel();
+            this.Receive = new System.Windows.Forms.Button();
+            this.ma_code = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.MaCodeSearchTextBox();
+            this.ma_codeLab = new System.Windows.Forms.Label();
+            this.sideVal = new System.Windows.Forms.ComboBox();
+            this.sideLab = new System.Windows.Forms.Label();
+            this.li_code = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.SearchTextBox();
+            this.li_codeLab = new System.Windows.Forms.Label();
+            this.empVal = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.empLab = new System.Windows.Forms.Label();
+            this.LockMakeCode = new UAS_MES_NEW.CustomControl.CustomCheckBox.LockCheckBox();
+            this.stA = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.stALab = new System.Windows.Forms.Label();
+            this.stB = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.stBLab = new System.Windows.Forms.Label();
+            this.stC = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.stCLab = new System.Windows.Forms.Label();
+            this.stD = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.stDLab = new System.Windows.Forms.Label();
+            this.stE = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.stELab = new System.Windows.Forms.Label();
+            this.stLab = new System.Windows.Forms.Label();
+            this.empVal1 = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.empLab1 = new System.Windows.Forms.Label();
+            this.IsClean = new System.Windows.Forms.CheckBox();
+            this.Return = new System.Windows.Forms.Button();
+            this.Scrap = new System.Windows.Forms.Button();
+            this.currStatusVal = new System.Windows.Forms.TextBox();
+            this.currStatusLab = new System.Windows.Forms.Label();
+            this.TopBox.SuspendLayout();
+            this.ExeBox.SuspendLayout();
+            this.ExePage1.SuspendLayout();
+            this.Container.SuspendLayout();
+            this.Page1Box.SuspendLayout();
+            this.panel1.SuspendLayout();
+            this.panel2.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // TopBox
+            // 
+            this.TopBox.Controls.Add(this.currStatusVal);
+            this.TopBox.Controls.Add(this.currStatusLab);
+            this.TopBox.Controls.Add(this.cancel);
+            this.TopBox.Controls.Add(this.prevTimeVal);
+            this.TopBox.Controls.Add(this.prevTimeLab);
+            this.TopBox.Controls.Add(this.prevTypeVal);
+            this.TopBox.Controls.Add(this.prevTypeLab);
+            this.TopBox.Controls.Add(this.typeVal);
+            this.TopBox.Controls.Add(this.typeLab);
+            this.TopBox.Controls.Add(this.toolingVal);
+            this.TopBox.Controls.Add(this.toolingLab);
+            this.TopBox.Dock = System.Windows.Forms.DockStyle.Top;
+            this.TopBox.Location = new System.Drawing.Point(0, 0);
+            this.TopBox.Name = "TopBox";
+            this.TopBox.Size = new System.Drawing.Size(1280, 279);
+            this.TopBox.TabIndex = 10;
+            // 
+            // cancel
+            // 
+            this.cancel.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.cancel.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.cancel.Location = new System.Drawing.Point(299, 50);
+            this.cancel.Name = "cancel";
+            this.cancel.Size = new System.Drawing.Size(80, 32);
+            this.cancel.TabIndex = 10;
+            this.cancel.Text = "取消";
+            this.cancel.UseVisualStyleBackColor = true;
+            this.cancel.Click += new System.EventHandler(this.cancel_Click);
+            // 
+            // prevTimeVal
+            // 
+            this.prevTimeVal.Enabled = false;
+            this.prevTimeVal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.prevTimeVal.Location = new System.Drawing.Point(717, 102);
+            this.prevTimeVal.Name = "prevTimeVal";
+            this.prevTimeVal.Size = new System.Drawing.Size(204, 31);
+            this.prevTimeVal.TabIndex = 7;
+            // 
+            // prevTimeLab
+            // 
+            this.prevTimeLab.AutoSize = true;
+            this.prevTimeLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.prevTimeLab.Location = new System.Drawing.Point(612, 102);
+            this.prevTimeLab.Name = "prevTimeLab";
+            this.prevTimeLab.Size = new System.Drawing.Size(159, 28);
+            this.prevTimeLab.TabIndex = 6;
+            this.prevTimeLab.Text = "上次操作时间:";
+            // 
+            // prevTypeVal
+            // 
+            this.prevTypeVal.Enabled = false;
+            this.prevTypeVal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.prevTypeVal.Location = new System.Drawing.Point(486, 102);
+            this.prevTypeVal.Name = "prevTypeVal";
+            this.prevTypeVal.Size = new System.Drawing.Size(85, 31);
+            this.prevTypeVal.TabIndex = 5;
+            // 
+            // prevTypeLab
+            // 
+            this.prevTypeLab.AutoSize = true;
+            this.prevTypeLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.prevTypeLab.Location = new System.Drawing.Point(365, 102);
+            this.prevTypeLab.Name = "prevTypeLab";
+            this.prevTypeLab.Size = new System.Drawing.Size(159, 28);
+            this.prevTypeLab.TabIndex = 4;
+            this.prevTypeLab.Text = "上次操作类型:";
+            // 
+            // typeVal
+            // 
+            this.typeVal.Enabled = false;
+            this.typeVal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.typeVal.FormattingEnabled = true;
+            this.typeVal.Location = new System.Drawing.Point(486, 51);
+            this.typeVal.Name = "typeVal";
+            this.typeVal.Size = new System.Drawing.Size(145, 32);
+            this.typeVal.TabIndex = 3;
+            // 
+            // typeLab
+            // 
+            this.typeLab.AutoSize = true;
+            this.typeLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.typeLab.Location = new System.Drawing.Point(395, 53);
+            this.typeLab.Name = "typeLab";
+            this.typeLab.Size = new System.Drawing.Size(117, 28);
+            this.typeLab.TabIndex = 2;
+            this.typeLab.Text = "治具类型:";
+            // 
+            // toolingVal
+            // 
+            this.toolingVal.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.toolingVal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.toolingVal.Location = new System.Drawing.Point(89, 53);
+            this.toolingVal.Name = "toolingVal";
+            this.toolingVal.Size = new System.Drawing.Size(204, 31);
+            this.toolingVal.TabIndex = 1;
+            this.toolingVal.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.toolingVal_KeyPress);
+            // 
+            // toolingLab
+            // 
+            this.toolingLab.AutoSize = true;
+            this.toolingLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.toolingLab.Location = new System.Drawing.Point(19, 55);
+            this.toolingLab.Name = "toolingLab";
+            this.toolingLab.Size = new System.Drawing.Size(117, 28);
+            this.toolingLab.TabIndex = 0;
+            this.toolingLab.Text = "治具编号:";
+            // 
+            // ExeBox
+            // 
+            this.ExeBox.Controls.Add(this.ExePage1);
+            this.ExeBox.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.ExeBox.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.ExeBox.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.ExeBox.Location = new System.Drawing.Point(3, 3);
+            this.ExeBox.Name = "ExeBox";
+            this.ExeBox.SelectedIndex = 0;
+            this.ExeBox.Size = new System.Drawing.Size(890, 435);
+            this.ExeBox.TabIndex = 11;
+            // 
+            // ExePage1
+            // 
+            this.ExePage1.Controls.Add(this.Page1Box);
+            this.ExePage1.Cursor = System.Windows.Forms.Cursors.Default;
+            this.ExePage1.Location = new System.Drawing.Point(4, 37);
+            this.ExePage1.Name = "ExePage1";
+            this.ExePage1.Padding = new System.Windows.Forms.Padding(3);
+            this.ExePage1.Size = new System.Drawing.Size(882, 394);
+            this.ExePage1.TabIndex = 0;
+            this.ExePage1.Text = "领用/归还";
+            this.ExePage1.UseVisualStyleBackColor = true;
+            // 
+            // Container
+            // 
+            this.Container.ColumnCount = 2;
+            this.Container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 70F));
+            this.Container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F));
+            this.Container.Controls.Add(this.MsgBox, 1, 0);
+            this.Container.Controls.Add(this.ExeBox, 0, 0);
+            this.Container.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.Container.Location = new System.Drawing.Point(0, 279);
+            this.Container.Name = "Container";
+            this.Container.RowCount = 1;
+            this.Container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+            this.Container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 526F));
+            this.Container.Size = new System.Drawing.Size(1280, 441);
+            this.Container.TabIndex = 12;
+            // 
+            // MsgBox
+            // 
+            this.MsgBox.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.MsgBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MsgBox.Location = new System.Drawing.Point(900, 4);
+            this.MsgBox.Margin = new System.Windows.Forms.Padding(4);
+            this.MsgBox.Name = "MsgBox";
+            this.MsgBox.Size = new System.Drawing.Size(376, 433);
+            this.MsgBox.TabIndex = 54;
+            this.MsgBox.Text = "";
+            // 
+            // Page1Box
+            // 
+            this.Page1Box.ColumnCount = 1;
+            this.Page1Box.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+            this.Page1Box.Controls.Add(this.panel2, 0, 1);
+            this.Page1Box.Controls.Add(this.panel1, 0, 0);
+            this.Page1Box.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.Page1Box.Location = new System.Drawing.Point(3, 3);
+            this.Page1Box.Name = "Page1Box";
+            this.Page1Box.RowCount = 2;
+            this.Page1Box.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+            this.Page1Box.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+            this.Page1Box.Size = new System.Drawing.Size(876, 388);
+            this.Page1Box.TabIndex = 0;
+            // 
+            // panel1
+            // 
+            this.panel1.Controls.Add(this.LockMakeCode);
+            this.panel1.Controls.Add(this.empVal);
+            this.panel1.Controls.Add(this.empLab);
+            this.panel1.Controls.Add(this.li_code);
+            this.panel1.Controls.Add(this.li_codeLab);
+            this.panel1.Controls.Add(this.sideVal);
+            this.panel1.Controls.Add(this.sideLab);
+            this.panel1.Controls.Add(this.ma_code);
+            this.panel1.Controls.Add(this.ma_codeLab);
+            this.panel1.Controls.Add(this.Receive);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.panel1.Location = new System.Drawing.Point(3, 3);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(870, 188);
+            this.panel1.TabIndex = 0;
+            // 
+            // panel2
+            // 
+            this.panel2.Controls.Add(this.Scrap);
+            this.panel2.Controls.Add(this.Return);
+            this.panel2.Controls.Add(this.stA);
+            this.panel2.Controls.Add(this.stALab);
+            this.panel2.Controls.Add(this.stB);
+            this.panel2.Controls.Add(this.stBLab);
+            this.panel2.Controls.Add(this.stC);
+            this.panel2.Controls.Add(this.stCLab);
+            this.panel2.Controls.Add(this.stD);
+            this.panel2.Controls.Add(this.stDLab);
+            this.panel2.Controls.Add(this.stE);
+            this.panel2.Controls.Add(this.stELab);
+            this.panel2.Controls.Add(this.stLab);
+            this.panel2.Controls.Add(this.empVal1);
+            this.panel2.Controls.Add(this.empLab1);
+            this.panel2.Controls.Add(this.IsClean);
+            this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.panel2.Location = new System.Drawing.Point(3, 197);
+            this.panel2.Name = "panel2";
+            this.panel2.Size = new System.Drawing.Size(870, 188);
+            this.panel2.TabIndex = 1;
+            // 
+            // Receive
+            // 
+            this.Receive.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.Receive.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.Receive.Location = new System.Drawing.Point(370, 98);
+            this.Receive.Name = "Receive";
+            this.Receive.Size = new System.Drawing.Size(100, 32);
+            this.Receive.TabIndex = 11;
+            this.Receive.Text = "领用";
+            this.Receive.UseVisualStyleBackColor = true;
+            this.Receive.Click += new System.EventHandler(this.Receive_Click);
+            // 
+            // ma_code
+            // 
+            this.ma_code.AllPower = null;
+            this.ma_code.BackColor = System.Drawing.SystemColors.Window;
+            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(108, 23);
+            this.ma_code.Margin = new System.Windows.Forms.Padding(4);
+            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(231, 33);
+            this.ma_code.TabIndex = 12;
+            this.ma_code.TableName = null;
+            this.ma_code.TextBoxEnable = true;
+            // 
+            // ma_codeLab
+            // 
+            this.ma_codeLab.AutoSize = true;
+            this.ma_codeLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.ma_codeLab.Location = new System.Drawing.Point(20, 23);
+            this.ma_codeLab.Name = "ma_codeLab";
+            this.ma_codeLab.Size = new System.Drawing.Size(101, 28);
+            this.ma_codeLab.TabIndex = 14;
+            this.ma_codeLab.Text = "归属工单:";
+            // 
+            // sideVal
+            // 
+            this.sideVal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.sideVal.FormattingEnabled = true;
+            this.sideVal.Items.AddRange(new object[] {
+            "A",
+            "B"});
+            this.sideVal.Location = new System.Drawing.Point(671, 21);
+            this.sideVal.Name = "sideVal";
+            this.sideVal.Size = new System.Drawing.Size(145, 32);
+            this.sideVal.TabIndex = 16;
+            // 
+            // sideLab
+            // 
+            this.sideLab.AutoSize = true;
+            this.sideLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.sideLab.Location = new System.Drawing.Point(616, 24);
+            this.sideLab.Name = "sideLab";
+            this.sideLab.Size = new System.Drawing.Size(75, 28);
+            this.sideLab.TabIndex = 15;
+            this.sideLab.Text = "面别:";
+            // 
+            // li_code
+            // 
+            this.li_code.AllPower = null;
+            this.li_code.BackColor = System.Drawing.SystemColors.Window;
+            this.li_code.Caller = null;
+            this.li_code.Condition = null;
+            this.li_code.DBTitle = null;
+            this.li_code.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.li_code.FormName = null;
+            this.li_code.Location = new System.Drawing.Point(473, 23);
+            this.li_code.Margin = new System.Windows.Forms.Padding(4);
+            this.li_code.Name = "li_code";
+            this.li_code.Power = null;
+            this.li_code.ReturnData = null;
+            this.li_code.SelectField = null;
+            this.li_code.SetValueField = null;
+            this.li_code.Size = new System.Drawing.Size(130, 32);
+            this.li_code.TabIndex = 76;
+            this.li_code.TableName = null;
+            this.li_code.TextBoxEnable = false;
+            // 
+            // li_codeLab
+            // 
+            this.li_codeLab.AutoSize = true;
+            this.li_codeLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.li_codeLab.Location = new System.Drawing.Point(422, 23);
+            this.li_codeLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.li_codeLab.Name = "li_codeLab";
+            this.li_codeLab.Size = new System.Drawing.Size(59, 28);
+            this.li_codeLab.TabIndex = 75;
+            this.li_codeLab.Text = "线体:";
+            // 
+            // empVal
+            // 
+            this.empVal.AllPower = null;
+            this.empVal.BackColor = System.Drawing.SystemColors.Window;
+            this.empVal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.empVal.ID = null;
+            this.empVal.Location = new System.Drawing.Point(108, 100);
+            this.empVal.Margin = new System.Windows.Forms.Padding(4);
+            this.empVal.Name = "empVal";
+            this.empVal.Power = null;
+            this.empVal.Size = new System.Drawing.Size(178, 31);
+            this.empVal.Str = null;
+            this.empVal.Str1 = null;
+            this.empVal.Str2 = null;
+            this.empVal.TabIndex = 114;
+            // 
+            // empLab
+            // 
+            this.empLab.AutoSize = true;
+            this.empLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.empLab.Location = new System.Drawing.Point(22, 102);
+            this.empLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.empLab.Name = "empLab";
+            this.empLab.Size = new System.Drawing.Size(101, 28);
+            this.empLab.TabIndex = 113;
+            this.empLab.Text = "领用人员:";
+            // 
+            // LockMakeCode
+            // 
+            this.LockMakeCode.AutoSize = true;
+            this.LockMakeCode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.LockMakeCode.LeaveEvent = false;
+            this.LockMakeCode.Location = new System.Drawing.Point(343, 25);
+            this.LockMakeCode.Margin = new System.Windows.Forms.Padding(4);
+            this.LockMakeCode.Name = "LockMakeCode";
+            this.LockMakeCode.Size = new System.Drawing.Size(72, 28);
+            this.LockMakeCode.TabIndex = 115;
+            this.LockMakeCode.Text = "锁定";
+            this.LockMakeCode.UseVisualStyleBackColor = true;
+            // 
+            // stA
+            // 
+            this.stA.AllPower = null;
+            this.stA.BackColor = System.Drawing.Color.White;
+            this.stA.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.stA.ID = null;
+            this.stA.Location = new System.Drawing.Point(225, 21);
+            this.stA.Margin = new System.Windows.Forms.Padding(4);
+            this.stA.Name = "stA";
+            this.stA.Negative = false;
+            this.stA.Power = null;
+            this.stA.Size = new System.Drawing.Size(80, 31);
+            this.stA.Str = null;
+            this.stA.Str1 = null;
+            this.stA.Str2 = null;
+            this.stA.TabIndex = 139;
+            // 
+            // stALab
+            // 
+            this.stALab.AutoSize = true;
+            this.stALab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.stALab.Location = new System.Drawing.Point(190, 24);
+            this.stALab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.stALab.Name = "stALab";
+            this.stALab.Size = new System.Drawing.Size(27, 28);
+            this.stALab.TabIndex = 138;
+            this.stALab.Text = "A";
+            // 
+            // stB
+            // 
+            this.stB.AllPower = null;
+            this.stB.BackColor = System.Drawing.Color.White;
+            this.stB.ID = null;
+            this.stB.Location = new System.Drawing.Point(224, 66);
+            this.stB.Margin = new System.Windows.Forms.Padding(4);
+            this.stB.Name = "stB";
+            this.stB.Negative = false;
+            this.stB.Power = null;
+            this.stB.Size = new System.Drawing.Size(80, 35);
+            this.stB.Str = null;
+            this.stB.Str1 = null;
+            this.stB.Str2 = null;
+            this.stB.TabIndex = 137;
+            // 
+            // stBLab
+            // 
+            this.stBLab.AutoSize = true;
+            this.stBLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.stBLab.Location = new System.Drawing.Point(191, 73);
+            this.stBLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.stBLab.Name = "stBLab";
+            this.stBLab.Size = new System.Drawing.Size(25, 28);
+            this.stBLab.TabIndex = 136;
+            this.stBLab.Text = "B";
+            // 
+            // stC
+            // 
+            this.stC.AllPower = null;
+            this.stC.BackColor = System.Drawing.Color.White;
+            this.stC.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.stC.ID = null;
+            this.stC.Location = new System.Drawing.Point(373, 21);
+            this.stC.Margin = new System.Windows.Forms.Padding(4);
+            this.stC.Name = "stC";
+            this.stC.Negative = false;
+            this.stC.Power = null;
+            this.stC.Size = new System.Drawing.Size(80, 31);
+            this.stC.Str = null;
+            this.stC.Str1 = null;
+            this.stC.Str2 = null;
+            this.stC.TabIndex = 135;
+            // 
+            // stCLab
+            // 
+            this.stCLab.AutoSize = true;
+            this.stCLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.stCLab.Location = new System.Drawing.Point(348, 24);
+            this.stCLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.stCLab.Name = "stCLab";
+            this.stCLab.Size = new System.Drawing.Size(26, 28);
+            this.stCLab.TabIndex = 134;
+            this.stCLab.Text = "C";
+            // 
+            // stD
+            // 
+            this.stD.AllPower = null;
+            this.stD.BackColor = System.Drawing.Color.White;
+            this.stD.ID = null;
+            this.stD.Location = new System.Drawing.Point(373, 66);
+            this.stD.Margin = new System.Windows.Forms.Padding(4);
+            this.stD.Name = "stD";
+            this.stD.Negative = false;
+            this.stD.Power = null;
+            this.stD.Size = new System.Drawing.Size(80, 35);
+            this.stD.Str = null;
+            this.stD.Str1 = null;
+            this.stD.Str2 = null;
+            this.stD.TabIndex = 133;
+            // 
+            // stDLab
+            // 
+            this.stDLab.AutoSize = true;
+            this.stDLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.stDLab.Location = new System.Drawing.Point(348, 69);
+            this.stDLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.stDLab.Name = "stDLab";
+            this.stDLab.Size = new System.Drawing.Size(28, 28);
+            this.stDLab.TabIndex = 132;
+            this.stDLab.Text = "D";
+            // 
+            // stE
+            // 
+            this.stE.AllPower = null;
+            this.stE.BackColor = System.Drawing.Color.White;
+            this.stE.ID = null;
+            this.stE.Location = new System.Drawing.Point(517, 21);
+            this.stE.Margin = new System.Windows.Forms.Padding(4);
+            this.stE.Name = "stE";
+            this.stE.Negative = false;
+            this.stE.Power = null;
+            this.stE.Size = new System.Drawing.Size(80, 35);
+            this.stE.Str = null;
+            this.stE.Str1 = null;
+            this.stE.Str2 = null;
+            this.stE.TabIndex = 131;
+            // 
+            // stELab
+            // 
+            this.stELab.AutoSize = true;
+            this.stELab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.stELab.Location = new System.Drawing.Point(485, 24);
+            this.stELab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.stELab.Name = "stELab";
+            this.stELab.Size = new System.Drawing.Size(24, 28);
+            this.stELab.TabIndex = 130;
+            this.stELab.Text = "E";
+            // 
+            // stLab
+            // 
+            this.stLab.AutoSize = true;
+            this.stLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.stLab.Location = new System.Drawing.Point(20, 24);
+            this.stLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.stLab.Name = "stLab";
+            this.stLab.Size = new System.Drawing.Size(174, 28);
+            this.stLab.TabIndex = 129;
+            this.stLab.Text = "张力测试结果(N):";
+            // 
+            // empVal1
+            // 
+            this.empVal1.AllPower = null;
+            this.empVal1.BackColor = System.Drawing.Color.White;
+            this.empVal1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.empVal1.ID = null;
+            this.empVal1.Location = new System.Drawing.Point(157, 119);
+            this.empVal1.Margin = new System.Windows.Forms.Padding(4);
+            this.empVal1.Name = "empVal1";
+            this.empVal1.Power = null;
+            this.empVal1.Size = new System.Drawing.Size(178, 31);
+            this.empVal1.Str = null;
+            this.empVal1.Str1 = null;
+            this.empVal1.Str2 = null;
+            this.empVal1.TabIndex = 128;
+            // 
+            // empLab1
+            // 
+            this.empLab1.AutoSize = true;
+            this.empLab1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.empLab1.Location = new System.Drawing.Point(67, 120);
+            this.empLab1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.empLab1.Name = "empLab1";
+            this.empLab1.Size = new System.Drawing.Size(101, 28);
+            this.empLab1.TabIndex = 127;
+            this.empLab1.Text = "归还人员:";
+            // 
+            // IsClean
+            // 
+            this.IsClean.AutoSize = true;
+            this.IsClean.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.IsClean.Location = new System.Drawing.Point(365, 117);
+            this.IsClean.Margin = new System.Windows.Forms.Padding(4);
+            this.IsClean.Name = "IsClean";
+            this.IsClean.Size = new System.Drawing.Size(122, 32);
+            this.IsClean.TabIndex = 126;
+            this.IsClean.Text = "是否清洗";
+            this.IsClean.UseVisualStyleBackColor = true;
+            // 
+            // Return
+            // 
+            this.Return.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.Return.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.Return.Location = new System.Drawing.Point(535, 116);
+            this.Return.Name = "Return";
+            this.Return.Size = new System.Drawing.Size(100, 32);
+            this.Return.TabIndex = 140;
+            this.Return.Text = "归还";
+            this.Return.UseVisualStyleBackColor = true;
+            this.Return.Click += new System.EventHandler(this.Return_Click);
+            // 
+            // Scrap
+            // 
+            this.Scrap.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.Scrap.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.Scrap.Location = new System.Drawing.Point(670, 116);
+            this.Scrap.Name = "Scrap";
+            this.Scrap.Size = new System.Drawing.Size(100, 32);
+            this.Scrap.TabIndex = 141;
+            this.Scrap.Text = "报废";
+            this.Scrap.UseVisualStyleBackColor = true;
+            this.Scrap.Click += new System.EventHandler(this.Scrap_Click);
+            // 
+            // currStatusVal
+            // 
+            this.currStatusVal.Enabled = false;
+            this.currStatusVal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.currStatusVal.Location = new System.Drawing.Point(717, 51);
+            this.currStatusVal.Name = "currStatusVal";
+            this.currStatusVal.Size = new System.Drawing.Size(76, 31);
+            this.currStatusVal.TabIndex = 12;
+            // 
+            // currStatusLab
+            // 
+            this.currStatusLab.AutoSize = true;
+            this.currStatusLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.currStatusLab.Location = new System.Drawing.Point(641, 53);
+            this.currStatusLab.Name = "currStatusLab";
+            this.currStatusLab.Size = new System.Drawing.Size(117, 28);
+            this.currStatusLab.TabIndex = 11;
+            this.currStatusLab.Text = "当前状态:";
+            // 
+            // Make_ToolingManager
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1280, 720);
+            this.Controls.Add(this.Container);
+            this.Controls.Add(this.TopBox);
+            this.Font = new System.Drawing.Font("微软雅黑", 7.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Name = "Make_ToolingManager";
+            this.Text = "Make_Humiture";
+            this.Load += new System.EventHandler(this.Make_ToolingManager_Load);
+            this.TopBox.ResumeLayout(false);
+            this.TopBox.PerformLayout();
+            this.ExeBox.ResumeLayout(false);
+            this.ExePage1.ResumeLayout(false);
+            this.Container.ResumeLayout(false);
+            this.Page1Box.ResumeLayout(false);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            this.panel2.ResumeLayout(false);
+            this.panel2.PerformLayout();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+        private System.Windows.Forms.Panel TopBox;
+        private System.Windows.Forms.TabControl ExeBox;
+        private System.Windows.Forms.TabPage ExePage1;
+        private System.Windows.Forms.TableLayoutPanel Container;
+        private System.Windows.Forms.Label toolingLab;
+        private System.Windows.Forms.TextBox toolingVal;
+        private System.Windows.Forms.Label typeLab;
+        private System.Windows.Forms.ComboBox typeVal;
+        private CustomControl.RichText.RichTextAutoBottom MsgBox;
+        private System.Windows.Forms.TextBox prevTypeVal;
+        private System.Windows.Forms.Label prevTypeLab;
+        private System.Windows.Forms.TextBox prevTimeVal;
+        private System.Windows.Forms.Label prevTimeLab;
+        private System.Windows.Forms.Button cancel;
+        private System.Windows.Forms.TableLayoutPanel Page1Box;
+        private System.Windows.Forms.Panel panel2;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Button Receive;
+        private CustomControl.TextBoxWithIcon.MaCodeSearchTextBox ma_code;
+        private System.Windows.Forms.Label ma_codeLab;
+        private System.Windows.Forms.ComboBox sideVal;
+        private System.Windows.Forms.Label sideLab;
+        private CustomControl.TextBoxWithIcon.SearchTextBox li_code;
+        private System.Windows.Forms.Label li_codeLab;
+        private CustomControl.TextBoxWithIcon.EnterTextBox empVal;
+        private System.Windows.Forms.Label empLab;
+        private CustomControl.CustomCheckBox.LockCheckBox LockMakeCode;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox stA;
+        private System.Windows.Forms.Label stALab;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox stB;
+        private System.Windows.Forms.Label stBLab;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox stC;
+        private System.Windows.Forms.Label stCLab;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox stD;
+        private System.Windows.Forms.Label stDLab;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox stE;
+        private System.Windows.Forms.Label stELab;
+        private System.Windows.Forms.Label stLab;
+        private CustomControl.TextBoxWithIcon.EnterTextBox empVal1;
+        private System.Windows.Forms.Label empLab1;
+        private System.Windows.Forms.CheckBox IsClean;
+        private System.Windows.Forms.Button Return;
+        private System.Windows.Forms.Button Scrap;
+        private System.Windows.Forms.TextBox currStatusVal;
+        private System.Windows.Forms.Label currStatusLab;
+    }
+}

+ 346 - 0
UAS_MES_YTDZ/FunctionCode/Make/Make_ToolingManager.cs

@@ -0,0 +1,346 @@
+using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
+using NPOI.SS.Formula.Functions;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Drawing;
+using System.Net.Http;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using UAS_MES_NEW.CustomControl.ButtonUtil;
+using UAS_MES_NEW.CustomControl.RichText;
+using UAS_MES_NEW.DataOperate;
+using UAS_MES_NEW.Entity;
+using UAS_MES_NEW.PublicMethod;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement;
+
+namespace UAS_MES_NEW.Make
+{
+    public partial class Make_ToolingManager : Form
+    {
+        public Make_ToolingManager()
+        {
+            InitializeComponent();
+        }
+        DataHelper dh;
+        DataTable Dbfind;
+        LogStringBuilder sql = new LogStringBuilder();
+
+        DataTable dt;
+
+        private void Make_ToolingManager_Load(object sender, EventArgs e)
+        {
+            dh = SystemInf.dh;
+
+            li_code.Text = User.UserLineCode;
+            //工单号放大镜配置
+            LockMakeCode.GetMakeCodeCtl(ma_code);
+            ma_code.SetLockCheckBox(LockMakeCode);
+            ma_code.TableName = "make left join product on ma_prodcode=pr_code";
+            ma_code.SelectField = "ma_code # 工单号,ma_prodcode # 产品编号,ma_qty # 工单数量,pr_detail # 产品名称,ma_softversion # 软件版本,ma_salecode # 销售单号,pr_sendchecktype # 产品送检方式";
+            ma_code.FormName = Name;
+            ma_code.SetValueField = new string[] { "ma_code", "ma_prodcode", "ma_qty", "pr_detail", "ma_softversion", "ma_salecode", "nvl(pr_sendchecktype,'LineCode')pr_sendchecktype" };
+            ma_code.DbChange += Ma_code_DbChange;
+
+            li_code.TableName = "Line";
+            li_code.SelectField = "li_code # 线别编号,li_name # 线别名称";
+            li_code.Condition = "li_wccode='SMT'";
+            li_code.FormName = Name;
+            li_code.SetValueField = new string[] { "li_code", "li_name" };
+            li_code.DbChange += Li_code_DbChange;
+
+            toolingVal.SelectAll();
+            toolingVal.Focus();
+        }
+
+        private void Li_code_DbChange(object sender, EventArgs e)
+        {
+            Dbfind = li_code.ReturnData;
+            BaseUtil.SetFormValue(this.Controls, Dbfind);
+        }
+
+        private void Ma_code_DbChange(object sender, EventArgs e)
+        {
+            Dbfind = ma_code.ReturnData;
+            BaseUtil.SetFormValue(this.Controls, Dbfind);
+            //Confirm.PerformClick();
+        }
+
+        private void toolingVal_KeyPress(object sender, KeyPressEventArgs e)
+        {
+            if (e.KeyChar != (char)Keys.Enter) return;
+
+            if (string.IsNullOrEmpty(toolingVal.Text.Trim()))
+            {
+                ShowMsg(MsgBox, 0, "NG,请输入治具编号");
+                toolingVal.SelectAll();
+                toolingVal.Focus();
+                return;
+            }
+
+            dt = (DataTable)dh.ExecuteSql($"select st_kind,st_usestatus from stencil where st_code = '{toolingVal.Text.Trim()}' group by st_kind,st_usestatus", "select");
+            if (dt.Rows.Count == 0)
+            {
+                ShowMsg(MsgBox, 0, "NG,未识别到治具类型,请先维护治具信息");
+                toolingVal.SelectAll();
+                toolingVal.Focus();
+                return;
+            }
+            typeVal.Items.Clear();
+            for (int i = 0; i < dt.Rows.Count; i++)
+            {
+                typeVal.Items.Add(dt.Rows[i][0].ToString());
+            }
+            typeVal.SelectedIndex = 0;
+            currStatusVal.Text = dt.Rows[0]["st_usestatus"].ToString();
+
+            if (typeVal.Text == "钢网")
+            {
+                stA.Enabled = true;
+                stB.Enabled = true;
+                stC.Enabled = true;
+                stD.Enabled = true;
+                stE.Enabled = true;
+            }
+            else
+            {
+                stA.Enabled = false;
+                stB.Enabled = false;
+                stC.Enabled = false;
+                stD.Enabled = false;
+                stE.Enabled = false;
+            }
+
+            dt = (DataTable)dh.ExecuteSql($"select su_status,su_usedate from (select su_status,su_usedate from stenciluse where su_stcode = '{toolingVal.Text.Trim()}' order by su_usedate desc) where rownum=1", "select");
+            if (dt.Rows.Count == 0)
+            {
+                ShowMsg(MsgBox, 2, "NG,未识别到治具上次操作");
+            }
+            else
+            {
+                prevTypeVal.Text = dt.Rows[0]["su_status"].ToString();
+                prevTimeVal.Text = dt.Rows[0]["su_usedate"].ToString();
+            }
+
+            if(currStatusVal.Text == "出库")
+            {
+                Return.Enabled = true;
+                Scrap.Enabled = true;
+                Receive.Enabled = false;
+            }
+            else if (currStatusVal.Text == "在库")
+            {
+                Return.Enabled = false;
+                Scrap.Enabled = false;
+                Receive.Enabled = true;
+            }
+            else
+            {
+                Return.Enabled = false;
+                Scrap.Enabled = false;
+                Receive.Enabled = true;
+            }
+
+            toolingVal.Enabled = false;
+        }
+
+        private void ShowMsg(RichTextAutoBottom msgBox, int type, string msg)
+        {
+            msg = msg.Replace("\r", "").Replace("\n", "");
+            string msgTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+            string showMsg = $"{msgTime}: {msg}\n";
+
+            if (type == 0)
+            {
+                msgBox.AppendText(showMsg, Color.Red);
+                msgBox.SelectionStart = msgBox.Text.Length;
+                msgBox.ScrollToCaret();
+            }
+            else if (type == 1)
+            {
+                msgBox.AppendText(showMsg, Color.Green);
+                msgBox.SelectionStart = msgBox.Text.Length;
+                msgBox.ScrollToCaret();
+            }
+            else if (type == 2)
+            {
+                msgBox.AppendText(showMsg, Color.YellowGreen);
+                msgBox.SelectionStart = msgBox.Text.Length;
+                msgBox.ScrollToCaret();
+            }
+        }
+
+        private void cancel_Click(object sender, EventArgs e)
+        {
+            toolingVal.Enabled = true;
+            toolingVal.Focus();
+            toolingVal.SelectAll();
+        }
+
+        private void Receive_Click(object sender, EventArgs e)
+        {
+            if (string.IsNullOrEmpty(ma_code.Text))
+            {
+                ShowMsg(MsgBox, 0, "NG,请选择使用工单");
+                ma_code.Focus();
+                return;
+            }
+            if (string.IsNullOrEmpty(li_code.Text))
+            {
+                ShowMsg(MsgBox, 0, "NG,请输入使用线体");
+                li_code.Focus();
+                return;
+            }
+            if (string.IsNullOrEmpty(sideVal.Text))
+            {
+                ShowMsg(MsgBox, 0, "NG,请选择使用面别");
+                sideVal.Focus();
+                return;
+            }
+            if (string.IsNullOrEmpty(empVal.Text))
+            {
+                ShowMsg(MsgBox, 0, "NG,请填写领用人员");
+                empVal.Focus();
+                empVal.SelectAll();
+                return;
+            }
+
+            dt = (DataTable)dh.ExecuteSql($@"SELECT st_usestatus,st_version,nvl(st_maxusecount, 0) st_maxusecount,nvl(st_usecount, 0)    st_usecount
+                FROM stencil WHERE st_code = '{toolingVal.Text.Trim()}'", "select");
+            string status = dt.Rows[0]["st_usestatus"].ToString();
+            if (status == "出库" || status == "报废")
+            {
+                ShowMsg(MsgBox, 0, $"NG,无法领用,{typeVal.Text}:{toolingVal.Text}为{status}状态");
+                return;
+            }
+
+            int maxCount = Convert.ToInt32(dt.Rows[0]["st_maxusecount"].ToString());
+            int useCount = Convert.ToInt32(dt.Rows[0]["st_usecount"].ToString());
+            int warnCount = Convert.ToInt32(dh.GetConfig("WaringCount", "Stencil"));
+            if (maxCount - useCount < warnCount)
+            {
+                //ShowMsg(MsgBox, 2, "Warning,钢网:" + toolingVal.Text + "使用次数接近上限");
+                DialogResult result = MessageBox.Show(this.ParentForm, $"Warning,{typeVal.Text}:{toolingVal.Text}使用次数接近上限,已使用{useCount},距离上限还有{(maxCount - useCount)}次", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+                if (result == DialogResult.No) return;
+            }
+
+            dt = (DataTable)dh.ExecuteSql($"select st_code from stencil where st_line='{li_code.Text}' and st_kind = '{typeVal.Text}'", "select");
+            if(typeVal.Text == "钢网")
+            {
+                if (dt.Rows.Count > 0)
+                {
+                    ShowMsg(MsgBox, 0, $"NG,线体已有在线{typeVal.Text},编号为:{dt.Rows[0]["st_code"].ToString()}");
+                    return;
+                }
+            }else if (typeVal.Text == "刮刀")
+            {
+                if (dt.Rows.Count > 1)
+                {
+                    ShowMsg(MsgBox, 0, $"NG,线体已有在线{typeVal.Text},编号为:{dt.Rows[0]["st_code"].ToString()}");
+                    return;
+                }
+            }
+
+            dh.ExecuteSql("update stencil set st_usestatus= '出库' where st_code='" + toolingVal.Text + "'", "update");
+
+            dt = (DataTable)dh.ExecuteSql($"select ma_prodcode from make where ma_code='{ma_code.Text}'", "select");
+            dh.ExecuteSql($@"INSERT INTO stenciluse (su_id,su_stcode,su_stid,
+                su_usemacode,su_useprodcode,su_linecode,su_table,su_useman,su_usedate,su_status)
+                SELECT stenciluse_seq.NEXTVAL,'{toolingVal.Text.Trim()}',st_id,
+                '{ma_code.Text}','{dt.Rows[0]["ma_prodcode"].ToString()}','{li_code.Text}','{sideVal.Text}','{empVal.Text}',sysdate, '领用'
+                FROM stencil WHERE st_code = '{toolingVal.Text.Trim()}'", "insert");
+
+            ma_code.Text = "";
+            sideVal.SelectedIndex = -1;
+            empVal.Text = "";
+
+            ShowMsg(MsgBox, 1, $"OK,{typeVal.Text}编号:{toolingVal.Text},已领用成功");
+        }
+
+        private void Return_Click(object sender, EventArgs e)
+        {
+            if (string.IsNullOrEmpty(empVal1.Text))
+            {
+                ShowMsg(MsgBox, 0, "NG,请填写归还人员");
+                empVal1.Focus();
+                empVal1.SelectAll();
+                return;
+            }
+
+            dt = (DataTable)dh.ExecuteSql($@"SELECT st_usestatus,st_usecount
+                FROM stencil WHERE st_code = '{toolingVal.Text.Trim()}'", "select");
+            string status = dt.Rows[0]["st_usestatus"].ToString();
+            if (status == "在库" || status == "报废")
+            {
+                ShowMsg(MsgBox, 0, $"NG,无需归还,{typeVal.Text}:{toolingVal.Text}为{status}状态");
+                return;
+            }
+
+            if(typeVal.Text == "钢网")
+            {
+                if (IsClean.Checked) {
+                    dh.ExecuteSql($@"UPDATE stencil SET st_cleannums = nvl(st_cleannums, 0) + 1,
+                        st_ensiona = '{stA.Text.Trim()}',st_ensionb = '{stB.Text.Trim()}',
+                        st_ensionc = '{stC.Text.Trim()}',st_ensiond = '{stD.Text.Trim()}',st_ensione = '{stE.Text.Trim()}',
+                        st_usecount = '',st_usestatus = '在库' 
+                        WHERE st_code = '{toolingVal.Text.Trim()}'", "update");
+                }
+                else
+                {
+                    dh.ExecuteSql($@"UPDATE stencil SET st_ensiona = '{stA.Text.Trim()}',st_ensionb = '{stB.Text.Trim()}',
+                        st_ensionc = '{stC.Text.Trim()}',st_ensiond = '{stD.Text.Trim()}',st_ensione = '{stE.Text.Trim()}',
+                        st_usecount = '',st_usestatus = '在库'
+                        WHERE st_code = '{toolingVal.Text.Trim()}'", "update");
+                }
+                dh.ExecuteSql($@"INSERT INTO stenciluse (su_id,su_stcode,su_stid,
+                    su_usemacode,su_useprodcode,su_linecode,su_table,
+                    su_useman,su_usedate,su_status,
+                    su_ensiona,su_ensionb,su_ensionc,su_ensiond,su_ensione)
+                    SELECT stenciluse_seq.NEXTVAL,'{toolingVal.Text.Trim()}',st_id,
+                    su_usemacode,su_useprodcode,su_linecode,su_table,
+                    '{empVal1.Text}',sysdate,'归还',
+                    st_ensiona,st_ensionb,st_ensionc,st_ensiond,st_ensione
+                    FROM stencil,stenciluse WHERE st_code = '{toolingVal.Text.Trim()}'
+                    AND st_line = su_linecode", "insert");
+            }
+            else if(typeVal.Text == "刮刀")
+            {
+                if (IsClean.Checked)
+                {
+                    dh.ExecuteSql($@"UPDATE stencil SET st_cleannums = nvl(st_cleannums, 0) + 1,st_usecount = '',
+                        st_usestatus = '在库' WHERE st_code = '{toolingVal.Text.Trim()}'", "update");
+                }
+                else
+                {
+                    dh.ExecuteSql($@"UPDATE stencil SET st_usecount = '',st_usestatus = '在库'
+                        WHERE st_code = '{toolingVal.Text.Trim()}'", "update");
+                }
+
+                dh.ExecuteSql($@"INSERT INTO stenciluse (su_id,su_stcode,su_stid,
+                    su_usemacode,su_useprodcode,su_linecode,su_table,
+                    su_useman,su_usedate,su_status,)
+                    SELECT stenciluse_seq.NEXTVAL,'{toolingVal.Text.Trim()}',st_id,
+                    su_usemacode,su_useprodcode,su_linecode,su_table,
+                    '{empVal1.Text}',sysdate,'归还',
+                    FROM stencil,stenciluse WHERE st_code = '{toolingVal.Text.Trim()}'
+                    AND st_line = su_linecode", "insert");
+            }
+
+            stA.Text = "";
+            stB.Text = "";
+            stC.Text = "";
+            stD.Text = "";
+            stE.Text = "";
+            empVal1.Text = "";
+            IsClean.Checked = false;
+            ShowMsg(MsgBox, 1, $"OK,{typeVal.Text}编号:{toolingVal.Text},已归还成功");
+        }
+
+        private void Scrap_Click(object sender, EventArgs e)
+        {
+
+        }
+    }
+}

+ 123 - 0
UAS_MES_YTDZ/FunctionCode/Make/Make_ToolingManager.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="ExePage1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>

+ 9 - 0
UAS_MES_YTDZ/UAS_MES_YTDZ.csproj

@@ -621,6 +621,12 @@
     <Compile Include="FunctionCode\Make\Make_TestCollection2.Designer.cs">
       <DependentUpon>Make_TestCollection2.cs</DependentUpon>
     </Compile>
+    <Compile Include="FunctionCode\Make\Make_ToolingManager.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FunctionCode\Make\Make_ToolingManager.Designer.cs">
+      <DependentUpon>Make_ToolingManager.cs</DependentUpon>
+    </Compile>
     <Compile Include="FunctionCode\OQC\OQC_BatchResultJudge.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -1366,6 +1372,9 @@
     <EmbeddedResource Include="FunctionCode\Make\Make_TestCollection2.resx">
       <DependentUpon>Make_TestCollection2.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FunctionCode\Make\Make_ToolingManager.resx">
+      <DependentUpon>Make_ToolingManager.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FunctionCode\OQC\OQC_BatchResultJudge.resx">
       <DependentUpon>OQC_BatchResultJudge.cs</DependentUpon>
     </EmbeddedResource>