| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2016/12/27 20:20:55
- //Author
- //Description Create
- //----------------------------------------------------------------
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- namespace Muchinfo.MTPClient.Data.Model.Delivery
- {
- public class DeliveryCompleteModel
- {
- //
- //交割单号 DeliveryId
- //申报单号 OrderId
- //对手申报单号 RelationOrderId
- //账号ID AccountID
- //对手账号ID MatchAccountID
- //交割商品Id DeliveryGoodsId
- //成交时间 TradeTime
- //交割均价 DeliveryPrice
- //交割数量 DeliveryQty
- //交割货款 DeliveryAmount
- //手续费 DeliveryCharge
- //创建时间 CreateTime
- //操作员Id OPERATORID
- //买卖方向 Buyorsell
- //交易商品 TradeGoodsid
- //稅款 TAX
- // g.goodscode,
- //g.goodsname,
- //dg.deliverygoodscode,
- //dg.deliverygoodsname,
- //u.accountcode,
- //u.accountname
- /// <summary>
- /// 交割单号
- /// </summary>
- [PropertyDisc("DeliveryId")]
- public long DeliveryId { get; set; }
- /// <summary>
- /// 申报单号
- /// </summary>
- [PropertyDisc("OrderId")]
- public long OrderId { get; set; }
- /// <summary>
- /// 对手 账号
- /// </summary>
- [PropertyDisc("accountcode")]
- public string MatchAccountCode { get; set; }
- /// <summary>
- /// 对手账号名称
- /// </summary>
- [PropertyDisc("accountname")]
- public string MatchAccountName { get; set; }
- /// <summary>
- /// 成交时间
- /// </summary>
- [PropertyDisc("TradeTime")]
- public DateTime TradeTime { get; set; }
- /// <summary>
- /// 交割均价
- /// </summary>
- [PropertyDisc("DeliveryPrice")]
- public decimal DeliveryPrice { get; set; }
- /// <summary>
- /// 交割数量
- /// </summary>
- [PropertyDisc("DeliveryQty")]
- public decimal DeliveryQty { get; set; }
- /// <summary>
- /// 交割货款
- /// </summary>
- [PropertyDisc("DeliveryAmount")]
- public decimal DeliveryAmount { get; set; }
- /// <summary>
- /// 手续费
- /// </summary>
- [PropertyDisc("DeliveryCharge")]
- public decimal DeliveryCharge { get; set; }
- /// <summary>
- /// 买卖方向
- /// </summary>
- [PropertyDisc("Buyorsell")]
- public Direction Buyorsell { get; set; }
- /// <summary>
- /// 交易商品代码
- /// </summary>
- [PropertyDisc("GoodsCode")]
- public string GoodsCode { get; set; }
- /// <summary>
- /// 交易商品名称
- /// </summary>
- [PropertyDisc("GoodsName")]
- public string GoodsName { get; set; }
- /// <summary>
- /// 交割商品名称
- /// </summary>
- [PropertyDisc("DeliveryGoodsName")]
- public string DeliveryGoodsName { get; set; }
- /// <summary>
- /// 交割商品代码
- /// </summary>
- [PropertyDisc("DeliveryGoodsCode")]
- public string DeliveryGoodsCode { get; set; }
- /// <summary>
- /// 交割税款
- /// </summary>
- [PropertyDisc("Tax")]
- public decimal Tax { get; set; }
- public string TaxDisplay
- {
- get
- {
- if (Tax == decimal.Zero || Tax == null || Buyorsell == Direction.Ask)
- {
- return "-";
- }
- else
- {
- return Tax.ToString("f2");
- }
- }
- }
- public string BuyorsellDisplay
- {
- get
- {
- return Buyorsell.Discription();
- }
- }
- }
- }
|