章政 7 жил өмнө
parent
commit
5c64554c95

+ 323 - 0
UAS-MES/FunctionCode/Warehouse/Warehouse_ProductMakeInTest.Designer.cs

@@ -0,0 +1,323 @@
+namespace UAS_MES.Warehouse
+{
+    partial class Warehouse_ProductMakeInTest
+    {
+        /// <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.components = new System.ComponentModel.Container();
+            this.label8 = new System.Windows.Forms.Label();
+            this.bigboxBtn = new System.Windows.Forms.RadioButton();
+            this.serBtn = new System.Windows.Forms.RadioButton();
+            this.palletBtn = new System.Windows.Forms.RadioButton();
+            this.label1 = new System.Windows.Forms.Label();
+            this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
+            this.Search = new System.Windows.Forms.Button();
+            this.pallecode = new UAS_MES.CustomControl.TextBoxWithIcon.TextBoxWithPlaceHolder();
+            this.OperateResult = new UAS_MES.CustomControl.RichText.RichTextAutoBottom();
+            this.cancel = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
+            this.input = new UAS_MES.CustomControl.TextBoxWithIcon.SnCollectionBox();
+            this.getqty = new UAS_MES.CustomControl.ValueLabel.ValueLabel();
+            this.InOutDetailDGV = new UAS_MES.CustomControl.DataGrid_View.DataGridViewWithSerialNum();
+            this.pim_outboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pim_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pim_mac = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pim_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_detail = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Sp = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.InOutDetailDGV)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // label8
+            // 
+            this.label8.AutoSize = true;
+            this.label8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label8.Location = new System.Drawing.Point(16, 14);
+            this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(92, 27);
+            this.label8.TabIndex = 227;
+            this.label8.Text = "当前明细";
+            // 
+            // bigboxBtn
+            // 
+            this.bigboxBtn.AutoSize = true;
+            this.bigboxBtn.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.bigboxBtn.Location = new System.Drawing.Point(148, 496);
+            this.bigboxBtn.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.bigboxBtn.Name = "bigboxBtn";
+            this.bigboxBtn.Size = new System.Drawing.Size(73, 31);
+            this.bigboxBtn.TabIndex = 231;
+            this.bigboxBtn.Text = "箱号";
+            this.bigboxBtn.UseVisualStyleBackColor = true;
+            this.bigboxBtn.Click += new System.EventHandler(this.serBtn_Click);
+            // 
+            // serBtn
+            // 
+            this.serBtn.AutoSize = true;
+            this.serBtn.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.serBtn.Location = new System.Drawing.Point(263, 496);
+            this.serBtn.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.serBtn.Name = "serBtn";
+            this.serBtn.Size = new System.Drawing.Size(133, 31);
+            this.serBtn.TabIndex = 230;
+            this.serBtn.Text = "单台序列号";
+            this.serBtn.UseVisualStyleBackColor = true;
+            this.serBtn.Click += new System.EventHandler(this.serBtn_Click);
+            // 
+            // palletBtn
+            // 
+            this.palletBtn.AutoSize = true;
+            this.palletBtn.Checked = true;
+            this.palletBtn.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.palletBtn.Location = new System.Drawing.Point(37, 496);
+            this.palletBtn.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.palletBtn.Name = "palletBtn";
+            this.palletBtn.Size = new System.Drawing.Size(93, 31);
+            this.palletBtn.TabIndex = 229;
+            this.palletBtn.TabStop = true;
+            this.palletBtn.Text = "栈板号";
+            this.palletBtn.UseVisualStyleBackColor = true;
+            this.palletBtn.Click += new System.EventHandler(this.serBtn_Click);
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label1.Location = new System.Drawing.Point(16, 559);
+            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(72, 27);
+            this.label1.TabIndex = 234;
+            this.label1.Text = "采集框";
+            // 
+            // Search
+            // 
+            this.Search.Location = new System.Drawing.Point(263, 56);
+            this.Search.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.Search.Name = "Search";
+            this.Search.Size = new System.Drawing.Size(91, 26);
+            this.Search.TabIndex = 237;
+            this.Search.Text = "查询";
+            this.Search.UseVisualStyleBackColor = true;
+            this.Search.Click += new System.EventHandler(this.Search_Click);
+            // 
+            // pallecode
+            // 
+            this.pallecode.BackColor = System.Drawing.Color.Transparent;
+            this.pallecode.Location = new System.Drawing.Point(16, 56);
+            this.pallecode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pallecode.Name = "pallecode";
+            this.pallecode.PlaceHolder = "栈板/箱搜索";
+            this.pallecode.Size = new System.Drawing.Size(212, 35);
+            this.pallecode.TabIndex = 236;
+            this.pallecode.UserControlTextChanged += new UAS_MES.CustomControl.TextBoxWithIcon.TextBoxWithPlaceHolder.OnTextChange(this.textBoxWithPlaceHolder1_UserControlTextChanged);
+            // 
+            // OperateResult
+            // 
+            this.OperateResult.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OperateResult.Location = new System.Drawing.Point(444, 472);
+            this.OperateResult.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.OperateResult.Name = "OperateResult";
+            this.OperateResult.Size = new System.Drawing.Size(456, 116);
+            this.OperateResult.TabIndex = 235;
+            this.OperateResult.Text = "";
+            // 
+            // cancel
+            // 
+            this.cancel.AutoSize = true;
+            this.cancel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.cancel.Location = new System.Drawing.Point(312, 559);
+            this.cancel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cancel.Name = "cancel";
+            this.cancel.Power = null;
+            this.cancel.Size = new System.Drawing.Size(74, 31);
+            this.cancel.TabIndex = 233;
+            this.cancel.Text = "取消";
+            this.cancel.UseVisualStyleBackColor = true;
+            // 
+            // input
+            // 
+            this.input.AllPower = null;
+            this.input.BackColor = System.Drawing.Color.White;
+            this.input.ID = null;
+            this.input.Location = new System.Drawing.Point(116, 559);
+            this.input.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.input.Name = "input";
+            this.input.Power = null;
+            this.input.Size = new System.Drawing.Size(165, 25);
+            this.input.Str = null;
+            this.input.Str1 = null;
+            this.input.Str2 = null;
+            this.input.TabIndex = 232;
+            this.input.KeyDown += new System.Windows.Forms.KeyEventHandler(this.input_KeyDown);
+            // 
+            // getqty
+            // 
+            this.getqty.AutoSize = true;
+            this.getqty.CutLength = null;
+            this.getqty.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.getqty.Location = new System.Drawing.Point(135, 15);
+            this.getqty.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.getqty.MaximumSize = new System.Drawing.Size(267, 0);
+            this.getqty.Name = "getqty";
+            this.getqty.Size = new System.Drawing.Size(0, 27);
+            this.getqty.TabIndex = 228;
+            // 
+            // InOutDetailDGV
+            // 
+            this.InOutDetailDGV.AllowUserToAddRows = false;
+            this.InOutDetailDGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.InOutDetailDGV.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.pim_outboxcode,
+            this.pim_id,
+            this.pim_mac,
+            this.pim_prodcode,
+            this.pr_detail,
+            this.pr_spec,
+            this.Sp});
+            this.InOutDetailDGV.EnableContentClick = true;
+            this.InOutDetailDGV.Location = new System.Drawing.Point(15, 98);
+            this.InOutDetailDGV.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.InOutDetailDGV.Name = "InOutDetailDGV";
+            this.InOutDetailDGV.RowTemplate.Height = 27;
+            this.InOutDetailDGV.Size = new System.Drawing.Size(887, 366);
+            this.InOutDetailDGV.TabIndex = 219;
+            this.InOutDetailDGV.DataSourceChanged += new System.EventHandler(this.InOutDetailDGV_DataSourceChanged);
+            // 
+            // pim_outboxcode
+            // 
+            this.pim_outboxcode.DataPropertyName = "pim_outboxcode";
+            this.pim_outboxcode.HeaderText = "栈板/箱号";
+            this.pim_outboxcode.Name = "pim_outboxcode";
+            this.pim_outboxcode.ReadOnly = true;
+            this.pim_outboxcode.Width = 124;
+            // 
+            // pim_id
+            // 
+            this.pim_id.DataPropertyName = "pim_id";
+            this.pim_id.HeaderText = "pim_id";
+            this.pim_id.Name = "pim_id";
+            this.pim_id.Visible = false;
+            // 
+            // pim_mac
+            // 
+            this.pim_mac.DataPropertyName = "pim_mac";
+            this.pim_mac.HeaderText = "SN号";
+            this.pim_mac.Name = "pim_mac";
+            this.pim_mac.ReadOnly = true;
+            this.pim_mac.Width = 125;
+            // 
+            // pim_prodcode
+            // 
+            this.pim_prodcode.DataPropertyName = "pim_prodcode";
+            this.pim_prodcode.HeaderText = "产品代码";
+            this.pim_prodcode.Name = "pim_prodcode";
+            this.pim_prodcode.ReadOnly = true;
+            this.pim_prodcode.Width = 124;
+            // 
+            // pr_detail
+            // 
+            this.pr_detail.DataPropertyName = "pr_detail";
+            this.pr_detail.HeaderText = "名称";
+            this.pr_detail.Name = "pr_detail";
+            this.pr_detail.ReadOnly = true;
+            this.pr_detail.Width = 125;
+            // 
+            // pr_spec
+            // 
+            this.pr_spec.DataPropertyName = "pr_spec";
+            this.pr_spec.HeaderText = "规格";
+            this.pr_spec.MinimumWidth = 200;
+            this.pr_spec.Name = "pr_spec";
+            this.pr_spec.ReadOnly = true;
+            this.pr_spec.Width = 200;
+            // 
+            // Sp
+            // 
+            this.Sp.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.Sp.HeaderText = " ";
+            this.Sp.MinimumWidth = 2;
+            this.Sp.Name = "Sp";
+            this.Sp.Width = 2;
+            // 
+            // Warehouse_ProductMakeInTest
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(933, 624);
+            this.Controls.Add(this.Search);
+            this.Controls.Add(this.pallecode);
+            this.Controls.Add(this.OperateResult);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.cancel);
+            this.Controls.Add(this.input);
+            this.Controls.Add(this.bigboxBtn);
+            this.Controls.Add(this.serBtn);
+            this.Controls.Add(this.palletBtn);
+            this.Controls.Add(this.getqty);
+            this.Controls.Add(this.label8);
+            this.Controls.Add(this.InOutDetailDGV);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.Name = "Warehouse_ProductMakeInTest";
+            this.Tag = "Warehouse!ProductMakeInTest";
+            this.Text = "完工入库";
+            this.Load += new System.EventHandler(this.Warehouse_ProductMakeIn_Load);
+            this.SizeChanged += new System.EventHandler(this.Warehouse_ProductMakeIn_SizeChanged);
+            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.InOutDetailDGV)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private CustomControl.DataGrid_View.DataGridViewWithSerialNum InOutDetailDGV;
+        private CustomControl.ValueLabel.ValueLabel getqty;
+        private System.Windows.Forms.Label label8;
+        private CustomControl.CustomCheckBox.CustomCheckBox cancel;
+        private CustomControl.TextBoxWithIcon.SnCollectionBox input;
+        private System.Windows.Forms.RadioButton bigboxBtn;
+        private System.Windows.Forms.RadioButton serBtn;
+        private System.Windows.Forms.RadioButton palletBtn;
+        private System.Windows.Forms.Label label1;
+        private CustomControl.RichText.RichTextAutoBottom OperateResult;
+        private System.Windows.Forms.BindingSource bindingSource1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn pim_outboxcode;
+        private System.Windows.Forms.DataGridViewTextBoxColumn pim_id;
+        private System.Windows.Forms.DataGridViewTextBoxColumn pim_mac;
+        private System.Windows.Forms.DataGridViewTextBoxColumn pim_prodcode;
+        private System.Windows.Forms.DataGridViewTextBoxColumn pr_detail;
+        private System.Windows.Forms.DataGridViewTextBoxColumn pr_spec;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Sp;
+        private CustomControl.TextBoxWithIcon.TextBoxWithPlaceHolder pallecode;
+        private System.Windows.Forms.Button Search;
+    }
+}

+ 534 - 0
UAS-MES/FunctionCode/Warehouse/Warehouse_ProductMakeInTest.cs

@@ -0,0 +1,534 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using UAS_MES.DataOperate;
+using UAS_MES.Entity;
+using UAS_MES.PublicMethod;
+
+namespace UAS_MES.Warehouse
+{
+    public partial class Warehouse_ProductMakeInTest : Form
+    {
+
+        DataTable dbfind;
+
+        AutoSizeFormClass asc = new AutoSizeFormClass();
+
+        LogStringBuilder sql = new LogStringBuilder();
+
+        DataTable dt;
+
+        DataHelper dh;
+
+        DataTable dta;
+
+        DataTable dtpi;
+
+        DataTable dtform;
+
+        DataTable dtms;
+
+        int getcount;
+
+        public Warehouse_ProductMakeInTest()
+        {
+            InitializeComponent();
+        }
+
+        private void input_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode == Keys.Enter)
+            {
+                if (input.Text == "")
+                {
+                    OperateResult.AppendText("录入信息不能为空\n", Color.Red, input);
+                    return;
+                }
+                if (!cancel.Checked)
+                {
+                    if (palletBtn.Checked)
+                    {
+                        sql.Clear();
+                        sql.Append("select pa_id,pa_outboxcode,pa_status,nvl(pa_downstatus,0)pa_downstatus,pa_makecode,");
+                        sql.Append("pa_outno,nvl(pa_iostatus,0) pa_iostatus from package where pa_outboxcode='" + input.Text + "' and pa_type=3");
+                        dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                        if (dt.Rows.Count > 0)
+                        {
+                            string pa_downstatus = dt.Rows[0]["pa_downstatus"].ToString();
+                            string pa_iostatus = dt.Rows[0]["pa_iostatus"].ToString();
+                            string pa_status = dt.Rows[0]["pa_status"].ToString();
+                            string pa_outno = dt.Rows[0]["pa_outno"].ToString();
+                            string pa_id = dt.Rows[0]["pa_id"].ToString();
+                            string pa_makecode = dt.Rows[0]["pa_makecode"].ToString();
+                            if (!CheckStatus(pa_downstatus, pa_status, pa_iostatus, pa_outno, "栈板"))
+                                return;
+                            insertprodiomac(pa_id, pa_makecode, "PALLET");
+                            OperateResult.AppendText("栈板" + input.Text + "完工入库成功\n", Color.Green);
+                        }
+                        else
+                        {
+                            OperateResult.AppendText("栈板号" + input.Text + "不存在,重新输入栈板号\n", Color.Red, input);
+                            return;
+                        }
+                    }
+                    else if (bigboxBtn.Checked)
+                    {
+                        string outboxcode = dh.getFieldDataByCondition("makeserial", "ms_outboxcode", "ms_sncode = '" + input.Text + "'").ToString();
+                        if (outboxcode != "")
+                        {
+                            input.Text = outboxcode;
+                        }
+                        sql.Clear();
+                        sql.Append("select pa_id,pa_outboxcode,pa_status,nvl(pa_downstatus,0)pa_downstatus,pa_makecode,");
+                        sql.Append("pa_outno,pa_mothercode,nvl(pa_iostatus,0) pa_iostatus  from package where pa_outboxcode='" + input.Text + "' and pa_type in (1,2)");
+                        dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                        if (dt.Rows.Count > 0)
+                        {
+                            string pa_mothercode = dt.Rows[0]["pa_mothercode"].ToString();
+                            string pa_downstatus = dt.Rows[0]["pa_downstatus"].ToString();
+                            string pa_iostatus = dt.Rows[0]["pa_iostatus"].ToString();
+                            string pa_status = dt.Rows[0]["pa_status"].ToString();
+                            string pa_outno = dt.Rows[0]["pa_outno"].ToString();
+                            string pa_id = dt.Rows[0]["pa_id"].ToString();
+                            string pa_makecode = dt.Rows[0]["pa_makecode"].ToString();
+                            if (pa_mothercode != "")
+                            {
+                                OperateResult.AppendText("箱号" + input.Text + "已经装大箱或者栈板" + pa_mothercode + ",不允许单独操作\n", Color.Red, input);
+                                return;
+                            }
+                            if (!CheckStatus(pa_downstatus, pa_status, pa_iostatus, pa_outno, "箱"))
+                                return;
+                            insertprodiomac(pa_id, pa_makecode, "BOX");
+                            OperateResult.AppendText("箱号" + input.Text + "完工入库成功\n", Color.Green);
+                        }
+                        else
+                        {
+                            OperateResult.AppendText("箱号" + input.Text + "不存在,重新输入箱号\n", Color.Red, input);
+                            return;
+                        }
+                    }
+                    else if (serBtn.Checked)
+                    {
+                        string ms_id = dh.getFieldDataByCondition("makeserial", "max(ms_id)ms_id", "ms_sncode='" + input.Text + "'").ToString();
+                        if (ms_id == "")
+                        {
+                            OperateResult.AppendText("序列号" + input.Text + "不存在,请重新输入\n", Color.Red, input);
+                            return;
+                        }
+                        else
+                        {
+                            sql.Clear();
+                            sql.Append("select ms_status,nvl(ms_downstatus,0)ms_downstatus,ms_outboxcode,ms_makecode,nvl(ms_iostatus,0)ms_iostatus,ms_prodcode,ms_outno from makeserial  where ms_id='" + ms_id + "'");
+                            dtms = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                            string ms_downstatus = dtms.Rows[0]["ms_downstatus"].ToString();
+                            string ms_status = dtms.Rows[0]["ms_status"].ToString();
+                            string ms_outboxcode = dtms.Rows[0]["ms_outboxcode"].ToString();
+                            string ms_iostatus = dtms.Rows[0]["ms_iostatus"].ToString();
+                            string ms_outno = dtms.Rows[0]["ms_outno"].ToString();
+                            string ms_prodcode = dtms.Rows[0]["ms_prodcode"].ToString();
+                            string ms_makecode = dtms.Rows[0]["ms_makecode"].ToString();
+                            if (ms_status != "2")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "未完工,不允许出货\n", Color.Red, input);
+                                return;
+                            }
+                            if (ms_outboxcode != "")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "有外箱号" + ms_outboxcode + ",不允许单独操作\n", Color.Red, input);
+                                return;
+                            }
+                            if (ms_downstatus != "0")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "处于下地状态,不允许出货\n", Color.Red, input);
+                                return;
+                            }
+                            if (ms_iostatus == "1")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "已经入库,不允许重复入库\n", Color.Red, input);
+                                return;
+                            }
+                            if (ms_iostatus == "2")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "已经出库,出库单号:" + ms_outno + "\n", Color.Red, input);
+                                return;
+                            }
+                            if (ms_iostatus == "3")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "处于售后退货状态\n", Color.Red, input);
+                                return;
+                            }
+                            sql.Clear();
+                            sql.Append("insert into prodiomac(pim_id,pim_prodcode,pim_mac,pim_indate,pim_inman,pim_type,pim_inorout,pim_class) ");
+                            sql.Append("values(prodiomac_seq.nextval,'" + ms_prodcode + "','" + input.Text + "',sysdate,'" + User.UserCode + "',' ','IN','完工入库')");
+                            dh.ExecuteSql(sql.GetString(), "insert");
+                            dh.UpdateByCondition("makeserial", "ms_iostatus=1", " ms_id='" + ms_id + "'");
+                            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode, User.UserLineCode, User.UserSourceCode, "序列号" + input.Text + "完工入库", "序列号" + input.Text + "完工入库成功", input.Text, "");
+                            OperateResult.AppendText("序列号" + input.Text + "完工入库成功\n", Color.Green);
+                        }
+                    }
+                    else
+                    {
+                        OperateResult.AppendText("未选择录入数据类型\n", Color.Red, input);
+                        return;
+                    }
+                    LoadGridData();
+                    input.Clear();
+                }
+                else
+                {
+                    if (palletBtn.Checked)
+                    {
+                        sql.Clear();
+                        sql.Append("select pa_id,pa_outboxcode,pa_status,nvl(pa_downstatus,0)pa_downstatus,pa_makecode,");
+                        sql.Append("pa_outno,nvl(pa_iostatus,0) pa_iostatus from package where pa_outboxcode='" + input.Text + "' and pa_type=3");
+                        dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                        if (dt.Rows.Count > 0)
+                        {
+                            string pa_downstatus = dt.Rows[0]["pa_downstatus"].ToString();
+                            string pa_iostatus = dt.Rows[0]["pa_iostatus"].ToString();
+                            string pa_status = dt.Rows[0]["pa_status"].ToString();
+                            string pa_outno = dt.Rows[0]["pa_outno"].ToString();
+                            string pa_id = dt.Rows[0]["pa_id"].ToString();
+                            string pa_makecode = dt.Rows[0]["pa_makecode"].ToString();
+                            if (pa_iostatus != "1")
+                            {
+                                OperateResult.AppendText("栈板号" + input.Text + "不是在库状态,无需取消完工入库\n", Color.Red, input);
+                                return;
+                            }
+                            if (pa_outno != "")
+                            {
+                                OperateResult.AppendText("栈板号" + input.Text + "已被出货单单号:" + pa_outno + "锁定\n", Color.Red, input);
+                                return;
+                            }
+                            DeleteData();
+                            deleteprodiomac(pa_id, pa_makecode, "PALLET");
+                            OperateResult.AppendText("栈板" + input.Text + "取消完工入库成功\n", Color.Green, input);
+                        }
+                        else
+                        {
+                            OperateResult.AppendText("栈板号" + input.Text + "不存在,重新输入栈板号\n", Color.Red, input);
+                            return;
+                        }
+                    }
+                    else if (bigboxBtn.Checked)
+                    {
+                        string outboxcode = dh.getFieldDataByCondition("makeserial", "ms_outboxcode", "ms_sncode = '" + input.Text + "'").ToString();
+                        if (outboxcode != "")
+                        {
+                            input.Text = outboxcode;
+                        }
+                        sql.Clear();
+                        sql.Append("select pa_id,pa_outboxcode,pa_status,nvl(pa_downstatus,0)pa_downstatus,pa_makecode,");
+                        sql.Append("pa_outno,pa_mothercode,nvl(pa_iostatus,0) pa_iostatus  from package where pa_outboxcode='" + input.Text + "' and pa_type in (1,2)");
+                        dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                        if (dt.Rows.Count > 0)
+                        {
+                            string pa_mothercode = dt.Rows[0]["pa_mothercode"].ToString();
+                            string pa_downstatus = dt.Rows[0]["pa_downstatus"].ToString();
+                            string pa_iostatus = dt.Rows[0]["pa_iostatus"].ToString();
+                            string pa_status = dt.Rows[0]["pa_status"].ToString();
+                            string pa_outno = dt.Rows[0]["pa_outno"].ToString();
+                            string pa_id = dt.Rows[0]["pa_id"].ToString();
+                            string pa_makecode = dt.Rows[0]["pa_makecode"].ToString();
+                            if (pa_mothercode != "")
+                            {
+                                OperateResult.AppendText("箱号" + input.Text + "已经装大箱或者栈板" + pa_mothercode + ",不允许单独操作\n", Color.Red, input);
+                                return;
+                            }
+                            if (pa_iostatus != "1")
+                            {
+                                OperateResult.AppendText("箱号" + input.Text + "不是在库状态,无需取消完工入库\n", Color.Red, input);
+                                return;
+                            }
+                            if (pa_outno != "")
+                            {
+                                OperateResult.AppendText("箱号" + input.Text + "已被出货单单号:" + pa_outno + "锁定\n", Color.Red, input);
+                                return;
+                            }
+                            DeleteData();
+                            deleteprodiomac(pa_id, pa_makecode, "BOX");
+                            OperateResult.AppendText("箱号" + input.Text + "取消完工入库成功\n", Color.Green, input);
+                        }
+                        else
+                        {
+                            OperateResult.AppendText("箱号" + input.Text + "不存在,重新输入箱号\n", Color.Red, input);
+                            return;
+                        }
+                    }
+                    else if (serBtn.Checked)
+                    {
+                        string ms_id = dh.getFieldDataByCondition("makeserial", "max(ms_id)ms_id", "ms_sncode='" + input.Text + "'").ToString();
+                        if (ms_id == "")
+                        {
+                            OperateResult.AppendText("序列号" + input.Text + "不存在,请重新输入\n", Color.Red, input);
+                            return;
+                        }
+                        else
+                        {
+                            sql.Clear();
+                            sql.Append("select ms_status,nvl(ms_downstatus,0)ms_downstatus,ms_outboxcode,ms_makecode,nvl(ms_iostatus,0)ms_iostatus,ms_prodcode,ms_outno from makeserial  where ms_id='" + ms_id + "'");
+                            dtms = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                            string ms_downstatus = dtms.Rows[0]["ms_downstatus"].ToString();
+                            string ms_status = dtms.Rows[0]["ms_status"].ToString();
+                            string ms_outboxcode = dtms.Rows[0]["ms_outboxcode"].ToString();
+                            string ms_iostatus = dtms.Rows[0]["ms_iostatus"].ToString();
+                            string ms_outno = dtms.Rows[0]["ms_outno"].ToString();
+                            string ms_prodcode = dtms.Rows[0]["ms_prodcode"].ToString();
+                            string ms_makecode = dtms.Rows[0]["ms_makecode"].ToString();
+                            if (ms_outboxcode != "")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "有外箱号" + ms_outboxcode + ",不允许单独操作\n", Color.Red, input);
+                                return;
+                            }
+                            if (ms_outno != "")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "已被出货单单号:" + ms_outno + "锁定\n", Color.Red, input);
+                                return;
+                            }
+                            if (ms_iostatus != "1")
+                            {
+                                OperateResult.AppendText("序列号" + input.Text + "不是在库状态,无需取消完工入库\n", Color.Red, input);
+                                return;
+                            }
+                            DeleteData();
+                            sql.Clear();
+                            sql.Append("delete from prodiomac where pim_id =(select max(pim_id) from prodiomac where ");
+                            sql.Append(" pim_mac='" + input.Text + "' and pim_inorout='IN' AND pim_class='完工入库' )");
+                            dh.ExecuteSql(sql.GetString(), "delete");
+                            dh.UpdateByCondition("makeserial", "ms_iostatus=0", " ms_id='" + ms_id + "'");
+                            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode, User.UserLineCode, User.UserSourceCode, "序列号" + input.Text + "取消完工入库", "序列号" + input.Text + "取消完工入库成功", input.Text, "");
+                            OperateResult.AppendText("序列号" + input.Text + "取消完工入库成功\n", Color.Green, input);
+                        }
+                    }
+                    else
+                    {
+                        OperateResult.AppendText("未选择录入数据类型\n", Color.Red, input);
+                        return;
+                    }
+
+                }
+                getqty.Text = ((DataTable)bindingSource1.DataSource).Rows.Count.ToString();
+
+            }
+        }
+
+        private Boolean CheckStatus(string pa_downstatus, string pa_status, string pa_iostatus, string pa_outno, string type)
+        {
+            if (pa_status == "0")
+            {
+                OperateResult.AppendText(type + "号" + input.Text + "未封装\n", Color.Red, input);
+                return false;
+            }
+            if (pa_downstatus != "0")
+            {
+                OperateResult.AppendText(type + "号" + input.Text + "处于下地状态,如需完工入库,请先取消下地\n", Color.Red, input);
+                return false;
+            }
+            if (pa_iostatus == "1")
+            {
+                OperateResult.AppendText(type + "号" + input.Text + "已经入库,不允许重复入库\n", Color.Red, input);
+                return false;
+            }
+            if (pa_iostatus == "2")
+            {
+                OperateResult.AppendText(type + "号" + input.Text + "已经出库,出库单号:" + pa_outno + "\n", Color.Red, input);
+                return false;
+            }
+            if (pa_iostatus == "3")
+            {
+                OperateResult.AppendText(type + "号" + input.Text + "处于售后退货状态\n", Color.Red, input);
+                return false;
+            }
+            sql.Clear();
+            sql.Append("select wm_concat(v_barcode)data,count(1)cn from mes_package_view left join ");
+            sql.Append("makeserial on ms_sncode=v_barcode and ms_makecode=v_makecode ");
+            sql.Append("where v_outboxcode='" + input.Text + "' and nvl(ms_status,0)<>2 and rownum<20");
+            dta = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+            string CN = dta.Rows[0]["CN"].ToString();
+            string DATA = dta.Rows[0]["DATA"].ToString();
+            if (int.Parse(CN) > 0)
+            {
+                OperateResult.AppendText(type + "号" + input.Text + "内的序列号尚未完工,不允许进行完工入库,序列号:" + DATA + "\n", Color.Red, input);
+                return false;
+            }
+            return true;
+        }
+
+
+        private void insertprodiomac(string pa_id, string pa_makecode, string type)
+        {
+            sql.Clear();
+            sql.Append("insert into prodiomac(pim_id,pim_prodcode,pim_mac,pim_indate,pim_inman,pim_type,pim_outboxcode,pim_inorout,pim_class) ");
+            sql.Append("select prodiomac_seq.nextval,v_prodcode,v_barcode,sysdate,'" + User.UserCode + "','" + type + "','" + input.Text + "','IN','完工入库'  from mes_package_view where v_outboxcode='" + input.Text + "'");
+            dh.ExecuteSql(sql.GetString(), "update");
+            dh.UpdateByCondition("package", "pa_iostatus=1", "pa_id='" + pa_id + "'");
+            if (type == "BOX")
+            {
+                type = "箱";
+            }
+            else
+                type = "栈板";
+            //dh.UpdateByCondition("makeserial", "ms_iostatus=1", "ms_id in (select max(ms_id)  from makeserial where ms_sncode in (select v_barcode from MES_PACKAGE_VIEW where v_outboxcode = '"+input.Text+"') GROUP BY ms_sncode)");
+            List<string> v_barcode = new List<string>();
+            List<string> v_makecode = new List<string>();
+            DataTable datatable = (DataTable)dh.ExecuteSql("select v_makecode,v_barcode from MES_PACKAGE_VIEW where v_outboxcode = '" + input.Text + "'", "select");
+            for (int i = 0; i < datatable.Rows.Count; i++)
+            {
+                v_barcode.Add(datatable.Rows[i]["v_barcode"].ToString());
+                v_makecode.Add(datatable.Rows[i]["v_makecode"].ToString());
+            }
+            dh.BatchInsert("update makeserial set ms_iostatus=1 where ms_sncode = :v_barcode and ms_makecode = :v_makecode", new string[] { "v_barcode", "v_makecode" }, v_barcode.ToArray(), v_makecode.ToArray());
+            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode, User.UserLineCode, User.UserSourceCode, type + "号" + input.Text + "完工入库", type + "号" + input.Text + "完工入库成功", "", input.Text);
+            return;
+        }
+
+
+        /// <summary>
+        /// 加载Grid数据
+        /// </summary>
+        private void LoadGridData()
+        {
+            if (palletBtn.Checked || bigboxBtn.Checked)
+            {
+                sql.Clear();
+                sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
+                sql.Append("left join product on pr_code=pim_prodcode where pim_outboxcode='" + input.Text + "'and pim_inorout='IN' AND pim_class='完工入库'");
+                DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                (bindingSource1.DataSource as DataTable).Merge(dt.Copy());
+                BaseUtil.FillDgvWithDataTable(InOutDetailDGV, (DataTable)bindingSource1.DataSource);
+            }
+            else
+            {
+                sql.Clear();
+                sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
+                sql.Append("left join product on pr_code=pim_prodcode where pim_mac='" + input.Text + "' and pim_inorout='IN' AND pim_class='完工入库'");
+                DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                (bindingSource1.DataSource as DataTable).Merge(dt.Copy());
+                BaseUtil.FillDgvWithDataTable(InOutDetailDGV, (DataTable)bindingSource1.DataSource);
+            }
+        }
+
+
+        /// <summary>
+        /// 去除重复Grid数据
+        /// </summary>
+        private void DeleteData()
+        {
+            if (palletBtn.Checked || bigboxBtn.Checked)
+            {
+                sql.Clear();
+                sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
+                sql.Append("left join product on pr_code=pim_prodcode where pim_outboxcode='" + input.Text + "' and pim_inorout='IN' AND pim_class='完工入库'");
+                DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                BaseUtil.FillDgvWithDataTable(InOutDetailDGV, BaseUtil.DataTableMerge((DataTable)bindingSource1.DataSource, dt, "pim_id"));
+            }
+            else
+            {
+                sql.Clear();
+                sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
+                sql.Append("left join product on pr_code=pim_prodcode where pim_mac='" + input.Text + "' and pim_inorout='IN' AND pim_class='完工入库'");
+                DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                BaseUtil.FillDgvWithDataTable(InOutDetailDGV, BaseUtil.DataTableMerge((DataTable)bindingSource1.DataSource, dt, "pim_id"));
+            }
+        }
+
+
+        private void deleteprodiomac(string pa_id, string pa_makecode, string type)
+        {
+            sql.Clear();
+            sql.Append("delete from prodiomac where pim_id in (select pim_id from prodiomac where ");
+            sql.Append(" pim_outboxcode='" + input.Text + "' and pim_type='" + type + "' and pim_inorout='IN' AND pim_class='完工入库' )");
+            dh.ExecuteSql(sql.GetString(), "delete");
+            dh.UpdateByCondition("package", "pa_iostatus=0", "pa_id='" + pa_id + "'");
+            List<string> v_barcode = new List<string>();
+            List<string> v_makecode = new List<string>();
+            DataTable datatable = (DataTable)dh.ExecuteSql("select v_makecode,v_barcode from MES_PACKAGE_VIEW where v_outboxcode = '" + input.Text + "'", "select");
+            for (int i = 0; i < datatable.Rows.Count; i++)
+            {
+                v_barcode.Add(datatable.Rows[i]["v_barcode"].ToString());
+                v_makecode.Add(datatable.Rows[i]["v_makecode"].ToString());
+            }
+            dh.BatchInsert("update makeserial set ms_iostatus=0 where ms_sncode = :v_barcode and ms_makecode = :v_makecode", new string[] { "v_barcode", "v_makecode" }, v_barcode.ToArray(), v_makecode.ToArray());
+            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode, User.UserLineCode, User.UserSourceCode, type + "号" + input.Text + "取消完工入库", type + "号" + input.Text + "取消完工入库成功", "", input.Text);
+            //dh.UpdateByCondition("makeserial", "ms_iostatus=0", "ms_id in (select max(ms_id)  from makeserial where ms_sncode in (select v_barcode from MES_PACKAGE_VIEW where v_outboxcode = '" + input.Text + "') GROUP BY ms_sncode)");
+            return;
+        }
+
+        private void Warehouse_ProductMakeIn_Load(object sender, EventArgs e)
+        {
+            asc.controllInitializeSize(this);
+            getcount = 0;
+            getqty.Text = getcount.ToString();
+            dh = SystemInf.dh;
+            sql.Clear();
+            sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
+            sql.Append("left join product on pr_code=pim_prodcode where pim_id is null");
+            bindingSource1.DataSource = dh.ExecuteSql(sql.GetString(), "select");
+            input.Focus();
+            OperateResult.AppendText("请输入栈板进行采集\n", Color.Black, input);
+        }
+
+        private void Warehouse_ProductMakeIn_SizeChanged(object sender, EventArgs e)
+        {
+            asc.controlAutoSize(this);
+        }
+
+        private void serBtn_Click(object sender, EventArgs e)
+        {
+            if (((RadioButton)sender).Checked == true)
+            {
+                if (((RadioButton)sender).Name == "serBtn")
+                {
+                    input.Focus();
+                    OperateResult.AppendText("请输入序列号进行采集\n", Color.Black, input);
+                }
+                else if (((RadioButton)sender).Name == "bigboxBtn")
+                {
+                    input.Focus();
+                    OperateResult.AppendText("请输入箱号进行采集\n", Color.Black, input);
+                }
+                else if (((RadioButton)sender).Name == "palletBtn")
+                {
+                    input.Focus();
+                    OperateResult.AppendText("请输入栈板进行采集\n", Color.Black, input);
+                }
+            }
+        }
+
+        private void textBoxWithPlaceHolder1_UserControlTextChanged(object sender, EventArgs e)
+        {
+            if (pallecode.Text.Length == 0)
+            {
+                input.Enabled = true;
+                if (bindingSource1.DataSource != null)
+                {
+                    BaseUtil.FillDgvWithDataTable(InOutDetailDGV, (DataTable)bindingSource1.DataSource);
+                }
+            }
+        }
+
+        private void Search_Click(object sender, EventArgs e)
+        {
+            if (pallecode.Text.Length >= 1)
+            {
+                sql.Clear();
+                sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
+                sql.Append("left join product on pr_code=pim_prodcode where pim_outboxcode like  '%" + pallecode.Text + "%' and pim_inorout='IN' AND pim_class='完工入库'");
+                DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                BaseUtil.FillDgvWithDataTable(InOutDetailDGV, dt);
+                input.Enabled = false;
+            }else
+                OperateResult.AppendText("查询栏为空\n", Color.Black);
+        }
+
+        private void InOutDetailDGV_DataSourceChanged(object sender, EventArgs e)
+        {
+            getqty.Text = InOutDetailDGV.Rows.Count.ToString();
+        }
+    }
+}

+ 144 - 0
UAS-MES/FunctionCode/Warehouse/Warehouse_ProductMakeInTest.resx

@@ -0,0 +1,144 @@
+<?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="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="pim_outboxcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="pim_id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="pim_mac.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="pim_prodcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="pr_detail.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="pr_spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Sp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>