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,19 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.Data.SqlClient;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface IAdvanceBI
{
[OperationContract]
void Insert(AdvanceBO advance);
[OperationContract]
List<AdvanceDisplayBO> GetAdvances(DateTime fromDate, DateTime toDate, bool all);
[OperationContract]
void Adjust(Guid advanceID, Guid userID);
}
}

View File

@ -0,0 +1,75 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Data.SqlClient;
using System.ServiceModel;
using System.Runtime.Serialization;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface ICheckoutBI
{
#region Properties
[DataMember]
decimal Opening { get; }
[DataMember]
decimal Receipts { get; }
[DataMember]
decimal AdvanceReceipts { get; }
[DataMember]
decimal CCReceipts { get; }
[DataMember]
decimal AdvanceAdjusted { get; }
[DataMember]
decimal CashPayments { get; }
[DataMember]
decimal AdditionalVoids { get; }
[DataMember]
decimal VoidsInSystem { get; }
[DataMember]
decimal PendingBills { get; }
[DataMember]
decimal NetSales { get; }
[DataMember]
decimal ClosingBalance { get; }
[DataMember]
decimal RetainedOvernight { get; }
[DataMember]
decimal CashDeposited { get; } //
[DataMember]
decimal Excess { get; } //
[DataMember]
string Status { get; } //
[DataMember]
string Cashiers { get; } //
[DataMember]
Guid CashierID { get; } //
[DataMember]
string Cashier { get; } //
[DataMember]
DateTime StartDate { get; } //
[DataMember]
DateTime FinishDate { get; } //
[DataMember]
string PendingString { get; }
[DataMember]
string CCString { get; }
[DataMember]
string VoidsString { get; }
[DataMember]
string DiscountString { get; }
[DataMember]
string Manager { get; }
#endregion
[OperationContract]
void Init(Guid cashier, DateTime startDate, DateTime finishDate);
[OperationContract]
void Calculate(decimal cashDeposited, decimal retainedOvernight);
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Data.SqlClient;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface ICustomerBI
{
[OperationContract]
List<LedgerBO> GetCustomerLedgers();
[OperationContract]
CustomerBO GetCustomer(Guid customerID);
[OperationContract]
List<CustomerBO> GetFilteredCustomers(Dictionary<string, string> filter);
[OperationContract]
List<CustomerBO> GetCustomers();
[OperationContract]
List<CustomerBO> GetSingleCustomers(Guid customerID);
[OperationContract]
bool Update(CustomerBO customer);
[OperationContract]
bool Delete(Guid customerID);
[OperationContract]
bool Insert(CustomerBO customer);
}
}

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.Data.SqlClient;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface ILedgerBI
{
[OperationContract]
LedgerBO GetLedger(Guid ledgerID);
[OperationContract]
LedgerBO GetLedgerByName(string name);
[OperationContract]
bool Insert(LedgerBO ledger);
[OperationContract]
bool Update(LedgerBO ledger);
[OperationContract]
List<LedgerDisplayBO> GetLedgers();
[OperationContract]
List<LedgerDisplayBO> GetLedgersOfType(char type);
}
}

View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.ServiceModel;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface IMembershipBI
{
[OperationContract]
bool ValidateUser(string name, string password);
[OperationContract]
void AddUsersToRoles(string[] usernames, string[] roleNames);
[OperationContract]
string[] GetAllRoles();
[OperationContract]
string[] GetRolesForUser(string username);
[OperationContract]
bool IsUserInRole(string username, string roleName);
[OperationContract]
void RemoveUsersFromRoles(string[] usernames, string[] roleNames);
[OperationContract]
UserBO GetUserFromName(string name);
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.Data.SqlClient;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface IPaymentBI
{
[OperationContract]
void Insert(PaymentBO payment);
[OperationContract]
List<PaymentDisplayBO> GetPayments(Guid? userID, DateTime fromDate, DateTime toDate);
[OperationContract]
void Delete(Guid paymentID);
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
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();
}
}

View File

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.ServiceModel;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface ISaleVoucherBI
{
[OperationContract]
SalesBillItemBO GetDefaultSaleBillItem(Guid productID);
[OperationContract]
decimal GetProductDiscountLimit(Guid productID);
[OperationContract]
bool IsBillPrinted(Guid voucherID);
[OperationContract]
bool Insert(SaleVoucherBO saleVoucher, List<InventoryBO> inventory);
[OperationContract]
bool Update(SaleVoucherBO saleVoucher, List<InventoryBO> inventory);
[OperationContract]
bool GetSaleVoucher(Guid voucherID, ref SaleVoucherBO voucherSale, ref List<InventoryDisplayBO> iList);
[OperationContract]
List<PendingBillsBO> GetPendingBills(PendingType list);
[OperationContract]
Guid? GetPendingVoucherID(string tableID);
[OperationContract]
List<InventoryBO> SaleInventory(Dictionary<BillItemKey, SalesBillItemBO>.ValueCollection list, Guid? voucherID);
[OperationContract]
void GetComplexBillInformation(Guid voucherID, Guid complexProductID, ref decimal rate, ref decimal quantity, ref string name);
[OperationContract]
void SetAlarm(Guid voucherID, DateTime? alarmTime);
[OperationContract]
void VoidBill(Guid voucherID, string reason);
[OperationContract]
void DeclareBillsPaid(Guid userID, List<Guid> billList, bool creditCard);
[OperationContract]
void ToggleImportant(Guid voucherID);
}
}

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.ServiceModel;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface ISalesAnalysisBI
{
[OperationContract]
List<SalesAnalysisDetailBO> GetSaleDetail(DateTime startDate, DateTime finishDate, Guid costCenterID);
[OperationContract]
List<SalesAnalysisBO> GetSale(DateTime startDate, DateTime finishDate);
[OperationContract]
void GetAdditionalInfo(ref decimal freeSale, ref decimal voids, ref decimal pending, ref decimal net, ref decimal tax, DateTime startDate, DateTime finishDate);
[OperationContract]
List<SalesAnalysisBO> GetSalesTaxReturn(DateTime startDate, DateTime finishDate, ref decimal freeSale, ref decimal voids, ref decimal pending, ref decimal net, ref decimal tax);
}
}

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.Data.SqlClient;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface IUserBI
{
[OperationContract]
UserBO GetUser(Guid userID);
[OperationContract]
bool ChangePassword(UserBO userData, string newPassword);
[OperationContract]
List<UserBO> GetUsers();
[OperationContract]
bool UserExists(string userName);
[OperationContract]
bool Insert(UserBO user);
[OperationContract]
bool Update(UserBO user);
[OperationContract]
bool Delete(Guid userID);
}
}

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.Data.SqlClient;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface IWaiterBI
{
[OperationContract]
bool Insert(WaiterBO waiter);
[OperationContract]
bool Update(WaiterBO waiter);
[OperationContract]
WaiterBO GetWaiter(Guid waiterID);
[OperationContract]
bool Delete(Guid waiterID);
[OperationContract]
List<WaiterBO> GetWaiters();
}
}