narsil/Tanshu.Accounts.Contracts/DAOFactory/ProductDAO.cs
2011-01-10 05:06:24 +05:30

28 lines
803 B
C#

using System;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IProductDAO : IDisposable
{
bool Insert(ProductBO product);
ProductBO GetProduct(Guid productID);
bool Delete(Guid productID);
bool Update(ProductBO product);
ProductBO GetProduct(string nameAndUnits);
decimal GetProductStock(DateTime date, Guid productID, Guid? voucherID);
List<ProductDisplayBO> GetProducts();
void UpdateShortName();
List<ProductDisplaySmallBO> GetFilteredProducts(Dictionary<string, string> filter);
List<ProductDisplayBO> GetProducts(string name, int skip, int count);
List<ProductDisplaySmallBO> GetProducts(Guid productTypeID);
}
}