xusc 11 months ago
parent
commit
817f9c181d
  1. 26
      WMS-BS/NFine.Application/WMS/ProductionIssueApp.cs

26
WMS-BS/NFine.Application/WMS/ProductionIssueApp.cs

@ -500,8 +500,7 @@ where a.ApplyNegCode='" + ApplyNegCode + "'";
keyValue = keyValue.Substring(1, keyValue.Length - 2);
string sql = string.Empty;
string sqlSeach = string.Empty;
try
{
sqlSeach = string.Format(@"select * from ICSMOApplyNeg a
inner join dbo.ICSInventoryLotDetail b on a.ApplyNegCode=b.TransCode and a.WorkPoint=b.WorkPoint
inner join dbo.ICSInventoryLot c on b.LotNo=c.LotNo and b.WorkPoint=c.WorkPoint
@ -517,20 +516,21 @@ where a.ApplyNegCode='" + ApplyNegCode + "'";
sql += string.Format(@"DELETE FROM dbo.ICSMOApplyNeg WHERE ApplyNegCode IN ({0}) and WorkPoint ='{1}'", keyValue.TrimEnd(','), WorkPoint);
sql += string.Format(@"DELETE FROM dbo.ICSMOApplyNegDetail WHERE ApplyNegCode IN ({0}) and WorkPoint ='{1}'", keyValue.TrimEnd(','), WorkPoint);
}
try
{
if (SqlHelper.CmdExecuteNonQueryLi(sql) > 0)
try
{
if (SqlHelper.CmdExecuteNonQueryLi(sql) > 0)
{
}
}
catch (Exception ex)
{
msg = ex.Message;
}
return msg;
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
return msg;
}

Loading…
Cancel
Save