using GalaSoft.MvvmLight;
using Muchinfo.MTPClient.Data.Enums;
using Muchinfo.MTPClient.Data.Helper;
using Muchinfo.MTPClient.Resources;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Muchinfo.MTPClient.Data.Model.Delivery
{
///
/// 仓单表实体
///
public class WarehouseRecieptModel : ViewModelBase
{
#region SQL字段
//
#endregion
///
/// 仓单号
///
[PropertyDisc("WRCode")]
public string WRCode { get; set; }
///
/// 仓单类型
///
[PropertyDisc("WRType")]
public int WRType { get; set; }
///
/// 存货人Id
///
[PropertyDisc("WRAccountId")]
public long WRAccountId { get; set; }
///
/// 交割商品ID
///
[PropertyDisc("DeliveryGoodsId")]
public long DeliveryGoodsId { get; set; }
/////
///// 品牌
/////
//[PropertyDisc("Brand")]
//public string Brand { get; set; }
/////
///// 等级
/////
//[PropertyDisc("Rank")]
//public string Rank { get; set; }
private string _Brand = "-";
///
/// 品牌
///
[PropertyDisc("Brand")]
public string Brand
{
get { return _Brand; }
set { _Brand = value; }
}
private string _Rank = "-";
///
/// 等级
///
[PropertyDisc("Rank")]
public string Rank
{
get { return _Rank; }
set { _Rank = value; }
}
///
/// 存储仓库ID
///
[PropertyDisc("WareHouseId")]
public long WareHouseId { get; set; }
///
/// 注册数量
///
[PropertyDisc("Qty")]
public decimal Qty { get; set; }
///
/// 冻结数量
///
[PropertyDisc("FreezeQty")]
public decimal FreezeQty { get; set; }
///
/// 兑付数量
///
[PropertyDisc("PayQty")]
public decimal PayQty { get; set; }
///
/// 仓储费
///
[PropertyDisc("StoreCharge")]
public decimal StoreCharge { get; set; }
//public string StorePlace { get; set; }
private string _StorePlace = "-";
///
/// 库位
///
[PropertyDisc("StorePlace")]
public string StorePlace
{
get { return _StorePlace; }
set { _StorePlace = value; }
}
/////
///// 规格
/////
//[PropertyDisc("Spec")]
//public string Spec { get; set; }
private string _Spec = "-";
///
/// 规格
///
[PropertyDisc("Spec")]
public string Spec
{
get { return _Spec; }
set { _Spec = value; }
}
///
/// 货值金额
///
[PropertyDisc("StoreAmount")]
public decimal StoreAmount { get; set; }
///
/// 状态
///
[PropertyDisc("Status")]
public int Status { get; set; }
///
/// 交割商品名称
///
[PropertyDisc("DeliveryGoodsName")]
public string DeliveryGoodsName { get; set; }
///
/// 交割商品代码
///
[PropertyDisc("deliverygoodscode")]
public string DeliveryGoodsCode { get; set; }
public string DisplayGoodsCodeName
{
get
{
return string.Format("{0}/{1}", DeliveryGoodsCode, DeliveryGoodsName);
}
}
///
/// 商品单位
///
[PropertyDisc("GoodsUnitId")]
public long GoodsUnitId { get; set; }
///
/// 合约单位
///
//[PropertyDisc("AgreeUnit")]
//public decimal AgreeUnit { get; set; }
///
/// 提货数量
///
[PropertyDisc("storeoutqty")]
public decimal StoreoutQty { get; set; }
// ///
// /// 审核时间
// ///
// [PropertyDisc("AuditTime")]
// public DateTime AuditTime { get; set; }
// private int _takeGoodsDate=-1;
// ///
// /// 提货有效日期
// ///
//[PropertyDisc("TakeGoodsDate")]
// public int TakeGoodsDate
// {
// get { return _takeGoodsDate; }
// set { _takeGoodsDate = value; }
// }
private DateTime _storeOutValidDate=DateTime.MinValue;
///
/// 提货截止日期时间
///
[PropertyDisc("storeOutValidDate")]
public DateTime storeOutValidDate
{
get { return _storeOutValidDate; }
set { _storeOutValidDate = value; }
}
///
/// 出库状态
///
[PropertyDisc("AuditStatus")]
public eAuditStatus AuditStatus { get; set; }
///
/// 合约单位-自定义字段
///
public string GoodsUnitIdDisplay { get; set; }
}
}