瀏覽代碼

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

章政 7 年之前
父節點
當前提交
5ef3b6d397
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      UAS-MES/FunctionCode/Make/Make_SmtTestCollection.cs

+ 3 - 2
UAS-MES/FunctionCode/Make/Make_SmtTestCollection.cs

@@ -927,9 +927,10 @@ namespace UAS_MES.Make
                 {
                     if (psl_location.Text != "")
                     {
-                        DataTable dt =  (DataTable)dh.ExecuteSql("select bd_soncode,bd_location,pr_spec,pr_detail from (with temp1 as (select bd_soncode,bd_location,pr_spec,pr_detail from bomdetail innner join  bom on bo_id=bd_bomid left join product on bd_soncode = pr_code start with bo_mothercode= '" + ma_prodcode.Text + "' connect by bo_mothercode= prior bd_soncode)select * from temp1) where bd_location like '%" + psl_location.Text.ToUpper() + "%' ", "select");                       
+                        DataTable dt =  (DataTable)dh.ExecuteSql("select bd_soncode,bd_location,pr_spec,pr_detail from (with temp1 as (select bd_soncode,bd_location,pr_spec,pr_detail from bomdetail innner join  bom on bo_id=bd_bomid left join product on bd_soncode = pr_code start with bo_mothercode= '" + ma_prodcode.Text + "' connect by bo_mothercode= prior bd_soncode)select * from temp1) where bd_location like '%" + psl_location.Text.ToUpper() + "%' ", "select");
+
                         if (dt.Rows.Count >0)
-                        {
+                        {  
                             if (dt.Rows.Count == 1)
                             {
                                 string psl_prodcode = dt.Rows[0]["bd_soncode"].ToString();