Initial Commit
This commit is contained in:
19
Tanshu.Accounts.Contracts/Service Contracts/AdvanceBI.cs
Normal file
19
Tanshu.Accounts.Contracts/Service Contracts/AdvanceBI.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
75
Tanshu.Accounts.Contracts/Service Contracts/CheckoutBI.cs
Normal file
75
Tanshu.Accounts.Contracts/Service Contracts/CheckoutBI.cs
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
31
Tanshu.Accounts.Contracts/Service Contracts/CustomerBI.cs
Normal file
31
Tanshu.Accounts.Contracts/Service Contracts/CustomerBI.cs
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
26
Tanshu.Accounts.Contracts/Service Contracts/LedgerBI.cs
Normal file
26
Tanshu.Accounts.Contracts/Service Contracts/LedgerBI.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
28
Tanshu.Accounts.Contracts/Service Contracts/MembershipBI.cs
Normal file
28
Tanshu.Accounts.Contracts/Service Contracts/MembershipBI.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
20
Tanshu.Accounts.Contracts/Service Contracts/PaymentBI.cs
Normal file
20
Tanshu.Accounts.Contracts/Service Contracts/PaymentBI.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
31
Tanshu.Accounts.Contracts/Service Contracts/ProductBI.cs
Normal file
31
Tanshu.Accounts.Contracts/Service Contracts/ProductBI.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
41
Tanshu.Accounts.Contracts/Service Contracts/SaleVoucherBI.cs
Normal file
41
Tanshu.Accounts.Contracts/Service Contracts/SaleVoucherBI.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
27
Tanshu.Accounts.Contracts/Service Contracts/UserBI.cs
Normal file
27
Tanshu.Accounts.Contracts/Service Contracts/UserBI.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
23
Tanshu.Accounts.Contracts/Service Contracts/WaiterBI.cs
Normal file
23
Tanshu.Accounts.Contracts/Service Contracts/WaiterBI.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user