d8ecec8bb6
BillInventory Renamed. Refactored Bill to be more usable. Added Bill Detail Report. Added Open Bill and Bill Details Roles. Zero Rate Products have Yellow background Color. Refactored UserBI, FoodTableBI, ModifierBI, PrintLocationBI, ProductBI, ProductGroupBI, TaxBI, UserBI, Cached the Products List. Product and Product Group Form Working.
33 lines
674 B
C#
33 lines
674 B
C#
using NHibernate;
|
|
using NHibernate.SqlCommand;
|
|
using System.Diagnostics;
|
|
|
|
namespace Tanshu.Accounts.SqlDAO
|
|
{
|
|
public static class QueryStore
|
|
{
|
|
private static string query;
|
|
public static string Query
|
|
{
|
|
get
|
|
{
|
|
return query;
|
|
}
|
|
set
|
|
{
|
|
query = value;
|
|
Debug.Write(query);
|
|
}
|
|
}
|
|
}
|
|
|
|
public class NHSQLInterceptor : EmptyInterceptor, IInterceptor
|
|
{
|
|
SqlString IInterceptor.OnPrepareStatement(SqlString sql)
|
|
{
|
|
QueryStore.Query = sql.ToString();
|
|
return sql;
|
|
}
|
|
}
|
|
}
|