1
This commit is contained in:
@@ -13,7 +13,7 @@ namespace NX.ERP.Model.Request
|
||||
public string MaterialCode { get => _code; set => _code = value; }
|
||||
public string MaterialName { get => _name; set => _name = value; }
|
||||
|
||||
|
||||
public IEnumerable<string> MaterialCodes { get; set; }
|
||||
public string MaterialTypeCode { get; set; }
|
||||
|
||||
public string SpecsModel { get; set; }
|
||||
|
||||
@@ -72,5 +72,7 @@ namespace NX.ERP.Model.Response.Store
|
||||
/// 库位
|
||||
/// </summary>
|
||||
public string Position { get; set; }
|
||||
|
||||
public decimal WhQty { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -371,6 +371,11 @@ namespace NX.ERP.U8
|
||||
where.Add(" cInvCode = @MaterialCode ");
|
||||
}
|
||||
|
||||
if (Material.MaterialCodes!=null)
|
||||
{
|
||||
where.Add(" cInvCode in @MaterialCodes ");
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(Material.MaterialName))
|
||||
{
|
||||
where.Add(" cInvName like @MaterialName ");
|
||||
@@ -399,7 +404,8 @@ namespace NX.ERP.U8
|
||||
MaterialName = $"%{Material.MaterialName}%",
|
||||
Material.SpecsModel,
|
||||
Material.MaterialTypeCode,
|
||||
Material.ModifyDate
|
||||
Material.ModifyDate,
|
||||
Material.MaterialCodes
|
||||
|
||||
}); ;
|
||||
|
||||
|
||||
@@ -304,7 +304,8 @@ FROM MaterialAppVouch a
|
||||
MAS.invcode ProductCode,--产品编码,
|
||||
PDT.cInvName ProductName,--产品名称
|
||||
PDT.cInvStd ProductSpec,--产品规格
|
||||
POST.cPosName [Position]--库位
|
||||
POST.cPosName [Position],--库位
|
||||
Convert(decimal(18,2),currentstock.iQuantity) WhQty
|
||||
|
||||
FROM
|
||||
MaterialAppVouch MA
|
||||
@@ -347,6 +348,9 @@ FROM
|
||||
GROUP BY
|
||||
cinvcode
|
||||
) AS post ON INV.cinvcode = post.cinvcode
|
||||
left outer join (SELECT cinvcode, SUM(iquantity) iQuantity
|
||||
FROM InvPositionSum WITH (NOLOCK) where cPosCode not in ('00701','00801','09001') and cWhCode not in (4,5)
|
||||
GROUP BY cInvCode) CurrentStock on CurrentStock.cInvCode = INV.cInvCode
|
||||
WHERE MAS.iQuantity > ISNULL(MAS.foutquantity,0)
|
||||
";
|
||||
if (!string.IsNullOrEmpty(strWhere))
|
||||
|
||||
Reference in New Issue
Block a user