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
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using NHibernate.Mapping.ByCode.Conformist;
|
||||
using NHibernate.Mapping.ByCode;
|
||||
|
||||
namespace Tanshu.Accounts.Entities
|
||||
{
|
||||
public class MachineLocation
|
||||
{
|
||||
public virtual Guid MachineLocationID { get; set; }
|
||||
public virtual string Machine { get; set; }
|
||||
public virtual string Location { get; set; }
|
||||
}
|
||||
public class MachineLocationMap : ClassMapping<MachineLocation>
|
||||
{
|
||||
public MachineLocationMap()
|
||||
{
|
||||
Table("MachineLocations");
|
||||
Schema("dbo");
|
||||
Lazy(true);
|
||||
Id(x => x.MachineLocationID, map => map.Generator(Generators.GuidComb));
|
||||
Property(x => x.Machine, map => { map.Unique(true); map.NotNullable(true); });
|
||||
Property(x => x.Location, map => map.NotNullable(true));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user