@ -788,13 +788,13 @@ namespace SlabHandle
{
if ( gltTbPlateUseGrp . Count ( ) > 300 )
{
logger . Info ( " %%%%%%%%数量太大,删掉了一部分,保留 3 00 ( " + gltTbPlateUseGrp . Count ( ) + " ) %%%%%%%%%%%" ) ;
logger . Info ( " %%%%%%%%数量太大,删掉了一部分,保留 1 00 ( " + gltTbPlateUseGrp . Count ( ) + " ) %%%%%%%%%%%" ) ;
//数量大于100
if ( gltTbPlateUseGrp . Count ( ) > 300 )
{
// 只保留前100条记录
//gltTbPlateUseGrp = gltTbPlateUseGrp.OrderByDescending(p => p.SG).OrderBy(e => e.CUST_DEL_TO_DATE).Take(300).ToList() ;
gltTbPlateUseGrp = gltTbPlateUseGrp . OrderByDescending ( p = > p . SG ) . OrderBy ( e = > e . CUST_DEL_TO_DATE ) . Take ( 300 ) . ToList ( ) ;
}
}
@ -1472,13 +1472,12 @@ namespace SlabHandle
try
{
//OM423070031 004 005
if ( iPlateGrp . CRU_PIEs . Where ( p = > p . ORD_NO = = "OM A24010014" & & p . ORD_ITEM = = "008 ") . Count ( ) > 0 )
if ( iPlateGrp . CRU_PIEs . Where ( p = > p . ORD_NO = = "OM K24050015" & & p . ORD_ITEM = = "009 ") . Count ( ) > 0 )
{
//return;
}
//GB / T713 - Q245R
//OM423040004
if ( iPlateGrp . CRU_PIEs . Where ( p = > p . ORD_NO = = "OM A24010001 ") . Count ( ) > 0 )
if ( iPlateGrp . CRU_PIEs . Where ( p = > p . ORD_NO = = "OM 423040004 ") . Count ( ) > 0 )
{
}
if ( iPlateGrp . STDSPEC_STLGRD = = "Q345B-X" )
@ -11253,7 +11252,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11291,7 +11290,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11337,7 +11336,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11385,7 +11384,7 @@ namespace SlabHandle
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & p . WID < = 1900 //宽度小于1900
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11424,7 +11423,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & p . WID < = 1900 //宽度小于1900
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11475,7 +11474,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11510,7 +11509,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11550,7 +11549,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11596,7 +11595,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11633,7 +11632,7 @@ namespace SlabHandle
& & p . CRU_PIEs_ACT . Count ( ) > 0
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11678,7 +11677,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11725,7 +11724,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & p . WID < = 1900 //宽度小于1900
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11763,7 +11762,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . WID < = 1900 //宽度小于1900
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11813,7 +11812,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11847,7 +11846,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11886,7 +11885,7 @@ namespace SlabHandle
& & p . CRU_PIEs_ACT . Count ( ) > 0
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11941,7 +11940,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -11980,7 +11979,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12025,7 +12024,7 @@ namespace SlabHandle
& & p . CRU_PIEs_ACT . Count ( ) > 0
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12078,7 +12077,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & p . WID < = 1900 //宽度小于1900
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12118,7 +12117,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . WID < = 1900 //宽度小于1900
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12154,9 +12153,6 @@ namespace SlabHandle
//非Q235B
if ( TPG = = null )
{
//gltTbPlateManyGrp = gltTbPlateManyGrp.Where(p => p.SLAB_CAL_LEN > 2650).ToList();
//获取最大分组
TPG = gltTbPlateManyGrp . Where ( p = > p . SLAB_CAL_WGT < = iSlab . REM_WGT
& & p . CRU_PIEs_ACT . Count ( ) > 0
@ -12164,7 +12160,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > ! ltSpdLast . Contains ( q . STLGRD ) ) . Count ( ) > 0 //钢种不包含Q235B
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12202,7 +12198,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12251,7 +12247,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12307,7 +12303,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12349,7 +12345,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > q . STLGRD = = iSlab . STLGRD ) . Count ( ) > 0 //同钢种检测
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12397,7 +12393,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12438,7 +12434,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > q . STLGRD = = iSlab . STLGRD ) . Count ( ) > 0 //同钢种检测
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12483,7 +12479,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12527,7 +12523,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12577,7 +12573,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > q . STLGRD = = iSlab . STLGRD ) . Count ( ) > 0 //同钢种检测
& & p . WID < = 1900 //宽度小于1900
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12618,7 +12614,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( q = > q . STLGRD = = iSlab . STLGRD ) . Count ( ) > 0 //同钢种检测
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12674,7 +12670,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12726,7 +12722,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12772,7 +12768,7 @@ namespace SlabHandle
// && p.SLAB_LEN < 5500
// && p.SLAB_CAL_LEN >= (iSlab.THK <= 180 ? 860 : 1010)
// && p.USE_FLG == "1"
// && ((p.SLAB_LEN > iSlab.WID && ((p.SLAB_LEN > = 2680 && p.WID >= iSlab.WID - 85 && p.WID <= iSlab.WID - 60)
// && ((p.SLAB_LEN > iSlab.WID && ((p.SLAB_LEN > 2680 && p.WID >= iSlab.WID - 85 && p.WID <= iSlab.WID - 60)
// || (p.SLAB_LEN < 2680 && p.WID >= iSlab.WID - 85)))
// || (p.SLAB_LEN < iSlab.WID && ((iSlab.WID > 2680 && p.WID >= p.SLAB_LEN - 85 && p.WID <= p.SLAB_LEN - 60) || (iSlab.WID < 2680 && p.WID >= p.SLAB_LEN - 60))))
// && ChkBroadSingle(p.CAL_WID, p.CAL_THK, "C3", p.SLAB_WID > p.SLAB_LEN ? p.SLAB_LEN : p.SLAB_WID, iSlab, p.MAX_LEN)
@ -12813,7 +12809,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12858,7 +12854,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12917,7 +12913,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . VAC_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -12963,7 +12959,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . VAC_FLG = = "1"
& & p . WID < = 1900 //宽度小于1900
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13005,7 +13001,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . VAC_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13055,7 +13051,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . THK < 8
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13095,7 +13091,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
//&& p.THK < 8
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13135,7 +13131,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . THK < 8
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13171,7 +13167,7 @@ namespace SlabHandle
// && p.CRU_PIEs_ACT.Count() > 0
// && p.SLAB_LEN < 5500
// && p.CRU_PIEs_ACT.Where(e => gltTBAPPOINTORDER.Where(f => f.ORD_NO == e.ORD_NO && f.ORD_ITEM == e.ORD_ITEM).Count() > 0).Count() >0 //指定订单存在的情况
// && ((p.SLAB_LEN > iSlab.WID && ((p.SLAB_LEN > = 2680 && p.WID >= iSlab.WID - 85 && p.WID <= iSlab.WID - 60)
// && ((p.SLAB_LEN > iSlab.WID && ((p.SLAB_LEN > 2680 && p.WID >= iSlab.WID - 85 && p.WID <= iSlab.WID - 60)
// || (p.SLAB_LEN < 2680 && p.WID >= iSlab.WID - 85)))
// || (p.SLAB_LEN < iSlab.WID && ((iSlab.WID > 2680 && p.WID >= p.SLAB_LEN - 85 && p.WID <= p.SLAB_LEN - 60) || (iSlab.WID < 2680 && p.WID >= p.SLAB_LEN - 60))))
// && ChkBroadSingle(p.CAL_WID, p.CAL_THK, "C3", p.SLAB_WID > p.SLAB_LEN ? p.SLAB_LEN : p.SLAB_WID, iSlab)
@ -13216,7 +13212,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13267,7 +13263,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13314,7 +13310,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . THK < 8
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13366,7 +13362,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = iSlab . REM_LEN / 3 - 100 & & p . SLAB_LEN < = 2680 )
@ -13402,7 +13398,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = iSlab . REM_LEN / 2 - 100 & & p . SLAB_LEN < = 2680 )
@ -13441,7 +13437,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = 2050 & & p . SLAB_LEN < = 2680 )
@ -13476,7 +13472,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = 2050 & & p . SLAB_LEN < = 2680 )
@ -13516,7 +13512,7 @@ namespace SlabHandle
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = 2050 & & p . SLAB_LEN < = 2680 )
@ -13557,7 +13553,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13592,7 +13588,7 @@ namespace SlabHandle
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & p . CRU_PIEs_ACT . Where ( e = > gltTBAPPOINTORDER . Where ( f = > f . ORD_NO = = e . ORD_NO & & f . ORD_ITEM = = e . ORD_ITEM & & f . XY_FLG . Contains ( "XYB" ) ) . Count ( ) > 0 ) . Count ( ) > 0 //指定订单存在的情况
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13630,7 +13626,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = iSlab . REM_LEN / 3 - 100 & & p . SLAB_LEN < = 2680 )
@ -13665,7 +13661,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = iSlab . REM_LEN / 2 - 100 & & p . SLAB_LEN < = 2680 )
@ -13703,7 +13699,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = 2050 & & p . SLAB_LEN < = 2680 )
@ -13737,7 +13733,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = 2050 & & p . SLAB_LEN < = 2680 )
@ -13776,7 +13772,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . USE_FLG = = "1"
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ( p . SLAB_LEN > = 2050 & & p . SLAB_LEN < = 2680 )
@ -13816,7 +13812,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -13850,7 +13846,7 @@ namespace SlabHandle
& & p . SLAB_LEN < 5500
& & p . SLAB_CAL_LEN > = ( iSlab . THK < = 180 ? 860 : 1010 )
& & p . USE_FLG = = "1"
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > iSlab . WID & & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) ) )
| | ( p . SLAB_LEN < iSlab . WID & & ( ( iSlab . WID > 2680 & & p . WID > = p . SLAB_LEN - 85 & & p . WID < = p . SLAB_LEN - 60 ) | | ( iSlab . WID < 2680 & & p . WID > = p . SLAB_LEN - 60 ) ) ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
@ -14985,69 +14981,26 @@ namespace SlabHandle
{
decSlabTHK = 150 ;
}
if ( TS . XY_FLG = = "1" )
{
//协议 150
if ( TS . THK = = 150 | | TS . THK = = 180 )
{
decimal decMinThk = 1 ;
decimal decMaxThk = 100 ;
//替换厚度标准
if ( glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . Count ( ) > 0 )
{
decimal decMinThk = glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . FirstOrDefault ( ) . THK_MIN ;
if ( BOI . ORD_THK < decMinThk | | BOI . ORD_THK > decMaxThk )
{
return false ;
}
}
else
decimal decMaxThk = glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . FirstOrDefault ( ) . THK_MAX ;
//180改轧的调到40
if ( decSlabTHK = = 180 & & glFPCadInf . Where ( p = > p . SLAB_NO = = TS . SLAB_NO & & ! string . IsNullOrEmpty ( p . MILL_GZ ) ) . Count ( ) > 0 )
{
//替换厚度标准
if ( glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . Count ( ) > 0 )
{
decimal decMinThk = glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . FirstOrDefault ( ) . THK_MIN ;
decimal decMaxThk = glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . FirstOrDefault ( ) . THK_MAX ;
//180改轧的调到40
if ( decSlabTHK = = 180 & & glFPCadInf . Where ( p = > p . SLAB_NO = = TS . SLAB_NO & & ! string . IsNullOrEmpty ( p . MILL_GZ ) ) . Count ( ) > 0 )
{
decMaxThk = 40 ;
}
if ( BOI . ORD_THK < decMinThk | | BOI . ORD_THK > decMaxThk )
{
return false ;
}
}
decMaxThk = 40 ;
}
}
else
{
//替换厚度标准
if ( glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . Count ( ) > 0 )
if ( BOI . ORD_THK < decMinThk | | BOI . ORD_THK > decMaxThk )
{
decimal decMinThk = glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . FirstOrDefault ( ) . THK_MIN ;
decimal decMaxThk = glSubsThickLimit . Where ( p = > p . PLT = = TS . PLAN_MILL_PLT
& & p . SLAB_THICK = = decSlabTHK ) . FirstOrDefault ( ) . THK_MAX ;
//180改轧的调到40
if ( decSlabTHK = = 180 & & glFPCadInf . Where ( p = > p . SLAB_NO = = TS . SLAB_NO & & ! string . IsNullOrEmpty ( p . MILL_GZ ) ) . Count ( ) > 0 )
{
decMaxThk = 40 ;
}
if ( BOI . ORD_THK < decMinThk | | BOI . ORD_THK > decMaxThk )
{
return false ;
}
return false ;
}
}
return true ;
@ -16164,48 +16117,49 @@ namespace SlabHandle
}
}
////协议在评审界面不写改轧钢种,可以替代。
//if (TS.XY_FLG == "1" && !((TS.EST_COMMENT != null && TS.EST_COMMENT.Contains("金润")) || TS.JR_FLG == "1"))
//{
// int intWhile1 = 0;
// string strSlabNo1 = TS.SLAB_NO;//板坯号
// bool FLAG = true;
// while (intWhile1 < 5)
// {
// if (glFPCadInf.Where(p => p.SLAB_NO == strSlabNo1).Count() > 0)
// {
// //是协议且不是金润
// if (TS.XY_FLG == "1" && !((TS.EST_COMMENT != null && TS.EST_COMMENT.Contains("金润")) || TS.JR_FLG == "1"))
// {
// FP_CAD_INF FCI = glFPCadInf.Where(p => p.SLAB_NO == strSlabNo1).FirstOrDefault();
// if (!String.IsNullOrEmpty(FCI.MILL_GZ))
// {
// FLAG = false;
// break;
// }
// }
// }
// if (gSLAB_RELATION.Where(p => p.SLAB_NO == strSlabNo1).Count() > 0)
// {
// if (ConverDataToString(gSLAB_RELATION.Where(p => p.SLAB_NO == strSlabNo1).FirstOrDefault().MOTHER_SLAB) != string.Empty)
// {
// //替换母板=>子板 ,下次循环利用
// strSlabNo1 = ConverDataToString(gSLAB_RELATION.Where(p => p.SLAB_NO == strSlabNo1).FirstOrDefault().MOTHER_SLAB);
// }
// else
// {
// break;
// }
// }
// intWhile1++;
// }
// if (FLAG)
// {
// return false;
// }
//}
if ( TS . XY_FLG = = "1" & & ! ( ( TS . EST_COMMENT ! = null & & TS . EST_COMMENT . Contains ( "金润" ) ) | | TS . JR_FLG = = "1" ) )
{
int intWhile1 = 0 ;
string strSlabNo1 = TS . SLAB_NO ; //板坯号
bool FLAG = true ;
while ( intWhile1 < 5 )
{
if ( glFPCadInf . Where ( p = > p . SLAB_NO = = strSlabNo1 ) . Count ( ) > 0 )
{
//是协议且不是金润
if ( TS . XY_FLG = = "1" & & ! ( ( TS . EST_COMMENT ! = null & & TS . EST_COMMENT . Contains ( "金润" ) ) | | TS . JR_FLG = = "1" ) )
{
FP_CAD_INF FCI = glFPCadInf . Where ( p = > p . SLAB_NO = = strSlabNo1 ) . FirstOrDefault ( ) ;
if ( ! String . IsNullOrEmpty ( FCI . MILL_GZ ) )
{
FLAG = false ;
break ;
}
}
}
if ( gSLAB_RELATION . Where ( p = > p . SLAB_NO = = strSlabNo1 ) . Count ( ) > 0 )
{
if ( ConverDataToString ( gSLAB_RELATION . Where ( p = > p . SLAB_NO = = strSlabNo1 ) . FirstOrDefault ( ) . MOTHER_SLAB ) ! = string . Empty )
{
//替换母板=>子板 ,下次循环利用
strSlabNo1 = ConverDataToString ( gSLAB_RELATION . Where ( p = > p . SLAB_NO = = strSlabNo1 ) . FirstOrDefault ( ) . MOTHER_SLAB ) ;
}
else
{
break ;
}
}
intWhile1 + + ;
}
if ( FLAG )
{
return false ;
}
}
return true ;
}
@ -17647,7 +17601,7 @@ namespace SlabHandle
//获取最大分组
TPG = glTHKGRP . Where ( p = > p . MAX_WGT < = iSlab . REM_WGT
& & p . GRP_TMP . Count ( ) > 0
& & ( ( p . SLAB_LEN > = 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
& & ( ( p . SLAB_LEN > 2680 & & p . WID > = iSlab . WID - 85 & & p . WID < = iSlab . WID - 60 )
| | ( p . SLAB_LEN < 2680 & & p . WID > = iSlab . WID - 85 ) )
& & ChkBroadSingle ( p . CAL_WID , p . CAL_THK , "C3" , p . SLAB_WID > p . SLAB_LEN ? p . SLAB_LEN : p . SLAB_WID , iSlab , p . MAX_LEN )
& & ( ( p . SLAB_LEN > = 1000 & & p . SLAB_WID > = 2050 ) | | ( p . SLAB_LEN > = 2050 & & p . SLAB_WID > = 1000 ) )