Explorar el Código

修改取值条件字段

章政 hace 8 años
padre
commit
ae55badfc0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;