예제 #1
0
 /// <summary>
 /// 编辑仓库信息
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static bool Edit(StockInfo entity)
 {
     if (!PreCheckStock(entity))
     {
         return(false);
     }
     entity.StoreCompanyCode = entity.CompanyCode;
     return(StockDA.Edit(entity));
 }
예제 #2
0
        /// <summary>
        /// 创建仓库信息
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public static bool Create(StockInfo entity)
        {
            if (!PreCheckStock(entity))
            {
                return(false);
            }
            entity.StoreCompanyCode = entity.CompanyCode;
            var data = StockDA.Create(entity);

            return(true);
        }
예제 #3
0
        public void AddProductToStockBL(TypeBO objTypeBO)
        {
            StockBO   objStockBO   = new StockBO();
            StockDA   objStockDA   = new StockDA();
            TypeDA    objTypeDA    = new TypeDA();
            ProductDA objProductDA = new ProductDA();

            objStockBO.StockName  = objProductDA.GetProductName(objTypeBO.ProductID);
            objStockBO.StockType  = objTypeBO.TypeName;
            objStockBO.StockCount = objTypeBO.TypeCount;
            objStockBO.StockDate  = DateTime.Today;

            int oldCount = objTypeDA.GetOldTypeCount(objTypeBO.TypeName, objTypeBO.ProductID);

            objTypeBO.TypeCount = objTypeBO.TypeCount + oldCount;

            objTypeDA.AddProductToStockDA(objTypeBO);
            objStockDA.AddStockRecord(objStockBO);
        }
예제 #4
0
 /// <summary>
 /// 删除某一个商家的一个仓库
 /// </summary>
 /// <param name="sysNo"></param>
 /// <param name="merchantSysNo"></param>
 /// <returns></returns>
 public static bool DelStock(int sysNo, int merchantSysNo)
 {
     return(StockDA.DelStock(sysNo, merchantSysNo));
 }
예제 #5
0
 /// <summary>
 /// 查询商家的仓库列表
 /// </summary>
 /// <param name="queryFilter"></param>
 /// <returns></returns>
 public static QueryResult <StockInfoQueryRestult> QueryStock(StockQueryFilter queryFilter)
 {
     return(StockDA.QueryStock(queryFilter));
 }
예제 #6
0
 public static void UpdateStockShipType(StockShipTypeInfo info)
 {
     StockDA.UpdateStockShipType(info);
 }
예제 #7
0
 public static void CreateStockShipType(StockShipTypeInfo info)
 {
     StockDA.CreateStockShipType(info);
 }
예제 #8
0
 public static StockShipTypeInfo GetStockShipTypeInfo(int sysNo)
 {
     return(StockDA.GetStockShipTypeInfo(sysNo));
 }
예제 #9
0
        public static QueryResult QueryStockShipType(StockShipTypeQueryFilter filter)
        {
            int count = 0;

            return(new QueryResult(StockDA.QueryStockShipType(filter, out count), filter, count));
        }
예제 #10
0
 /// <summary>
 /// 加载仓库信息
 /// </summary>
 /// <param name="sysNo"></param>
 /// <returns></returns>
 public static StockInfo LoadStock(int sysNo)
 {
     return(StockDA.LoadStock(sysNo));
 }
예제 #11
0
        public void ClearStockHistoryBL()
        {
            StockDA objStockDA = new StockDA();

            objStockDA.ClearStockHistoryDA();
        }
예제 #12
0
        public DataSet PopulateGridViewStockHistoryBL()
        {
            StockDA objStockDA = new StockDA();

            return(objStockDA.PopulateGridViewStockHistoryDA());
        }