Initial Commit

This commit is contained in:
unknown
2010-03-02 23:26:21 +05:30
commit 232a62f8ca
214 changed files with 25010 additions and 0 deletions

View 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);
}
}

View 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();
}
}

View 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);
}
}

View 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);
}
}

View 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();
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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();
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}