| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2016/6/20 17:08:19
- //Author
- //Description Create
- //----------------------------------------------------------------
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- namespace Muchinfo.MTPClient.Data.Model.Sale
- {
- /// <summary>
- /// 配号中签
- /// </summary>
- public class DistributeBallot
- {
- /// <summary>
- /// 委托单号
- /// </summary>
- [PropertyDisc("OrderId")]
- public long OrderId { get; set; }
- /// <summary>
- /// 委托时间
- /// </summary>
- [PropertyDisc("ordertime")]
- public DateTime OrderTime { get; set; }
- public string OrderTimeDisplay
- {
- get
- {
- if (OrderTime == DateTime.MinValue)
- {
- return "-";
- }
- return OrderTime.ToString("yyyy-MM-dd HH:mm:ss");
- }
-
- }
- /// <summary>
- /// 委托数量
- /// </summary>
- [PropertyDisc("orderqty")]
- public decimal OrderQty { get; set; }
- /// <summary>
- /// 买卖方向
- /// </summary>
- [PropertyDisc("BUYORSELL")]
- public Direction Direction { get; set; }
- /// <summary>
- /// 摇号日期
- /// </summary>
- [PropertyDisc("LOTTERYDATE")]
- public DateTime LotteryDate
- {
- get;
- set;
- }
- /// <summary>
- /// 商品名称
- /// </summary>
- [PropertyDisc("GOODSNAME")]
- public string GoodsName { get; set; }
- /// <summary>
- /// 商品代码
- /// </summary>
- [PropertyDisc("GOODSCODE")]
- public string GoodsCode { get; set; }
- /// <summary>
- /// 配号数量
- /// </summary>
- [PropertyDisc("distributecount")]
- public decimal DistributeCount { get; set; }
- /// <summary>
- /// 配号号码
- /// </summary>
- [PropertyDisc("distributestartno")]
- public string DistributestartNo { get; set; }
- /// <summary>
- /// 中签数量【废弃不用】
- /// </summary>
- [PropertyDisc("WINQTY")]
- public decimal WinQty { get; set; }
- /// <summary>
- /// 中签尾号
- /// </summary>
- [PropertyDisc("WINTAILNO")]
- public string WINTAILNO { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [PropertyDisc("STATUS")]
- public int Status { get; set; }
- /// <summary>
- /// 等待配号数量
- /// </summary>
- [PropertyDisc("WAITDISTRIBUTEQTY")]
- public int WAITDISTRIBUTEQTY { get; set; }
- /// <summary>
- /// 概率
- /// </summary>
- [PropertyDisc("Winrate")]
- public double Winrate { get; set; }
- /// <summary>
- /// 商品ID
- /// </summary>
- [PropertyDisc("Goodsid")]
- public int Goodsid { get; set; }
- /// <summary>
- /// 中签数量【Table=>IM_OrderDetail】
- /// </summary>
- [PropertyDisc("publicissuetradeqty")]
- public decimal publicissuetradeqty { get; set; }
-
- public string DirectionDisplay
- {
- get
- {
- return Direction.Discription();
- }
- }
- public string LotteryDateDisplay
- {
- get
- {
- if (LotteryDate != null && LotteryDate!=DateTime.MinValue)
- {
- return LotteryDate.ToString("yyyy-MM-dd HH:mm:ss");
- }
- return "-";
- }
- }
- public string WinTailNODisplay
- {
- get
- {
- if (!string.IsNullOrEmpty(WINTAILNO))
- {
- return WINTAILNO;
- }
-
- return "-";
- }
- }
- public string WinQtyDisplay
- {
- get
- {
- if (Winrate >= 1 || Winrate < 0)
- {
- //"全部中签";
- return Muchinfo.MTPClient.Resources.Client_Resource.Models_AllWin;
- }
- else if (!string.IsNullOrEmpty(WinQty.ToString()))
- {
- return WinQty.ToString();
- }
-
- return "-";
- }
-
- }
- /// <summary>
- /// 中签数量
- /// </summary>
- public string publicissuetradeqtyDisplay
- {
- get
- {
- if (Winrate >= 1 || Winrate < 0)
- {
- //"全部中签";
- return Muchinfo.MTPClient.Resources.Client_Resource.Models_AllWin;
- }
- else if ( publicissuetradeqty>0 )
- {
- return publicissuetradeqty.ToString();
- }
- return "-";
- }
- }
- }
-
- }
|