Browse Source

键值对重复BUG处理

章政 6 years ago
parent
commit
b9b12f0713
1 changed files with 1 additions and 0 deletions
  1. 1 0
      UAS-出货标签管理(吉利通)/UAS_出货标签管理.cs

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

@@ -2019,6 +2019,7 @@ namespace UAS_LabelMachine
         {
         {
             //查询所有的PLC指令
             //查询所有的PLC指令
             DataTable dtPLCInstruct = (DataTable)adh.ExecuteSql("select * from PLCInstruct", "select");
             DataTable dtPLCInstruct = (DataTable)adh.ExecuteSql("select * from PLCInstruct", "select");
+            instruct.Clear();
             //如果存在指令参数的话则全部添加到键值对当中
             //如果存在指令参数的话则全部添加到键值对当中
             if (dtPLCInstruct.Rows.Count > 0)
             if (dtPLCInstruct.Rows.Count > 0)
             {
             {