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 { /// /// 交割配对 /// public class DeliveryMatchModel : INotifyPropertyChanged { #region 重写方法 public event PropertyChangedEventHandler PropertyChanged; private void INotifyPropertyChanged(string name) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(name)); } } #endregion #region SQL字段 //[缺少升帖水] //select // wr.WRID, // wr.WRCode, // wr.DeliveryGoodsId, // wr.Qty, // wr.Rank, // wr.Brand, // wr.Status, // wr.WareHouseId, // wh.WareHouseName, // gs.DeliveryGoodsName, // from WarehouseReciept wr // left join WareHouse wh on wh.WareHouseId=wr.WareHouseId // left join DeliveryGoods gs on gs.DeliveryGoodsId==wr.DeliveryGoodsId // // wr.DeliveryGoodsId =#{deliveryGoodsId} // // order by wr.CreateTime desc #endregion #region 仓单表WarehouseReciept /// /// 仓单ID /// [PropertyDisc("WRID")] public long WRID { get; set; } /// /// 仓单号 /// [PropertyDisc("WRCode")] public string WRCode { get; set; } /// /// 交割商品Id /// [PropertyDisc("DeliveryGoodsId")] public long DeliveryGoodsId { get; set; } /// /// 注册数量 /// [PropertyDisc("Qty")] public decimal Qty { get; set; } /// /// 等级 /// [PropertyDisc("Rank")] public string Rank { get; set; } /// /// 品牌 /// [PropertyDisc("Brand")] public string Brand { get; set; } /// /// 仓库ID /// [PropertyDisc("WareHouseId")] public long WareHouseId { get; set; } #endregion #region 交割商品DeliveryGoods /// /// 交割商品名称 /// [PropertyDisc("DeliveryGoodsName")] public long DeliveryGoodsName { get; set; } #endregion #region 仓库表WareHouse /// /// 仓库名称 /// [PropertyDisc("WareHouseName")] public string WareHouseName { get; set; } #endregion /// /// 是否选中-自定义字段 /// private bool _isSelected; /// /// 是否选中-自定义字段 /// public bool IsSelected { get { return _isSelected; } set { _isSelected = value; INotifyPropertyChanged("IsSelected"); } } } }