Compare commits

..

No commits in common. 'c15e8a5ccebffd2675927db2549218364f678e43' and '4ed99c415c05da12582b7dbce9da701863d91780' have entirely different histories.

@ -788,13 +788,13 @@ namespace SlabHandle
{
if (gltTbPlateUseGrp.Count() > 300)
{
logger.Info(" %%%%%%%%数量太大,删掉了一部分,保留300 ( " + gltTbPlateUseGrp.Count() + " ) %%%%%%%%%%%");
logger.Info(" %%%%%%%%数量太大,删掉了一部分,保留100 ( " + 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 == "OMA24010014" && p.ORD_ITEM == "008").Count() > 0)
if (iPlateGrp.CRU_PIEs.Where(p => p.ORD_NO == "OMK24050015" && p.ORD_ITEM == "009").Count() > 0)
{
//return;
}
//GB / T713 - Q245R
//OM423040004
if (iPlateGrp.CRU_PIEs.Where(p => p.ORD_NO == "OMA24010001").Count() > 0)
if (iPlateGrp.CRU_PIEs.Where(p => p.ORD_NO == "OM423040004").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))

@ -92,7 +92,7 @@ namespace SlabHandle
strSql.AppendLine("WHERE 1 = 1 ");
//TODO:测试数据
//strSql.AppendLine(" AND A.SLAB_NO = '2430628734'");
//strSql.AppendLine(" AND A.SLAB_NO = '2420642231'");
/// strSql.AppendLine(" AND A.SLAB_NO = '2331114206'");
@ -104,25 +104,6 @@ namespace SlabHandle
////strSql.AppendLine(",'2331085601'");
//strSql.AppendLine(",'2430408336')");
//strSql.AppendLine(" AND A.SLAB_NO IN ('2420642232'");
//strSql.AppendLine(",'2420642231'");
//strSql.AppendLine(",'2420642131'");
//strSql.AppendLine(",'2420641931'");
//strSql.AppendLine(",'2420642431'");
//strSql.AppendLine(",'2420642432'");
//strSql.AppendLine(",'2420642531'");
//strSql.AppendLine(",'2420642532'");
//strSql.AppendLine(",'2420642533'");
//strSql.AppendLine(",'2410607002'");
//strSql.AppendLine(",'2410607003'");
//strSql.AppendLine(",'2430642607'");
//strSql.AppendLine(",'2430642609'");
//strSql.AppendLine(",'2430642610'");
//strSql.AppendLine(",'2430642611'");
//strSql.AppendLine(",'2430642701'");
//strSql.AppendLine(",'2430642702'");
//strSql.AppendLine(",'2430642703'");
//strSql.AppendLine(",'2430642704')");
//strSql.AppendLine(" AND A.SLAB_NO IN ( ");
////strSql.AppendLine(",'2311116505'");

@ -1,239 +0,0 @@

using Newtonsoft.Json;
using SOA.Persistent;
using System;
using System.ComponentModel;
namespace ibk.IPD.Entity.IpdPs
{
[Serializable, Table("QP_QLTY_TECH_REPLACE")]
[JsonObject]
public class QP_QLTY_TECH_REPLACE
{
[Persistent("MILL_PLT"), DisplayName("")]
public string MILL_PLT { get; set; }
[Persistent("ORESTLGRD"), DisplayName("")]
public string ORESTLGRD { get; set; }
[Persistent("TGT_STLGRD"), DisplayName("")]
public string TGT_STLGRD { get; set; }
[Persistent("SLAB_THK_MIN"), DisplayName("")]
public Decimal SLAB_THK_MIN { get; set; }
[Persistent("SLAB_THK_MAX"), DisplayName("")]
public Decimal SLAB_THK_MAX { get; set; }
[Persistent("ORD_THK_MIN"), DisplayName("")]
public Decimal ORD_THK_MIN { get; set; }
[Persistent("ORD_THK_MAX"), DisplayName("")]
public Decimal ORD_THK_MAX { get; set; }
[Persistent("HEAT_TGT_TMP"), DisplayName("")]
public int HEAT_TGT_TMP { get; set; }
[Persistent("HEAT_TGT_TMP_MAX"), DisplayName("")]
public int HEAT_TGT_TMP_MAX { get; set; }
[Persistent("HEAT_TGT_TMP_MIN"), DisplayName("")]
public int HEAT_TGT_TMP_MIN { get; set; }
[Persistent("AVGH_TGT_TMP"), DisplayName("")]
public int AVGH_TGT_TMP { get; set; }
[Persistent("AVGH_TGT_TMP_MAX"), DisplayName("")]
public int AVGH_TGT_TMP_MAX { get; set; }
[Persistent("AVGH_TGT_TMP_MIN"), DisplayName("")]
public int AVGH_TGT_TMP_MIN { get; set; }
[Persistent("MILL_TMP_MIN"), DisplayName("")]
public int MILL_TMP_MIN { get; set; }
[Persistent("MILL_TMP_MAX"), DisplayName("")]
public int MILL_TMP_MAX { get; set; }
[Persistent("MILL_TMP_TGT"), DisplayName("")]
public int MILL_TMP_TGT { get; set; }
[Persistent("AVG_HEAT_TIME_MIN"), DisplayName("")]
public Decimal AVG_HEAT_TIME_MIN { get; set; }
[Persistent("COOL_TMP_MIN"), DisplayName("")]
public int COOL_TMP_MIN { get; set; }
[Persistent("COOL_TMP_MAX"), DisplayName("")]
public int COOL_TMP_MAX { get; set; }
[Persistent("COOL_TMP_TGT"), DisplayName("")]
public int COOL_TMP_TGT { get; set; }
[Persistent("UST_FL"), DisplayName("")]
public string UST_FL { get; set; }
[Persistent("HOT_LVL_USE"), DisplayName("")]
public string HOT_LVL_USE { get; set; }
[Persistent("COOL_TMP_RATE"), DisplayName("")]
public int COOL_TMP_RATE { get; set; }
[Persistent("COOL_BED_TMP_TGT"), DisplayName("")]
public int COOL_BED_TMP_TGT { get; set; }
[Persistent("CR_CD"), DisplayName("")]
public string CR_CD { get; set; }
[Persistent("HEAT_TIME_MAX"), DisplayName("")]
public Decimal HEAT_TIME_MAX { get; set; }
[Persistent("HEAT_TIME_MIN"), DisplayName("")]
public Decimal HEAT_TIME_MIN { get; set; }
[Persistent("COOL_WAY"), DisplayName("")]
public string COOL_WAY { get; set; }
[Persistent("HCR_KND_1"), DisplayName("")]
public string HCR_KND_1 { get; set; }
[Persistent("CR_MILL_TMPT1"), DisplayName("")]
public int CR_MILL_TMPT1 { get; set; }
[Persistent("CR_MILL_RATET1"), DisplayName("")]
public Decimal CR_MILL_RATET1 { get; set; }
[Persistent("COOL_CTL_TYP"), DisplayName("")]
public string COOL_CTL_TYP { get; set; }
[Persistent("DEL_STATE"), DisplayName("")]
public string DEL_STATE { get; set; }
[Persistent("CR_MILL_TMPT2"), DisplayName("")]
public int CR_MILL_TMPT2 { get; set; }
[Persistent("CR_MILL_RATET2"), DisplayName("")]
public Decimal CR_MILL_RATET2 { get; set; }
[Persistent("MILL_STD_EDT_NO"), DisplayName("")]
public string MILL_STD_EDT_NO { get; set; }
[Persistent("INS_DATE"), DisplayName("")]
public string INS_DATE { get; set; }
[Persistent("INS_TIME"), DisplayName("")]
public string INS_TIME { get; set; }
[Persistent("INS_EMP"), DisplayName("")]
public string INS_EMP { get; set; }
[Persistent("UPD_DATE"), DisplayName("")]
public string UPD_DATE { get; set; }
[Persistent("UPD_TIME"), DisplayName("")]
public string UPD_TIME { get; set; }
[Persistent("UPD_EMP"), DisplayName("")]
public string UPD_EMP { get; set; }
[Persistent("AVG_HEAT_TIME_MAX"), DisplayName("")]
public Decimal AVG_HEAT_TIME_MAX { get; set; }
[Persistent("CR_MILL_TMPT2_MIN"), DisplayName("")]
public int CR_MILL_TMPT2_MIN { get; set; }
[Persistent("CR_MILL_TMPT2_MAX"), DisplayName("")]
public int CR_MILL_TMPT2_MAX { get; set; }
[Persistent("COOLHOT_LOAD"), DisplayName("")]
public string COOLHOT_LOAD { get; set; }
[Persistent("DIFFER_CODE"), DisplayName("")]
public string DIFFER_CODE { get; set; }
[Persistent("FLG"), DisplayName("")]
public string FLG { get; set; }
[Persistent("TAP_TMP_TGT"), DisplayName("")]
public int TAP_TMP_TGT { get; set; }
[Persistent("TAP_TMP_MIN"), DisplayName("")]
public int TAP_TMP_MIN { get; set; }
[Persistent("TAP_TMP_MAX"), DisplayName("")]
public int TAP_TMP_MAX { get; set; }
[Persistent("COOL_RATE"), DisplayName("")]
public Decimal COOL_RATE { get; set; }
[Persistent("MES_STDSPEC"), DisplayName("")]
public string MES_STDSPEC { get; set; }
[Persistent("ROLL_GCJX_STEEL"), DisplayName("")]
public string ROLL_GCJX_STEEL { get; set; }
}
}
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//namespace PlateAnalysisStandard.Enity
//{
// internal class QP_QLTY_TECH_REPLACE
// {
// }
//}

@ -1,48 +0,0 @@
using Newtonsoft.Json;
using SOA.Persistent;
using System;
using System.ComponentModel;
namespace ibk.IPD.Entity.IpdPs
{
[Serializable, Table("YCTD_WH_LOG")]
[JsonObject]
public class YCTD_WH_LOG
{
[Persistent("PLT"), DisplayName("工厂")]
public string PLT { get; set; }
[Persistent("PLT_NAME"), DisplayName("工厂名称")]
public string PLT_NAME { get; set; }
[Persistent("STANDARD_NO"), DisplayName("标准号")]
public string STANDARD_NO { get; set; }
[Persistent("TD_STANDARD_NO"), DisplayName("替代标准")]
public string TD_STANDARD_NO { get; set; }
[Persistent("TD_FL"), DisplayName("替代分类")]
public string TD_FL { get; set; }
[Persistent("SEQ_NO"), DisplayName("优先顺序")]
public string SEQ_NO { get; set; }
[Persistent("INS_DATE"), DisplayName("录入日期")]
public string INS_DATE { get; set; }
[Persistent("INS_TIME"), DisplayName("录入时刻")]
public string INS_TIME { get; set; }
[Persistent("INS_EMP"), DisplayName("录入人员")]
public string INS_EMP { get; set; }
[Persistent("UPD_DATE"), DisplayName("修改日期")]
public string UPD_DATE { get; set; }
[Persistent("UPD_TIEM"), DisplayName("修改时刻")]
public string UPD_TIEM { get; set; }
[Persistent("UPD_EMP"), DisplayName("修改人员")]
public string UPD_EMP { get; set; }
}
}

@ -16,24 +16,6 @@ namespace ibk.IPD.Entity.IpdPs
[Persistent("TD_STANDARD_NO"), DisplayName("替代标准")]
public string TD_STANDARD_NO { get; set; }
[Persistent("YP_MIN"), DisplayName("屈服最小值")]
public decimal YP_MIN { get; set; }
[Persistent("YP_MAX"), DisplayName("屈服最大值")]
public decimal YP_MAX { get; set; }
[Persistent("YP_RST"), DisplayName("屈服实绩")]
public decimal YP_RST { get; set; }
[Persistent("TS_MIN"), DisplayName("拉伸强度最小值")]
public decimal TS_MIN { get; set; }
[Persistent("TS_MAX"), DisplayName("拉伸强度最大值")]
public decimal TS_MAX { get; set; }
[Persistent("TS_RST"), DisplayName("拉伸强度实绩")]
public decimal TS_RST { get; set; }
[Persistent("TD_FL"), DisplayName("替代分类")]
public string TD_FL { get; set; }

@ -16,24 +16,6 @@ namespace ibk.IPD.Entity.IpdPs
[Persistent("TD_STANDARD_NO"), DisplayName("替代标准")]
public string TD_STANDARD_NO { get; set; }
[Persistent("YP_MIN"), DisplayName("屈服最小值")]
public decimal YP_MIN { get; set; }
[Persistent("YP_MAX"), DisplayName("屈服最大值")]
public decimal YP_MAX { get; set; }
[Persistent("YP_RST"), DisplayName("屈服实绩")]
public decimal YP_RST { get; set; }
[Persistent("TS_MIN"), DisplayName("拉伸强度最小值")]
public decimal TS_MIN { get; set; }
[Persistent("TS_MAX"), DisplayName("拉伸强度最大值")]
public decimal TS_MAX { get; set; }
[Persistent("TS_RST"), DisplayName("拉伸强度实绩")]
public decimal TS_RST { get; set; }
[Persistent("TD_FL"), DisplayName("替代分类")]
public string TD_FL { get; set; }

@ -16,27 +16,6 @@ namespace ibk.IPD.Entity.IpdPs
[Persistent("TD_STANDARD_NO"), DisplayName("替代标准")]
public string TD_STANDARD_NO { get; set; }
[Persistent("YP_MIN"), DisplayName("屈服最小值")]
public decimal YP_MIN { get; set; }
[Persistent("YP_MAX"), DisplayName("屈服最大值")]
public decimal YP_MAX { get; set; }
[Persistent("YP_RST"), DisplayName("屈服实绩")]
public decimal YP_RST { get; set; }
[Persistent("TS_MIN"), DisplayName("拉伸强度最小值")]
public decimal TS_MIN { get; set; }
[Persistent("TS_MAX"), DisplayName("拉伸强度最大值")]
public decimal TS_MAX { get; set; }
[Persistent("TS_RST"), DisplayName("拉伸强度实绩")]
public decimal TS_RST { get; set; }
[Persistent("TD_FL"), DisplayName("替代分类")]
public string TD_FL { get; set; }

@ -195,7 +195,6 @@
<Compile Include="Enity\TB_PROCESS_DATA.cs" />
<Compile Include="Enity\TB_SPECIAL_ORD.cs" />
<Compile Include="Enity\YCTD_WH.cs" />
<Compile Include="Enity\YCTD_WH_LOG.cs" />
<Compile Include="Enity\YCTD_WH_NO.cs" />
<Compile Include="Enity\YCTD_WH_NO_COPY.cs" />
<Compile Include="Enity\YCTD_WH_NO_TIME.cs" />

@ -3558,13 +3558,6 @@ namespace ibk.IPD.Controller.IPD_PS
yCTD_WH_NO.STANDARD_NO = yCTD.STANDARD_NO;//标准号
yCTD_WH_NO.TD_STANDARD_NO = yCTD.TD_STANDARD_NO;//替代标准
yCTD_WH_NO.YP_MIN = yCTD.YP_MIN;
yCTD_WH_NO.YP_MAX = yCTD.YP_MAX;
yCTD_WH_NO.YP_RST = yCTD.YP_RST;
yCTD_WH_NO.TS_MIN = yCTD.TS_MIN;
yCTD_WH_NO.TS_MAX = yCTD.TS_MAX;
yCTD_WH_NO.TS_RST = yCTD.TS_RST;
//yCTD_WH_NO.STDSPEC_STLGRD = yCTD.STDSPEC_STLGRD;
//yCTD_WH_NO.STEEL_GRD_DETAIL = yCTD.STEEL_GRD_DETAIL;
//yCTD_WH_NO.STD_FLG = yCTD.STD_FLG;
@ -3608,12 +3601,6 @@ namespace ibk.IPD.Controller.IPD_PS
//yCTD_WH_NO.STDSPEC_STLGRD = yCTD.STDSPEC_STLGRD;
//yCTD_WH_NO.STEEL_GRD_DETAIL = yCTD.STEEL_GRD_DETAIL;
//yCTD_WH_NO.STD_FLG = yCTD.STD_FLG;
yCTD_WH_NO.YP_MIN = yCTD.YP_MIN;
yCTD_WH_NO.YP_MAX = yCTD.YP_MAX;
yCTD_WH_NO.YP_RST = yCTD.YP_RST;
yCTD_WH_NO.TS_MIN = yCTD.TS_MIN;
yCTD_WH_NO.TS_MAX = yCTD.TS_MAX;
yCTD_WH_NO.TS_RST = yCTD.TS_RST;
yCTD_WH_NO.STEEL_GRD_DETAIL = yCTD.STEEL_GRD_DETAIL;//板坯钢种说明
yCTD_WH_NO.STDSPEC_STLGRD = yCTD.STDSPEC_STLGRD;//订单牌号
@ -3643,12 +3630,6 @@ namespace ibk.IPD.Controller.IPD_PS
//yCTD_WH_NO.STDSPEC_STLGRD = yCTD.STDSPEC_STLGRD;
//yCTD_WH_NO.STEEL_GRD_DETAIL = yCTD.STEEL_GRD_DETAIL;
//yCTD_WH_NO.STD_FLG = yCTD.STD_FLG;
yCTD_WH_NO.YP_MIN = yCTD.YP_MIN;
yCTD_WH_NO.YP_MAX = yCTD.YP_MAX;
yCTD_WH_NO.YP_RST = yCTD.YP_RST;
yCTD_WH_NO.TS_MIN = yCTD.TS_MIN;
yCTD_WH_NO.TS_MAX = yCTD.TS_MAX;
yCTD_WH_NO.TS_RST = yCTD.TS_RST;
yCTD_WH_NO.STEEL_GRD_DETAIL = yCTD.STEEL_GRD_DETAIL;//板坯钢种说明
yCTD_WH_NO.STDSPEC_STLGRD = yCTD.STDSPEC_STLGRD;//订单牌号
@ -6812,31 +6793,9 @@ namespace ibk.IPD.Controller.IPD_PS
decimal decRate = Math.Round((((Convert.ToDecimal(prorde.ORD_WID) * Convert.ToDecimal(prorde.ORD_LEN) * Convert.ToDecimal(1))
/ (Convert.ToDecimal(prP_PLATE.WID) * Convert.ToDecimal(prP_PLATE.LEN))) * 100), 2);
//logger.InfoFormat("余材:{0},订单:{1}-{2},标准:{3},标准未维护", prP_PLATE.PLATE_NO, prorde.ORD_NO, prorde.ORD_ITEM, prP_PLATE.APLY_STDSPEC);
YCTD_WH_NO_TIME yCTD_WH_NO = new YCTD_WH_NO_TIME();
#region 屈服点和抗拉强度
//获取订单的物理特性
List<QP_QLTY_MATR_HA> ltQPQltyMatrHA = gQP_QLTY_MATR_HA.Where(p => p.ORD_NO == prorde.ORD_NO && p.ORD_ITEM == prorde.ORD_ITEM).ToList();
string SlabNo = prP_PLATE.PLATE_NO.Substring(0, 10);
//List<GP_SMP_NO> SMP_NOs = gGP_SMP_NOs.Where(p => p.PLATE_NO.Contains(SlabNo)&&!string.IsNullOrEmpty(p.SMP_NO)).ToList();
//获取钢板的物理特性
List<QP_TEST_RSLT_HA> ltQPTestRsltHA = gQP_TEST_RSLT_HA.Where(p => p.SMP_NO == prP_PLATE.SMP_NO && p.TEST_KND == "0").ToList();
yCTD_WH_NO.YP_MIN = ConverDataToDecimal(ltQPQltyMatrHA[0].YP_MIN);
yCTD_WH_NO.YP_MAX = ConverDataToDecimal(ltQPQltyMatrHA[0].YP_MAX);
yCTD_WH_NO.YP_RST = ConverDataToDecimal(ltQPTestRsltHA[0].YP_RST);
yCTD_WH_NO.TS_MIN = ConverDataToDecimal(ltQPQltyMatrHA[0].TS_MIN);
yCTD_WH_NO.TS_MAX = ConverDataToDecimal(ltQPQltyMatrHA[0].TS_MAX);
yCTD_WH_NO.TS_RST = ConverDataToDecimal(ltQPTestRsltHA[0].TS_RST);
#endregion
yCTD_WH_NO.STEEL_GRD_DETAIL = prP_PLATE.STEEL_GRD_DETAIL;//板坯钢种说明
yCTD_WH_NO.STDSPEC_STLGRD = prorde.STDSPEC_STLGRD;//订单牌号
yCTD_WH_NO.STD_FLG = strYesOrNo;//是否满足异钢种替代工艺 是 否

@ -4144,8 +4144,6 @@ namespace ibk.IPD.Service.IPD_PS
try
{
strSql.AppendLine("SELECT * FROM NISCO.YCTD_WH");
strSql.AppendLine("UNION");
strSql.AppendLine("SELECT * FROM NISCO.YCTD_WH_LOG");
strSql.AppendLine("WHERE 1=1 ");
strSql.AppendLine(strWhereSTD);

@ -23,7 +23,6 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.ConstrainedExecution;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
@ -927,16 +926,17 @@ namespace ibk.IPD.Controller.IPD_PS
//钢铁最早产出日期偏移量
if (intPLATE_DAYS_DIFF != 0)
{
//测试test指定
//strWHerePlate += " AND GP.PLATE_NO in ('24105657140201')";
strWHerePlate += " AND (GP.PROD_DATE > TO_CHAR(SYSdate + '" + intPLATE_DAYS_DIFF.ToString() + "' ,'yyyyMMdd') or GP.STLGRD in ( SELECT STLGRD FROM NISCO.QP_NISCO_CHMC WHERE STLGRD_FL='N' AND STLGRD IN('A20050NIQQT', 'A20051NIQQT', 'A20090NIQQT', 'A20092NIQQT', 'A20093NIQQT')))";
//测试test指定
//strWHerePlate += " AND GP.PLATE_NO in ('23211884040101')";
}
//余材自动替代周期
if (intORD_DAYS_DIFF != 0)
{ //测试test指定
//strWHereOrd += " AND boi.ORD_NO='OMB22110001' AND boi.ORD_ITEM='023'";
{
//strWHereOrd += " AND boi.CUST_DEL_TO_DATE > TO_CHAR(SYSdate + '" + intORD_DAYS_DIFF.ToString() + "' ,'yyyyMMdd')";
//测试test指定
//strWHereOrd += " AND boi.ORD_NO='OMM24050019' AND boi.ORD_ITEM='085'";
strWHereOrd += " AND (boi.CUST_DEL_TO_DATE > TO_CHAR(SYSdate + '" + intORD_DAYS_DIFF.ToString() + "' ,'yyyyMMdd') or boi.STLGRD in ( SELECT STLGRD FROM NISCO.QP_NISCO_CHMC WHERE STLGRD_FL='N' AND STLGRD IN('A20050NIQQT','A20051NIQQT','A20090NIQQT','A20092NIQQT','A20093NIQQT'))) ";
}
@ -5042,8 +5042,8 @@ namespace ibk.IPD.Controller.IPD_PS
TEMP_DATA Fir_TD = gTEMP_DATA.Where(p => p.PLATE_NO == TD.PLATE_NO
&& p.USE_FLG != "1" && p.IS_REPLACE != "1"
&& p.DEF_NUM > 0
&& (((p.EFF_RATE * 100 >= DecSUB_RATE || p.PROFIT >= 0)
&& p.Scientific_substitution == "1") || p.EFF_RATE * 100 >= 85)).
&& (p.EFF_RATE * 100 >= DecSUB_RATE || p.PROFIT >= 0)
&& p.Scientific_substitution == "1").
//&& p.SUB_RATE >= DecSUB_RATE).
OrderByDescending(p => p.PROFIT).ThenBy(p => p.CUST_DEL_TO_DATE).
FirstOrDefault();
@ -7929,23 +7929,20 @@ namespace ibk.IPD.Controller.IPD_PS
// && Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MAX) >= Convert.ToDecimal(p.CHEM_RSLT)
// && itemQP_QLTY_CHEM.CHEM_COMP_CD + itemQP_QLTY_CHEM.FOMULA_CD == p.CHEM_COMP_CD).ToList();
//CEQ 特殊处理
if (itemQP_QLTY_CHEM.CHEM_COMP_CD.ToUpper() == "CEQ")
//2024/1/4 改
List<QP_CHEM_RSLT> ltCheck = ltQPChemRslt.Where
(p => Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MIN) <= Convert.ToDecimal(p.CHEM_RSLT)
&& Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MAX) >= Convert.ToDecimal(p.CHEM_RSLT)
&& (itemQP_QLTY_CHEM.CHEM_COMP_CD + itemQP_QLTY_CHEM.FOMULA_CD == p.CHEM_COMP_CD || itemQP_QLTY_CHEM.CHEM_COMP_CD == p.CHEM_COMP_CD)).ToList();
if (ltCheck.Count == 0)
{
//CEQ 字符串
string strCEQ = (itemQP_QLTY_CHEM.CHEM_COMP_CD + ConverDataToString(itemQP_QLTY_CHEM.FOMULA_CD)).Trim();
//CEQ 字符串长度
int intSub = strCEQ.Length;
//2024/1/4 改
List<QP_CHEM_RSLT> ltCheck = ltQPChemRslt.Where
(p => Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MIN) <= Convert.ToDecimal(p.CHEM_RSLT)
&& Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MAX) >= Convert.ToDecimal(p.CHEM_RSLT)
&& (strCEQ == (p.CHEM_COMP_CD + ConverDataToString(p.FOMULA_CD)).Trim())).ToList();
if (ltCheck.Count == 0)
if (itemQP_QLTY_CHEM.CHEM_COMP_CD == "N" && ltQPChemRslt.Where(p => p.CHEM_COMP_CD == "N").ToList().Count == 0)
{
prP_PLATE.SUB_FULL = "P";
prP_PLATE.SUB_LACK_CON = prP_PLATE.SUB_LACK_CON + "/化学成分N";
}
else
{
COM_DATA CD = new COM_DATA();
CD.PLATE_NO = prP_PLATE.PLATE_NO;
CD.ORD_NO = prorde.ORD_NO;
@ -7956,68 +7953,9 @@ namespace ibk.IPD.Controller.IPD_PS
//不满足返回false
//logger.InfoFormat("钢板:{0},订单号:{1}-{2},钢板炉号化学成分不满足订单", prP_PLATE.PLATE_NO, prorde.ORD_NO, prorde.ORD_ITEM);
return false;
}
}
else
{
//2024/1/4 改
List<QP_CHEM_RSLT> ltCheck = ltQPChemRslt.Where
(p => Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MIN) <= Convert.ToDecimal(p.CHEM_RSLT)
&& Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MAX) >= Convert.ToDecimal(p.CHEM_RSLT)
&& (itemQP_QLTY_CHEM.CHEM_COMP_CD + itemQP_QLTY_CHEM.FOMULA_CD == p.CHEM_COMP_CD || itemQP_QLTY_CHEM.CHEM_COMP_CD == p.CHEM_COMP_CD)).ToList();
if (ltCheck.Count == 0)
{
if (itemQP_QLTY_CHEM.CHEM_COMP_CD == "N" && ltQPChemRslt.Where(p => p.CHEM_COMP_CD == "N").ToList().Count == 0)
{
prP_PLATE.SUB_FULL = "P";
prP_PLATE.SUB_LACK_CON = prP_PLATE.SUB_LACK_CON + "/化学成分N";
}
else
{
COM_DATA CD = new COM_DATA();
CD.PLATE_NO = prP_PLATE.PLATE_NO;
CD.ORD_NO = prorde.ORD_NO;
CD.ORD_ITEM = prorde.ORD_ITEM;
CD.Chem = "1"; //化学特性
//gCOM_DATA.Add(CD);//全局变量添加对不结果数据
//不满足返回false
//logger.InfoFormat("钢板:{0},订单号:{1}-{2},钢板炉号化学成分不满足订单", prP_PLATE.PLATE_NO, prorde.ORD_NO, prorde.ORD_ITEM);
return false;
}
}
}
////2024/1/4 改
//List<QP_CHEM_RSLT> ltCheck = ltQPChemRslt.Where
// (p => Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MIN) <= Convert.ToDecimal(p.CHEM_RSLT)
// && Convert.ToDecimal(itemQP_QLTY_CHEM.CHEM_COMP_MAX) >= Convert.ToDecimal(p.CHEM_RSLT)
// && (itemQP_QLTY_CHEM.CHEM_COMP_CD + itemQP_QLTY_CHEM.FOMULA_CD == p.CHEM_COMP_CD || itemQP_QLTY_CHEM.CHEM_COMP_CD == p.CHEM_COMP_CD)).ToList();
//if (ltCheck.Count == 0)
//{
// if (itemQP_QLTY_CHEM.CHEM_COMP_CD == "N" && ltQPChemRslt.Where(p => p.CHEM_COMP_CD == "N").ToList().Count == 0)
// {
// prP_PLATE.SUB_FULL = "P";
// prP_PLATE.SUB_LACK_CON = prP_PLATE.SUB_LACK_CON + "/化学成分N";
// }
// else
// {
// COM_DATA CD = new COM_DATA();
// CD.PLATE_NO = prP_PLATE.PLATE_NO;
// CD.ORD_NO = prorde.ORD_NO;
// CD.ORD_ITEM = prorde.ORD_ITEM;
// CD.Chem = "1"; //化学特性
// //gCOM_DATA.Add(CD);//全局变量添加对不结果数据
// //不满足返回false
// //logger.InfoFormat("钢板:{0},订单号:{1}-{2},钢板炉号化学成分不满足订单", prP_PLATE.PLATE_NO, prorde.ORD_NO, prorde.ORD_ITEM);
// return false;
// }
//}
}
catch (Exception)
{
@ -8531,82 +8469,6 @@ namespace ibk.IPD.Controller.IPD_PS
{
return false;
}
#region 缺陷编号
//G0099 AAD 吊运撞伤 吊运撞伤 板型
//G0099 AAF 成分不合 成分不合 成分
//G0099 AAH 凸块 凸块 表面
//G0099 AAK 划伤 划伤 表面
//G0099 ABA 结疤 结疤 表面
//G0099 ABC 辊印 辊印 表面
//G0099 ACA 麻面 麻面 表面
//G0099 ACB 麻坑 麻坑 表面
//G0099 ACC 卷轧头尾麻面划伤 卷轧头尾麻面划伤 卷轧划伤
//G0099 ACQ 水波纹 水波纹 表面
//G0099 AEB 重皮 重皮 表面
//G0099 AFA 卷取炉掉渣 卷取炉掉渣 表面
//G0099 AFB 夹杂 夹杂 表面
//G0099 AGA 横向裂纹 横向裂纹 裂纹
//G0099 AGB 纵向裂纹 纵向裂纹 裂纹
//G0099 AGC 气泡状裂纹 气泡状裂纹 裂纹
//G0099 AGD 应力裂纹 应力裂纹 裂纹
//G0099 AGZ 碎裂纹 碎裂纹 裂纹
//G0099 AHA 过烧 过烧 表面
//G0099 AJA 网纹 网纹 表面
//G0099 AKA 凹坑 凹坑 表面
//G0099 AKB 矫直辊压痕 矫直辊压痕 表面
//G0099 AKC 双边剪压痕 双边剪压痕 表面
//G0099 AKD 异物压入 异物压入 表面
//G0099 AKE 定尺剪压痕 定尺剪压痕 表面
//G0099 AKF 轧辊压痕 轧辊压痕 表面
//G0099 AKI 丸粒压入 丸粒压入 表面
//G0099 ALA 毛刺 毛刺 剪切
//G0099 APA 端部未剪 端部未剪 剪切
//G0099 AQB 台阶 台阶 剪切
//G0099 ARD 氧化皮破损 氧化皮破损 热轧
//G0099 ARE 钢板角裂 钢板角裂
//G0099 ARF 倒角折叠 倒角折叠 炼钢
//G0099 BAM 厚度超上限 厚度超上限 尺寸
//G0099 BAN 厚度超下限 厚度超下限 尺寸
//G0099 BAQ 厚度异常 厚度异常 尺寸
//G0099 BBQ 短尺 短尺 尺寸
//G0099 BCA 小尺板 小尺板 尺寸
//G0099 BDA 产品宽度不足 产品宽度不足 尺寸
//G0099 BDE 折叠 折叠 表面
//G0099 CAT 瓢曲 瓢曲 板型
//G0099 CCA 矩形度超标 矩形度超标 尺寸
//G0099 CDA 塔形度超标 塔形度超标 尺寸
//G0099 CEC 单侧毛边 单侧毛边 剪切
//G0099 CFA 轧损 轧损 板型
//G0099 CGA 镰刀弯 镰刀弯 板型
//G0099 CHA 松卷 松卷 板型
//G0099 DAA 分层 分层 探伤
//G0099 DBA 内部缺陷 内部缺陷 探伤
//G0099 DBB 厚度1 / 2点状缺陷 厚度1/ 2点状缺陷 探伤
//G0099 DBC 厚度1 / 2片状缺陷 厚度1/ 2片状缺陷 探伤
//G0099 DBD 厚度1 / 4点状缺陷 厚度1/ 4点状缺陷 探伤
//G0099 DBE 厚度1 / 4片状缺陷 厚度1/ 4片状缺陷 探伤
//G0099 DBF 厚度1 / 2、1 / 4点状缺陷 厚度1/ 2、1 / 4点状缺陷 探伤
//G0099 DBG 厚度1 / 2、1 / 4片状缺陷 厚度1/ 2、1 / 4片状缺陷 探伤
//G0099 QAE 炉底辊结瘤 炉底辊结瘤 表面
//G0099 QAF 单板性能不合 单板性能不合 性能
//G0099 QAG 质量异议 质量异议
//G0099 QQA 性能不合 性能不合 性能
//G0099 QZA 消化余坯 消化余坯
//G0099 QZB 工艺附带 工艺附带
//G0099 QZD 销售录单 销售录单
//G0099 QZE 夹杂物超标 夹杂物超标
//G0099 QZF 新品试制 新品试制
//G0099 QZG 产品认证 产品认证
//G0099 QZI 成品成分不合 成品成分不合
//G0099 QZJ 金相不合 金相不合
//G0099 QZK 工艺异常 工艺异常
//G0099 QZL HIC不合 HIC不合
//G0099 QZM 双鼓折叠 双鼓折叠
//G0099 QZN 热装裂纹 热装裂纹
//G0099 QZO 边部黑线 边部黑线
#endregion
//BAN 厚度超下限
//QQA 性能不合
if (prP_PLATE.WOO_RSN == "BAN"
@ -8616,7 +8478,6 @@ namespace ibk.IPD.Controller.IPD_PS
|| prP_PLATE.WOO_RSN == "AFB"
|| prP_PLATE.WOO_RSN == "QZE"
|| prP_PLATE.WOO_RSN == "QAF"
|| prP_PLATE.WOO_RSN == "ABA"
|| prP_PLATE.WOO_RSN == "DAA")
{
return false;
@ -8747,7 +8608,7 @@ namespace ibk.IPD.Controller.IPD_PS
{
if (prP_PLATE.SUB_FULL == "P")
{
if (ltPlateSTD.Where(p => p.TD_STANDARD_NO == prorde.STDSPEC && ConverDataToString(p.TD_FL).Contains("完全")).ToList().Count > 0)
if (gYCTD_WHs.Where(p => p.TD_STANDARD_NO == prorde.STDSPEC && ConverDataToString(p.TD_FL).Contains("完全")).ToList().Count > 0)
{
return false;
}
@ -9330,21 +9191,6 @@ namespace ibk.IPD.Controller.IPD_PS
if (gNI.Where(p => p.STLGRD == prP_PLATE.STLGRD).ToList().Count > 0)
{
STLGRD = prP_PLATE.STLGRD;
//2024-08-01 Ni钢余材在WX,WJ,WN,WQ,WT,LG,KH,WL,RY、W7库最早交货期偏移量≥15天
if (ConverDataToDecimal(prorde.CUST_DEL_TO_DATE) <= ConverDataToDecimal(DateTime.Now.AddDays(15).ToString("yyyyMMdd")))
{
STLGRD = string.Empty;
INV = string.Empty;
COM_DATA CD = new COM_DATA();
CD.PLATE_NO = prP_PLATE.PLATE_NO;
CD.ORD_NO = prorde.ORD_NO;
CD.ORD_ITEM = prorde.ORD_ITEM;
CD.War = "1"; //仓库
//gCOM_DATA.Add(CD);//全局变量添加对不结果数据
return false;
}
//2023.1.28 可以刘桂英提出 镍系钢不做部分替代
//if(prP_PLATE.SUB_FULL=="P")
//{
@ -10504,12 +10350,12 @@ namespace ibk.IPD.Controller.IPD_PS
}
}
////标记为1部分替代不取样同时电文标记1
//if (IsSMPLen == 1)
//{
// IsSMPLen = 0;
// return true;
//}
//标记为1部分替代不取样同时电文标记1
if (IsSMPLen == 1)
{
IsSMPLen = 0;
return true;
}
List<QP_QLTY_MATR_MAIN> ltMain = gQP_QLTY_MATR_MAIN.Where(p => p.ORD_NO == prorder.ORD_NO && p.ORD_ITEM == prorder.ORD_ITEM).ToList();

Loading…
Cancel
Save