|
|
@ -3691,6 +3691,22 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu |
|
|
|
#region 检验合格单
|
|
|
|
if (Type == "7") |
|
|
|
{ |
|
|
|
string DocNoInfo1 = DocNoInfo.Replace(",", "','"); |
|
|
|
string str1 = @"select DNCode from ICSDeliveryNotice WHERE DNCode IN ('" + DocNoInfo1 + "') and isnull(EATTRIBUTE3,'')<>'1'"; |
|
|
|
|
|
|
|
DataTable dt1 = SqlHelper.GetDataTableBySql(str1); |
|
|
|
|
|
|
|
if (dt1.Rows.Count <= 0) |
|
|
|
{ |
|
|
|
throw new Exception("所选单据已全部上传货柜完成,请勿重复上传!"); |
|
|
|
} |
|
|
|
DocNoInfo1 = ""; |
|
|
|
foreach (DataRow dr in dt1.Rows) |
|
|
|
{ |
|
|
|
DocNoInfo1 += dr["DNCode"].ToString() + ","; |
|
|
|
} |
|
|
|
DocNoInfo1 = DocNoInfo1.TrimEnd(','); |
|
|
|
DocNoInfo = DocNoInfo1; |
|
|
|
InspectJosn += "{"; |
|
|
|
InspectJosn += "\"IMP_ORDINI\":["; |
|
|
|
foreach (string DocNO in DocNoInfo.Split(',')) |
|
|
|