Moved numpad control to Tanshu.Common. Billing feature complete. Delete not working as expected

Signed-off-by: unknown <tanshu@.(none)>
This commit is contained in:
unknown
2011-02-01 02:03:22 +05:30
parent eb05811868
commit 0f323f8fab
64 changed files with 2029 additions and 1382 deletions

View File

@ -2,13 +2,16 @@
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities
{
public class Inventory
{
public virtual int InventoryID { get; set; }
[NotNull]
public virtual Voucher Voucher { get; set; }
[NotNull]
public virtual Product Product { get; set; }
private decimal quantity;
@ -72,6 +75,7 @@ namespace Tanshu.Accounts.Entities
}
[Cascade]
public virtual IList<InventoryModifier> InventoryModifier { get; set; }
decimal? amount;

View File

@ -1,13 +1,16 @@
using System;
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities
{
public class InventoryModifier
{
public virtual int InventoryModifierID { get; set; }
[NotNull]
public virtual Inventory Inventory { get; set; }
[NotNull]
public virtual Modifier Modifier { get; set; }
}
}

View File

@ -1,6 +1,8 @@
using System;
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities
{
@ -9,6 +11,9 @@ namespace Tanshu.Accounts.Entities
public virtual int ModifierID { get; set; }
public virtual string Name { get; set; }
[NotNull]
public virtual IList<ProductGroupModifier> ProductGroupModifiers { get; set; }
public override int GetHashCode()
{
return ModifierID.GetHashCode() ^ Name.GetHashCode();

View File

@ -6,12 +6,12 @@ namespace Tanshu.Accounts.Entities
{
public class PrintLocation
{
public int 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 virtual int 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 bool Equals(System.Object obj)
{

View File

@ -15,8 +15,6 @@ namespace Tanshu.Accounts.Entities
public virtual decimal ServiceCharge { get; set; }
public virtual decimal SalePrice { get; set; }
public virtual bool Discontinued { get; set; }
public virtual decimal MinimumLevel { get; set; }
public virtual decimal MaximumLevel { get; set; }
public virtual int SortOrder { get; set; }
}
}

View File

@ -7,8 +7,8 @@ namespace Tanshu.Accounts.Entities
{
public class SettleOption
{
public int SettleOptionID { get; set; }
public string Name { get; set; }
public virtual int SettleOptionID { get; set; }
public virtual string Name { get; set; }
public override bool Equals(System.Object obj)
{

View File

@ -3,6 +3,7 @@ using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using Tanshu.Accounts.Entities.Auth;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities
{
@ -17,6 +18,7 @@ namespace Tanshu.Accounts.Entities
public virtual DateTime CreationDate { get; set; }
public virtual DateTime LastEditDate { get; set; }
public virtual char Type { get; set; }
[Cascade]
public virtual IList<Inventory> Inventories { get; set; }
public Voucher()
{