|
|
|
@ -788,13 +788,13 @@ namespace SlabHandle
|
|
|
|
|
{
|
|
|
|
|
if (gltTbPlateUseGrp.Count() > 300)
|
|
|
|
|
{
|
|
|
|
|
logger.Info(" %%%%%%%%数量太大,删掉了一部分,保留100 ( " + gltTbPlateUseGrp.Count() + " ) %%%%%%%%%%%");
|
|
|
|
|
logger.Info(" %%%%%%%%数量太大,删掉了一部分,保留300 ( " + 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,12 +1472,13 @@ namespace SlabHandle
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
//OM423070031 004 005
|
|
|
|
|
if (iPlateGrp.CRU_PIEs.Where(p => p.ORD_NO == "OMK24050015" && p.ORD_ITEM == "009").Count() > 0)
|
|
|
|
|
if (iPlateGrp.CRU_PIEs.Where(p => p.ORD_NO == "OMA24010014" && p.ORD_ITEM == "008").Count() > 0)
|
|
|
|
|
{
|
|
|
|
|
//return;
|
|
|
|
|
}
|
|
|
|
|
//GB / T713 - Q245R
|
|
|
|
|
//OM423040004
|
|
|
|
|
if (iPlateGrp.CRU_PIEs.Where(p => p.ORD_NO == "OM423040004").Count() > 0)
|
|
|
|
|
if (iPlateGrp.CRU_PIEs.Where(p => p.ORD_NO == "OMA24010001").Count() > 0)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
if (iPlateGrp.STDSPEC_STLGRD == "Q345B-X")
|
|
|
|
@ -11252,7 +11253,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)
|
|
|
|
@ -11290,7 +11291,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)
|
|
|
|
@ -11336,7 +11337,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)
|
|
|
|
@ -11384,7 +11385,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)
|
|
|
|
@ -11423,7 +11424,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)
|
|
|
|
@ -11474,7 +11475,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)
|
|
|
|
@ -11509,7 +11510,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)
|
|
|
|
@ -11549,7 +11550,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)
|
|
|
|
@ -11595,7 +11596,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)
|
|
|
|
@ -11632,7 +11633,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)
|
|
|
|
@ -11677,7 +11678,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)
|
|
|
|
@ -11724,7 +11725,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)
|
|
|
|
@ -11762,7 +11763,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)
|
|
|
|
@ -11812,7 +11813,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)
|
|
|
|
@ -11846,7 +11847,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)
|
|
|
|
@ -11885,7 +11886,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)
|
|
|
|
@ -11940,7 +11941,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)
|
|
|
|
@ -11979,7 +11980,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)
|
|
|
|
@ -12024,7 +12025,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)
|
|
|
|
@ -12077,7 +12078,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)
|
|
|
|
@ -12117,7 +12118,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)
|
|
|
|
@ -12153,6 +12154,9 @@ 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
|
|
|
|
@ -12160,7 +12164,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)
|
|
|
|
@ -12198,7 +12202,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)
|
|
|
|
@ -12247,7 +12251,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)
|
|
|
|
@ -12303,7 +12307,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)
|
|
|
|
@ -12345,7 +12349,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)
|
|
|
|
@ -12393,7 +12397,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)
|
|
|
|
@ -12434,7 +12438,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)
|
|
|
|
@ -12479,7 +12483,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)
|
|
|
|
@ -12523,7 +12527,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)
|
|
|
|
@ -12573,7 +12577,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)
|
|
|
|
@ -12614,7 +12618,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)
|
|
|
|
@ -12670,7 +12674,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)
|
|
|
|
@ -12722,7 +12726,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)
|
|
|
|
@ -12768,7 +12772,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)
|
|
|
|
@ -12809,7 +12813,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)
|
|
|
|
@ -12854,7 +12858,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)
|
|
|
|
@ -12913,7 +12917,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)
|
|
|
|
@ -12959,7 +12963,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)
|
|
|
|
@ -13001,7 +13005,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)
|
|
|
|
@ -13051,7 +13055,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)
|
|
|
|
@ -13091,7 +13095,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)
|
|
|
|
@ -13131,7 +13135,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)
|
|
|
|
@ -13167,7 +13171,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)
|
|
|
|
@ -13212,7 +13216,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)
|
|
|
|
@ -13263,7 +13267,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)
|
|
|
|
@ -13310,7 +13314,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)
|
|
|
|
@ -13362,7 +13366,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)
|
|
|
|
@ -13398,7 +13402,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)
|
|
|
|
@ -13437,7 +13441,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)
|
|
|
|
@ -13472,7 +13476,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)
|
|
|
|
@ -13512,7 +13516,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)
|
|
|
|
@ -13553,7 +13557,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)
|
|
|
|
@ -13588,7 +13592,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)
|
|
|
|
@ -13626,7 +13630,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)
|
|
|
|
@ -13661,7 +13665,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)
|
|
|
|
@ -13699,7 +13703,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)
|
|
|
|
@ -13733,7 +13737,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)
|
|
|
|
@ -13772,7 +13776,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)
|
|
|
|
@ -13812,7 +13816,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)
|
|
|
|
@ -13846,7 +13850,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)
|
|
|
|
@ -14981,26 +14985,69 @@ namespace SlabHandle
|
|
|
|
|
{
|
|
|
|
|
decSlabTHK = 150;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//替换厚度标准
|
|
|
|
|
if (glSubsThickLimit.Where(p => p.PLT == TS.PLAN_MILL_PLT
|
|
|
|
|
&& p.SLAB_THICK == decSlabTHK).Count() > 0)
|
|
|
|
|
if (TS.XY_FLG == "1")
|
|
|
|
|
{
|
|
|
|
|
decimal decMinThk = glSubsThickLimit.Where(p => p.PLT == TS.PLAN_MILL_PLT
|
|
|
|
|
&& p.SLAB_THICK == decSlabTHK).FirstOrDefault().THK_MIN;
|
|
|
|
|
//协议 150
|
|
|
|
|
if (TS.THK == 150 || TS.THK == 180)
|
|
|
|
|
{
|
|
|
|
|
decimal decMinThk = 1;
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
decimal decMaxThk = 100;
|
|
|
|
|
|
|
|
|
|
if (BOI.ORD_THK < decMinThk || BOI.ORD_THK > decMaxThk)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
decMaxThk = 40;
|
|
|
|
|
|
|
|
|
|
//替换厚度标准
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (BOI.ORD_THK < decMinThk || BOI.ORD_THK > decMaxThk)
|
|
|
|
|
//替换厚度标准
|
|
|
|
|
if (glSubsThickLimit.Where(p => p.PLT == TS.PLAN_MILL_PLT
|
|
|
|
|
&& p.SLAB_THICK == decSlabTHK).Count() > 0)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
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 true;
|
|
|
|
@ -16117,49 +16164,48 @@ 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 (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 (FLAG)
|
|
|
|
|
// {
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -17601,7 +17647,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))
|
|
|
|
|