提交代码
This commit is contained in:
@@ -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)
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user