Initial Commit
This commit is contained in:
14
Tanshu.Accounts.Contracts/DAOFactory/AdvanceDAO.cs
Normal file
14
Tanshu.Accounts.Contracts/DAOFactory/AdvanceDAO.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IAdvanceDAO :IDisposable
|
||||
{
|
||||
void Insert(AdvanceBO advance);
|
||||
List<AdvanceDisplayBO> GetAdvances(DateTime fromDate, DateTime toDate, bool all);
|
||||
void Adjust(Guid advanceID, Guid userID);
|
||||
|
||||
}
|
||||
}
|
||||
29
Tanshu.Accounts.Contracts/DAOFactory/CheckoutDAO.cs
Normal file
29
Tanshu.Accounts.Contracts/DAOFactory/CheckoutDAO.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface ICheckoutDAO :IDisposable
|
||||
{
|
||||
decimal GetPending(ref string info);
|
||||
decimal GetCreditCard(ref string info);
|
||||
decimal GetVoids(ref string info);
|
||||
decimal GetOpenings();
|
||||
decimal GetReceipts();
|
||||
decimal GetPayments();
|
||||
decimal GetAdditionalVoids();
|
||||
decimal GetRetainedOvernight();
|
||||
decimal GetAdvancesReceived();
|
||||
decimal GetAdvancesAdjusted();
|
||||
string GetPaymentString();
|
||||
string GetActiveCashiers();
|
||||
decimal GetNetSales();
|
||||
decimal GetDiscountsBills(ref string info);
|
||||
|
||||
decimal GetOldPending();
|
||||
decimal GetOldReceipts();
|
||||
decimal GetOldVoided();
|
||||
|
||||
}
|
||||
}
|
||||
19
Tanshu.Accounts.Contracts/DAOFactory/CustomerDAO.cs
Normal file
19
Tanshu.Accounts.Contracts/DAOFactory/CustomerDAO.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface ICustomerDAO :IDisposable
|
||||
{
|
||||
void Insert(CustomerBO customer);
|
||||
void Update(CustomerBO customer);
|
||||
void Delete(Guid customerID);
|
||||
|
||||
CustomerBO GetCustomer(Guid customerID);
|
||||
List<CustomerBO> GetFilteredCustomers(Dictionary<string, string> filter);
|
||||
List<LedgerBO> GetCustomerLedgers();
|
||||
List<CustomerBO> GetCustomers();
|
||||
List<CustomerBO> GetCustomers(Guid customerID);
|
||||
}
|
||||
}
|
||||
16
Tanshu.Accounts.Contracts/DAOFactory/InventoryDAO.cs
Normal file
16
Tanshu.Accounts.Contracts/DAOFactory/InventoryDAO.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IInventoryDAO : IDisposable
|
||||
{
|
||||
bool Insert(InventoryBO inventory);
|
||||
bool Update(InventoryBO inventory);
|
||||
bool Delete(Guid voucherID);
|
||||
bool Delete(Guid voucherID, Guid productID);
|
||||
|
||||
List<InventoryDisplayBO> GetInventories(Guid voucherID);
|
||||
}
|
||||
}
|
||||
18
Tanshu.Accounts.Contracts/DAOFactory/LedgerDAO.cs
Normal file
18
Tanshu.Accounts.Contracts/DAOFactory/LedgerDAO.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface ILedgerDAO : IDisposable
|
||||
{
|
||||
bool Insert(LedgerBO ledger);
|
||||
LedgerBO GetLedger(Guid ledgerID);
|
||||
LedgerBO GetLedger(string name);
|
||||
List<LedgerDisplayBO> GetLedgers(char type);
|
||||
bool Delete(Guid ledgerID);
|
||||
bool Update(LedgerBO ledger);
|
||||
List<LedgerDisplayBO> GetLedgers();
|
||||
|
||||
}
|
||||
}
|
||||
19
Tanshu.Accounts.Contracts/DAOFactory/ManagementDAO.cs
Normal file
19
Tanshu.Accounts.Contracts/DAOFactory/ManagementDAO.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IManagementDAO : IDisposable
|
||||
{
|
||||
decimal GetBalance(decimal? tax);
|
||||
List<Guid> GetUpdateBillList(decimal tax, bool voided, bool paid, bool creditCard);
|
||||
decimal Update(Guid voucherID, decimal tax);
|
||||
|
||||
List<PendingBillsBO> GetPaidBills();
|
||||
|
||||
void Reorder(ShowProgessDelegate showProgressDelegate);
|
||||
|
||||
bool MergeData(string sourceDB, string targetDB);
|
||||
}
|
||||
}
|
||||
26
Tanshu.Accounts.Contracts/DAOFactory/MembershipDAO.cs
Normal file
26
Tanshu.Accounts.Contracts/DAOFactory/MembershipDAO.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IMembershipDAO : IDisposable
|
||||
{
|
||||
bool ValidateUser(string name, string password);
|
||||
|
||||
bool IsUserInRole(string username, string roleName);
|
||||
|
||||
bool IsUserInRole(Guid userID, string roleName);
|
||||
|
||||
string[] GetRolesForUser(string username);
|
||||
|
||||
UserBO GetUserFromName(string name);
|
||||
|
||||
string[] GetAllRoles();
|
||||
|
||||
void AddUsersToRoles(string[] usernames, string[] roleNames);
|
||||
|
||||
void RemoveUsersFromRoles(string[] usernames, string[] roleNames);
|
||||
|
||||
bool RoleExists(string roleID);
|
||||
}
|
||||
}
|
||||
13
Tanshu.Accounts.Contracts/DAOFactory/PaymentDAO.cs
Normal file
13
Tanshu.Accounts.Contracts/DAOFactory/PaymentDAO.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IPaymentDAO : IDisposable
|
||||
{
|
||||
void Insert(PaymentBO payment);
|
||||
List<PaymentDisplayBO> GetPayments(Guid? userID, DateTime fromDate, DateTime toDate);
|
||||
void Delete(Guid paymentID);
|
||||
}
|
||||
}
|
||||
26
Tanshu.Accounts.Contracts/DAOFactory/ProductDAO.cs
Normal file
26
Tanshu.Accounts.Contracts/DAOFactory/ProductDAO.cs
Normal file
@ -0,0 +1,26 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
15
Tanshu.Accounts.Contracts/DAOFactory/SaleVoucherDAO.cs
Normal file
15
Tanshu.Accounts.Contracts/DAOFactory/SaleVoucherDAO.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface ISaleVoucherDAO : IDisposable
|
||||
{
|
||||
bool Insert(SaleVoucherBO saleVoucher);
|
||||
bool Update(SaleVoucherBO saleVoucher);
|
||||
void SetAlarm(Guid voucherID, DateTime? alarmTime);
|
||||
void VoidBill(Guid voucherID, string reason);
|
||||
SaleVoucherBO GetVoucherSale(Guid voucherID);
|
||||
}
|
||||
}
|
||||
22
Tanshu.Accounts.Contracts/DAOFactory/SaleVoucherMixDAO.cs
Normal file
22
Tanshu.Accounts.Contracts/DAOFactory/SaleVoucherMixDAO.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface ISaleVoucherMixDAO : IDisposable
|
||||
{
|
||||
SalesBillItemBO GetDefaultSaleBillItem(Guid productID);
|
||||
decimal GetProductDiscountLimit(Guid productID);
|
||||
bool IsBillPrinted(Guid voucherID);
|
||||
|
||||
List<PendingBillsBO> GetPendingBills(PendingType list);
|
||||
Nullable<Guid> GetPendingVoucherID(string tableID);
|
||||
List<InventoryBO> SaleInventory(Dictionary<BillItemKey, SalesBillItemBO>.ValueCollection list, Guid? voucherID);
|
||||
void GetComplexBillInformation(Guid voucherID, Guid complexProductID, ref decimal rate, ref decimal quantity, ref string name);
|
||||
|
||||
void DeclareBillsPaid(Guid userID, List<Guid> billList, bool creditCard);
|
||||
|
||||
void ToggleImportant(Guid voucherID);
|
||||
}
|
||||
}
|
||||
14
Tanshu.Accounts.Contracts/DAOFactory/SalesAnalysisDAO.cs
Normal file
14
Tanshu.Accounts.Contracts/DAOFactory/SalesAnalysisDAO.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface ISalesAnalysisDAO : IDisposable
|
||||
{
|
||||
List<SalesAnalysisBO> GetSalesTaxReturn(DateTime startDate, DateTime finishDate, ref decimal freeSale, ref decimal voids, ref decimal pending, ref decimal net, ref decimal tax);
|
||||
void GetAdditionalInfo(ref decimal freeSale, ref decimal voids, ref decimal pending, ref decimal net, ref decimal tax, DateTime startDate, DateTime finishDate);
|
||||
List<SalesAnalysisDetailBO> GetSaleDetail(DateTime startDate, DateTime finishDate, Guid costCenterID);
|
||||
List<SalesAnalysisBO> GetSale(DateTime startDate, DateTime finishDate);
|
||||
}
|
||||
}
|
||||
11
Tanshu.Accounts.Contracts/DAOFactory/TaxDAO.cs
Normal file
11
Tanshu.Accounts.Contracts/DAOFactory/TaxDAO.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface ITaxDAO : IDisposable
|
||||
{
|
||||
List<TaxBO> GetTaxes();
|
||||
}
|
||||
}
|
||||
21
Tanshu.Accounts.Contracts/DAOFactory/UserDAO.cs
Normal file
21
Tanshu.Accounts.Contracts/DAOFactory/UserDAO.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IUserDAO : IDisposable
|
||||
{
|
||||
UserBO GetUser(Guid userID);
|
||||
List<UserBO> GetUsers();
|
||||
List<UserBO> GetFilteredUsers(Dictionary<string, string> filter);
|
||||
bool UserExists(string userName);
|
||||
bool Insert(UserBO user);
|
||||
|
||||
bool ChangePassword(UserBO userData, string newPassword);
|
||||
|
||||
bool Update(UserBO user);
|
||||
|
||||
bool Delete(Guid userID);
|
||||
}
|
||||
}
|
||||
14
Tanshu.Accounts.Contracts/DAOFactory/VoucherDAO.cs
Normal file
14
Tanshu.Accounts.Contracts/DAOFactory/VoucherDAO.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IVoucherDAO : IDisposable
|
||||
{
|
||||
bool Insert(VoucherBO voucher);
|
||||
VoucherBO GetVoucher(Guid voucherID);
|
||||
bool Delete(Guid voucherID);
|
||||
bool Update(VoucherBO voucher);
|
||||
}
|
||||
}
|
||||
19
Tanshu.Accounts.Contracts/DAOFactory/WaiterDAO.cs
Normal file
19
Tanshu.Accounts.Contracts/DAOFactory/WaiterDAO.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IWaiterDAO : IDisposable
|
||||
{
|
||||
bool Insert(WaiterBO waiter);
|
||||
bool Update(WaiterBO waiter);
|
||||
bool Delete(Guid waiterID);
|
||||
|
||||
WaiterBO GetWaiter(Guid waiterID);
|
||||
WaiterBO GetWaiter(int code);
|
||||
|
||||
List<WaiterBO> GetWaiters();
|
||||
List<WaiterBO> GetFilteredWaiters(Dictionary <string,string> filter);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user