Beispiel #1
0
        /// <summary>
        /// 依訂單id取得商品資料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public List <eSaleModel.Order2.ProductViewModel> GetProductById(int id)
        {
            eSaleDao.ProductDao productDao = new eSaleDao.ProductDao(this.DbConn);
            var datalist = productDao.GetProductById(id);

            return(this.MapProduct(datalist));
        }
Beispiel #2
0
        /// <summary>
        /// 依條件篩選商品資料
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        public List <eSaleModel.Product> GetProductByCondition(eSaleModel.Product condition)
        {
            List <eSaleModel.Product> result = new List <eSaleModel.Product>();

            eSaleDao.ProductDao productDao = new eSaleDao.ProductDao(this.DbConn);
            var datalist = productDao.GetProductByCondition(condition);

            return(this.MapProductStore(datalist));
        }
Beispiel #3
0
        /// <summary>
        /// 取得商品清單
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public List <eSaleModel.FilteringSelect> GetProductNameList()
        {
            List <eSaleModel.Product> result = new List <eSaleModel.Product>();

            eSaleDao.ProductDao productDao = new eSaleDao.ProductDao(this.DbConn);
            var datalist = productDao.GetProductNameList();

            return(this.MapProductNameList(datalist));
        }