2010-03-02 17:56:21 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.Serialization;
|
2011-01-30 07:14:05 +00:00
|
|
|
|
using FluentNHibernate.Mapping;
|
|
|
|
|
using Tanshu.Accounts.Entities.Auth;
|
|
|
|
|
using System.Collections.Generic;
|
2011-01-31 20:33:22 +00:00
|
|
|
|
using Tanshu.Accounts.Contracts;
|
2010-03-02 17:56:21 +00:00
|
|
|
|
|
2011-01-30 07:14:05 +00:00
|
|
|
|
namespace Tanshu.Accounts.Entities
|
2010-03-02 17:56:21 +00:00
|
|
|
|
{
|
2011-01-30 07:14:05 +00:00
|
|
|
|
public class Voucher
|
2010-03-02 17:56:21 +00:00
|
|
|
|
{
|
2011-01-30 07:14:05 +00:00
|
|
|
|
public virtual int VoucherID { get; set; }
|
|
|
|
|
public virtual int Code { get; set; }
|
|
|
|
|
public virtual string Ref { get; set; }
|
|
|
|
|
public virtual DateTime? Date { get; set; }
|
|
|
|
|
public virtual string Narration { get; set; }
|
|
|
|
|
public virtual User User { get; set; }
|
|
|
|
|
public virtual DateTime CreationDate { get; set; }
|
|
|
|
|
public virtual DateTime LastEditDate { get; set; }
|
|
|
|
|
public virtual char Type { get; set; }
|
2011-01-31 20:33:22 +00:00
|
|
|
|
[Cascade]
|
2011-01-30 07:14:05 +00:00
|
|
|
|
public virtual IList<Inventory> Inventories { get; set; }
|
|
|
|
|
public Voucher()
|
|
|
|
|
{
|
|
|
|
|
Inventories = new List<Inventory>();
|
|
|
|
|
}
|
2010-03-02 17:56:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|