narsil/Tanshu.Accounts.Repository/MachineLocationBI.cs
tanshu caf9b3106c Feature: Added Machine Locations so that setting the location in the config file is not needed.
Feature: Settings database table added to store string based settings.
         It is right now used to store bill header and footer.
         Hard Coded header/footer removed from file.
Feature: Tax Analysis form created to easily show the tax calculation.
Feature: Management form uses background workers.  Dont' know if it is functional though.
Chore: Reorder Table form moved to masters from sales folder.
Refactor: ManagementBI and SalesAnalysisBI
2016-01-04 10:52:01 +05:30

18 lines
470 B
C#

using NHibernate;
using Tanshu.Accounts.Entities;
using System.Collections.Generic;
namespace Tanshu.Accounts.Repository
{
public class MachineLocationBI : UnitOfWork<MachineLocation>
{
public IList<string> LocationList()
{
const string query = @"select distinct(pl.Location) from PrintLocation pl order by pl.Location";
var hnq = _session.CreateQuery(query);
return hnq.List<string>();
}
}
}