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:
@ -9,6 +9,14 @@ namespace Tanshu.Accounts.Contracts
|
||||
public virtual decimal Amount { get; set; }
|
||||
}
|
||||
|
||||
public class TaxAnalysis
|
||||
{
|
||||
public virtual string Name { get; set; }
|
||||
public virtual decimal TaxRate { get; set; }
|
||||
public virtual decimal NetSale { get; set; }
|
||||
public virtual decimal TaxAmount { get; set; }
|
||||
}
|
||||
|
||||
public class SalesAnalysisDetail
|
||||
{
|
||||
public virtual string Product { get; set; }
|
||||
|
||||
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
29
Tanshu.Accounts.Contracts/Data Contracts/SettingBO.cs
Normal file
29
Tanshu.Accounts.Contracts/Data Contracts/SettingBO.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
using NHibernate.Mapping.ByCode.Conformist;
|
||||
using NHibernate.Mapping.ByCode;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Tanshu.Accounts.Entities
|
||||
{
|
||||
public class Setting
|
||||
{
|
||||
public virtual Guid SettingID { get; set; }
|
||||
public virtual string Name { get; set; }
|
||||
public virtual string Details { get; set; }
|
||||
}
|
||||
public class SettingMap : ClassMapping<Setting>
|
||||
{
|
||||
|
||||
public SettingMap()
|
||||
{
|
||||
Table("Settings");
|
||||
Schema("dbo");
|
||||
Lazy(false);
|
||||
Id(x => x.SettingID, map => map.Generator(Generators.GuidComb));
|
||||
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
|
||||
Property(x => x.Details, map => map.NotNullable(true));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -65,6 +65,8 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Data Contracts\SettingBO.cs" />
|
||||
<Compile Include="Data Contracts\MachineLocationBO.cs" />
|
||||
<Compile Include="DisplayAttribute.cs" />
|
||||
<Compile Include="Constants.cs" />
|
||||
<Compile Include="Data Contracts Display\BillItemKey.cs">
|
||||
|
||||
Reference in New Issue
Block a user