Explorar o código

待选不良模糊查询添加名称

章政 %!s(int64=8) %!d(string=hai) anos
pai
achega
4462b7402c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      UAS-MES/FunctionCode/Make/Make_TestCollection.cs

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_TestCollection.cs

@@ -679,7 +679,7 @@ namespace UAS_MES.Make
 
 
         private void Filter_TextChanged(object sender, EventArgs e)
         private void Filter_TextChanged(object sender, EventArgs e)
         {
         {
-            DataRow[] dr = (BadInfSource.DataSource as DataTable).Select("bc_code like '%" + Filter.Text + "%'");
+            DataRow[] dr = (BadInfSource.DataSource as DataTable).Select("bc_code like '%" + Filter.Text + "%' or bc_name like '%" + Filter.Text + "%'");
             DataTable dt = (BadInfSource.DataSource as DataTable).Clone();
             DataTable dt = (BadInfSource.DataSource as DataTable).Clone();
             for (int i = 0; i < dr.Length; i++)
             for (int i = 0; i < dr.Length; i++)
             {
             {