|
|
@ -2035,28 +2035,6 @@ c.Sequence, |
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 将拣料结果存入表中,以人员区分,每次存入之前清空对应人员存入的数据
|
|
|
|
|
|
|
|
string picksql = @"delete from ICSPickPrintTemp
|
|
|
|
where MUSER='{0}' AND WorkPoint='{1}'";
|
|
|
|
picksql = string.Format(picksql, MUSER, WorkPoint); |
|
|
|
SqlHelper.ExecuteNonQuery(picksql); |
|
|
|
picksql = ""; |
|
|
|
foreach (DataRow pickdr in table.Rows) |
|
|
|
{ |
|
|
|
picksql += @" INSERT INTO ICSPickPrintTemp
|
|
|
|
(ID,DocNO,INVCode,iQuantity,WHCode,BinCode,LotNO,QTYTotal,SendQTY,MUSER,MUSERNAME,WorkPoint) |
|
|
|
VALUES |
|
|
|
(NEWID(),'{0}','{1}',{2},'{3}','{4}','{5}',{6},{7},'{8}','{9}','{10}')";
|
|
|
|
picksql = string.Format(picksql, pickdr["Code"].ToString(), pickdr["InvCode"].ToString(), Convert.ToDecimal(pickdr["iQuantity"]) |
|
|
|
, pickdr["WarehouseCode"].ToString(), pickdr["LocationCode"].ToString(), pickdr["LotNO"].ToString() |
|
|
|
, Convert.ToDecimal(pickdr["QTYTotal"]), Convert.ToDecimal(pickdr["SendQTY"]), MUSER, MUSERNAME, WorkPoint); |
|
|
|
} |
|
|
|
SqlHelper.ExecuteNonQuery(picksql); |
|
|
|
#endregion
|
|
|
|
var result = ConvertCellToString(table); |
|
|
|
if (Invmes.Rows.Count > 0) |
|
|
|
{ |
|
|
|