using Muchinfo.MTPClient.Data.Helper;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace Muchinfo.MTPClient.Data.Model.Delivery
{
///
/// 申报点选仓单查询MTP2.0
///
public class DeliveryWhRecieptInfo : INotifyPropertyChanged
{
#region 重写方法
public event PropertyChangedEventHandler PropertyChanged;
private void INotifyPropertyChanged(string name)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
}
#endregion
#region SQL字段
//
#endregion
///
/// 仓单ID
///
[PropertyDisc("wrid")]
public long WRID { get; set; }
///
/// 仓单号
///
[PropertyDisc("wrcode")]
public string WRCode { get; set; }
///
/// 注册数量
///
[PropertyDisc("restqty")]
public decimal Qty { get; set; }
///
/// 冻结数量
///
[PropertyDisc("freezeqty")]
public decimal freezeqty { get; set; }
///
/// 兑付数量
///
[PropertyDisc("payqty")]
public decimal payqty { get; set; }
public decimal EnableQty
{
get
{
return (Qty - freezeqty - payqty);
}
}
///
/// 等级
///
[PropertyDisc("goodlevel")]
public string Rank { get; set; }
///
/// 品牌
///
[PropertyDisc("brand")]
public string Brand { get; set; }
///
/// 交割商品名称
///
[PropertyDisc("DeliveryGoodsName")]
public string DeliveryGoodsName { get; set; }
///
/// 仓库名称
///
[PropertyDisc("warehousename")]
public string WareHouseName { get; set; }
///
/// 商品单位名称:千克
///
[PropertyDisc("GoodsunitName")]
public string GoodsunitName { get; set; }
///
/// 升贴水【仓库+等级+品牌】
///
public decimal PriceMove
{
get
{
return wh_moreprice + level_moreprice + brand_moreprice;
}
}
///
/// 升贴水【仓库】
///
[PropertyDisc("wh_moreprice")]
public decimal wh_moreprice { get; set; }
///
/// 升贴水【等级】
///
[PropertyDisc("level_moreprice")]
public decimal level_moreprice { get; set; }
///
/// 升贴水【品牌】
///
[PropertyDisc("brand_moreprice")]
public decimal brand_moreprice { get; set; }
///
/// 是否选中-自定义字段
///
private bool _isSelected;
///
/// 是否选中-自定义字段
///
public bool IsSelected
{
get { return _isSelected; }
set
{
_isSelected = value;
INotifyPropertyChanged("IsSelected");
}
}
#region 选择数量-自定义
private string _selectQty;
public string SelectQty
{
get { return _selectQty; }
set
{
_selectQty = value;
INotifyPropertyChanged("SelectQty");
}
}
#endregion
///
/// 点选顺序-自定义字段
///
private int _numSort = int.MaxValue;
///
/// 点选顺序-自定义字段
///
public int NumSort
{
get { return _numSort; }
set { _numSort = value; }
}
private bool _isEnabled = true;
///
/// 是否可用-自定义字段
///
public bool IsEnabled
{
get { return _isEnabled; }
set
{
_isEnabled = value;
INotifyPropertyChanged("IsEnabled");
}
}
}
}