Partly working
This commit is contained in:
18
Tanshu.Accounts.Contracts/Service Contracts/FoodTableBI.cs
Normal file
18
Tanshu.Accounts.Contracts/Service Contracts/FoodTableBI.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.ServiceModel;
|
||||
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public interface IFoodTableBI
|
||||
{
|
||||
void Insert(FoodTableBO foodTable);
|
||||
void Update(FoodTableBO foodTable);
|
||||
bool Delete(int tableID);
|
||||
FoodTableBO GetFoodTable(int tableID);
|
||||
List<FoodTableBO> GetFoodTables();
|
||||
}
|
||||
}
|
||||
@ -6,26 +6,16 @@ using System.Data.SqlClient;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IProductBI
|
||||
{
|
||||
[OperationContract]
|
||||
bool Insert(ProductBO product);
|
||||
[OperationContract]
|
||||
bool Update(ProductBO product);
|
||||
[OperationContract]
|
||||
bool Delete(Guid productID);
|
||||
[OperationContract]
|
||||
ProductBO GetProductFromName(string nameAndUnits);
|
||||
[OperationContract]
|
||||
ProductBO GetProduct(Guid productID);
|
||||
[OperationContract]
|
||||
decimal GetProductStock(DateTime date, Guid productID, Guid? voucherID);
|
||||
[OperationContract]
|
||||
List<ProductDisplayBO> GetProducts();
|
||||
[OperationContract]
|
||||
List<ProductDisplaySmallBO> GetFilteredProducts(Dictionary<string, string> filter);
|
||||
[OperationContract]
|
||||
List<ProductTypeBO> GetProductTypes();
|
||||
List<ProductDisplaySmallBO> GetProducts(Guid productTypeID);
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.ServiceModel;
|
||||
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public interface IProductTypeBI
|
||||
{
|
||||
ProductTypeBO GetProductType(Guid productTypeID);
|
||||
|
||||
ProductTypeBO GetProductTypeByName(string name);
|
||||
bool Insert(ProductTypeBO productType);
|
||||
bool Update(ProductTypeBO productType);
|
||||
List<ProductTypeBO> GetProductTypes();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user