Esempio n. 1
0
        /// <summary>
        /// 设置诊疗项目库存
        /// </summary>
        /// <param name="shopBranchId"></param>
        /// <param name="pids"></param>
        /// <param name="stock"></param>
        /// <param name="opType"></param>
        public static void SetProductStock(IEnumerable <long> pids, int stock, CommonModel.StockOpType opType)
        {
            switch (opType)
            {
            case StockOpType.Normal:
                _productService.SetMoreProductToOneStock(pids, stock);
                break;

            case StockOpType.Add:
                _productService.AddProductStock(pids, stock);
                break;

            case StockOpType.Reduce:
                _productService.ReduceProductStock(pids, stock);
                break;
            }
        }