Browse Source

删除无用数据

章政 7 years ago
parent
commit
0034f8a87b

+ 3 - 89
UAS-出货标签管理(吉利通)/UAS_出货标签管理.Designer.cs

@@ -28,7 +28,6 @@
         /// </summary>
         /// </summary>
         private void InitializeComponent()
         private void InitializeComponent()
         {
         {
-            this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UAS_出货标签打印));
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UAS_出货标签打印));
             this.pi_inoutno_label = new System.Windows.Forms.Label();
             this.pi_inoutno_label = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
@@ -39,8 +38,6 @@
             this.后端复核 = new System.Windows.Forms.Label();
             this.后端复核 = new System.Windows.Forms.Label();
             this.CollectionUnit = new System.Windows.Forms.ComboBox();
             this.CollectionUnit = new System.Windows.Forms.ComboBox();
             this.CollectionUnit_label = new System.Windows.Forms.Label();
             this.CollectionUnit_label = new System.Windows.Forms.Label();
-            this.GenerateBarCode = new System.Windows.Forms.Button();
-            this.SaveGrid = new System.Windows.Forms.Button();
             this.sg_separator_label = new System.Windows.Forms.Label();
             this.sg_separator_label = new System.Windows.Forms.Label();
             this.Si_ItemDGV = new System.Windows.Forms.DataGridView();
             this.Si_ItemDGV = new System.Windows.Forms.DataGridView();
             this.si_detno = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.si_detno = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -51,14 +48,13 @@
             this.si_expression = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.si_expression = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.si_item = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.si_item = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.si_expressionitem = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.si_expressionitem = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.CleanDetail = new System.Windows.Forms.Button();
             this.pib_id = new System.Windows.Forms.Label();
             this.pib_id = new System.Windows.Forms.Label();
             this.pi_cardcode = new System.Windows.Forms.Label();
             this.pi_cardcode = new System.Windows.Forms.Label();
             this.pi_cardcode_label = new System.Windows.Forms.Label();
             this.pi_cardcode_label = new System.Windows.Forms.Label();
             this.Fresh = new System.Windows.Forms.LinkLabel();
             this.Fresh = new System.Windows.Forms.LinkLabel();
             this.label3 = new System.Windows.Forms.Label();
             this.label3 = new System.Windows.Forms.Label();
             this.AllCollected = new System.Windows.Forms.Button();
             this.AllCollected = new System.Windows.Forms.Button();
-            this.RefreshDBConnect = new System.Windows.Forms.Timer(this.components);
+            this.RefreshDBConnect = new System.Windows.Forms.Timer();
             this.GetGridOnly = new System.Windows.Forms.CheckBox();
             this.GetGridOnly = new System.Windows.Forms.CheckBox();
             this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
             this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
             this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -86,11 +82,10 @@
             this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.MidSource = new System.Windows.Forms.BindingSource(this.components);
+            this.MidSource = new System.Windows.Forms.BindingSource();
             this.ChooseAll = new System.Windows.Forms.Button();
             this.ChooseAll = new System.Windows.Forms.Button();
             this.ExportFileDialog = new System.Windows.Forms.FolderBrowserDialog();
             this.ExportFileDialog = new System.Windows.Forms.FolderBrowserDialog();
             this.pi_date = new System.Windows.Forms.Label();
             this.pi_date = new System.Windows.Forms.Label();
-            this.CleanBarCode = new System.Windows.Forms.Button();
             this.ListButtonMenu = new System.Windows.Forms.ListBox();
             this.ListButtonMenu = new System.Windows.Forms.ListBox();
             this.ButtonSetting = new System.Windows.Forms.Button();
             this.ButtonSetting = new System.Windows.Forms.Button();
             this.FrontendCheck = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
             this.FrontendCheck = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
@@ -104,7 +99,6 @@
             this.SingleBoxBegin = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.SingleBoxBegin = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.label12 = new System.Windows.Forms.Label();
             this.label12 = new System.Windows.Forms.Label();
             this.label7 = new System.Windows.Forms.Label();
             this.label7 = new System.Windows.Forms.Label();
-            this.pr_code = new UAS_LabelMachine.CustomControl.SearchTextBox();
             this.CollectionProcess = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.CollectionProcess = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.Capacity = new System.Windows.Forms.Label();
             this.Capacity = new System.Windows.Forms.Label();
             this.Process_midboxcode = new System.Windows.Forms.Label();
             this.Process_midboxcode = new System.Windows.Forms.Label();
@@ -287,30 +281,6 @@
             this.CollectionUnit_label.TabIndex = 56;
             this.CollectionUnit_label.TabIndex = 56;
             this.CollectionUnit_label.Text = "采集单位";
             this.CollectionUnit_label.Text = "采集单位";
             // 
             // 
-            // GenerateBarCode
-            // 
-            this.GenerateBarCode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.GenerateBarCode.Location = new System.Drawing.Point(448, 178);
-            this.GenerateBarCode.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.GenerateBarCode.Name = "GenerateBarCode";
-            this.GenerateBarCode.Size = new System.Drawing.Size(68, 26);
-            this.GenerateBarCode.TabIndex = 41;
-            this.GenerateBarCode.Text = "生成条码";
-            this.GenerateBarCode.UseVisualStyleBackColor = true;
-            this.GenerateBarCode.Click += new System.EventHandler(this.GenerateBarCode_Click);
-            // 
-            // SaveGrid
-            // 
-            this.SaveGrid.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SaveGrid.Location = new System.Drawing.Point(448, 216);
-            this.SaveGrid.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SaveGrid.Name = "SaveGrid";
-            this.SaveGrid.Size = new System.Drawing.Size(68, 26);
-            this.SaveGrid.TabIndex = 59;
-            this.SaveGrid.Text = "保存明细";
-            this.SaveGrid.UseVisualStyleBackColor = true;
-            this.SaveGrid.Click += new System.EventHandler(this.SaveGrid_Click);
-            // 
             // sg_separator_label
             // sg_separator_label
             // 
             // 
             this.sg_separator_label.AutoSize = true;
             this.sg_separator_label.AutoSize = true;
@@ -405,18 +375,6 @@
             this.si_expressionitem.Name = "si_expressionitem";
             this.si_expressionitem.Name = "si_expressionitem";
             this.si_expressionitem.Visible = false;
             this.si_expressionitem.Visible = false;
             // 
             // 
-            // CleanDetail
-            // 
-            this.CleanDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.CleanDetail.Location = new System.Drawing.Point(374, 216);
-            this.CleanDetail.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.CleanDetail.Name = "CleanDetail";
-            this.CleanDetail.Size = new System.Drawing.Size(68, 26);
-            this.CleanDetail.TabIndex = 66;
-            this.CleanDetail.Text = "清除明细";
-            this.CleanDetail.UseVisualStyleBackColor = true;
-            this.CleanDetail.Click += new System.EventHandler(this.CleanDetail_Click);
-            // 
             // pib_id
             // pib_id
             // 
             // 
             this.pib_id.AutoSize = true;
             this.pib_id.AutoSize = true;
@@ -470,7 +428,7 @@
             // AllCollected
             // AllCollected
             // 
             // 
             this.AllCollected.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.AllCollected.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.AllCollected.Location = new System.Drawing.Point(522, 216);
+            this.AllCollected.Location = new System.Drawing.Point(282, 222);
             this.AllCollected.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.AllCollected.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.AllCollected.Name = "AllCollected";
             this.AllCollected.Name = "AllCollected";
             this.AllCollected.Size = new System.Drawing.Size(68, 26);
             this.AllCollected.Size = new System.Drawing.Size(68, 26);
@@ -722,18 +680,6 @@
             this.pi_date.TabIndex = 86;
             this.pi_date.TabIndex = 86;
             this.pi_date.Visible = false;
             this.pi_date.Visible = false;
             // 
             // 
-            // CleanBarCode
-            // 
-            this.CleanBarCode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.CleanBarCode.Location = new System.Drawing.Point(522, 178);
-            this.CleanBarCode.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.CleanBarCode.Name = "CleanBarCode";
-            this.CleanBarCode.Size = new System.Drawing.Size(68, 26);
-            this.CleanBarCode.TabIndex = 87;
-            this.CleanBarCode.Text = "清空条码";
-            this.CleanBarCode.UseVisualStyleBackColor = true;
-            this.CleanBarCode.Click += new System.EventHandler(this.CleanBarCode_Click);
-            // 
             // ListButtonMenu
             // ListButtonMenu
             // 
             // 
             this.ListButtonMenu.Font = new System.Drawing.Font("微软雅黑", 11F);
             this.ListButtonMenu.Font = new System.Drawing.Font("微软雅黑", 11F);
@@ -886,28 +832,6 @@
             this.label7.TabIndex = 76;
             this.label7.TabIndex = 76;
             this.label7.Text = "单盘范围";
             this.label7.Text = "单盘范围";
             // 
             // 
-            // pr_code
-            // 
-            this.pr_code.AllPower = null;
-            this.pr_code.Caller = null;
-            this.pr_code.Condition = null;
-            this.pr_code.DBTitle = null;
-            this.pr_code.FormName = null;
-            this.pr_code.Location = new System.Drawing.Point(290, 102);
-            this.pr_code.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.pr_code.Name = "pr_code";
-            this.pr_code.Power = null;
-            this.pr_code.ReturnData = null;
-            this.pr_code.SelectField = null;
-            this.pr_code.SetValueField = null;
-            this.pr_code.Size = new System.Drawing.Size(149, 22);
-            this.pr_code.TabIndex = 68;
-            this.pr_code.TableName = null;
-            this.pr_code.TextBoxEnable = false;
-            this.pr_code.Visible = false;
-            this.pr_code.UserControlTextChanged += new UAS_LabelMachine.CustomControl.SearchTextBox.OnTextChange(this.pr_code_UserControlTextChanged);
-            this.pr_code.SearchIconClick += new UAS_LabelMachine.CustomControl.SearchTextBox.Icon_Click(this.pr_code_SearchIconClick);
-            // 
             // CollectionProcess
             // CollectionProcess
             // 
             // 
             this.CollectionProcess.Controls.Add(this.Capacity);
             this.CollectionProcess.Controls.Add(this.Capacity);
@@ -1720,7 +1644,6 @@
             this.Controls.Add(this.FrontCollect);
             this.Controls.Add(this.FrontCollect);
             this.Controls.Add(this.ButtonSetting);
             this.Controls.Add(this.ButtonSetting);
             this.Controls.Add(this.ListButtonMenu);
             this.Controls.Add(this.ListButtonMenu);
-            this.Controls.Add(this.CleanBarCode);
             this.Controls.Add(this.pi_date);
             this.Controls.Add(this.pi_date);
             this.Controls.Add(this.groupBoxWithBorder1);
             this.Controls.Add(this.groupBoxWithBorder1);
             this.Controls.Add(this.ChooseAll);
             this.Controls.Add(this.ChooseAll);
@@ -1730,14 +1653,10 @@
             this.Controls.Add(this.pi_cardcode_label);
             this.Controls.Add(this.pi_cardcode_label);
             this.Controls.Add(this.pi_cardcode);
             this.Controls.Add(this.pi_cardcode);
             this.Controls.Add(this.pib_id);
             this.Controls.Add(this.pib_id);
-            this.Controls.Add(this.pr_code);
-            this.Controls.Add(this.CleanDetail);
             this.Controls.Add(this.Si_ItemDGV);
             this.Controls.Add(this.Si_ItemDGV);
             this.Controls.Add(this.CollectionProcess);
             this.Controls.Add(this.CollectionProcess);
             this.Controls.Add(this.sg_separator);
             this.Controls.Add(this.sg_separator);
             this.Controls.Add(this.sg_separator_label);
             this.Controls.Add(this.sg_separator_label);
-            this.Controls.Add(this.SaveGrid);
-            this.Controls.Add(this.GenerateBarCode);
             this.Controls.Add(this.CollectionUnit_label);
             this.Controls.Add(this.CollectionUnit_label);
             this.Controls.Add(this.CollectionUnit);
             this.Controls.Add(this.CollectionUnit);
             this.Controls.Add(this.后端复核);
             this.Controls.Add(this.后端复核);
@@ -1843,8 +1762,6 @@
         private System.Windows.Forms.Label 后端复核;
         private System.Windows.Forms.Label 后端复核;
         private System.Windows.Forms.ComboBox CollectionUnit;
         private System.Windows.Forms.ComboBox CollectionUnit;
         private System.Windows.Forms.Label CollectionUnit_label;
         private System.Windows.Forms.Label CollectionUnit_label;
-        private System.Windows.Forms.Button GenerateBarCode;
-        private System.Windows.Forms.Button SaveGrid;
         private System.Windows.Forms.Label sg_separator_label;
         private System.Windows.Forms.Label sg_separator_label;
         private CustomControl.EnterTextBox sg_separator;
         private CustomControl.EnterTextBox sg_separator;
         private System.Windows.Forms.Label Process;
         private System.Windows.Forms.Label Process;
@@ -1857,9 +1774,7 @@
         private System.Windows.Forms.Label TotalCount;
         private System.Windows.Forms.Label TotalCount;
         private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder CollectionProcess;
         private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder CollectionProcess;
         private System.Windows.Forms.DataGridView Si_ItemDGV;
         private System.Windows.Forms.DataGridView Si_ItemDGV;
-        private System.Windows.Forms.Button CleanDetail;
         private CustomControl.SearchTextBox sg_code;
         private CustomControl.SearchTextBox sg_code;
-        private CustomControl.SearchTextBox pr_code;
         private System.Windows.Forms.Label pib_id;
         private System.Windows.Forms.Label pib_id;
         private System.Windows.Forms.Label Process_midboxcode;
         private System.Windows.Forms.Label Process_midboxcode;
         private System.Windows.Forms.Label Process_outboxcode;
         private System.Windows.Forms.Label Process_outboxcode;
@@ -1902,7 +1817,6 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn si_item;
         private System.Windows.Forms.DataGridViewTextBoxColumn si_item;
         private System.Windows.Forms.DataGridViewTextBoxColumn si_expressionitem;
         private System.Windows.Forms.DataGridViewTextBoxColumn si_expressionitem;
         private System.Windows.Forms.Label pi_date;
         private System.Windows.Forms.Label pi_date;
-        private System.Windows.Forms.Button CleanBarCode;
         private System.Windows.Forms.ListBox ListButtonMenu;
         private System.Windows.Forms.ListBox ListButtonMenu;
         private System.Windows.Forms.Button ButtonSetting;
         private System.Windows.Forms.Button ButtonSetting;
         private System.Windows.Forms.DataGridViewCheckBoxColumn Choose;
         private System.Windows.Forms.DataGridViewCheckBoxColumn Choose;

+ 0 - 83
UAS-出货标签管理(吉利通)/UAS_出货标签管理.cs

@@ -161,10 +161,6 @@ namespace UAS_LabelMachine
             sg_code.SelectField = "sg_code # 策略编号 ,sg_name # 策略名称,sg_brand # 品牌,sg_separator # 分隔符";
             sg_code.SelectField = "sg_code # 策略编号 ,sg_name # 策略名称,sg_brand # 品牌,sg_separator # 分隔符";
             sg_code.TableName = "scangroup";
             sg_code.TableName = "scangroup";
             sg_code.DbChange += Sg_code_DbChange;
             sg_code.DbChange += Sg_code_DbChange;
-            pr_code.FormName = Name;
-            pr_code.SetValueField = new string[] { "pr_code" };
-            pr_code.TableName = "prodiodetail left join product on pd_prodcode=pr_code";
-            pr_code.SelectField = "pd_pdno # 行号,pr_code # 物料编号";
 
 
             CollectionUnit.Text = "盘";
             CollectionUnit.Text = "盘";
             Point pt = new Point();
             Point pt = new Point();
@@ -263,15 +259,6 @@ namespace UAS_LabelMachine
             }
             }
         }
         }
 
 
-        private void GenerateBarCode_Click(object sender, EventArgs e)
-        {
-            LogicHandler.CheckUoloadData(pi_inoutno.Text, UploadNum);
-            //生成条码 form = new 生成条码(pi_inoutno.Text);
-            //form.FormClosed += LoadGridData;
-            //BaseUtil.SetFormCenter(form);
-            //form.ShowDialog();
-        }
-
         private void LabelMaintain_Click(object sender, EventArgs e)
         private void LabelMaintain_Click(object sender, EventArgs e)
         {
         {
             客户标签维护 form = new 客户标签维护();
             客户标签维护 form = new 客户标签维护();
@@ -298,22 +285,6 @@ namespace UAS_LabelMachine
             }
             }
         }
         }
 
 
-        /// <summary>
-        /// 保存明细
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void SaveGrid_Click(object sender, EventArgs e)
-        {
-            DataTable savedt = (LabelInf.DataSource as DataTable);
-            if (savedt != null && savedt.GetChanges() != null)
-            {
-                MidSource.EndEdit();
-                dh.SaveDataTable(savedt.GetChanges(), "ProdioBarCode", "pib_id");
-                MessageBox.Show("保存成功!");
-            }
-        }
-
         //输入框Enter事件
         //输入框Enter事件
         private void Input_KeyDown(object sender, KeyEventArgs e)
         private void Input_KeyDown(object sender, KeyEventArgs e)
         {
         {
@@ -463,7 +434,6 @@ namespace UAS_LabelMachine
                 if (LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() != "True")
                 if (LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() != "True")
                 {
                 {
                     griddetno.Text = LabelInf.Rows[i].Cells["pib_pdno"].FormattedValue.ToString();
                     griddetno.Text = LabelInf.Rows[i].Cells["pib_pdno"].FormattedValue.ToString();
-                    pr_code.Text = LabelInf.Rows[i].Cells["pib_prodcode"].FormattedValue.ToString();
                     CurrentRowIndex = LabelInf.Rows[i].Cells["pib_prodcode"].RowIndex;
                     CurrentRowIndex = LabelInf.Rows[i].Cells["pib_prodcode"].RowIndex;
                     break;
                     break;
                 }
                 }
@@ -1125,30 +1095,6 @@ namespace UAS_LabelMachine
             OutBoxDoc.PrintDocument();
             OutBoxDoc.PrintDocument();
         }
         }
 
 
-        private void CleanDetail_Click(object sender, EventArgs e)
-        {
-            ArrayList<string> DeleteID = new ArrayList<string>();
-            for (int i = 0; i < LabelInf.RowCount; i++)
-            {
-                if (LabelInf.Rows[i].Cells["Choose"].FormattedValue.ToString() == "True")
-                    DeleteID.Add(LabelInf.Rows[i].Cells["pib_id1"].Value.ToString());
-            }
-            //勾选了删除的明细之后
-            if (DeleteID.ToArray().Length > 0)
-            {
-                string close = MessageBox.Show(this.ParentForm, "删除后不可恢复,是否确认删除", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
-                if (close.ToString() == "Yes")
-                {
-                    dh.BatchInsert("delete from prodiobarcode where pib_id=:pib_id", new string[] { "pib_id" }, DeleteID.ToArray());
-                    MessageBox.Show("删除成功");
-                    LoadGridData(sender, e);
-                    RefreshProcessData();
-                }
-            }
-            else
-                MessageBox.Show("尚未勾选需要删除的明细");
-        }
-
         private void OutBoxLabelPrint_Click(object sender, EventArgs e)
         private void OutBoxLabelPrint_Click(object sender, EventArgs e)
         {
         {
             if (OutBoxCombox.Text != "")
             if (OutBoxCombox.Text != "")
@@ -1262,7 +1208,6 @@ namespace UAS_LabelMachine
                 if (LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() != "True")
                 if (LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() != "True")
                 {
                 {
                     griddetno.Text = LabelInf.Rows[i].Cells["pib_pdno"].FormattedValue.ToString();
                     griddetno.Text = LabelInf.Rows[i].Cells["pib_pdno"].FormattedValue.ToString();
-                    pr_code.Text = LabelInf.Rows[i].Cells["pib_prodcode"].FormattedValue.ToString();
                     pib_id.Text = LabelInf.Rows[i].Cells["pib_id1"].FormattedValue.ToString();
                     pib_id.Text = LabelInf.Rows[i].Cells["pib_id1"].FormattedValue.ToString();
                     CurrentRowIndex = LabelInf.Rows[i].Cells["pib_prodcode"].RowIndex;
                     CurrentRowIndex = LabelInf.Rows[i].Cells["pib_prodcode"].RowIndex;
                     break;
                     break;
@@ -1329,11 +1274,6 @@ namespace UAS_LabelMachine
             }
             }
         }
         }
 
 
-        private void pr_code_SearchIconClick(object sender, EventArgs e)
-        {
-            pr_code.Condition = "  pd_inoutno='" + pi_inoutno.Text + "'";
-        }
-
         private void CusLabelPrint()
         private void CusLabelPrint()
         {
         {
             //MaxOutBoxCode = MaxOutBoxCode + 1;
             //MaxOutBoxCode = MaxOutBoxCode + 1;
@@ -1353,19 +1293,6 @@ namespace UAS_LabelMachine
             }
             }
         }
         }
 
 
-        private void pr_code_UserControlTextChanged(object sender, EventArgs e)
-        {
-            //用户在重新勾选后重置采集项目的索引
-            for (int i = 0; i < LabelInf.RowCount; i++)
-            {
-                if (pr_code.Text == LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() && LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() != "True")
-                {
-                    CurrentRowIndex = i;
-                    break;
-                }
-            }
-        }
-
         private void Refresh_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
         private void Refresh_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
         {
         {
             KeyEventArgs e2 = new KeyEventArgs(Keys.Enter);
             KeyEventArgs e2 = new KeyEventArgs(Keys.Enter);
@@ -1658,16 +1585,6 @@ namespace UAS_LabelMachine
             dh.getRowCount("employee", "1=1");
             dh.getRowCount("employee", "1=1");
         }
         }
 
 
-        private void CleanBarCode_Click(object sender, EventArgs e)
-        {
-            string close = MessageBox.Show(this.ParentForm, "是否清除该出货单条码", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
-            if (close.ToString() == "Yes")
-            {
-                dh.ExecuteSql("delete from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "'", "delete");
-                LoadGridData(sender, e);
-            }
-        }
-
         private void ButtonSetting_Click(object sender, EventArgs e)
         private void ButtonSetting_Click(object sender, EventArgs e)
         {
         {
             ListButtonMenu.BringToFront();
             ListButtonMenu.BringToFront();