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
///
/// 交割单号
///
[PropertyDisc("DeliveryId")]
public long DeliveryId { get; set; }
///
/// 申报单号
///
[PropertyDisc("OrderId")]
public long OrderId { get; set; }
///
/// 对手 账号
///
[PropertyDisc("accountcode")]
public string MatchAccountCode { get; set; }
///
/// 对手账号名称
///
[PropertyDisc("accountname")]
public string MatchAccountName { get; set; }
///
/// 成交时间
///
[PropertyDisc("TradeTime")]
public DateTime TradeTime { get; set; }
///
/// 交割均价
///
[PropertyDisc("DeliveryPrice")]
public decimal DeliveryPrice { get; set; }
///
/// 交割数量
///
[PropertyDisc("DeliveryQty")]
public decimal DeliveryQty { get; set; }
///
/// 交割货款
///
[PropertyDisc("DeliveryAmount")]
public decimal DeliveryAmount { get; set; }
///
/// 手续费
///
[PropertyDisc("DeliveryCharge")]
public decimal DeliveryCharge { get; set; }
///
/// 买卖方向
///
[PropertyDisc("Buyorsell")]
public Direction Buyorsell { get; set; }
///
/// 交易商品代码
///
[PropertyDisc("GoodsCode")]
public string GoodsCode { get; set; }
///
/// 交易商品名称
///
[PropertyDisc("GoodsName")]
public string GoodsName { get; set; }
///
/// 交割商品名称
///
[PropertyDisc("DeliveryGoodsName")]
public string DeliveryGoodsName { get; set; }
///
/// 交割商品代码
///
[PropertyDisc("DeliveryGoodsCode")]
public string DeliveryGoodsCode { get; set; }
///
/// 交割税款
///
[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();
}
}
}
}