Browse Source

修改取值条件字段

章政 8 years ago
parent
commit
ae55badfc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UAS-MES/CustomControl/TextBoxWithIcon/SearchTextBox.cs

+ 1 - 1
UAS-MES/CustomControl/TextBoxWithIcon/SearchTextBox.cs

@@ -323,7 +323,7 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
                         fields.Add(field[i]);
                 }
                 //将查询到的结果返回界面
-                string sql = "select " + BaseUtil.AddField(fields.ToArray()) + " from " + tableName + " where " + Tag + "='" + TextBox.Text + "'";
+                string sql = "select " + BaseUtil.AddField(fields.ToArray()) + " from " + tableName + " where " + Name + "='" + TextBox.Text + "'";
                 if (condition != null)
                 {
                     sql += " and " + condition;