| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- 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
- {
- /// <summary>
- /// 交割配对
- /// </summary>
- 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
- // <where>
- // wr.DeliveryGoodsId =#{deliveryGoodsId}
- // </where>
- // order by wr.CreateTime desc
- #endregion
- #region 仓单表WarehouseReciept
- /// <summary>
- /// 仓单ID
- /// </summary>
- [PropertyDisc("WRID")]
- public long WRID { get; set; }
- /// <summary>
- /// 仓单号
- /// </summary>
- [PropertyDisc("WRCode")]
- public string WRCode { get; set; }
- /// <summary>
- /// 交割商品Id
- /// </summary>
- [PropertyDisc("DeliveryGoodsId")]
- public long DeliveryGoodsId { get; set; }
- /// <summary>
- /// 注册数量
- /// </summary>
- [PropertyDisc("Qty")]
- public decimal Qty { get; set; }
- /// <summary>
- /// 等级
- /// </summary>
- [PropertyDisc("Rank")]
- public string Rank { get; set; }
- /// <summary>
- /// 品牌
- /// </summary>
- [PropertyDisc("Brand")]
- public string Brand { get; set; }
- /// <summary>
- /// 仓库ID
- /// </summary>
- [PropertyDisc("WareHouseId")]
- public long WareHouseId { get; set; }
- #endregion
- #region 交割商品DeliveryGoods
- /// <summary>
- /// 交割商品名称
- /// </summary>
- [PropertyDisc("DeliveryGoodsName")]
- public long DeliveryGoodsName { get; set; }
-
- #endregion
- #region 仓库表WareHouse
- /// <summary>
- /// 仓库名称
- /// </summary>
- [PropertyDisc("WareHouseName")]
- public string WareHouseName { get; set; }
- #endregion
- /// <summary>
- /// 是否选中-自定义字段
- /// </summary>
- private bool _isSelected;
- /// <summary>
- /// 是否选中-自定义字段
- /// </summary>
- public bool IsSelected
- {
- get { return _isSelected; }
- set
- {
- _isSelected = value;
- INotifyPropertyChanged("IsSelected");
- }
- }
-
- }
- }
|