using System; using System.Runtime.Serialization; using FluentNHibernate.Mapping; using Tanshu.Accounts.Entities.Auth; using System.Collections.Generic; using Tanshu.Accounts.Contracts; namespace Tanshu.Accounts.Entities { public class Voucher { public virtual int VoucherID { get; set; } public virtual DateTime? Date { get; set; } public virtual string Narration { get; set; } [NotNull] public virtual User User { get; set; } [NotNull] public virtual DateTime CreationDate { get; set; } [NotNull] public virtual DateTime LastEditDate { get; set; } [NotNull] public virtual string BillID { get; set; } [NotNull] public virtual string TableID { get; set; } [NotNull] public virtual Waiter Waiter { get; set; } [NotNull] public virtual Customer Customer { get; set; } [NotNull] public virtual SettleOption Settled { get; set; } [NotNull] public virtual bool Void { get; set; } [AllowNull] public virtual string VoidReason { get; set; } [NotNull] public virtual bool Printed { get; set; } [NotNull] public virtual string KotID { get; set; } [Cascade] public virtual IList Kots { get; set; } public Voucher() { this.Kots = new List(); } } }