| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2016/6/17 16:42:21
- //Author
- //Description Create
- //----------------------------------------------------------------
- namespace Muchinfo.MTPClient.Data.Model.Account
- {
- public class PrePostDetail
- {
- /// <summary>
- /// 预埋单号
- /// </summary>
- [PropertyDisc("PreOrderId")]
- public long PreOrderId { get; set; }
-
- /// <summary>
- /// 商品ID
- /// </summary>
- [PropertyDisc("GoodsId")]
- public long GoodsId { get; set; }
- /// <summary>
- /// 下单类型
- /// </summary>
- [PropertyDisc("BuildType")]
- public OpenCloseMode BuildType { get; set; }
- /// <summary>
- /// 取价方式
- /// </summary>
- [PropertyDisc("PRICEMODE")]
- public ePriceMode PRICEMODE { get; set; }
- /// <summary>
- /// 取价方式显示中文
- /// </summary>
- public string PRICEMODEDisplay
- {
- get
- {
- return PRICEMODE.Discription();
- }
- }
- /// <summary>
- /// 触发价格类型
- /// </summary>
- [PropertyDisc("TriggerType")]
- public eTriggerType TriggerType { get; set; }
- /// <summary>
- /// 触发价格
- /// </summary>
- [PropertyDisc("TriggerPrice")]
- public decimal TriggerPrice { get; set; }
- /// <summary>
- /// 止盈价格
- /// </summary>
- [PropertyDisc("SpPrice")]
- public decimal SpPrice { get; set; }
- /// <summary>
- /// 止损价格
- /// </summary>
- [PropertyDisc("SlPrice")]
- public decimal SlPrice { get; set; }
- /// <summary>
- /// 买卖方向
- /// </summary>
- [PropertyDisc("BuyOrSell")]
- public Direction BuyOrSell { get; set; }
- /// <summary>
- /// 允许成交偏差范围
- /// </summary>
- [PropertyDisc("AllowTradeSub")]
- public long AllowTradeSub { get; set; }
- /// <summary>
- /// 有效类型
- /// </summary>
- [PropertyDisc("ValidType")]
- public ExpirationType ValidType { get; set; }
- /// <summary>
- /// 有效时间
- /// </summary>
- [PropertyDisc("ValidTime")]
- public DateTime ValidTime { get; set; }
- /// <summary>
- /// 操作类型
- /// </summary>
- [PropertyDisc("OperateType")]
- public eOrderOperateType OperateType { get; set; }
- /// <summary>
- /// 操作员账号ID
- /// </summary>
- [PropertyDisc("OperatorId")]
- public long OperatorId { get; set; }
- /// <summary>
- /// 预埋单状态
- /// </summary>
- [PropertyDisc("OrderStatus")]
- public PrepostStatus OrderStatus { get; set; }
- /// <summary>
- /// 商品编号
- /// </summary>
- [PropertyDisc("goodscode")]
- public string goodscode { get; set; }
- /// <summary>
- /// 商品名称
- /// </summary>
- [PropertyDisc("goodsname")]
- public string goodsname { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [PropertyDisc("Remark")]
- public string Remark { get; set; }
- /// <summary>
- /// 委托价格
- /// </summary>
- [PropertyDisc("orderprice")]
- public decimal orderprice { get; set; }
- /// <summary>
- /// 委托价格-转换控制
- /// </summary>
- public string orderpriceDisplay
- {
- get
- {
- if (BuildType != OpenCloseMode.BUILDTYPE_CLOSE && PRICEMODE != ePriceMode.PRICEMODE_MARKET)
- {
- return orderprice.ToString();
- }
- else
- {
- return "-";
- }
-
- }
- }
- /// <summary>
- /// 竞价委托价格-转换控制
- /// </summary>
- public string Bid_OrderpriceDisplay
- {
- get
- {
- if (PRICEMODE!=ePriceMode.PRICEMODE_MARKET)
- {
- return orderprice.ToString();
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 委托数量
- /// </summary>
- [PropertyDisc("orderqty")]
- public decimal orderqty { get; set; }
- /// <summary>
- /// 委托时间
- /// </summary>
- [PropertyDisc("ClientOrderTime")]
- public DateTime ClientOrderTime { get; set; }
- public string OrderStatusStr
- {
- get
- {
- return OrderStatus.Discription();
- }
- }
- public string BuildTypeStr
- {
- get { return BuildType.Discription(); }
- }
- public string TriggerTypeStr
- {
- get { return TriggerType.Discription(); }
- }
- public string TriggerPriceDisplay
- {
- get
- {
- return TriggerTypeStr + " " + TriggerPrice.ToString();
- }
- }
- public string BuyOrSellStr
- {
- get { return BuyOrSell.Discription(); }
- }
- public string ValidTypeStr
- {
- get { return ValidType.Discription(); }
- }
- public string OperateTypeStr
- {
- get { return OperateType.Discription(); }
- }
- /// <summary>
- /// 是否可撤单
- /// </summary>
- public bool IsCanCancel
- {
- get
- {
- return OrderStatus==PrepostStatus.PREPOST_STATUS_MARKET;
- }
- }
- }
- }
|