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