narsil/Tanshu.Accounts.Repository/BusinessLayer/WaiterBI.cs
unknown 964d0a78bf Added Basecode to Product
Added Voucher Type During Printing
Added Discount Report
Fixed Void bill table not getting cleared error
Added PAX to table
Removed Itital Setup button in MainForm as it was not doing anything
2011-12-05 15:11:02 +05:30

33 lines
893 B
C#

using System.Collections.Generic;
using NHibernate;
using Tanshu.Accounts.Entities;
using NHibernate.Criterion;
namespace Tanshu.Accounts.Repository
{
public class WaiterBI : FluentGenericBase<Waiter>
{
public WaiterBI()
: base()
{ }
public WaiterBI(bool beginTransaction)
: base(beginTransaction)
{ }
public WaiterBI(ISession session)
: base(session)
{ }
public WaiterBI(ISession session, bool beginTransaction)
: base(session, beginTransaction)
{ }
public static IList<Waiter> List(Dictionary<string, string> filter)
{
using (var bi = new WaiterBI(false))
return bi.Query()
.WhereRestrictionOn(x => x.Name).IsLike(string.Format("%{0}%", filter["Name"]))
.List();
}
}
}