Inital branch of Bengali Development

This commit is contained in:
unknown
2011-12-05 14:53:02 +05:30
parent 232a62f8ca
commit e2db77ea70
57 changed files with 1721 additions and 1580 deletions

View File

@ -4,9 +4,10 @@ using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IAdvanceDAO :IDisposable
public interface IAdvanceDAO : IDisposable
{
void Insert(AdvanceBO advance);
AdvanceBO Get(Guid advanceID);
List<AdvanceDisplayBO> GetAdvances(DateTime fromDate, DateTime toDate, bool all);
void Adjust(Guid advanceID, Guid userID);

View File

@ -6,9 +6,7 @@ namespace Tanshu.Accounts.DAOFactory
{
public interface ICheckoutDAO :IDisposable
{
decimal GetPending(ref string info);
decimal GetCreditCard(ref string info);
decimal GetVoids(ref string info);
decimal GetDetail(ref string info, PaidStatus paidStatus, string infoLine);
decimal GetOpenings();
decimal GetReceipts();
decimal GetPayments();

View File

@ -10,13 +10,12 @@ namespace Tanshu.Accounts.DAOFactory
decimal GetProductDiscountLimit(Guid productID);
bool IsBillPrinted(Guid voucherID);
List<PendingBillsBO> GetPendingBills(PendingType list);
Nullable<Guid> GetPendingVoucherID(string tableID);
List<PendingBillsBO> GetPendingBills(PendingType list, int floor);
Nullable<Guid> GetPendingVoucherID(string tableID, int floor);
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 DeclareBillsPaid(Guid userID, List<Guid> billList, PaidStatus paidStatus);
void ToggleImportant(Guid voucherID);
decimal Amount(Guid voucherID);
}
}

View File

@ -0,0 +1,12 @@
namespace Tanshu.Accounts.Contracts
{
public enum PaidStatus
{
Pending = 1,
Cash = 2,
CreditCard = 3,
Credit = 4,
Staff = 5,
Void = 6
}
}

View File

@ -3,49 +3,29 @@ using System.Runtime.Serialization;
namespace Tanshu.Accounts.Contracts
{
[DataContract]
public enum PendingType
{
[EnumMember]
Today = 0,
[EnumMember]
Week = 1,
[EnumMember]
All = 2,
[EnumMember]
Important = 4,
[EnumMember]
Alarms = 8
Alarms = 4
}
[DataContract]
public class PendingBillsBO
{
[DataMember]
public Guid voucherID { get; set; }
[DataMember]
public string BillNo { get; set; }
[DataMember]
public string Kot { get; set; }
[DataMember]
public string TableID { get; set; }
[DataMember]
public decimal Amount { get; set; }
[DataMember]
public bool Important { get; set; }
[DataMember]
public bool Alarm { get; set; }
[DataMember]
public DateTime BookingTime { get; set; }
[DataMember]
public DateTime LastEdited { get; set; }
[DataMember]
public string Waiter { get; set; }
[DataMember]
public string Cashier { get; set; }
[DataMember]
public bool Printed { get; set; }
[DataMember]
public Nullable<DateTime> AlarmTime { get; set; }
public DateTime? AlarmTime { get; set; }
public Guid? AdvanceID { get; set; }
}
}

View File

@ -3,34 +3,19 @@ using System.Runtime.Serialization;
namespace Tanshu.Accounts.Contracts
{
[DataContract]
public class SaleVoucherBO : VoucherBO
{
[DataMember]
public int Floor { get; set; }
public string BillID { get; set; }
[DataMember]
public string TableID { get; set; }
[DataMember]
public Guid WaiterID { get; set; }
[DataMember]
public Guid CustomerID { get; set; }
[DataMember]
public bool Paid { get; set; }
[DataMember]
public bool Void { get; set; }
[DataMember]
public Guid? AdvanceID { get; set; }
public PaidStatus PaidStatus { get; set; }
public string VoidReason { get; set; }
[DataMember]
public bool Printed { get; set; }
[DataMember]
public DateTime? Alarm { get; set; }
[DataMember]
public string KotID { get; set; }
[DataMember]
public bool CreditCard { get; set; }
[DataMember]
public bool IsImportant { get; set; }
[DataMember]
public byte[] SaleTimestamp { get; set; }
}
}

View File

@ -22,20 +22,16 @@ namespace Tanshu.Accounts.Contracts
bool GetSaleVoucher(Guid voucherID, ref SaleVoucherBO voucherSale, ref List<InventoryDisplayBO> iList);
[OperationContract]
List<PendingBillsBO> GetPendingBills(PendingType list);
List<PendingBillsBO> GetPendingBills(PendingType list, int floor);
[OperationContract]
Guid? GetPendingVoucherID(string tableID);
Guid? GetPendingVoucherID(string tableID, int floor);
[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);
void DeclareBillsPaid(Guid userID, List<Guid> billList, PaidStatus paidStatus);
}
}

View File

@ -74,6 +74,7 @@
<Compile Include="Data Contracts\AdvanceDisplayBO.cs" />
<Compile Include="Data Contracts\ComplexProductBO.cs" />
<Compile Include="Data Contracts\BillItemKey.cs" />
<Compile Include="Data Contracts\PaidStatusBO.cs" />
<Compile Include="Data Contracts\SalarySheetBO.cs" />
<Compile Include="Data Contracts\SalarySheetDisplayBO.cs" />
<Compile Include="Data Contracts\TaxBO.cs" />

View File

@ -1,5 +0,0 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ProjectFiles</ProjectView>
</PropertyGroup>
</Project>