narsil/Tanshu.Accounts.Contracts/DAOFactory/ProductDAO.cs
2010-03-02 23:26:21 +05:30

27 lines
780 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<ProductTypeBO> GetProductTypes();
List<ProductDisplayBO> GetProducts(string name, int skip, int count);
}
}