| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Text.RegularExpressions;
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2016/8/5 9:31:32
- //Author
- //Description Create
- //----------------------------------------------------------------
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- using GalaSoft.MvvmLight;
- using System.Windows;
- namespace Muchinfo.MTPClient.Data.Model.Delivery
- {
- /// <summary>
- /// 交割申报查询
- /// </summary>
- public class DeliveryEntrustOrder : ViewModelBase
- {
- /// <summary>
- /// 最小交割手数mtp.2.0 NEW
- /// </summary>
- [PropertyDisc("LimitSum")]
- public long LimitSum { get; set; }
- /// <summary>
- /// 主辅商品比的主手数 mtp.2.0 NEW
- /// </summary>
- [PropertyDisc("XLIMITCONVERSION")]
- public long XlimitConversion { get; set; }
- /// <summary>
- /// 主辅商品比的辅手数 mtp.2.0 NEW
- /// </summary>
- [PropertyDisc("PLIMITCONVERSION")]
- public long PlimitConversion { get; set; }
- /// <summary>
- /// 交易收申请ID
- /// </summary>
- [PropertyDisc("DeliveryOrderId")]
- public long DeliveryOrderId { get; set; }
- /// <summary>
- /// 交收商品ID
- /// </summary>
- [PropertyDisc("DeliveryGoodsId")]
- public uint DeliveryGoodsId { get; set; }
- /// <summary>
- /// 交收商品代码
- /// </summary>
- [PropertyDisc("DeliveryGoodsCode")]
- public string DeliveryGoodsCode { get; set; }
- /// <summary>
- /// 交收商品名称
- /// </summary>
- [PropertyDisc("DeliveryGoodsName")]
- public string DeliveryGoodsName { get; set; }
- /// <summary>
- /// 交收商品数量
- /// </summary>
- [PropertyDisc("DeliveryQty")]
- public decimal DeliveryQty { get; set; }
- /// <summary>
- /// 交割关系-兑换系数
- /// </summary>
- [PropertyDisc("Conversion")]
- public decimal Conversion { get; set; }
- /// <summary>
- /// 冻结保证金
- /// </summary>
- [PropertyDisc("FreezeMargin")]
- public decimal FreezeMargin { get; set; }
-
- /// <summary>
- /// 主商品交易货款/冻结货款
- /// </summary>
- [PropertyDisc("OrderAmount")]
- public decimal OrderAmount { get; set; }
- public string OrderAmountDisplay
- {
- get
- {
- if (OrderAmount != decimal.Zero)
- {
- return OrderAmount.ToString("f2");
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 申报状态
- /// </summary>
- [PropertyDisc("DeliveryOrderStatus")]
- public eDeliveryOrderStatus OrderStatus { get; set; }
- private eOrderFromType _orderFrom = eOrderFromType.Ative;
- /// <summary>
- /// 申报来源:0 客户端,1 管理端
- /// </summary>
- [PropertyDisc("OrderFrom")]
- public eOrderFromType OrderFrom
- {
- get { return _orderFrom; }
- set { _orderFrom = value; }
- }
- /// <summary>
- /// 申报时间
- /// </summary>
- [PropertyDisc("OrderTime")]
- public DateTime OrderTime { get; set; }
- /// <summary>
- /// 申报时间-转换FORMAT
- /// </summary>
- public string OrderTimeDisplay
- {
- get
- {
- return OrderTime == DateTime.MinValue ? "-" : OrderTime.ToString("yyyy-MM-dd HH:mm:ss");
- }
- }
- /// <summary>
- /// 账号
- /// </summary>
- [PropertyDisc("accountid")]
- public ulong accountid { get; set; }
- /// <summary>
- /// 申报人
- /// </summary>
- [PropertyDisc("OperatorId")]
- public ulong OperatorId { get; set; }
- /// <summary>
- /// 审核时间
- /// </summary>
- [PropertyDisc("AuditTime")]
- public DateTime AuditTime { get; set; }
- /// <summary>
- /// 账号
- /// </summary>
- [PropertyDisc("accountname")]
- public string Accountname { get; set; }
- /// <summary>
- /// 申报备注
- /// </summary>
- [PropertyDisc("AuditRemark")]
- public string AuditRemark { get; set; }
- /// <summary>
- /// 商品ID
- /// </summary>
- [PropertyDisc("XGoodsId")]
- public long XGoodsId { get; set; }
- /// <summary>
- /// 交易商代碼
- /// </summary>
- [PropertyDisc("XGoodsCode")]
- public string XGoodsCode { get; set; }
- /// <summary>
- /// 交易商品名称
- /// </summary>
- [PropertyDisc("XGoodsName")]
- public string XGoodsName { get; set; }
- /// <summary>
- /// 交易商品-结算价
- /// </summary>
- [PropertyDisc("XDeliveryPrice")]
- public decimal XDeliveryPrice { get; set; }
- public string XDeliveryPriceDisplay
- {
- get
- {
- if (XDeliveryPrice != decimal.Zero && XDeliveryPrice != 0)
- {
- return XDeliveryPrice.ToString("f2");
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 交易商品-数量
- /// </summary>
- [PropertyDisc("XDeliveryQty")]
- public decimal XDeliveryQty { get; set; }
- /// <summary>
- /// 关联交易商品ID
- /// </summary>
- [PropertyDisc("PGoodsID")]
- public long PGoodsID { get; set; }
- /// <summary>
- /// 关联交易商品1名称
- /// </summary>
- [PropertyDisc("PGoodsName")]
- public string PGoodsName { get; set; }
- /// <summary>
- ///关联交易2 商品代码
- /// </summary>
- [PropertyDisc("PGoodsCode")]
- public string PGoodsCode { get; set; }
- /// <summary>
- /// 关联交易商品数量
- /// </summary>
- [PropertyDisc("PDeliveryQty")]
- public decimal PDeliveryQty { get; set; }
- /// <summary>
- /// 关联交易商品价格
- /// </summary>
- [PropertyDisc("PDeliveryPrice")]
- public decimal PDeliveryPrice { get; set; }
- /// <summary>
- /// 关联交易商品价格- 字符显示=》结算价
- /// </summary>
- public string PDeliveryPriceDisplay
- {
- get
- {
- if (PDeliveryPrice != decimal.Zero && PDeliveryPrice != 0)
- {
- return PDeliveryPrice.ToString("f2");
- }
- else
- {
- return "-";
- }
- }
- }
- [PropertyDisc("PPriceMode")]
- public int PPriceMode { get; set; }
- /// <summary>
- /// 关联交易商品ID2
- /// </summary>
- [PropertyDisc("P2GoodsID")]
- public long P2GoodsID { get; set; }
- /// <summary>
- /// 关联交易商品名称2
- /// </summary>
- [PropertyDisc("P2GoodsName")]
- public string P2GoodsName { get; set; }
- /// <summary>
- ///关联交易 商品代码
- /// </summary>
- [PropertyDisc("P2GoodsCode")]
- public string P2GoodsCode { get; set; }
- /// <summary>
- /// 关联交易商品数量2
- /// </summary>
- [PropertyDisc("P2DeliveryQty")]
- public decimal P2DeliveryQty { get; set; }
- /// <summary>
- /// 关联交易商品价格
- /// </summary>
- [PropertyDisc("P2DeliveryPrice")]
- public decimal P2DeliveryPrice { get; set; }
- /// <summary>
- /// 关联交易商品价格- 字符显示=》结算价
- /// </summary>
- public string P2DeliveryPriceDisplay
- {
- get
- {
- if (P2DeliveryPrice != decimal.Zero && P2DeliveryPrice != 0)
- {
- return P2DeliveryPrice.ToString("f2");
- }
- else
- {
- return "-";
- }
- }
- }
- [PropertyDisc("P2PriceMode")]
- public int P2PriceMode { get; set; }
- #region 是否隐藏- P模式
- private Visibility _isVisibility_RelationMode = Visibility.Visible;
- /// <summary>
- /// 是否隐藏- P模式
- /// </summary>
- public Visibility IsVisibility_RelationModeP
- {
- get
- {
- return _isVisibility_RelationMode;
- }
- set
- {
- Set(() => IsVisibility_RelationModeP, ref _isVisibility_RelationMode, value);
- }
- }
- private Visibility _isVisibility_RelationMode2 = Visibility.Visible;
- /// <summary>
- /// 是否隐藏- P模式
- /// </summary>
- public Visibility IsVisibility_RelationModeP2
- {
- get
- {
- return _isVisibility_RelationMode2;
- }
- set
- {
- Set(() => IsVisibility_RelationModeP2, ref _isVisibility_RelationMode2, value);
- }
- }
- #endregion
- //新加字段20160919
- /// <summary>
- /// 资金模式
- /// </summary>
- [PropertyDisc("moneyMode")]
- public eMoneyMode moneyMode { get; set; }
- /// <summary>
- /// 交割单状态-显示文字
- /// </summary>
- public string OrderStatusDisplay
- {
- get
- {
- return OrderStatus.Discription();
- }
- }
- /// <summary>
- /// 申报来源:0 客户端,1 管理端
- /// </summary>
- public string OrderFromDisplay
- {
- get
- {
- return OrderFrom.Discription();
- }
- }
- /// <summary>
- /// 交割数量/配对成功数量
- /// </summary>
- public string DeliveryQtyDisplay
- {
- get
- {
- if (DeliveryQty != decimal.Zero && DeliveryQty != 0)
- {
- return DeliveryQty.ToString();
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 申报备注
- /// </summary>
- public string AuditRemarkDisplay
- {
- get
- {
- if (AuditRemark != null && AuditRemark != "")
- {
- return AuditRemark.Replace("\n", "").Replace("\r", "");
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 商品名称转换
- /// </summary>
- public string DeliveryGoodsNameDisplay
- {
- get
- {
- return string.Format("{0}/{1}", DeliveryGoodsCode, DeliveryGoodsName);
- }
- }
- public string PGoodsNameDisplay
- {
- get
- {
- return string.Format("{0}/{1}", PGoodsCode, PGoodsName);
- }
- }
- public string P2GoodsNameDisplay
- {
- get
- {
- return string.Format("{0}/{1}", P2GoodsCode, P2GoodsName);
- }
- }
- /// <summary>
- /// 交易商品-合约单位
- /// </summary>
- [PropertyDisc("currentAgreeunit")]
- public decimal currentAgreeunit { get; set; }
- /// <summary>
- /// 交易商品-商品单位
- /// </summary>
- [PropertyDisc("currentGoodsunit")]
- public decimal currentGoodsunit { get; set; }
-
- }
- }
|