浏览代码

工单值输入转为大写

Hcsy 8 年之前
父节点
当前提交
7e822f5b15

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

@@ -269,7 +269,7 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
             //将查询到的结果返回界面
             if (TextBox.Text != "")
             {
-                sql = "select " + BaseUtil.AddField(setValueField) + " from " + tableName + " where " + Name + "='" + TextBox.Text + "'";
+                sql = "select " + BaseUtil.AddField(setValueField) + " from " + tableName + " where " + Name + "='" + TextBox.Text.ToUpper() + "'";
             }
             else if (db != null)
             {

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

@@ -326,7 +326,7 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
             //将查询到的结果返回界面
             if (TextBox.Text != "")
             {
-                sql = "select " + BaseUtil.AddField(setValueField) + " from " + tableName + " where " + Name + "='" + TextBox.Text + "'";
+                sql = "select " + BaseUtil.AddField(setValueField) + " from " + tableName + " where " + Name + "='" + TextBox.Text.ToUpper() + "'";
             }
             else if (db != null)
             {