using Library; using MySystem.Service.Main; using System; using System.Collections.Generic; namespace MySystem { /// /// 仓库工具类 /// public class StoreHouseUtil { #region 修改仓库库存(仓库出货) /// /// 修改仓库库存(仓库出货) /// /// 仓库Id /// 剩余库存数 /// 出货数 public static void EditStoreStock(int StoreId, int LaveNum, int OutNum) { Dictionary storeData = new Dictionary(); storeData.Add("LaveNum", LaveNum -= 1); storeData.Add("OutNum", OutNum += 1); StoreHouseService.Edit(storeData, StoreId); } #endregion #region 修改仓库剩余库存数 /// /// 修改仓库剩余库存数 /// /// 仓库Id /// 剩余库存数 public static void EditStoreLaveNum(int StoreId, int LaveNum) { Dictionary storeData = new Dictionary(); storeData.Add("LaveNum", LaveNum); StoreHouseService.Edit(storeData, StoreId); } #endregion } }