| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- using GalaSoft.MvvmLight;
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- namespace Muchinfo.MTPClient.Data.Model.Delivery
- {
- /// <summary>
- /// 交收单
- /// </summary>
- public class DeliveryDetail : ObservableObject
- {
- /// <summary>
- /// 交收申请编号
- /// </summary>
- public long DeliveryID { get; set; }
- /// <summary>
- /// 商品代码
- /// </summary>
- public string GoodsCode { get; set; }
- /// <summary>
- /// 交收数量
- /// </summary>
- public decimal DeliveryQty { get; set; }
- /// <summary>
- /// 交收价格
- /// </summary>
- public decimal DeliveryPrice { get; set; }
- /// <summary>
- /// 交收货款
- /// </summary>
- public decimal DeliveryAmount { get; set; }
- /// <summary>
- /// 交收手续费
- /// </summary>
- public decimal DeliveryCharge { get; set; }
- /// <summary>
- /// 申请时间
- /// </summary>
- public string DeliveryTime { get; set; }
- /// <summary>
- /// 持仓单编号
- /// </summary>
- public string HoldIDs { get; set; }
- /// <summary>
- /// 交收冻结
- /// </summary>
- public decimal DeliveryFreezon { get; set; }
- /// <summary>
- /// 交收方向
- /// </summary>
- public string BuyOrSell { get; set; }
- /// <summary>
- /// 申请时间
- /// </summary>
- public string ApplyTime { get; set; }
- /// <summary>
- /// 审核时间
- /// </summary>
- public string AuditTime { get; set; }
- private QY_DeliveryStatus _auditStatus;
- /// <summary>
- /// 交收状态
- /// </summary>
- public QY_DeliveryStatus AuditStatus
- { get {
- return _auditStatus;
- }
- set {
- Set(() => AuditStatus, ref _auditStatus, value);
- RaisePropertyChanged(() => AuditStatusString);
- }
- }
- public string _auditStatusString;
- /// <summary>
- /// 交收状态
- /// </summary>
- public string AuditStatusString {
- get
- {
- string result = string.Empty;
- result= AuditStatus.Discription();
- switch (AuditStatus)
- {
- // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_AUDIT_OK:
- // result = "完成交收";
- // break;
- // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_CANCLE:
- // result = "撤销";
- // break;
- // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_EXCEPTION:
- // result = "交割异常";
- // break;
- // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_NOAUDIT:
- // result = "待交收";
- // break;
- // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_TAKE:
- // result = "确认收货";
- // break;
- // default:
- // break;
- // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Noaudit:
- // // result = "未审核";
- // // break;
- // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Audit_ok:
- // // result = "待发货";
- // // break;
- // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Audit_refuse:
- // // result = "审核拒绝";
- // // break;
- // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Deliver:
- // // result = "待收货";
- // // break;
- // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Take:
- // // result = "已收货";
- // // break;
- // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Cancle:
- // // result = "撤消";
- // // break;
- // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Settle:
- // // result = "交割结算";
- // // break;
- default:
- break;
- }
- return result;
- }
- set
- {
- }
- }
-
- }
- }
|