提交代码

This commit is contained in:
2025-05-21 14:05:20 +08:00
parent 68884b7f73
commit fd35988a76
11 changed files with 1133 additions and 12 deletions
@@ -69,16 +69,25 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
LEFT JOIN dbo.Weld_Supplier supplier ON supplier.SupplierId=StockIn.SupplierId
LEFT JOIN dbo.Weld_UnitStore store ON store.UnitStoreId = StockIn.UnitStoreId
WHERE (StockIn.Amount-ISNULL(StockIn.UsingAmount,0)+ISNULL(StockIn.RecycleAmount,0))>0
AND StockIn.WeldId=@WeldId AND (StockIn.Amount-ISNULL(StockIn.UsingAmount,0))>=0 ";
AND StockIn.WeldId=@WeldId AND (StockIn.Amount-ISNULL(StockIn.UsingAmount,0))>=0
and StockIn.UnitStoreId=@UnitStoreId ";
Model.Weld_Storeman storeMan = BLL.StoremanInfoService.GetStoremanByUserId(this.CurrUser.UserId);
string unitStoreId = string.Empty;
if (storeMan != null)
{
unitStoreId = storeMan.UnitStoreId;
}
List<SqlParameter> listStr = new List<SqlParameter>();
if (plan != null)
{
listStr.Add(new SqlParameter("@OneAmount", plan.Amount));
listStr.Add(new SqlParameter("@WeldId", plan.WeldId));
listStr.Add(new SqlParameter("@UnitStoreId", unitStoreId));
}
else
{
listStr.Add(new SqlParameter("@WeldId", null));
listStr.Add(new SqlParameter("@UnitStoreId", unitStoreId));
}
//if (CurrUser.UnitId != null)
//{