|
@ -2582,7 +2582,7 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu |
|
|
DataTable dtLotBC = SqlCommandHelper.SQlReturnData(sqlLotBC, cmd); |
|
|
DataTable dtLotBC = SqlCommandHelper.SQlReturnData(sqlLotBC, cmd); |
|
|
if (dtLotBC.Rows.Count<=0) |
|
|
if (dtLotBC.Rows.Count<=0) |
|
|
{ |
|
|
{ |
|
|
throw new Exception("该工单行,暂无可上传批次!"); |
|
|
|
|
|
|
|
|
throw new Exception("该工单,暂无可上传批次!"); |
|
|
} |
|
|
} |
|
|
// DataTable dtLotBC = Repository().FindTableBySql(sqlLotBC.ToString());
|
|
|
// DataTable dtLotBC = Repository().FindTableBySql(sqlLotBC.ToString());
|
|
|
var BCNum = dtLotBC.Rows.Count; |
|
|
var BCNum = dtLotBC.Rows.Count; |
|
@ -2614,7 +2614,11 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu |
|
|
where a.MOCode='{0}' and a.Sequence='{1}' and a.WorkPoint='{2}'";
|
|
|
where a.MOCode='{0}' and a.Sequence='{1}' and a.WorkPoint='{2}'";
|
|
|
sqlSubject = string.Format(sqlSubject, Code, Sequence, WorkPoint); |
|
|
sqlSubject = string.Format(sqlSubject, Code, Sequence, WorkPoint); |
|
|
DataTable dtSubject = SqlCommandHelper.SQlReturnData(sqlSubject, cmd); |
|
|
DataTable dtSubject = SqlCommandHelper.SQlReturnData(sqlSubject, cmd); |
|
|
// DataTable dtSubject = Repository().FindTableBySql(sqlSubject.ToString());
|
|
|
|
|
|
|
|
|
if (dtSubject.Rows.Count <= 0) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new Exception("该工单下暂无可上传的子行!"); |
|
|
|
|
|
} |
|
|
|
|
|
// DataTable dtSubject = Repository().FindTableBySql(sqlSubject.ToString());
|
|
|
var Identification = Guid.NewGuid().ToString(); |
|
|
var Identification = Guid.NewGuid().ToString(); |
|
|
foreach (DataRow item in dtSubject.Rows) |
|
|
foreach (DataRow item in dtSubject.Rows) |
|
|
{ |
|
|
{ |
|
|