using System; using System.Collections.Generic; using System.Linq; using System.Text; using Muchinfo.MTPClient.Data.Helper; namespace Muchinfo.MTPClient.Data.Model.Account { public class HoldDetail : OrderBase { [PropertyDisc("TradeID")] public long TradeID { get; set; } [PropertyDisc("TradeDate")] public string TradeDate { get; set; } [PropertyDisc("MarketID")] public long MarketID { get; set; } [PropertyDisc("MarketName")] public string MarketName { get; set; } [PropertyDisc("CurrencyID")] public long CurrencyID { get; set; } [PropertyDisc("DecimalPlace")] public int DecimalPlace { get; set; } [PropertyDisc("AccountId")] public long AccountId { get; set; } [PropertyDisc("OpenQty")] public decimal OpenQty { get; set; } [PropertyDisc("HolderQty")] public decimal HolderQty { get; set; } [PropertyDisc("FreezeQty")] public decimal FreezeQty { get; set; } [PropertyDisc("OpenPrice")] public decimal OpenPrice { get; set; } [PropertyDisc("HolderPrice")] public decimal HolderPrice { get; set; } [PropertyDisc("TradeAmount")] public decimal TradeAmount { get; set; } [PropertyDisc("HolderAmount")] public decimal HolderAmount { get; set; } [PropertyDisc("ReleaseAmount")] public decimal ReleaseAmount { get; set; } [PropertyDisc("HolderDays")] public int HolderDays { get; set; } [PropertyDisc("TradeTime")] public DateTime TradeTime { get; set; } [PropertyDisc("TradeType")] public int TradeType { get; set; } [PropertyDisc("InforClosePL2")] public decimal ClosePL2 { get; set; } [PropertyDisc("InforClosePL4")] public decimal ClosePL4 { get; set; } [PropertyDisc("HisTradeDate")] public string HisTradeDate { get; set; } public string OpenPriceDisplay { get { return OpenPrice.ToString(PriceExpFormat); } } public string HolderPriceDisplay { get { return HolderPrice.ToString(PriceExpFormat); } } public string TradeTimeDisplay { get { if (TradeTime != DateTime.MinValue) { return TradeTime.ToString("yyyy-MM-dd HH:mm:ss"); } return "-"; } } } }