Item Modifier added
This commit is contained in:
15
Tanshu.Accounts.Contracts/DAOFactory/ModifierDAO.cs
Normal file
15
Tanshu.Accounts.Contracts/DAOFactory/ModifierDAO.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IModifierDAO : IDisposable
|
||||
{
|
||||
void Insert(ModifierBO modifier);
|
||||
//void Update(ModifierBO modifier);
|
||||
void Delete(string modifierID);
|
||||
ModifierBO GetModifier(string modifierID);
|
||||
List<ModifierBO> GetModifiers();
|
||||
}
|
||||
}
|
||||
17
Tanshu.Accounts.Contracts/DAOFactory/ProductGroupDAO.cs
Normal file
17
Tanshu.Accounts.Contracts/DAOFactory/ProductGroupDAO.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IProductGroupDAO : IDisposable
|
||||
{
|
||||
bool Insert(ProductGroupBO productType);
|
||||
ProductGroupBO GetProductGroup(Guid productGroupID);
|
||||
ProductGroupBO GetProductGroup(string name);
|
||||
bool Delete(Guid productGroupID);
|
||||
bool Update(ProductGroupBO productGroup);
|
||||
List<ProductGroupBO> GetProductGroups();
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IProductGroupModifierDAO : IDisposable
|
||||
{
|
||||
bool Insert(ProductGroupModifierBO productGroupModifier);
|
||||
bool Delete(int productGroupModifierID);
|
||||
bool Update(ProductGroupModifierBO productGroupModifier);
|
||||
List<ProductGroupModifierBO> GetProductGroupModifiers(Guid productGroupID);
|
||||
List<ProductGroupModifierBO> GetProductGroupModifiers();
|
||||
bool HasCompulsoryModifier(Guid productGroupID);
|
||||
}
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IProductTypeDAO : IDisposable
|
||||
{
|
||||
bool Insert(ProductTypeBO productType);
|
||||
ProductTypeBO GetProductType(Guid productTypeID);
|
||||
ProductTypeBO GetProductType(string name);
|
||||
bool Delete(Guid productTypeID);
|
||||
bool Update(ProductTypeBO productType);
|
||||
List<ProductTypeBO> GetProductTypes();
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,28 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
[DataContract]
|
||||
public class ComplexProductBO
|
||||
{
|
||||
[DataMember]
|
||||
public Guid ComplexProductID { get; set; }
|
||||
[DataMember]
|
||||
public Guid ProductID { get; set; }
|
||||
[DataMember]
|
||||
public int Code { get; set; }
|
||||
[DataMember]
|
||||
public string Name { get; set; }
|
||||
[DataMember]
|
||||
public string Units { get; set; }
|
||||
[DataMember]
|
||||
public decimal SalePrice { get; set; }
|
||||
[DataMember]
|
||||
public Guid SaleTaxID { get; set; }
|
||||
[DataMember]
|
||||
public decimal Quantity { get; set; }
|
||||
[DataMember]
|
||||
public byte[] timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
10
Tanshu.Accounts.Contracts/Data Contracts/ModifierBO.cs
Normal file
10
Tanshu.Accounts.Contracts/Data Contracts/ModifierBO.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public class ModifierBO
|
||||
{
|
||||
public string ModifierID { get; set; }
|
||||
}
|
||||
}
|
||||
@ -15,7 +15,7 @@ namespace Tanshu.Accounts.Contracts
|
||||
[DataMember]
|
||||
public string Units { get; set; }
|
||||
[DataMember]
|
||||
public Guid ProductTypeID { get; set; }
|
||||
public Guid ProductGroupID { get; set; }
|
||||
[DataMember]
|
||||
public Guid SaleLedgerID { get; set; }
|
||||
[DataMember]
|
||||
|
||||
@ -9,6 +9,6 @@ namespace Tanshu.Accounts.Contracts
|
||||
[DataMember]
|
||||
public decimal Price { get; set; }
|
||||
[DataMember]
|
||||
public string Type { get; set; }
|
||||
public string Group { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
13
Tanshu.Accounts.Contracts/Data Contracts/ProductGroupBO.cs
Normal file
13
Tanshu.Accounts.Contracts/Data Contracts/ProductGroupBO.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public class ProductGroupBO
|
||||
{
|
||||
public Guid ProductGroupID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public decimal DiscountLimit { get; set; }
|
||||
public bool IsModifierCompulsory { get; set; }
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public class ProductGroupModifierBO
|
||||
{
|
||||
public virtual int ProductGroupModifierID { get; set; }
|
||||
public virtual Guid? ProductGroupID { get; set; }
|
||||
public virtual string ModifierID { get; set; }
|
||||
public virtual bool ShowAutomatically { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,22 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
[DataContract]
|
||||
public class ProductTypeBO
|
||||
{
|
||||
[DataMember]
|
||||
public Guid ProductTypeID { get; set; }
|
||||
[DataMember]
|
||||
public string Name { get; set; }
|
||||
[DataMember]
|
||||
public decimal DiscountLimit { get; set; }
|
||||
[DataMember]
|
||||
public bool IsForSale { get; set; }
|
||||
[DataMember]
|
||||
public bool IsForPurchae { get; set; }
|
||||
[DataMember]
|
||||
public byte[] timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.ServiceModel;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public interface IProductBI
|
||||
{
|
||||
bool Insert(ProductBO product);
|
||||
bool Update(ProductBO product);
|
||||
bool Delete(Guid productID);
|
||||
ProductBO GetProductFromName(string nameAndUnits);
|
||||
ProductBO GetProduct(Guid productID);
|
||||
decimal GetProductStock(DateTime date, Guid productID, Guid? voucherID);
|
||||
List<ProductDisplayBO> GetProducts();
|
||||
List<ProductDisplaySmallBO> GetFilteredProducts(Dictionary<string, string> filter);
|
||||
List<ProductDisplaySmallBO> GetProducts(Guid productTypeID);
|
||||
}
|
||||
}
|
||||
@ -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 IProductGroupBI
|
||||
{
|
||||
ProductGroupBO GetProductGroup(Guid productGroupID);
|
||||
ProductGroupBO GetProductGroupByName(string name);
|
||||
bool Insert(ProductGroupBO productGroup);
|
||||
bool Update(ProductGroupBO productGroup);
|
||||
List<ProductGroupBO> GetProductGroups();
|
||||
}
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
@ -56,9 +56,11 @@
|
||||
<Compile Include="Communication\Delegates.cs" />
|
||||
<Compile Include="DAOFactory\CheckoutDAO.cs" />
|
||||
<Compile Include="DAOFactory\AdvanceDAO.cs" />
|
||||
<Compile Include="DAOFactory\ProductGroupModifierDAO.cs" />
|
||||
<Compile Include="DAOFactory\ModifierDAO.cs" />
|
||||
<Compile Include="DAOFactory\PrintLocationDAO.cs" />
|
||||
<Compile Include="DAOFactory\FoodTableDAO.cs" />
|
||||
<Compile Include="DAOFactory\ProductTypeDAO.cs" />
|
||||
<Compile Include="DAOFactory\ProductGroupDAO.cs" />
|
||||
<Compile Include="DAOFactory\ManagementDAO.cs" />
|
||||
<Compile Include="DAOFactory\PaymentDAO.cs" />
|
||||
<Compile Include="DAOFactory\SalesAnalysisDAO.cs" />
|
||||
@ -75,8 +77,9 @@
|
||||
<Compile Include="DAOFactory\VoucherDAO.cs" />
|
||||
<Compile Include="Data Contracts\AdvanceBO.cs" />
|
||||
<Compile Include="Data Contracts\AdvanceDisplayBO.cs" />
|
||||
<Compile Include="Data Contracts\ComplexProductBO.cs" />
|
||||
<Compile Include="Data Contracts\BillItemKey.cs" />
|
||||
<Compile Include="Data Contracts\ProductGroupModifierBO.cs" />
|
||||
<Compile Include="Data Contracts\ModifierBO.cs" />
|
||||
<Compile Include="Data Contracts\PrintLocationBO.cs" />
|
||||
<Compile Include="Data Contracts\FoodTableBO.cs" />
|
||||
<Compile Include="Data Contracts\SalarySheetBO.cs" />
|
||||
@ -104,7 +107,7 @@
|
||||
<Compile Include="Data Contracts\ProductBO.cs" />
|
||||
<Compile Include="Data Contracts\ProductDisplayBO.cs" />
|
||||
<Compile Include="Data Contracts\ProductDisplaySmallBO.cs" />
|
||||
<Compile Include="Data Contracts\ProductTypeBO.cs" />
|
||||
<Compile Include="Data Contracts\ProductGroupBO.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Data Contracts\SalesAnalysisBO.cs" />
|
||||
<Compile Include="Data Contracts\SalesBillItemBO.cs" />
|
||||
@ -116,13 +119,12 @@
|
||||
<Compile Include="Service Contracts\CheckoutBI.cs" />
|
||||
<Compile Include="Service Contracts\PrintLocationBI.cs" />
|
||||
<Compile Include="Service Contracts\FoodTableBI.cs" />
|
||||
<Compile Include="Service Contracts\ProductTypesBI.cs" />
|
||||
<Compile Include="Service Contracts\ProductGroupBI.cs" />
|
||||
<Compile Include="Service Contracts\CustomerBI.cs" />
|
||||
<Compile Include="Service Contracts\WaiterBI.cs" />
|
||||
<Compile Include="Service Contracts\LedgerBI.cs" />
|
||||
<Compile Include="Service Contracts\MembershipBI.cs" />
|
||||
<Compile Include="Service Contracts\PaymentBI.cs" />
|
||||
<Compile Include="Service Contracts\ProductBI.cs" />
|
||||
<Compile Include="Service Contracts\SalesAnalysisBI.cs" />
|
||||
<Compile Include="Service Contracts\SaleVoucherBI.cs" />
|
||||
<Compile Include="Service Contracts\UserBI.cs" />
|
||||
|
||||
Reference in New Issue
Block a user