Browse Source

工单物料绑定功能

yhluo 1 week ago
parent
commit
9e211932ea

+ 5 - 5
UAS_MES_WEIP/FunctionCode/Make/Make_SMTStencil.cs

@@ -345,11 +345,11 @@ namespace UAS_MES_NEW.Make
                         st_combinenumber.Enabled = false;
                         SU_DEVCODE1.Enabled = false;
                         Return.Enabled = false;
-                        ST_ENSIONA.Enabled = false;
-                        ST_ENSIONB.Enabled = false;
-                        ST_ENSIONC.Enabled = false;
-                        ST_ENSIOND.Enabled = false;
-                        ST_ENSIONE.Enabled = false;
+                        ST_ENSIONA.Enabled = true;
+                        ST_ENSIONB.Enabled = true;
+                        ST_ENSIONC.Enabled = true;
+                        ST_ENSIOND.Enabled = true;
+                        ST_ENSIONE.Enabled = true;
                         Return.Enabled = false;
                         Scrap.Enabled = false;
                     }

+ 581 - 0
UAS_MES_WEIP/FunctionCode/Make/Make_WoMaterialBind.Designer.cs

@@ -0,0 +1,581 @@
+namespace UAS_MES_NEW.Make
+{
+    partial class Make_WoMaterialBind
+    {
+        private System.ComponentModel.IContainer components = null;
+
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        private void InitializeComponent()
+        {
+            this.ms_makecode_label = new System.Windows.Forms.Label();
+            this.LineLab = new System.Windows.Forms.Label();
+            this.LineVal = new System.Windows.Forms.ComboBox();
+            this.TopBox = new System.Windows.Forms.Panel();
+            this.EmployeeVal = new System.Windows.Forms.TextBox();
+            this.EmployeeLab = new System.Windows.Forms.Label();
+            this.SideLab = new System.Windows.Forms.Label();
+            this.SideVal = new System.Windows.Forms.ComboBox();
+            this.SnVal = new System.Windows.Forms.TextBox();
+            this.SnLab = new System.Windows.Forms.Label();
+            this.BindBtn = new System.Windows.Forms.Button();
+            this.DeleteBtn = new System.Windows.Forms.Button();
+            this.DataBox = new System.Windows.Forms.DataGridView();
+            this.col_check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.work_order = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.sn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.prod_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.material_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.line = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.side = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.update_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.update_time = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+            this.RightBox = new System.Windows.Forms.Panel();
+            this.ClearMsg = new System.Windows.Forms.Button();
+            this.OperateResult = new UAS_MES_NEW.CustomControl.RichText.RichTextAutoBottom();
+            this.ma_code = new UAS_MES_NEW.CustomControl.TextBoxWithIcon.MaCodeSearchTextBox();
+            this.LockMakeCode = new UAS_MES_NEW.CustomControl.CustomCheckBox.LockCheckBox();
+            this.SNDetails = new UAS_MES_NEW.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
+            this.infoLayout = new System.Windows.Forms.TableLayoutPanel();
+            this.workOrderLab = new System.Windows.Forms.Label();
+            this.workOrder = new System.Windows.Forms.Label();
+            this.woQtyLab = new System.Windows.Forms.Label();
+            this.woQty = new System.Windows.Forms.Label();
+            this.productCodeLab = new System.Windows.Forms.Label();
+            this.productCode = new System.Windows.Forms.Label();
+            this.productNameLab = new System.Windows.Forms.Label();
+            this.productName = new System.Windows.Forms.Label();
+            this.TopBox.SuspendLayout();
+            this.SNDetails.SuspendLayout();
+            this.infoLayout.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DataBox)).BeginInit();
+            this.tableLayoutPanel1.SuspendLayout();
+            this.RightBox.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // ms_makecode_label
+            // 
+            this.ms_makecode_label.AutoSize = true;
+            this.ms_makecode_label.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.ms_makecode_label.Location = new System.Drawing.Point(20, 24);
+            this.ms_makecode_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.ms_makecode_label.Name = "ms_makecode_label";
+            this.ms_makecode_label.Size = new System.Drawing.Size(68, 28);
+            this.ms_makecode_label.TabIndex = 142;
+            this.ms_makecode_label.Text = "工单号";
+            // 
+            // LineLab
+            // 
+            this.LineLab.AutoSize = true;
+            this.LineLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.LineLab.Location = new System.Drawing.Point(400, 24);
+            this.LineLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.LineLab.Name = "LineLab";
+            this.LineLab.Size = new System.Drawing.Size(46, 28);
+            this.LineLab.TabIndex = 144;
+            this.LineLab.Text = "线体";
+            // 
+            // LineVal
+            // 
+            this.LineVal.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.LineVal.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.LineVal.FormattingEnabled = true;
+            this.LineVal.Location = new System.Drawing.Point(456, 20);
+            this.LineVal.Name = "LineVal";
+            this.LineVal.Size = new System.Drawing.Size(150, 32);
+            this.LineVal.TabIndex = 145;
+            // 
+            // TopBox
+            // 
+            this.TopBox.Controls.Add(this.DeleteBtn);
+            this.TopBox.Controls.Add(this.BindBtn);
+            this.TopBox.Controls.Add(this.EmployeeVal);
+            this.TopBox.Controls.Add(this.EmployeeLab);
+            this.TopBox.Controls.Add(this.SideLab);
+            this.TopBox.Controls.Add(this.SideVal);
+            this.TopBox.Controls.Add(this.ma_code);
+            this.TopBox.Controls.Add(this.SnVal);
+            this.TopBox.Controls.Add(this.SnLab);
+            this.TopBox.Controls.Add(this.LineLab);
+            this.TopBox.Controls.Add(this.LockMakeCode);
+            this.TopBox.Controls.Add(this.LineVal);
+            this.TopBox.Controls.Add(this.ms_makecode_label);
+            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, 120);
+            this.TopBox.TabIndex = 153;
+            // 
+            // EmployeeVal
+            // 
+            this.EmployeeVal.Location = new System.Drawing.Point(890, 20);
+            this.EmployeeVal.Name = "EmployeeVal";
+            this.EmployeeVal.Size = new System.Drawing.Size(140, 31);
+            this.EmployeeVal.TabIndex = 182;
+            this.EmployeeVal.KeyDown += new System.Windows.Forms.KeyEventHandler(this.EmployeeVal_KeyDown);
+            // 
+            // EmployeeLab
+            // 
+            this.EmployeeLab.AutoSize = true;
+            this.EmployeeLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.EmployeeLab.Location = new System.Drawing.Point(810, 24);
+            this.EmployeeLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.EmployeeLab.Name = "EmployeeLab";
+            this.EmployeeLab.Size = new System.Drawing.Size(68, 28);
+            this.EmployeeLab.TabIndex = 181;
+            this.EmployeeLab.Text = "操作员";
+            // 
+            // 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(630, 24);
+            this.SideLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.SideLab.Name = "SideLab";
+            this.SideLab.Size = new System.Drawing.Size(46, 28);
+            this.SideLab.TabIndex = 156;
+            this.SideLab.Text = "面别";
+            // 
+            // SideVal
+            // 
+            this.SideVal.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.SideVal.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.SideVal.FormattingEnabled = true;
+            this.SideVal.Items.AddRange(new object[] {
+            "A面",
+            "B面"});
+            this.SideVal.Location = new System.Drawing.Point(690, 20);
+            this.SideVal.Name = "SideVal";
+            this.SideVal.Size = new System.Drawing.Size(100, 32);
+            this.SideVal.TabIndex = 157;
+            // 
+            // SnVal
+            // 
+            this.SnVal.Location = new System.Drawing.Point(130, 70);
+            this.SnVal.Name = "SnVal";
+            this.SnVal.Size = new System.Drawing.Size(480, 31);
+            this.SnVal.TabIndex = 155;
+            this.SnVal.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SnVal_KeyDown);
+            // 
+            // BindBtn
+            // 
+            this.BindBtn.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.BindBtn.Location = new System.Drawing.Point(624, 68);
+            this.BindBtn.Name = "BindBtn";
+            this.BindBtn.Size = new System.Drawing.Size(90, 32);
+            this.BindBtn.TabIndex = 192;
+            this.BindBtn.Text = "绑定";
+            this.BindBtn.UseVisualStyleBackColor = true;
+            this.BindBtn.Click += new System.EventHandler(this.BindBtn_Click);
+            // 
+            // DeleteBtn
+            // 
+            this.DeleteBtn.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.DeleteBtn.Location = new System.Drawing.Point(724, 68);
+            this.DeleteBtn.Name = "DeleteBtn";
+            this.DeleteBtn.Size = new System.Drawing.Size(90, 32);
+            this.DeleteBtn.TabIndex = 193;
+            this.DeleteBtn.Text = "删除";
+            this.DeleteBtn.UseVisualStyleBackColor = true;
+            this.DeleteBtn.Click += new System.EventHandler(this.DeleteBtn_Click);
+            // 
+            // SnLab
+            // 
+            this.SnLab.AutoSize = true;
+            this.SnLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SnLab.Location = new System.Drawing.Point(20, 72);
+            this.SnLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.SnLab.Name = "SnLab";
+            this.SnLab.Size = new System.Drawing.Size(100, 28);
+            this.SnLab.TabIndex = 154;
+            this.SnLab.Text = "物料序列号";
+            // 
+            // DataBox
+            // 
+            this.DataBox.AllowUserToAddRows = false;
+            this.DataBox.AllowUserToDeleteRows = false;
+            this.DataBox.AutoGenerateColumns = false;
+            this.DataBox.BackgroundColor = System.Drawing.SystemColors.Control;
+            this.DataBox.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DataBox.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.col_check,
+            this.work_order,
+            this.sn,
+            this.prod_code,
+            this.material_qty,
+            this.line,
+            this.side,
+            this.update_name,
+            this.update_time});
+            this.DataBox.DefaultCellStyle.BackColor = System.Drawing.Color.White;
+            this.DataBox.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.White;
+            this.DataBox.DefaultCellStyle.SelectionForeColor = System.Drawing.Color.Black;
+            this.DataBox.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.DataBox.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
+            this.DataBox.Location = new System.Drawing.Point(3, 3);
+            this.DataBox.Name = "DataBox";
+            this.DataBox.ReadOnly = true;
+            this.DataBox.RowHeadersDefaultCellStyle.SelectionBackColor = System.Drawing.SystemColors.Control;
+            this.DataBox.RowHeadersWidth = 62;
+            this.DataBox.RowTemplate.Height = 30;
+            this.DataBox.RowsDefaultCellStyle.SelectionBackColor = System.Drawing.Color.White;
+            this.DataBox.RowsDefaultCellStyle.SelectionForeColor = System.Drawing.Color.Black;
+            this.DataBox.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DataBox.Size = new System.Drawing.Size(890, 552);
+            this.DataBox.TabIndex = 154;
+            this.DataBox.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataBox_CellClick);
+            // 
+            // col_check
+            // 
+            this.col_check.DataPropertyName = "row_check";
+            this.col_check.FalseValue = false;
+            this.col_check.HeaderText = "选择";
+            this.col_check.MinimumWidth = 8;
+            this.col_check.Name = "col_check";
+            this.col_check.TrueValue = true;
+            this.col_check.Width = 50;
+            // 
+            // work_order
+            // 
+            this.work_order.DataPropertyName = "work_order";
+            this.work_order.HeaderText = "工单号";
+            this.work_order.MinimumWidth = 8;
+            this.work_order.Name = "work_order";
+            this.work_order.ReadOnly = true;
+            this.work_order.Width = 150;
+            // 
+            // sn
+            // 
+            this.sn.DataPropertyName = "material_sn";
+            this.sn.HeaderText = "物料序列号";
+            this.sn.MinimumWidth = 8;
+            this.sn.Name = "sn";
+            this.sn.ReadOnly = true;
+            this.sn.Width = 200;
+            // 
+            // prod_code
+            // 
+            this.prod_code.DataPropertyName = "prod_code";
+            this.prod_code.HeaderText = "物料编号";
+            this.prod_code.MinimumWidth = 8;
+            this.prod_code.Name = "prod_code";
+            this.prod_code.ReadOnly = true;
+            this.prod_code.Width = 150;
+            // 
+            // material_qty
+            // 
+            this.material_qty.DataPropertyName = "material_qty";
+            this.material_qty.HeaderText = "物料数量";
+            this.material_qty.MinimumWidth = 8;
+            this.material_qty.Name = "material_qty";
+            this.material_qty.ReadOnly = true;
+            this.material_qty.Width = 100;
+            // 
+            // line
+            // 
+            this.line.DataPropertyName = "line";
+            this.line.HeaderText = "线体";
+            this.line.MinimumWidth = 8;
+            this.line.Name = "line";
+            this.line.ReadOnly = true;
+            this.line.Width = 120;
+            // 
+            // side
+            // 
+            this.side.DataPropertyName = "side";
+            this.side.HeaderText = "面别";
+            this.side.MinimumWidth = 8;
+            this.side.Name = "side";
+            this.side.ReadOnly = true;
+            this.side.Width = 80;
+            // 
+            // update_name
+            // 
+            this.update_name.DataPropertyName = "update_name";
+            this.update_name.HeaderText = "操作员";
+            this.update_name.MinimumWidth = 8;
+            this.update_name.Name = "update_name";
+            this.update_name.ReadOnly = true;
+            this.update_name.Width = 120;
+            // 
+            // update_time
+            // 
+            this.update_time.DataPropertyName = "update_time";
+            this.update_time.HeaderText = "操作时间";
+            this.update_time.MinimumWidth = 8;
+            this.update_time.Name = "update_time";
+            this.update_time.ReadOnly = true;
+            this.update_time.Width = 160;
+            // 
+            // tableLayoutPanel1
+            // 
+            this.tableLayoutPanel1.ColumnCount = 2;
+            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 70F));
+            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F));
+            this.tableLayoutPanel1.Controls.Add(this.DataBox, 0, 0);
+            this.tableLayoutPanel1.Controls.Add(this.RightBox, 1, 0);
+            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 220);
+            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+            this.tableLayoutPanel1.RowCount = 1;
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+            this.tableLayoutPanel1.Size = new System.Drawing.Size(1280, 555);
+            this.tableLayoutPanel1.TabIndex = 156;
+            // 
+            // RightBox
+            // 
+            this.RightBox.Controls.Add(this.ClearMsg);
+            this.RightBox.Controls.Add(this.OperateResult);
+            this.RightBox.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.RightBox.Location = new System.Drawing.Point(899, 3);
+            this.RightBox.Name = "RightBox";
+            this.RightBox.Size = new System.Drawing.Size(378, 549);
+            this.RightBox.TabIndex = 156;
+            // 
+            // ClearMsg
+            // 
+            this.ClearMsg.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.ClearMsg.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.ClearMsg.Location = new System.Drawing.Point(148, 512);
+            this.ClearMsg.Name = "ClearMsg";
+            this.ClearMsg.Size = new System.Drawing.Size(81, 28);
+            this.ClearMsg.TabIndex = 156;
+            this.ClearMsg.Text = "清理";
+            this.ClearMsg.UseVisualStyleBackColor = true;
+            this.ClearMsg.Click += new System.EventHandler(this.ClearMsg_Click);
+            // 
+            // OperateResult
+            // 
+            this.OperateResult.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+            | System.Windows.Forms.AnchorStyles.Left)
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.OperateResult.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OperateResult.Location = new System.Drawing.Point(0, 0);
+            this.OperateResult.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.OperateResult.Name = "OperateResult";
+            this.OperateResult.Size = new System.Drawing.Size(378, 500);
+            this.OperateResult.TabIndex = 155;
+            this.OperateResult.Text = "";
+            // 
+            // ma_code
+            // 
+            this.ma_code.AllPower = null;
+            this.ma_code.Caller = null;
+            this.ma_code.Condition = null;
+            this.ma_code.DBTitle = null;
+            this.ma_code.FormName = null;
+            this.ma_code.Location = new System.Drawing.Point(96, 18);
+            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(205, 32);
+            this.ma_code.TabIndex = 143;
+            this.ma_code.TableName = null;
+            this.ma_code.Tag = "ma_code";
+            this.ma_code.TextBoxEnable = true;
+            // 
+            // 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(308, 22);
+            this.LockMakeCode.Name = "LockMakeCode";
+            this.LockMakeCode.Size = new System.Drawing.Size(72, 28);
+            this.LockMakeCode.TabIndex = 153;
+            this.LockMakeCode.Text = "锁定";
+            this.LockMakeCode.UseVisualStyleBackColor = true;
+            // 
+            // SNDetails
+            // 
+            this.SNDetails.BorderColor = System.Drawing.Color.Black;
+            this.SNDetails.Controls.Add(this.infoLayout);
+            this.SNDetails.Dock = System.Windows.Forms.DockStyle.Top;
+            this.SNDetails.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SNDetails.Location = new System.Drawing.Point(0, 0);
+            this.SNDetails.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.SNDetails.Name = "SNDetails";
+            this.SNDetails.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.SNDetails.Size = new System.Drawing.Size(1280, 100);
+            this.SNDetails.TabIndex = 4;
+            this.SNDetails.TabStop = false;
+            this.SNDetails.Text = "工单信息";
+            this.SNDetails.TextColor = System.Drawing.Color.Black;
+            // 
+            // infoLayout
+            // 
+            this.infoLayout.ColumnCount = 8;
+            this.infoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8F));
+            this.infoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16F));
+            this.infoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9F));
+            this.infoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10F));
+            this.infoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9F));
+            this.infoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16F));
+            this.infoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9F));
+            this.infoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 23F));
+            this.infoLayout.Controls.Add(this.workOrderLab, 0, 0);
+            this.infoLayout.Controls.Add(this.workOrder, 1, 0);
+            this.infoLayout.Controls.Add(this.woQtyLab, 2, 0);
+            this.infoLayout.Controls.Add(this.woQty, 3, 0);
+            this.infoLayout.Controls.Add(this.productCodeLab, 4, 0);
+            this.infoLayout.Controls.Add(this.productCode, 5, 0);
+            this.infoLayout.Controls.Add(this.productNameLab, 6, 0);
+            this.infoLayout.Controls.Add(this.productName, 7, 0);
+            this.infoLayout.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.infoLayout.Location = new System.Drawing.Point(3, 32);
+            this.infoLayout.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.infoLayout.Name = "infoLayout";
+            this.infoLayout.RowCount = 1;
+            this.infoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+            this.infoLayout.Size = new System.Drawing.Size(1274, 64);
+            this.infoLayout.TabIndex = 0;
+            // 
+            // workOrderLab
+            // 
+            this.workOrderLab.AutoSize = true;
+            this.workOrderLab.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.workOrderLab.Name = "workOrderLab";
+            this.workOrderLab.TabIndex = 0;
+            this.workOrderLab.Text = "工单号: ";
+            this.workOrderLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // workOrder
+            // 
+            this.workOrder.AutoSize = true;
+            this.workOrder.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.workOrder.Name = "workOrder";
+            this.workOrder.TabIndex = 1;
+            this.workOrder.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // woQtyLab
+            // 
+            this.woQtyLab.AutoSize = true;
+            this.woQtyLab.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.woQtyLab.Name = "woQtyLab";
+            this.woQtyLab.TabIndex = 2;
+            this.woQtyLab.Text = "工单数量: ";
+            this.woQtyLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // woQty
+            // 
+            this.woQty.AutoSize = true;
+            this.woQty.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.woQty.Name = "woQty";
+            this.woQty.TabIndex = 3;
+            this.woQty.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // productCodeLab
+            // 
+            this.productCodeLab.AutoSize = true;
+            this.productCodeLab.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.productCodeLab.Name = "productCodeLab";
+            this.productCodeLab.TabIndex = 4;
+            this.productCodeLab.Text = "产品编号: ";
+            this.productCodeLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // productCode
+            // 
+            this.productCode.AutoSize = true;
+            this.productCode.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.productCode.Name = "productCode";
+            this.productCode.TabIndex = 5;
+            this.productCode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // productNameLab
+            // 
+            this.productNameLab.AutoSize = true;
+            this.productNameLab.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.productNameLab.Name = "productNameLab";
+            this.productNameLab.TabIndex = 6;
+            this.productNameLab.Text = "产品名称: ";
+            this.productNameLab.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // productName
+            // 
+            this.productName.AutoSize = true;
+            this.productName.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.productName.Name = "productName";
+            this.productName.TabIndex = 7;
+            this.productName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // Make_WoMaterialBind
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1280, 720);
+            this.Controls.Add(this.tableLayoutPanel1);
+            this.Controls.Add(this.TopBox);
+            this.Controls.Add(this.SNDetails);
+            this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Margin = new System.Windows.Forms.Padding(4);
+            this.Name = "Make_WoMaterialBind";
+            this.Text = "Make_WoMaterialBind";
+            this.Load += new System.EventHandler(this.Make_WoMaterialBind_Load);
+            this.SNDetails.ResumeLayout(false);
+            this.infoLayout.ResumeLayout(false);
+            this.infoLayout.PerformLayout();
+            this.TopBox.ResumeLayout(false);
+            this.TopBox.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DataBox)).EndInit();
+            this.tableLayoutPanel1.ResumeLayout(false);
+            this.RightBox.ResumeLayout(false);
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private CustomControl.TextBoxWithIcon.MaCodeSearchTextBox ma_code;
+        private System.Windows.Forms.Label ms_makecode_label;
+        private System.Windows.Forms.Label LineLab;
+        private System.Windows.Forms.ComboBox LineVal;
+        private System.Windows.Forms.Panel TopBox;
+        private CustomControl.CustomCheckBox.LockCheckBox LockMakeCode;
+        private System.Windows.Forms.Label SnLab;
+        private System.Windows.Forms.Button BindBtn;
+        private System.Windows.Forms.Button DeleteBtn;
+        private System.Windows.Forms.DataGridView DataBox;
+        private System.Windows.Forms.DataGridViewCheckBoxColumn col_check;
+        private System.Windows.Forms.TextBox SnVal;
+        private CustomControl.RichText.RichTextAutoBottom OperateResult;
+        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+        private System.Windows.Forms.Panel RightBox;
+        private System.Windows.Forms.Button ClearMsg;
+        private System.Windows.Forms.Label SideLab;
+        private System.Windows.Forms.ComboBox SideVal;
+        private System.Windows.Forms.DataGridViewTextBoxColumn work_order;
+        private System.Windows.Forms.DataGridViewTextBoxColumn sn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn prod_code;
+        private System.Windows.Forms.DataGridViewTextBoxColumn material_qty;
+        private System.Windows.Forms.DataGridViewTextBoxColumn line;
+        private System.Windows.Forms.DataGridViewTextBoxColumn side;
+        private System.Windows.Forms.DataGridViewTextBoxColumn update_name;
+        private System.Windows.Forms.DataGridViewTextBoxColumn update_time;
+        private System.Windows.Forms.TextBox EmployeeVal;
+        private System.Windows.Forms.Label EmployeeLab;
+        private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder SNDetails;
+        private System.Windows.Forms.TableLayoutPanel infoLayout;
+        private System.Windows.Forms.Label workOrderLab;
+        private System.Windows.Forms.Label workOrder;
+        private System.Windows.Forms.Label woQtyLab;
+        private System.Windows.Forms.Label woQty;
+        private System.Windows.Forms.Label productCodeLab;
+        private System.Windows.Forms.Label productCode;
+        private System.Windows.Forms.Label productNameLab;
+        private System.Windows.Forms.Label productName;
+    }
+}

+ 338 - 0
UAS_MES_WEIP/FunctionCode/Make/Make_WoMaterialBind.cs

@@ -0,0 +1,338 @@
+using System;
+using System.Data;
+using System.Drawing;
+using System.Windows.Forms;
+using UAS_MES_NEW.DataOperate;
+using UAS_MES_NEW.Entity;
+using UAS_MES_NEW.PublicMethod;
+
+namespace UAS_MES_NEW.Make
+{
+    public partial class Make_WoMaterialBind : Form
+    {
+        public Make_WoMaterialBind()
+        {
+            InitializeComponent();
+        }
+
+        LogStringBuilder sql = new LogStringBuilder();
+        DataTable Dbfind;
+        DataHelper dh;
+        DataTable dt;
+        DataTable bindTable;
+
+        private void Make_WoMaterialBind_Load(object sender, EventArgs e)
+        {
+            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 # 工单号,pr_code # 产品编号,pr_detail # 产品名称";
+            ma_code.FormName = Name;
+            ma_code.SetValueField = new string[] { "ma_code", "pr_code", "pr_detail" };
+            ma_code.Condition = "ma_statuscode='STARTED'";
+            ma_code.DbChange += Ma_code_DbChange;
+
+            dh = SystemInf.dh;
+            InitBindTable();
+            DataBox.DefaultCellStyle.BackColor = Color.White;
+            DataBox.DefaultCellStyle.SelectionBackColor = Color.White;
+            DataBox.DefaultCellStyle.SelectionForeColor = Color.Black;
+            DataBox.RowsDefaultCellStyle.SelectionBackColor = Color.White;
+            DataBox.RowsDefaultCellStyle.SelectionForeColor = Color.Black;
+            DataBox.RowHeadersDefaultCellStyle.SelectionBackColor = SystemColors.Control;
+            LoadLines();
+        }
+
+        private void InitBindTable()
+        {
+            bindTable = new DataTable();
+            bindTable.Columns.Add("row_check", typeof(bool));
+            bindTable.Columns.Add("bind_id", typeof(string));
+            bindTable.Columns.Add("work_order", typeof(string));
+            bindTable.Columns.Add("material_sn", typeof(string));
+            bindTable.Columns.Add("prod_code", typeof(string));
+            bindTable.Columns.Add("material_qty", typeof(string));
+            bindTable.Columns.Add("line", typeof(string));
+            bindTable.Columns.Add("side", typeof(string));
+            bindTable.Columns.Add("update_name", typeof(string));
+            bindTable.Columns.Add("update_time", typeof(string));
+            DataBox.DataSource = bindTable;
+        }
+
+        private void LoadLines()
+        {
+            LineVal.Items.Clear();
+            dt = (DataTable)dh.ExecuteSql(@"SELECT li_code,li_name FROM line WHERE li_statuscode = 'AUDITED'
+                AND li_wccode = 'SMT' ORDER BY substr(li_code, 0, 2) DESC,
+                substr(li_code,length('HY-1') - 1,length('HY-1'))", "select");
+            if (dt.Rows.Count > 0)
+            {
+                foreach (DataRow item in dt.Rows)
+                {
+                    LineVal.Items.Add(item["li_code"].ToString());
+                }
+            }
+            else
+            {
+                ShowMsg(0, "未找到已审核的SMT线体");
+            }
+        }
+
+        private void Ma_code_DbChange(object sender, EventArgs e)
+        {
+            Dbfind = ma_code.ReturnData;
+            BaseUtil.SetFormValue(this.Controls, Dbfind);
+            sql.Clear();
+            sql.Append("select ma_code,ma_prodcode as pr_code,pr_detail,pr_spec,ma_qty from make left join product on pr_code=ma_prodcode where ma_code='" + SqlText(ma_code.Text) + "'");
+            dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+            if (dt.Rows.Count > 0)
+            {
+                workOrder.Text = dt.Rows[0]["ma_code"].ToString();
+                woQty.Text = dt.Rows[0]["ma_qty"].ToString();
+                productCode.Text = dt.Rows[0]["pr_code"].ToString();
+                productName.Text = dt.Rows[0]["pr_detail"].ToString();
+            }
+            else
+            {
+                workOrder.Text = "";
+                woQty.Text = "";
+                productCode.Text = "";
+                productName.Text = "";
+            }
+            LoadBindList();
+            SnVal.Focus();
+            SnVal.SelectAll();
+        }
+
+        private void LoadBindList()
+        {
+            if (bindTable == null)
+            {
+                InitBindTable();
+            }
+            bindTable.Rows.Clear();
+            if (string.IsNullOrEmpty(ma_code.Text))
+            {
+                return;
+            }
+            dt = (DataTable)dh.ExecuteSql($@"SELECT bind_id,work_order,material_sn,prod_code,material_qty,line,side,update_name,update_time
+                FROM wo_material_bind WHERE work_order = '{SqlText(ma_code.Text)}' ORDER BY update_time DESC", "select");
+            foreach (DataRow item in dt.Rows)
+            {
+                DataRow row = bindTable.NewRow();
+                row["row_check"] = false;
+                row["bind_id"] = item["bind_id"].ToString();
+                row["work_order"] = item["work_order"].ToString();
+                row["material_sn"] = item["material_sn"].ToString();
+                row["prod_code"] = item["prod_code"].ToString();
+                row["material_qty"] = item["material_qty"].ToString();
+                row["line"] = item["line"].ToString();
+                row["side"] = item["side"].ToString();
+                row["update_name"] = item["update_name"].ToString();
+                row["update_time"] = item["update_time"].ToString();
+                bindTable.Rows.Add(row);
+            }
+        }
+
+        private void SnVal_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode != Keys.Enter)
+            {
+                return;
+            }
+            SnVal.Text = SnVal.Text.Trim();
+            if (string.IsNullOrEmpty(ma_code.Text))
+            {
+                ShowMsg(0, "请选择工单");
+                ma_code.Focus();
+                return;
+            }
+            if (LineVal.SelectedIndex == -1)
+            {
+                ShowMsg(0, "请选择线体");
+                LineVal.Focus();
+                return;
+            }
+            if (SideVal.SelectedIndex == -1)
+            {
+                ShowMsg(0, "请选择面别");
+                SideVal.Focus();
+                return;
+            }
+            if (string.IsNullOrEmpty(EmployeeVal.Text.Trim()))
+            {
+                ShowMsg(0, "请填写操作员");
+                EmployeeVal.Focus();
+                return;
+            }
+            if (string.IsNullOrEmpty(SnVal.Text))
+            {
+                ShowMsg(0, "请扫描物料序列号");
+                SnVal.Focus();
+                return;
+            }
+
+            string sn = SnVal.Text.Trim();
+            dt = (DataTable)dh.ExecuteSql($"select bar_code,bar_prodcode,bar_remain from barcode where bar_code = '{SqlText(sn)}'", "select");
+            if (dt.Rows.Count == 0)
+            {
+                ShowMsg(0, $"物料序列号:{sn} 不是MES系统中库存条码");
+                SnVal.Focus();
+                SnVal.SelectAll();
+                return;
+            }
+            string prodCode = dt.Rows[0]["bar_prodcode"].ToString();
+            string materialQty = dt.Rows[0]["bar_remain"].ToString();
+            if (string.IsNullOrEmpty(materialQty))
+            {
+                materialQty = "0";
+            }
+
+            foreach (DataRow item in bindTable.Rows)
+            {
+                if (item["material_sn"].ToString() == sn)
+                {
+                    ShowMsg(0, $"物料序列号:{sn} 已在列表中");
+                    SnVal.Focus();
+                    SnVal.SelectAll();
+                    return;
+                }
+            }
+            dt = (DataTable)dh.ExecuteSql($@"select work_order,line,side from wo_material_bind where material_sn = '{SqlText(sn)}'", "select");
+            if (dt.Rows.Count > 0)
+            {
+                ShowMsg(0, $"物料序列号:{sn} 已绑定工单:{dt.Rows[0]["work_order"]} 线体:{dt.Rows[0]["line"]} 面别:{dt.Rows[0]["side"]}");
+                SnVal.Focus();
+                SnVal.SelectAll();
+                return;
+            }
+
+            DataRow addRow = bindTable.NewRow();
+            addRow["row_check"] = false;
+            addRow["bind_id"] = "";
+            addRow["work_order"] = ma_code.Text.Trim();
+            addRow["material_sn"] = sn;
+            addRow["prod_code"] = prodCode;
+            addRow["material_qty"] = materialQty;
+            addRow["line"] = LineVal.Text;
+            addRow["side"] = SideVal.Text;
+            addRow["update_name"] = EmployeeVal.Text.Trim();
+            addRow["update_time"] = "";
+            bindTable.Rows.InsertAt(addRow, 0);
+            ShowMsg(1, $"物料序列号:{sn} 已录入,请点击绑定上传");
+            SnVal.Text = "";
+            SnVal.Focus();
+        }
+
+        private void BindBtn_Click(object sender, EventArgs e)
+        {
+            int count = 0;
+            foreach (DataRow item in bindTable.Rows)
+            {
+                if (!string.IsNullOrEmpty(item["bind_id"].ToString()))
+                {
+                    continue;
+                }
+                decimal qty;
+                if (!decimal.TryParse(item["material_qty"].ToString(), out qty))
+                {
+                    qty = 0;
+                }
+                dh.ExecuteSql($@"INSERT INTO wo_material_bind (bind_id,material_sn,work_order,prod_code,material_qty,line,side,update_time,update_name)
+                    VALUES (wo_material_bind_seq.NEXTVAL,'{SqlText(item["material_sn"].ToString())}','{SqlText(item["work_order"].ToString())}','{SqlText(item["prod_code"].ToString())}',{qty},
+                    '{SqlText(item["line"].ToString())}','{SqlText(item["side"].ToString())}',sysdate,'{SqlText(item["update_name"].ToString())}')", "insert");
+                count++;
+            }
+            if (count == 0)
+            {
+                ShowMsg(0, "没有需要上传的物料");
+                return;
+            }
+            ShowMsg(1, $"已上传{count}条物料绑定");
+            LoadBindList();
+        }
+
+        private void DeleteBtn_Click(object sender, EventArgs e)
+        {
+            int checkedCount = 0;
+            foreach (DataRow item in bindTable.Rows)
+            {
+                if (item["row_check"] != DBNull.Value && Convert.ToBoolean(item["row_check"]))
+                {
+                    checkedCount++;
+                }
+            }
+            if (checkedCount == 0)
+            {
+                ShowMsg(0, "请勾选要删除的物料");
+                return;
+            }
+            if (MessageBox.Show("确认删除勾选的" + checkedCount + "条物料绑定", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
+            {
+                return;
+            }
+            for (int i = bindTable.Rows.Count - 1; i >= 0; i--)
+            {
+                DataRow item = bindTable.Rows[i];
+                if (item["row_check"] == DBNull.Value || !Convert.ToBoolean(item["row_check"]))
+                {
+                    continue;
+                }
+                if (!string.IsNullOrEmpty(item["bind_id"].ToString()))
+                {
+                    dh.ExecuteSql("delete from wo_material_bind where bind_id = " + item["bind_id"].ToString(), "delete");
+                }
+                bindTable.Rows.RemoveAt(i);
+            }
+            ShowMsg(1, "已删除勾选的物料绑定");
+        }
+
+        private void DataBox_CellClick(object sender, DataGridViewCellEventArgs e)
+        {
+            if (e.RowIndex < 0)
+            {
+                return;
+            }
+            DataRowView view = DataBox.Rows[e.RowIndex].DataBoundItem as DataRowView;
+            if (view == null)
+            {
+                return;
+            }
+            bool current = view["row_check"] != DBNull.Value && Convert.ToBoolean(view["row_check"]);
+            view["row_check"] = !current;
+        }
+
+        private void EmployeeVal_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode != Keys.Enter)
+            {
+                return;
+            }
+            SnVal.Focus();
+            SnVal.SelectAll();
+        }
+
+        private void ClearMsg_Click(object sender, EventArgs e)
+        {
+            OperateResult.Clear();
+        }
+
+        private void ShowMsg(int type, string msg)
+        {
+            string fullDateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+            if (type == 0)
+            {
+                OperateResult.AppendText($"{fullDateTime}: {msg}\n", Color.Red);
+            }
+            else if (type == 1)
+            {
+                OperateResult.AppendText($"{fullDateTime}: {msg}\n", Color.Green);
+            }
+        }
+
+        private string SqlText(string text)
+        {
+            return (text ?? "").Trim().Replace("'", "''");
+        }
+    }
+}

+ 88 - 0
UAS_MES_WEIP/FunctionCode/Make/Make_WoMaterialBind.resx

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <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="col_check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="work_order.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="sn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="prod_code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="material_qty.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="line.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="side.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="update_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="update_time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>

+ 9 - 0
UAS_MES_WEIP/UAS_MES_WEIP.csproj

@@ -555,6 +555,12 @@
     <Compile Include="FunctionCode\Make\Make_PcbClean.Designer.cs">
       <DependentUpon>Make_PcbClean.cs</DependentUpon>
     </Compile>
+    <Compile Include="FunctionCode\Make\Make_WoMaterialBind.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FunctionCode\Make\Make_WoMaterialBind.Designer.cs">
+      <DependentUpon>Make_WoMaterialBind.cs</DependentUpon>
+    </Compile>
     <Compile Include="FunctionCode\Make\Make_FeedingCollectionCombine.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -1372,6 +1378,9 @@
     <EmbeddedResource Include="FunctionCode\Make\Make_PcbClean.resx">
       <DependentUpon>Make_PcbClean.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FunctionCode\Make\Make_WoMaterialBind.resx">
+      <DependentUpon>Make_WoMaterialBind.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FunctionCode\Make\Make_FeedingCollectionCombine.resx">
       <DependentUpon>Make_FeedingCollectionCombine.cs</DependentUpon>
     </EmbeddedResource>