@ -172,7 +172,7 @@ namespace SlabHandle
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 26.4 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <26.4 ))") ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 30.5 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <30.5 ))") ;
//P_SLAB_DELI_DET表中字段EST_CD是5或者6开头是协议板。
//P_SLAB_DELI_DET表中字段EST_CD是5或者6开头是协议板。
strSql . AppendLine ( " ORDER BY A.LOC DESC, A.SLAB_NO ASC " ) ;
strSql . AppendLine ( " ORDER BY A.LOC DESC, A.SLAB_NO ASC " ) ;
@ -1349,7 +1349,7 @@ namespace SlabHandle
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 26.4 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <26.4 ))") ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 30.5 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <30.5 ))") ;
strSql . AppendLine ( ") " ) ;
strSql . AppendLine ( ") " ) ;
try
try
@ -1424,7 +1424,7 @@ namespace SlabHandle
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 26.4 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <26.4 ))") ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 30.5 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <30.5 ))") ;
strSql . AppendLine ( ") " ) ;
strSql . AppendLine ( ") " ) ;
strSql . AppendLine ( "CONNECT BY PRIOR fs.MOTHER_SLAB = fs.SLAB_NO -- 父子关系连接条件 " ) ;
strSql . AppendLine ( "CONNECT BY PRIOR fs.MOTHER_SLAB = fs.SLAB_NO -- 父子关系连接条件 " ) ;
@ -1501,7 +1501,7 @@ namespace SlabHandle
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 26.4 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <26.4 ))") ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 30.5 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <30.5 ))") ;
strSql . AppendLine ( ") " ) ;
strSql . AppendLine ( ") " ) ;
strSql . AppendLine ( "CONNECT BY PRIOR fs.MOTHER_SLAB = fs.SLAB_NO -- 父子关系连接条件 " ) ;
strSql . AppendLine ( "CONNECT BY PRIOR fs.MOTHER_SLAB = fs.SLAB_NO -- 父子关系连接条件 " ) ;
@ -1873,7 +1873,7 @@ namespace SlabHandle
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " AND((GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 800 AND A.THK > 50) " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " OR(GREATEST(A.WID, A.LEN) >= 2050 AND LEAST(A.WID, A.LEN) >= 850 AND A.THK = 50))---短尺 " ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND((SELECT COUNT(*) FROM NISCO.FB_SLAB_001 R WHERE R.SLAB_NO = A.SLAB_NO AND R.TYPE1 ='B' ) < 1 )" ) ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 26.4 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <26.4 ))") ;
strSql . AppendLine ( " AND ((A.CUR_INV ='ZB' AND A.WGT <= 30.5 ) OR (A.CUR_INV IN('00','ZZ','HB','B1','52','C7','HC') AND A.WGT <30.5 ))") ;
//P_SLAB_DELI_DET表中字段EST_CD是5或者6开头是协议板。
//P_SLAB_DELI_DET表中字段EST_CD是5或者6开头是协议板。
//strSql.AppendLine(" ORDER BY A.LOC DESC, A.SLAB_NO ASC ");
//strSql.AppendLine(" ORDER BY A.LOC DESC, A.SLAB_NO ASC ");