Initial Json commit from 2 years ago

This commit is contained in:
Amritanshu
2018-08-24 16:11:33 +05:30
parent 9301d8d07e
commit d3be8d8481
146 changed files with 3709 additions and 7402 deletions
@@ -1,36 +0,0 @@
using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
namespace Tanshu.Accounts.Entities.Auth
{
public class Group
{
public virtual Guid GroupID { get; set; }
public virtual string Name { get; set; }
public virtual IList<RoleGroup> RoleGroups { get; set; }
public virtual IList<UserGroup> UserGroups { get; set; }
public Group()
{
RoleGroups = new List<RoleGroup>();
UserGroups = new List<UserGroup>();
}
}
public class GroupMap : ClassMapping<Group>
{
public GroupMap()
{
Table("Auth_Groups");
Schema("dbo");
Lazy(true);
Id(x => x.GroupID, map => map.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Bag(x => x.RoleGroups, colmap => { colmap.Key(x => x.Column("GroupID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.UserGroups, colmap => { colmap.Key(x => x.Column("GroupID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -1,34 +0,0 @@
using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
namespace Tanshu.Accounts.Entities.Auth
{
public class Role
{
public virtual Guid RoleID { get; set; }
public virtual string Name { get; set; }
public virtual IList<RoleGroup> Groups { get; set; }
public Role()
{
Groups = new List<RoleGroup>();
}
}
public class RoleMap : ClassMapping<Role>
{
public RoleMap()
{
Table("Auth_Roles");
Schema("dbo");
Lazy(true);
Id(x => x.RoleID, map => map.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Bag(x => x.Groups, colmap => { colmap.Key(x => x.Column("RoleID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -1,40 +0,0 @@
using System;
using System.Runtime.Serialization;
using Tanshu.Accounts.Contracts;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
namespace Tanshu.Accounts.Entities.Auth
{
public class RoleGroup
{
public virtual Guid RoleGroupID { get; set; }
public virtual Role Role { get; set; }
public virtual Group Group { get; set; }
}
public class RoleGroupMap : ClassMapping<RoleGroup>
{
public RoleGroupMap()
{
Table("Auth_RoleGroups");
Schema("dbo");
Lazy(true);
Id(x => x.RoleGroupID, map => map.Generator(Generators.GuidComb));
ManyToOne(x => x.Role, map =>
{
map.Column("RoleID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Group, map =>
{
map.Column("GroupID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
}
}
}
@@ -1,48 +0,0 @@
using System;
using System.Collections.Generic;
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
namespace Tanshu.Accounts.Entities.Auth
{
public class User
{
public virtual Guid UserID { get; set; }
public virtual string Name { get; set; }
public virtual string MsrString { get; set; }
public virtual string Password { get; set; }
public virtual bool LockedOut { get; set; }
public virtual IList<UserGroup> UserGroups { get; set; }
public virtual IList<Kot> Kots { get; set; }
public virtual IList<Reprint> Reprints { get; set; }
public virtual IList<Voucher> Vouchers { get; set; }
public User()
{
UserGroups = new List<UserGroup>();
Kots = new List<Kot>();
Reprints = new List<Reprint>();
Vouchers = new List<Voucher>();
}
}
public class UserMap : ClassMapping<User>
{
public UserMap()
{
Table("Auth_Users");
Schema("dbo");
Lazy(true);
Id(x => x.UserID, m => m.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Property(x => x.MsrString);
Property(x => x.Password, m => m.NotNullable(true));
Property(x => x.LockedOut, m => m.NotNullable(true));
Bag(x => x.UserGroups, colmap => { colmap.Key(x => x.Column("UserID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.Kots, colmap => { colmap.Key(x => x.Column("UserID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.Reprints, colmap => { colmap.Key(x => x.Column("UserID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.Vouchers, colmap => { colmap.Key(x => x.Column("UserID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -1,41 +0,0 @@
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.Auth
{
public class UserGroup
{
public virtual Guid UserGroupID { get; set; }
public virtual User User { get; set; }
public virtual Group Group { get; set; }
}
public class UserGroupMap : ClassMapping<UserGroup>
{
public UserGroupMap()
{
Table("Auth_UserGroups");
Schema("dbo");
Lazy(true);
Id(x => x.UserGroupID, map => map.Generator(Generators.GuidComb));
ManyToOne(x => x.User, map =>
{
map.Column("UserID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Group, map =>
{
map.Column("GroupID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
}
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Customer
{
public Guid CustomerID { get; set; }
public string Name { get; set; }
public string Address { get; set; }
public bool Important { get; set; }
public string Phone { get; set; }
public string Remarks { get; set; }
public List<Voucher> Vouchers { get; set; }
}
}
@@ -1,33 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Customer
{
public virtual Guid CustomerID { get; set; }
public virtual string Name { get; set; }
public virtual string Address { get; set; }
public virtual bool Important { get; set; }
public virtual string Phone { get; set; }
public virtual string Remarks { get; set; }
public virtual IList<Voucher> Vouchers { get; set; }
}
public class CustomerMap : ClassMapping<Customer>
{
public CustomerMap()
{
Table("Customers");
Schema("dbo");
Lazy(true);
Id(x => x.CustomerID, map => map.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Property(x => x.Address);
Property(x => x.Important);
Property(x => x.Phone);
Property(x => x.Remarks);
Bag(x => x.Vouchers, colmap => { colmap.Key(x => x.Column("CustomerID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -0,0 +1,16 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class FoodTable
{
public Guid FoodTableID { get; set; }
public string Name { get; set; }
public bool IsActive { get; set; }
public string Location { get; set; }
public string Status { get; set; }
public int SortOrder { get; set; }
public Guid? VoucherID { get; set; }
}
}
@@ -1,32 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
namespace Tanshu.Accounts.Entities
{
public class FoodTable
{
public virtual Guid FoodTableID { get; set; }
public virtual string Name { get; set; }
public virtual bool IsActive { get; set; }
public virtual string Location { get; set; }
public virtual string Status { get; set; }
public virtual int SortOrder { get; set; }
public virtual Guid? VoucherID { get; set; }
}
public class FoodTableMap : ClassMapping<FoodTable>
{
public FoodTableMap()
{
Table("FoodTables");
Schema("dbo");
Lazy(true);
Id(x => x.FoodTableID, map => map.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Property(x => x.IsActive);
Property(x => x.Location);
Property(x => x.Status);
Property(x => x.VoucherID);
Property(x => x.SortOrder);
}
}
}
@@ -0,0 +1,101 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Inventory
{
public Inventory()
{
InventoryModifier = new List<InventoryModifier>();
}
public Guid InventoryID { get; set; }
public Kot Kot { get; set; }
public int SortOrder { get; set; }
public Product Product { get; set; }
public decimal Quantity { get; set; }
public decimal Price { get; set; }
public bool IsHappyHour { get; set; }
public decimal ServiceCharge { get; set; }
public bool IsScTaxable { get; set; }
public decimal ServiceTaxRate { get; set; }
public decimal VatRate { get; set; }
public Tax ServiceTax { get; set; }
public Tax Vat { get; set; }
public decimal Discount { get; set; }
public virtual List<InventoryModifier> InventoryModifier { get; set; }
public virtual string EffectiveName
{
get
{
return IsHappyHour ? string.Format("H H {0}", Product.FullName) : Product.FullName;
}
set { }
}
public virtual decimal EffectivePrice
{
get
{
return IsHappyHour ? 0 : Price;
}
set { }
}
public virtual decimal Amount
{
get
{
if (IsScTaxable)
return Quantity * EffectivePrice * (1 - Discount) * (1 + ServiceCharge) * (1 + ServiceTaxRate + VatRate);
return Quantity * EffectivePrice * (1 - Discount) * (1 + ServiceCharge + ServiceTaxRate + VatRate);
}
set { }
}
public virtual decimal ServiceTaxAmount
{
get
{
if (IsScTaxable)
return Quantity * EffectivePrice * (1 - Discount) * (1 + ServiceCharge) * ServiceTaxRate;
return Quantity * EffectivePrice * (1 - Discount) * ServiceTaxRate;
}
}
public virtual decimal VatAmount
{
get
{
if (IsScTaxable)
return Quantity * EffectivePrice * (1 - Discount) * (1 + ServiceCharge) * VatRate;
return Quantity * EffectivePrice * (1 - Discount) * VatRate;
}
}
public virtual decimal ServiceChargeAmount
{
get
{
return Quantity * EffectivePrice * (1 - Discount) * ServiceCharge;
}
}
public virtual decimal DiscountAmount
{
get
{
return Quantity * EffectivePrice * Discount;
}
}
public virtual decimal Net
{
get
{
return Quantity * EffectivePrice * (1 - Discount);
}
}
}
}
@@ -1,156 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Inventory
{
public Inventory()
{
InventoryModifier = new List<InventoryModifier>();
}
public virtual Guid InventoryID { get; set; }
public virtual Kot Kot { get; set; }
public virtual int SortOrder { get; set; }
public virtual Product Product { get; set; }
public virtual decimal Quantity { get; set; }
public virtual decimal Price { get; set; }
public virtual bool IsHappyHour { get; set; }
public virtual decimal ServiceCharge { get; set; }
public virtual bool IsScTaxable { get; set; }
public virtual decimal ServiceTaxRate { get; set; }
public virtual decimal VatRate { get; set; }
public virtual Tax ServiceTax { get; set; }
public virtual Tax Vat { get; set; }
public virtual decimal Discount { get; set; }
public virtual IList<InventoryModifier> InventoryModifier { get; set; }
public virtual string EffectiveName
{
get
{
return IsHappyHour ? string.Format("H H {0}", Product.FullName) : Product.FullName;
}
set { }
}
public virtual decimal EffectivePrice
{
get
{
return IsHappyHour ? 0 : Price;
}
set { }
}
public virtual decimal Amount
{
get
{
if (IsScTaxable)
return Quantity * EffectivePrice * (1 - Discount) * (1 + ServiceCharge) * (1 + ServiceTaxRate + VatRate);
return Quantity * EffectivePrice * (1 - Discount) * (1 + ServiceCharge + ServiceTaxRate + VatRate);
}
set { }
}
public virtual decimal ServiceTaxAmount
{
get
{
if (IsScTaxable)
return Quantity * EffectivePrice * (1 - Discount) * (1 + ServiceCharge) * ServiceTaxRate;
return Quantity * EffectivePrice * (1 - Discount) * ServiceTaxRate;
}
}
public virtual decimal VatAmount
{
get
{
if (IsScTaxable)
return Quantity * EffectivePrice * (1 - Discount) * (1 + ServiceCharge) * VatRate;
return Quantity * EffectivePrice * (1 - Discount) * VatRate;
}
}
public virtual decimal ServiceChargeAmount
{
get
{
return Quantity * EffectivePrice * (1 - Discount) * ServiceCharge;
}
}
public virtual decimal DiscountAmount
{
get
{
return Quantity * EffectivePrice * Discount;
}
}
public virtual decimal Net
{
get
{
return Quantity * EffectivePrice * (1 - Discount);
}
}
}
public class InventoryMap : ClassMapping<Inventory>
{
public InventoryMap()
{
Table("Inventories");
Schema("dbo");
Lazy(true);
Id(x => x.InventoryID, m => m.Generator(Generators.GuidComb));
Property(x => x.SortOrder, map => map.NotNullable(true));
Property(x => x.Quantity, map => map.NotNullable(true));
Property(x => x.Price, map => map.NotNullable(true));
Property(x => x.IsHappyHour, map => map.NotNullable(true));
Property(x => x.ServiceTaxRate, map => map.NotNullable(true));
Property(x => x.VatRate, map => map.NotNullable(true));
Property(x => x.Discount, map => map.NotNullable(true));
Property(x => x.ServiceCharge, map => map.NotNullable(true));
Property(x => x.IsScTaxable, map => map.NotNullable(true));
Property(x => x.EffectivePrice, map =>
{
map.Formula("CASE WHEN IsHappyHour = 1 THEN 0 ELSE Price END");
});
Property(x => x.Amount, map =>
{
map.Formula("Quantity * CASE WHEN IsHappyHour = 1 THEN 0 ELSE Price END * (1 - Discount) * CASE WHEN IsScTaxable = 1 THEN (1 + ServiceCharge) * (1 + ServiceTaxRate + VatRate) ELSE (1 + ServiceCharge + ServiceTaxRate + VatRate) END");
});
ManyToOne(x => x.ServiceTax, map =>
{
map.Column("ServiceTaxID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Vat, map =>
{
map.Column("VatID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Kot, map =>
{
map.Column("KotID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Product, map =>
{
map.Column("ProductID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
Bag(x => x.InventoryModifier, colmap => { colmap.Key(x => x.Column("InventoryID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -0,0 +1,12 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class InventoryModifier
{
public Guid InventoryModifierID { get; set; }
public Inventory Inventory { get; set; }
public Modifier Modifier { get; set; }
public decimal Price { get; set; }
}
}
@@ -1,39 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
namespace Tanshu.Accounts.Entities
{
public class InventoryModifier
{
public virtual Guid InventoryModifierID { get; set; }
public virtual Inventory Inventory { get; set; }
public virtual Modifier Modifier { get; set; }
}
public class InventoryModifierMap : ClassMapping<InventoryModifier>
{
public InventoryModifierMap()
{
Table("InventoryModifiers");
Schema("dbo");
Lazy(true);
Id(x => x.InventoryModifierID, map => map.Generator(Generators.GuidComb));
ManyToOne(x => x.Inventory, map =>
{
map.Column("InventoryID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Modifier, map =>
{
map.Column("ModifierID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
}
}
}
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Kot
{
public Kot()
{
Inventories = new List<Inventory>();
Printed = false;
}
public Guid KotID { get; set; }
public Voucher Voucher { get; set; }
public int Code { private set; get; }
public FoodTable Table { get; set; }
public bool Printed { get; set; }
public DateTime Date { get; set; }
public User User { get; set; }
public List<Inventory> Inventories { get; set; }
}
}
@@ -1,78 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Entities.Auth;
namespace Tanshu.Accounts.Entities
{
public class Kot
{
public Kot()
{
Inventories = new List<Inventory>();
Printed = false;
}
public virtual Guid KotID { get; set; }
public virtual Voucher Voucher { get; set; }
protected int _code;
public virtual int Code { get { return _code; } }
public virtual FoodTable Table { get; set; }
public virtual bool Printed { get; set; }
public virtual DateTime Date { get; set; }
public virtual User User { get; set; }
public virtual IList<Inventory> Inventories { get; set; }
}
public class KotMap : ClassMapping<Kot>
{
public KotMap()
{
Table("Kots");
Schema("dbo");
Lazy(true);
SqlInsert(@"exec KotInsert ?,?,?,?,?");
Id(x => x.KotID, map => map.Generator(Generators.GuidComb));
Property(x => x.Code, map =>
{
map.NotNullable(true);
map.Unique(true);
map.Generated(PropertyGeneration.Insert);
map.Access(Accessor.NoSetter);
});
Property(x => x.Printed, map => map.NotNullable(true));
Property(x => x.Date, map =>
{
map.NotNullable(true);
map.Generated(PropertyGeneration.Insert);
});
ManyToOne(x => x.Voucher, map =>
{
map.Column("VoucherID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Table, map =>
{
map.Column("TableID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.User, map =>
{
map.Column("UserID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
Bag(x => x.Inventories, colmap =>
{
colmap.Key(x => x.Column("KotID"));
colmap.Inverse(true);
colmap.OrderBy(x => x.SortOrder);
}, map => { map.OneToMany(); });
}
}
}
@@ -0,0 +1,11 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class MachineLocation
{
public Guid MachineLocationID { get; set; }
public string Machine { get; set; }
public string Location { get; set; }
}
}
@@ -1,25 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
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));
}
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Modifier
{
public Guid ModifierID { get; set; }
public string Name { get; set; }
public bool ShowInBill { get; set; }
public decimal Price { get; set; }
public List<ProductGroupModifier> ProductGroupModifiers { get; set; }
public List<InventoryModifier> InventoryModifiers { get; set; }
}
}
@@ -1,38 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Modifier
{
public Modifier()
{
ProductGroupModifiers = new List<ProductGroupModifier>();
InventoryModifiers = new List<InventoryModifier>();
}
public virtual Guid ModifierID { get; set; }
public virtual string Name { get; set; }
public virtual bool ShowInBill { get; set; }
public virtual decimal Price { get; set; }
public virtual IList<ProductGroupModifier> ProductGroupModifiers { get; set; }
public virtual IList<InventoryModifier> InventoryModifiers { get; set; }
}
public class ModifierMap : ClassMapping<Modifier>
{
public ModifierMap()
{
Table("Modifiers");
Schema("dbo");
Lazy(true);
Id(x => x.ModifierID, m => m.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Property(x => x.ShowInBill, map => { map.NotNullable(true); });
Property(x => x.Price, map => { map.NotNullable(true); });
Bag(x => x.InventoryModifiers, colmap => { colmap.Key(x => x.Column("ModifierID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.ProductGroupModifiers, colmap => { colmap.Key(x => x.Column("ModifierID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -0,0 +1,10 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class Permission
{
public Guid PermissionID { get; set; }
public string Name { get; set; }
}
}
@@ -0,0 +1,45 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class PrintLocation
{
public Guid PrintLocationID { get; set; }
public ProductGroup ProductGroup { get; set; }
public string Location { get; set; }
public string Printer { get; set; }
public int Copies { get; set; }
public string CutCode { get; set; }
public override int GetHashCode()
{
return Location.GetHashCode() ^ Printer.GetHashCode() ^ Copies.GetHashCode() ^ CutCode.GetHashCode();
}
public static bool operator ==(PrintLocation a, PrintLocation b)
{
if (object.ReferenceEquals(null, a))
return object.ReferenceEquals(null, b);
if (!(a is PrintLocation))
return false;
if (!(b is PrintLocation))
return false;
return a.Location == b.Location && a.Printer == b.Printer && a.Copies == b.Copies && a.CutCode == b.CutCode;
}
public static bool operator !=(PrintLocation a, PrintLocation b)
{
return !(a == b);
}
public override bool Equals(Object obj)
{
if (obj is PrintLocation)
return (this == (PrintLocation)obj);
else
return false;
}
}
}
@@ -1,67 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
namespace Tanshu.Accounts.Entities
{
public class PrintLocation
{
public virtual Guid PrintLocationID { get; set; }
public virtual ProductGroup ProductGroup { get; set; }
public virtual string Location { get; set; }
public virtual string Printer { get; set; }
public virtual int Copies { get; set; }
public virtual string CutCode { get; set; }
public override int GetHashCode()
{
return Location.GetHashCode() ^ Printer.GetHashCode() ^ Copies.GetHashCode() ^ CutCode.GetHashCode();
}
public static bool operator ==(PrintLocation a, PrintLocation b)
{
if (object.ReferenceEquals(null, a))
return object.ReferenceEquals(null, b);
if (!(a is PrintLocation))
return false;
if (!(b is PrintLocation))
return false;
return a.Location == b.Location && a.Printer == b.Printer && a.Copies == b.Copies && a.CutCode == b.CutCode;
}
public static bool operator !=(PrintLocation a, PrintLocation b)
{
return !(a == b);
}
public override bool Equals(System.Object obj)
{
if (obj is PrintLocation)
return (this == (PrintLocation)obj);
else
return false;
}
}
public class PrintLocationMap : ClassMapping<PrintLocation>
{
public PrintLocationMap()
{
Table("PrintLocations");
Schema("dbo");
Lazy(true);
Id(x => x.PrintLocationID, map => map.Generator(Generators.GuidComb));
Property(x => x.Location);
Property(x => x.Printer);
Property(x => x.Copies);
Property(x => x.CutCode);
ManyToOne(x => x.ProductGroup, map =>
{
map.Column("ProductGroupID");
map.Cascade(Cascade.None);
});
}
}
}
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Product
{
public Guid ProductID { get; set; }
public string Name { get; set; }
public string Units { get; set; }
public ProductGroup ProductGroup { get; set; }
public Tax Vat { get; set; }
public Tax ServiceTax { get; set; }
public decimal ServiceCharge { get; set; }
public bool IsScTaxable { get; set; }
public decimal Price { get; set; }
public bool HasHappyHour { get; set; }
public bool IsActive { get; set; }
public bool IsNotAvailable { get; set; }
public int SortOrder { get; set; }
public decimal Quantity { get; set; }
public List<Inventory> Inventories { get; set; }
public virtual string FullName
{
get
{
return Units == string.Empty ? Name : string.Format("{0} ({1})", Name, Units);
}
set { }
}
}
}
@@ -1,66 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Product
{
public virtual Guid ProductID { get; set; }
public virtual string Name { get; set; }
public virtual string Units { get; set; }
public virtual ProductGroup ProductGroup { get; set; }
public virtual Tax Vat { get; set; }
public virtual Tax ServiceTax { get; set; }
public virtual decimal ServiceCharge { get; set; }
public virtual bool IsScTaxable { get; set; }
public virtual decimal Price { get; set; }
public virtual bool HasHappyHour { get; set; }
public virtual bool IsActive { get; set; }
public virtual bool IsNotAvailable { get; set; }
public virtual int SortOrder { get; set; }
public virtual decimal Quantity { get; set; }
public virtual IList<Inventory> Inventories { get; set; }
public virtual string FullName
{
get
{
return Units == string.Empty ? Name : string.Format("{0} ({1})", Name, Units);
}
set { }
}
}
public class ProductMap : ClassMapping<Product>
{
public ProductMap()
{
Table("Products");
Schema("dbo");
Lazy(true);
Id(x => x.ProductID, map => map.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.UniqueKey("UQ_NameUnits"); });
Property(x => x.Units, map => { map.NotNullable(true); map.UniqueKey("UQ_NameUnits"); });
Property(x => x.ServiceCharge, map => map.NotNullable(true));
Property(x => x.IsScTaxable, map => map.NotNullable(true));
Property(x => x.Price, map => map.NotNullable(true));
Property(x => x.HasHappyHour, map => map.NotNullable(true));
Property(x => x.IsActive, map => map.NotNullable(true));
Property(x => x.IsNotAvailable, map => map.NotNullable(true));
Property(x => x.SortOrder, map => map.NotNullable(true));
Property(x => x.Quantity, map => map.NotNullable(true));
Property(x => x.FullName, map =>
{
map.Formula("CASE WHEN Units = '' THEN Name ELSE Name + ' (' + Units + ')' END");
});
ManyToOne(x => x.ProductGroup, map => { map.Column("ProductGroupID"); map.Cascade(Cascade.None); });
ManyToOne(x => x.ServiceTax, map => { map.Column("ServiceTaxID"); map.Cascade(Cascade.None); });
ManyToOne(x => x.Vat, map => { map.Column("VatID"); map.Cascade(Cascade.None); });
Bag(x => x.Inventories, colmap => { colmap.Key(x => x.Column("ProductID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class ProductGroup
{
public ProductGroup()
{
Products = new List<Product>();
}
public virtual Guid ProductGroupID { get; set; }
public string Name { get; set; }
public decimal DiscountLimit { get; set; }
public bool IsModifierCompulsory { get; set; }
public bool IsActive { get; set; }
public int SortOrder { get; set; }
public string GroupType { get; set; }
public List<Product> Products { get; set; }
public List<PrintLocation> PrintLocations { get; set; }
public List<ProductGroupModifier> ProductGroupModifiers { get; set; }
}
}
@@ -1,47 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class ProductGroup
{
public ProductGroup()
{
Products = new List<Product>();
}
public virtual Guid ProductGroupID { get; set; }
public virtual string Name { get; set; }
public virtual decimal DiscountLimit { get; set; }
public virtual bool IsModifierCompulsory { get; set; }
public virtual bool IsActive { get; set; }
public virtual int SortOrder { get; set; }
public virtual string GroupType { get; set; }
public virtual IList<Product> Products { get; set; }
public virtual IList<PrintLocation> PrintLocations { get; set; }
public virtual IList<ProductGroupModifier> ProductGroupModifiers { get; set; }
}
public class ProductGroupMap : ClassMapping<ProductGroup>
{
public ProductGroupMap()
{
Table("ProductGroups");
Schema("dbo");
Lazy(true);
Id(x => x.ProductGroupID, map => map.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Property(x => x.IsActive, map => map.NotNullable(true));
Property(x => x.SortOrder, map => map.NotNullable(true));
Property(x => x.DiscountLimit, map => map.NotNullable(true));
Property(x => x.IsModifierCompulsory, map => map.NotNullable(true));
Property(x => x.GroupType, map => map.NotNullable(true));
Bag(x => x.PrintLocations, colmap => { colmap.Key(x => x.Column("ProductGroupID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.ProductGroupModifiers, colmap => { colmap.Key(x => x.Column("ProductGroupID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.Products, colmap => { colmap.Key(x => x.Column("ProductGroupID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -0,0 +1,12 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class ProductGroupModifier
{
public Guid ProductGroupModifierID { get; set; }
public ProductGroup ProductGroup { get; set; }
public Modifier Modifier { get; set; }
public bool ShowAutomatically { get; set; }
}
}
@@ -1,34 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
namespace Tanshu.Accounts.Entities
{
public class ProductGroupModifier
{
public virtual Guid ProductGroupModifierID { get; set; }
public virtual ProductGroup ProductGroup { get; set; }
public virtual Modifier Modifier { get; set; }
public virtual bool ShowAutomatically { get; set; }
}
public class ProductGroupModifierMap : ClassMapping<ProductGroupModifier>
{
public ProductGroupModifierMap()
{
Table("ProductGroupModifiers");
Schema("dbo");
Lazy(true);
Id(x => x.ProductGroupModifierID, map => map.Generator(Generators.GuidComb));
Property(x => x.ShowAutomatically, map => map.NotNullable(true));
ManyToOne(x => x.ProductGroup, map =>
{
map.Column("ProductGroupID");
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Modifier, map => { map.Column("ModifierID"); map.Cascade(Cascade.None); });
}
}
}
@@ -0,0 +1,12 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class Reprint
{
public Guid ReprintID { get; set; }
public User User { get; set; }
public DateTime Date { private set; get; }
public Voucher Voucher { get; set; }
}
}
@@ -1,48 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using Tanshu.Accounts.Entities.Auth;
namespace Tanshu.Accounts.Entities
{
public class Reprint
{
public virtual Guid ReprintID { get; set; }
public virtual User User { get; set; }
protected DateTime _date;
public virtual DateTime Date { get { return _date; } }
public virtual Voucher Voucher { get; set; }
}
public class ReprintMap : ClassMapping<Reprint>
{
public ReprintMap()
{
Table("Reprints");
Schema("dbo");
Lazy(true);
SqlInsert(@"exec ReprintInsert ?,?,?");
Id(x => x.ReprintID, map => map.Generator(Generators.GuidComb));
Property(x => x.Date, map =>
{
map.NotNullable(true);
map.Generated(PropertyGeneration.Insert);
map.Access(Accessor.NoSetter);
});
ManyToOne(x => x.User, map =>
{
map.Column("UserID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Voucher, map =>
{
map.Column("VoucherID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
}
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Role
{
public Guid RoleID { get; set; }
public string Name { get; set; }
public List<Permission> Permissions { get; set; }
public Role()
{
Permissions = new List<Permission>();
}
}
}
@@ -0,0 +1,11 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class Setting
{
public Guid SettingID { get; set; }
public string Name { get; set; }
public dynamic Details { get; set; }
}
}
@@ -1,26 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
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));
}
}
}
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Tax
{
public Guid TaxID { get; set; }
public string Name { get; set; }
public decimal Rate { get; set; }
public List<Product> ServiceTaxProducts { get; set; }
public List<Product> VatProducts { get; set; }
}
}
@@ -1,31 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Tax
{
public virtual Guid TaxID { get; set; }
public virtual string Name { get; set; }
public virtual decimal Rate { get; set; }
public virtual IList<Product> ServiceTaxProducts { get; set; }
public virtual IList<Product> VatProducts { get; set; }
}
public class TaxMap : ClassMapping<Tax>
{
public TaxMap()
{
Table("Taxes");
Schema("dbo");
Lazy(true);
Id(x => x.TaxID, map => map.Generator(Generators.GuidComb));
Property(x => x.Name, map => { map.NotNullable(true); map.Unique(true); });
Property(x => x.Rate, map => map.NotNullable(true));
Bag(x => x.ServiceTaxProducts, colmap => { colmap.Key(x => x.Column("ServiceTaxID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.VatProducts, colmap => { colmap.Key(x => x.Column("VatID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class User
{
public Guid UserID { get; set; }
public string Name { get; set; }
public string MsrString { get; set; }
public string Password { get; set; }
public bool LockedOut { get; set; }
public List<Role> Roles { get; set; }
public List<Permission> Permissions { get; set; }
public User()
{
Roles = new List<Role>();
Permissions = new List<Permission>();
}
}
}
@@ -0,0 +1,76 @@
using System;
using System.Collections.Generic;
namespace Tanshu.Accounts.Entities
{
public class Voucher
{
public Voucher()
{
Kots = new List<Kot>();
Settlements = new List<VoucherSettlement>();
}
public Voucher(User user, Customer customer)
: this()
{
this.User = user;
VoucherType = VoucherType.Regular;
Customer = customer;
}
public Voucher(User user, Customer customer, FoodTable table, bool printed, bool isVoid, string narration)
: this(user, customer)
{
Table = table;
Printed = printed;
Void = isVoid;
Narration = narration;
VoucherType = VoucherType.Regular;
}
public Guid VoucherID { get; set; }
public DateTime Date { private set; get; }
public int Pax { get; set; }
public User User { get; set; }
public DateTime CreationDate { private set; get; }
public DateTime LastEditDate { private set; get; }
public int? BillID { private set; get; }
public FoodTable Table { get; set; }
public Customer Customer { get; set; }
public List<VoucherSettlement> Settlements { get; set; }
public string Narration { get; set; }
public bool Void { get; set; }
public string VoidReason { get; set; }
public bool Printed { get; set; }
public VoucherType VoucherType { get; set; }
public int KotID { private set; get; }
public List<Kot> Kots { get; set; }
public List<Reprint> Reprints { get; set; }
public string FullBillID
{
get
{
if (BillID.HasValue)
{
switch (VoucherType)
{
case VoucherType.NoCharge:
return "NC-" + BillID.Value.ToString();
case VoucherType.Staff:
return "ST-" + BillID.Value.ToString();
case VoucherType.TakeAway:
case VoucherType.Regular:
default:
return (BillID.Value / 10000).ToString() + "-" + (BillID.Value % 10000).ToString();
}
}
else
{
return "K-" + KotID.ToString();
}
}
}
}
}
@@ -1,161 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Entities.Auth;
namespace Tanshu.Accounts.Entities
{
public class Voucher
{
public Voucher()
{
Kots = new List<Kot>();
Settlements = new List<VoucherSettlement>();
}
public Voucher(User user, Customer customer)
: this()
{
this.User = user;
VoucherType = VoucherType.Regular;
Customer = customer;
}
public Voucher(User user, Customer customer, FoodTable table, bool printed, bool isVoid, string narration)
: this(user, customer)
{
Table = table;
Printed = printed;
Void = isVoid;
Narration = narration;
VoucherType = VoucherType.Regular;
}
public virtual Guid VoucherID { get; set; }
protected DateTime _date;
public virtual DateTime Date { get { return _date; } }
public virtual int Pax { get; set; }
public virtual User User { get; set; }
protected DateTime _creationDate;
public virtual DateTime CreationDate { get { return _creationDate; } }
protected DateTime _lastEditDate;
public virtual DateTime LastEditDate { get { return _lastEditDate; } }
protected int? _billID;
public virtual int? BillID { get { return _billID; } }
public virtual FoodTable Table { get; set; }
public virtual Customer Customer { get; set; }
public virtual IList<VoucherSettlement> Settlements { get; set; }
public virtual string Narration { get; set; }
public virtual bool Void { get; set; }
public virtual string VoidReason { get; set; }
public virtual bool Printed { get; set; }
public virtual VoucherType VoucherType { get; set; }
protected int _kotID;
public virtual int KotID { get { return _kotID; } }
public virtual IList<Kot> Kots { get; set; }
public virtual IList<Reprint> Reprints { get; set; }
public virtual string FullBillID
{
get
{
if (BillID.HasValue)
{
switch (VoucherType)
{
case VoucherType.NoCharge:
return "NC-" + BillID.Value.ToString();
case VoucherType.Staff:
return "ST-" + BillID.Value.ToString();
case VoucherType.TakeAway:
case VoucherType.Regular:
default:
return (BillID.Value / 10000).ToString() + "-" + (BillID.Value % 10000).ToString();
}
}
else
{
return "K-" + KotID.ToString();
}
}
}
}
public class VoucherMap : ClassMapping<Voucher>
{
public VoucherMap()
{
Table("Vouchers");
Schema("dbo");
Lazy(true);
SqlInsert(@"exec VoucherInsert ?,?,?,?,?,?,?,?,?,?");
SqlUpdate(@"exec VoucherUpdate ?,?,?,?,?,?,?,?,?,?");
Id(x => x.VoucherID, map => map.Generator(Generators.GuidComb));
Property(x => x.Date, map =>
{
map.NotNullable(true);
map.Generated(PropertyGeneration.Always);
map.Access(Accessor.NoSetter);
});
Property(x => x.Pax);
Property(x => x.VoucherType, map =>
{
map.NotNullable(true);
map.UniqueKey("UQ_BillID_VoucherType");
});
Property(x => x.Narration);
Property(x => x.CreationDate, map =>
{
map.NotNullable(true);
map.Generated(PropertyGeneration.Insert);
map.Access(Accessor.NoSetter);
});
Property(x => x.LastEditDate, map =>
{
map.NotNullable(true);
map.Generated(PropertyGeneration.Always);
map.Access(Accessor.NoSetter);
});
Property(x => x.BillID, map =>
{
map.Generated(PropertyGeneration.Always);
map.Access(Accessor.NoSetter);
map.UniqueKey("UQ_BillID_VoucherType");
});
Property(x => x.Void, map => map.NotNullable(true));
Property(x => x.VoidReason);
Property(x => x.Printed, map => map.NotNullable(true));
Property(x => x.KotID, map =>
{
map.NotNullable(true);
map.Generated(PropertyGeneration.Insert);
map.Access(Accessor.NoSetter);
});
ManyToOne(x => x.User, map =>
{
map.Column("UserID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Table, map =>
{
map.Column("TableID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
ManyToOne(x => x.Customer, map =>
{
map.Column("CustomerID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
Bag(x => x.Kots, colmap => { colmap.Key(x => x.Column("VoucherID")); colmap.Inverse(true); colmap.OrderBy(o => o.Date); }, map => { map.OneToMany(); });
Bag(x => x.Reprints, colmap => { colmap.Key(x => x.Column("VoucherID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
Bag(x => x.Settlements, colmap => { colmap.Key(x => x.Column("VoucherID")); colmap.Inverse(true); }, map => { map.OneToMany(); });
}
}
}
@@ -0,0 +1,12 @@
using System;
namespace Tanshu.Accounts.Entities
{
public class VoucherSettlement
{
public Guid VoucherSettlementID { get; set; }
public Voucher Voucher { get; set; }
public SettleOption Settled { get; set; }
public decimal Amount { get; set; }
}
}
@@ -1,34 +0,0 @@
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
using System;
namespace Tanshu.Accounts.Entities
{
public class VoucherSettlement
{
public virtual Guid VoucherSettlementID { get; set; }
public virtual Voucher Voucher { get; set; }
public virtual SettleOption Settled { get; set; }
public virtual decimal Amount { get; set; }
}
public class VoucherSettlementMap : ClassMapping<VoucherSettlement>
{
public VoucherSettlementMap()
{
Table("VoucherSettlements");
Schema("dbo");
Lazy(true);
Id(x => x.VoucherSettlementID, map => map.Generator(Generators.GuidComb));
Property(x => x.Settled, map => map.NotNullable(true));
Property(x => x.Amount, map => map.NotNullable(true));
ManyToOne(x => x.Voucher, map =>
{
map.Column("VoucherID");
map.NotNullable(true);
map.Cascade(Cascade.None);
});
}
}
}
@@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Tanshu.Accounts.Contracts</RootNamespace>
<AssemblyName>Tanshu.Accounts.Contracts</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
@@ -19,6 +19,22 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -28,6 +44,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -36,16 +53,9 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Iesi.Collections, Version=1.0.1.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Include\NHibernate\Iesi.Collections.dll</HintPath>
</Reference>
<Reference Include="NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Include\NHibernate\NHibernate.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
@@ -64,48 +74,49 @@
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Tanshu.Common, Version=2.0.4211.37426, Culture=neutral, PublicKeyToken=fd89fe1d2351f8b5, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Include\Tanshu.Common.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Data Contracts\SettingBO.cs" />
<Compile Include="Data Contracts\MachineLocationBO.cs" />
<Compile Include="Data Contracts\InventoryModifier.cs" />
<Compile Include="Data Contracts\Setting.cs" />
<Compile Include="Data Contracts\MachineLocation.cs" />
<Compile Include="DisplayAttribute.cs" />
<Compile Include="Constants.cs" />
<Compile Include="Data Contracts Display\BillItemKey.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Data Contracts\Auth\UserGroup.cs" />
<Compile Include="Data Contracts\Auth\RoleGroup.cs" />
<Compile Include="Data Contracts\Auth\Group.cs" />
<Compile Include="Data Contracts\Auth\Role.cs" />
<Compile Include="Data Contracts\Role.cs" />
<Compile Include="Data Contracts\Permission.cs" />
<Compile Include="Data Contracts\VoucherType.cs" />
<Compile Include="Data Contracts\ReprintBO.cs" />
<Compile Include="Data Contracts\VoucherSettlementBO.cs" />
<Compile Include="Data Contracts\KotBO.cs" />
<Compile Include="Data Contracts\InventoryModifierBO.cs" />
<Compile Include="Data Contracts\Reprint.cs" />
<Compile Include="Data Contracts\VoucherSettlement.cs" />
<Compile Include="Data Contracts\Kot.cs" />
<Compile Include="Data Contracts\SettleOption.cs" />
<Compile Include="Delegates.cs" />
<Compile Include="Data Contracts\ProductGroupModifierBO.cs" />
<Compile Include="Data Contracts\ModifierBO.cs" />
<Compile Include="Data Contracts\PrintLocationBO.cs" />
<Compile Include="Data Contracts\FoodTableBO.cs" />
<Compile Include="Data Contracts\TaxBO.cs" />
<Compile Include="Data Contracts\CustomerBO.cs" />
<Compile Include="Data Contracts\InventoryBO.cs" />
<Compile Include="Data Contracts\ProductBO.cs" />
<Compile Include="Data Contracts\ProductGroupBO.cs" />
<Compile Include="Data Contracts\ProductGroupModifier.cs" />
<Compile Include="Data Contracts\Modifier.cs" />
<Compile Include="Data Contracts\PrintLocation.cs" />
<Compile Include="Data Contracts\FoodTable.cs" />
<Compile Include="Data Contracts\Tax.cs" />
<Compile Include="Data Contracts\Customer.cs" />
<Compile Include="Data Contracts\Inventory.cs" />
<Compile Include="Data Contracts\Product.cs" />
<Compile Include="Data Contracts\ProductGroup.cs" />
<Compile Include="Helper Functions\StringHelper.cs" />
<Compile Include="Helper Functions\EnumHelper.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Data Contracts Display\SalesAnalysisBO.cs" />
<Compile Include="Data Contracts Display\BillInventoryBO.cs" />
<Compile Include="Data Contracts\Auth\UserBO.cs" />
<Compile Include="Data Contracts\VoucherBO.cs" />
<Compile Include="Data Contracts\User.cs" />
<Compile Include="Data Contracts\Voucher.cs" />
<Compile Include="ValidationException.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.