using GalaSoft.MvvmLight;
using Muchinfo.MTPClient.Data.Enums;
using Muchinfo.MTPClient.Data.Helper;
namespace Muchinfo.MTPClient.Data.Model.Delivery
{
///
/// 交收单
///
public class DeliveryDetail : ObservableObject
{
///
/// 交收申请编号
///
public long DeliveryID { get; set; }
///
/// 商品代码
///
public string GoodsCode { get; set; }
///
/// 交收数量
///
public decimal DeliveryQty { get; set; }
///
/// 交收价格
///
public decimal DeliveryPrice { get; set; }
///
/// 交收货款
///
public decimal DeliveryAmount { get; set; }
///
/// 交收手续费
///
public decimal DeliveryCharge { get; set; }
///
/// 申请时间
///
public string DeliveryTime { get; set; }
///
/// 持仓单编号
///
public string HoldIDs { get; set; }
///
/// 交收冻结
///
public decimal DeliveryFreezon { get; set; }
///
/// 交收方向
///
public string BuyOrSell { get; set; }
///
/// 申请时间
///
public string ApplyTime { get; set; }
///
/// 审核时间
///
public string AuditTime { get; set; }
private QY_DeliveryStatus _auditStatus;
///
/// 交收状态
///
public QY_DeliveryStatus AuditStatus
{ get {
return _auditStatus;
}
set {
Set(() => AuditStatus, ref _auditStatus, value);
RaisePropertyChanged(() => AuditStatusString);
}
}
public string _auditStatusString;
///
/// 交收状态
///
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
{
}
}
}
}