SmallStoreHouseUtil.cs 876 B

12345678910111213141516171819202122232425262728
  1. using Library;
  2. using MySystem.Service.Main;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace MySystem
  6. {
  7. /// <summary>
  8. /// 小仓库工具类
  9. /// </summary>
  10. public class SmallStoreHouseUtil
  11. {
  12. #region 修改小仓库库存
  13. /// <summary>
  14. /// 修改小仓库库存
  15. /// </summary>
  16. /// <param name="StoreId">小仓库Id</param>
  17. /// <param name="LaveNum">剩余可申请数</param>
  18. /// <param name="TotalNum">已申请数</param>
  19. public static void EditStoreStock(int StoreId, int LaveNum, int TotalNum)
  20. {
  21. Dictionary<string, object> storeData = new Dictionary<string, object>();
  22. storeData.Add("LaveNum", LaveNum);
  23. storeData.Add("OutNum", TotalNum);
  24. SmallStoreHouseService.Edit(storeData, StoreId);
  25. }
  26. #endregion
  27. }
  28. }