北科工研-孙浩 5 days ago
parent 2b96a9e209
commit 4a03d841f9

@ -15329,7 +15329,7 @@ namespace SlabHandle
&& p.ZZ_PLT == "C3" && p.ZZ_PLT == "C3"
&& p.THK_MIN <= decThk && p.THK_MIN <= decThk
&& p.THK_MAX >= decThk && p.THK_MAX >= decThk
&& p.CLASS_FL.Contains(strClass)).Count()<0) && p.CLASS_FL.Contains(strClass)).Count() <= 0)
{ {
return false; return false;
} }

@ -90,7 +90,7 @@ namespace SlabHandle
strSql.AppendLine("WHERE 1 = 1 "); strSql.AppendLine("WHERE 1 = 1 ");
////TODO:测试数据 ////TODO:测试数据
strSql.AppendLine(" AND A.SLAB_NO = '2520745003'"); strSql.AppendLine(" AND A.SLAB_NO = '2510872705'");
//if (strWHere != string.Empty) //if (strWHere != string.Empty)
//{ //{
@ -195,7 +195,7 @@ namespace SlabHandle
strSql.AppendLine(" rank() over(partition by QQM.ord_no, QQM.ord_item order by knd desc) rk"); strSql.AppendLine(" rank() over(partition by QQM.ord_no, QQM.ord_item order by knd desc) rk");
strSql.AppendLine(" from NISCO.QP_QLTY_MATR QQM "); strSql.AppendLine(" from NISCO.QP_QLTY_MATR QQM ");
strSql.AppendLine(" where(QQM.ORD_NO || '-' || QQM.ORD_ITEM) IN( "); strSql.AppendLine(" where(QQM.ORD_NO || '-' || QQM.ORD_ITEM) IN( ");
strSql.AppendLine(" 'OM725090040-171','OM725090041-040','OM725090043-160','OMG25080052-011' "); strSql.AppendLine(" 'OMH25090029-013','OML25100004-033','OML25100004-025' ");
//OMK24010042-002 //OMK24010042-002
@ -355,7 +355,7 @@ namespace SlabHandle
strSql.AppendLine("WHERE 1 = 1 "); strSql.AppendLine("WHERE 1 = 1 ");
strSql.AppendLine(" AND BOI.ORD_NO || '-' || BOI.ORD_ITEM IN ( 'OM725090040-171','OM725090041-040','OM725090043-160','OMG25080052-011')"); strSql.AppendLine(" AND BOI.ORD_NO || '-' || BOI.ORD_ITEM IN ( 'OMH25090029-013','OML25100004-033','OML25100004-025')");
//strSql.AppendLine(" AND "); //strSql.AppendLine(" AND ");
//strSql.AppendLine(" (SELECT COUNT(A.REQ_SEQ_NO) "); //strSql.AppendLine(" (SELECT COUNT(A.REQ_SEQ_NO) ");
@ -407,9 +407,9 @@ namespace SlabHandle
strSql.AppendLine("SELECT T.*FROM("); strSql.AppendLine("SELECT T.*FROM(");
strSql.AppendLine("SELECT QQC.*, rank() over(partition by QQC.ord_no, QQC.ord_item order by knd desc) rk from NISCO.QP_QLTY_CHEM QQC where (QQC.ORD_NO || '-' || QQC.ORD_ITEM) IN("); strSql.AppendLine("SELECT QQC.*, rank() over(partition by QQC.ord_no, QQC.ord_item order by knd desc) rk from NISCO.QP_QLTY_CHEM QQC where (QQC.ORD_NO || '-' || QQC.ORD_ITEM) IN(");
//strSql.AppendLine(" 'OM725090040-171','OM725090041-040','OM725090043-160','OMG25080052-011'"); //strSql.AppendLine(" 'OMH25090029-013','OML25100004-033','OML25100004-025'");
strSql.AppendLine(" 'OM725090040-171','OM725090041-040','OM725090043-160','OMG25080052-011'"); strSql.AppendLine(" 'OMH25090029-013','OML25100004-033','OML25100004-025'");
//strSql.AppendLine("SELECT"); //strSql.AppendLine("SELECT");
//strSql.AppendLine("TO_CHAR(BOI.ORD_NO), TO_CHAR(BOI.ORD_ITEM)"); //strSql.AppendLine("TO_CHAR(BOI.ORD_NO), TO_CHAR(BOI.ORD_ITEM)");
//strSql.AppendLine("FROM NISCO.cp_prc CPP "); //strSql.AppendLine("FROM NISCO.cp_prc CPP ");
@ -1287,7 +1287,7 @@ namespace SlabHandle
strSql.AppendLine("LEFT JOIN NISCO.QP_NISCO_CHMC QNC ON QNC.STLGRD = A.STLGRD"); strSql.AppendLine("LEFT JOIN NISCO.QP_NISCO_CHMC QNC ON QNC.STLGRD = A.STLGRD");
strSql.AppendLine("WHERE 1 = 1 "); strSql.AppendLine("WHERE 1 = 1 ");
strSql.AppendLine(" AND A.SLAB_NO = '2520745003 '"); strSql.AppendLine(" AND A.SLAB_NO = '2510872705 '");
//strSql.AppendLine(" AND (A.CUR_INV IN('ZB','ZZ','HB','B1','52','C7','HC') " + //strSql.AppendLine(" AND (A.CUR_INV IN('ZB','ZZ','HB','B1','52','C7','HC') " +
@ -1362,7 +1362,7 @@ namespace SlabHandle
strSql.AppendLine(" FROM NISCO.FP_SLAB fs "); strSql.AppendLine(" FROM NISCO.FP_SLAB fs ");
strSql.AppendLine(" START WITH fs.SLAB_NO "); strSql.AppendLine(" START WITH fs.SLAB_NO ");
strSql.AppendLine(" IN "); strSql.AppendLine(" IN ");
strSql.AppendLine(" ( '2520745003' "); strSql.AppendLine(" ( '2510872705' ");
//strSql.AppendLine(" SELECT DISTINCT A.SLAB_NO "); //strSql.AppendLine(" SELECT DISTINCT A.SLAB_NO ");
@ -1487,7 +1487,7 @@ namespace SlabHandle
strSql.AppendLine(" FROM NISCO.FP_SLAB fs "); strSql.AppendLine(" FROM NISCO.FP_SLAB fs ");
strSql.AppendLine(" START WITH fs.SLAB_NO "); strSql.AppendLine(" START WITH fs.SLAB_NO ");
strSql.AppendLine(" IN "); strSql.AppendLine(" IN ");
strSql.AppendLine(" ( '2520745003' "); strSql.AppendLine(" ( '2510872705' ");
//strSql.AppendLine(" SELECT DISTINCT A.SLAB_NO "); //strSql.AppendLine(" SELECT DISTINCT A.SLAB_NO ");

Loading…
Cancel
Save