Browse Source

BUG调整

章政 7 years ago
parent
commit
1ed015e44a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

+ 3 - 0
UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

@@ -1284,6 +1284,7 @@ namespace UAS_LabelMachine
 
         private void OutBoxNum_Click(object sender, EventArgs e)
         {
+            string OutBox=OutBoxNum.Text;
             OutBoxNum.Items.Clear();
             DataTable dt = (DataTable)dh.ExecuteSql("select distinct pib_outboxcode2 from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "' order by to_number(pib_outboxcode2)", "select");
             ItemObject io = new ItemObject("新增", "新增");
@@ -1296,6 +1297,8 @@ namespace UAS_LabelMachine
             }
             if (OutBoxNum.Text == "新增" || OutBoxNum.Text == "")
                 OutBoxNum.SelectedIndex = OutBoxNum.Items.Count - 1;
+            if (OutBox != "新增" && OutBox != "")
+                OutBoxNum.Text = OutBox;
         }
 
         /// <summary>