using Newtonsoft.Json;
using System;
using System.ComponentModel.DataAnnotations;
namespace Dfs.WayneChina.PosModelMini
{
public class PosMop
{
///
/// as a special mop, define its name to `Cash`
///
public const string CASH_MOP_NAME = "Cash";
///
/// as a special mop, define its paymentId to 1
///
public const int CASH_MOP_PAYMENT_ID = 1;
///
/// Unique id of the POS MOP.
///
public Guid Id { get; set; }
///
/// Name of the POS MOP.
///
[Required]
[MaxLength(60)]
public string Name { get; set; }
///
/// Payment ID.
///
[Required]
public int PaymentId { get; set; }
///
/// Gets or sets the datetime when this Mop created and saved into database.
/// normally this time should be automatically set at the saving time (to db).
///
public DateTime CreatedDateTime { get; set; }
///
/// for keep all history item, import this version
///
public Guid ChangesetId { get; set; }
///
/// References the change set.
///
public virtual Changeset Changeset { get; set; }
///
/// Target business unit id.
///
public virtual Guid? TargetBusinessUnitId { get; set; }
///
/// Gets or sets which BusinessUnit this Mop will perform on.
///
public virtual BusinessUnit TargetBusinessUnit { get; set; }
///
/// Display name of the POS MOP.
///
public string DisplayName { get; set; }
}
}