using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Muchinfo.MTPClient.Data.Model.Delivery
{
///
/// 查询配对明细
///
public class WrPairDetailModel:ViewModelBase
{
private int _RetCode = int.MinValue;
public int RetCode
{
get { return _RetCode; }
set { _RetCode = value; }
}
private long _WrId;
public long WrId
{
get { return _WrId; }
set { _WrId = value; }
}
private string _WrCode;
public string WrCode
{
get { return _WrCode; }
set { _WrCode = value; }
}
private long _DeliveryGoodsId;
public long DeliveryGoodsId
{
get { return _DeliveryGoodsId; }
set { _DeliveryGoodsId = value; }
}
private string _DeliveryGoodsName;
public string DeliveryGoodsName
{
get { return _DeliveryGoodsName; }
set { _DeliveryGoodsName = value; }
}
private double _EnableQty;
public double EnableQty
{
get { return _EnableQty; }
set { _EnableQty = value; }
}
private string _Rank = "";
public string Rank
{
get { return _Rank; }
set { _Rank = value; }
}
private string _Brand = "";
public string Brand
{
get { return _Brand; }
set { _Brand = value; }
}
private string _StorePlace = "";
public string StorePlace
{
get { return _StorePlace; }
set { _StorePlace = value; }
}
private double _DeliveryPriceMove = int.MinValue;
public double DeliveryPriceMove
{
get { return _DeliveryPriceMove; }
set { _DeliveryPriceMove = value; }
}
private long _GoodsUnitId = int.MinValue;
public long GoodsUnitId
{
get { return _GoodsUnitId; }
set { _GoodsUnitId = value; }
}
private long _DeliverySellOrderId = int.MinValue;
public long DeliverySellOrderId
{
get { return _DeliverySellOrderId; }
set { _DeliverySellOrderId = value; }
}
private long _ProvinceId = int.MinValue;
public long ProvinceId
{
get { return _ProvinceId; }
set { _ProvinceId = value; }
}
private string _ProvinceName = "";
public string ProvinceName
{
get { return _ProvinceName; }
set { _ProvinceName = value; }
}
private long _CityId = int.MinValue;
public long CityId
{
get { return _CityId; }
set { _CityId = value; }
}
private string _CityName = "";
public string CityName
{
get { return _CityName; }
set { _CityName = value; }
}
#region 是否选中-自定义字段
private bool _isSelected = false;
///
///是否选中-自定义字段
///
public bool IsSelected
{
get
{
return _isSelected;
}
set
{
Set(() => IsSelected, ref _isSelected, value);
}
}
#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 { Set(() => IsEnabled, ref _isEnabled, value); }
}
private string _isError = "0";
///
/// 当前输入是否错误-控制Border边框
///
public string IsError
{
get
{
return _isError;
}
set
{
Set(() => IsError, ref _isError, value);
}
}
public string DeliveryPriceMoveDisplay
{
get
{
if (DeliveryPriceMove!=null && DeliveryPriceMove == int.MinValue)
{
return "-";
}
else
{
return DeliveryPriceMove.ToString();
}
}
}
///
/// 合约单位-自定义字段
///
public string GoodsUnitIdDisplay { get; set; }
#region 选择数量-自定义
private string _selectQty = string.Empty;
///
/// 选择数量
///
public string SelectQty
{
get
{
return _selectQty;
}
set
{
Set(() => SelectQty, ref _selectQty, value);
}
}
#endregion
}
}