| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Windows;
- namespace Muchinfo.MTPClient.Data.Model.Delivery
- {
- /// <summary>
- /// 交割提货-申请
- /// </summary>
- public class TakaDeliveryGoodsApplyModel : INotifyPropertyChanged
- {
- #region 重写方法
- public event PropertyChangedEventHandler PropertyChanged;
- private void INotifyPropertyChanged(string name)
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(name));
- }
- }
- #endregion
- #region SQL字段
- //<select id="SearchTakaDeliveryGoodsApply" parameterType="java.util.Map"
- // resultType="HashMap">
- // SELECT
- // re.WRID,
- // re.WRCode,
- // re.WRType,
- // re.DeliveryGoodsId,
- // re.Rank,
- // re.Brand,
- // re.GoodsUnitId,
- // re.Spec,
- // re.Qty,
- // re.FreezeQty,
- // re.PayQty,
- // re.StorePlace,
- // re.StoreAmount,
- // re.StoreCharge,
- // re.StoreStart,
- // re.StoreEnd,
- // re.WRAccountId,
- // re.Status,
- // re.WareHouseId,
- // re.personname,
- // re.telphone,
- // re.address,
- // wh.WareHouseName,
- // gs.DeliveryGoodsName
- // from WarehouseReciept re
- // left join WareHouse wh on wh.WareHouseId=re.WareHouseId
- // left join DeliveryGoods gs on gs.DeliveryGoodsId=re.DeliveryGoodsId
- // <where>
- // re.WRAccountId =#{accountId}
- // </where>
- // order by re.CreateTime desc
- // </select>
- #endregion
- #region 仓单表WarehouseReciept
- /// <summary>
- /// 仓单ID
- /// </summary>
- [PropertyDisc("WRID")]
- public long WRID { get; set; }
- /// <summary>
- /// 仓单号
- /// </summary>
- [PropertyDisc("WRCode")]
- public string WRCode { get; set; }
- /// <summary>
- /// 仓单类型
- /// </summary>
- [PropertyDisc("WRType")]
- public eWRType WRType { get; set; }
- /// <summary>
- /// 交割商品ID
- /// </summary>
- [PropertyDisc("DeliveryGoodsId")]
- public long DeliveryGoodsId { get; set; }
- ///// <summary>
- ///// 等级
- ///// </summary>
- //[PropertyDisc("Rank")]
- //public string Rank { get; set; }
- ///// <summary>
- ///// 品牌
- ///// </summary>
- //[PropertyDisc("Brand")]
- //public string Brand { get; set; }
- private string _Brand = "-";
- /// <summary>
- /// 品牌
- /// </summary>
- [PropertyDisc("Brand")]
- public string Brand
- {
- get { return _Brand; }
- set { _Brand = value; }
- }
- private string _Rank = "-";
- /// <summary>
- /// 等级
- /// </summary>
- [PropertyDisc("Rank")]
- public string Rank
- {
- get { return _Rank; }
- set { _Rank = value; }
- }
- /// <summary>
- /// 单位
- /// </summary>
- [PropertyDisc("GoodsUnitId")]
- public long GoodsUnitId { get; set; }
- ///// <summary>
- ///// 规格
- ///// </summary>
- //[PropertyDisc("Spec")]
- //public string Spec { get; set; }
- private string _Spec = "-";
- /// <summary>
- /// 规格
- /// </summary>
- [PropertyDisc("Spec")]
- public string Spec
- {
- get { return _Spec; }
- set { _Spec = value; }
- }
- /// <summary>
- /// 注册数量
- /// </summary>
- [PropertyDisc("Qty")]
- public decimal Qty { get; set; }
- /// <summary>
- /// 冻结数量
- /// </summary>
- [PropertyDisc("FreezeQty")]
- public decimal FreezeQty { get; set; }
- /// <summary>
- /// 兑付数量
- /// </summary>
- [PropertyDisc("PayQty")]
- public decimal PayQty { get; set; }
- public decimal AvlQty
- {
- get
- {
- return Qty - FreezeQty - PayQty;
- }
- }
- /// <summary>
- /// 库位
- /// </summary>
- [PropertyDisc("StorePlace")]
- public long StorePlace { get; set; }
- /// <summary>
- /// 货值金额
- /// </summary>
- [PropertyDisc("StoreAmount")]
- public decimal StoreAmount { get; set; }
- /// <summary>
- /// 仓储费
- /// </summary>
- [PropertyDisc("StoreCharge")]
- public decimal StoreCharge { get; set; }
- /// <summary>
- /// 仓储起始时间
- /// </summary>
- [PropertyDisc("StoreStart")]
- public DateTime StoreStart { get; set; }
- /// <summary>
- /// 仓储结束时间
- /// </summary>
- [PropertyDisc("StoreEnd")]
- public DateTime StoreEnd { get; set; }
- /// <summary>
- /// 存货人Id
- /// </summary>
- [PropertyDisc("WRAccountId")]
- public long WRAccountId { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [PropertyDisc("Status")]
- public eWRStatus Status { get; set; }
- /// <summary>
- /// 存储仓库Id
- /// </summary>
- [PropertyDisc("WareHouseId")]
- public long WareHouseId { get; set; }
- #endregion
- #region 仓库表WareHouse
- /// <summary>
- /// 仓库名称
- /// </summary>
- [PropertyDisc("WareHouseName")]
- public string WareHouseName { get; set; }
- /// <summary>
- /// 倉庫地址
- /// </summary>
- [PropertyDisc("WareHouseAddress")]
- public string WarehouseAddress { get; set; }
- /// <summary>
- /// 仓库地区
- /// </summary>
- [PropertyDisc("AreaAddress")]
- public string AreaAddress { get; set; }
- /// <summary>
- /// 仓库具体地址
- /// </summary>
- [PropertyDisc("detailAddress")]
- public string DetailAddress { get; set; }
- #endregion
- #region 交割商品DeliveryGoods
- /// <summary>
- /// 交割商品名称
- /// </summary>
- [PropertyDisc("DeliveryGoodsName")]
- public string DeliveryGoodsName { get; set; }
- /// <summary>
- /// 交割商品代碼
- /// </summary>
- [PropertyDisc("DeliveryGoodsCode")]
- public string DeliveryGoodsCode { get; set; }
- public string DisplayGoodsCodeName
- {
- get
- {
- return string.Format("{0}/{1}", DeliveryGoodsCode, DeliveryGoodsName);
- }
- }
- /// <summary>
- /// 收货人
- /// </summary>
- [PropertyDisc("PERSONNAME")]
- public string PersonName { get; set; }
- /// <summary>
- /// 联系方式
- /// </summary>
- [PropertyDisc("TELPHONE")]
- public string Telphone { get; set; }
- /// <summary>
- /// 联系方式
- /// </summary>
- [PropertyDisc("ADDRESS")]
- public string Address { get; set; }
- /// <summary>
- /// 提货方式
- /// </summary>
- [PropertyDisc("TAKETYPE")]
- public TakeGoodsWay TakeGoodsWay { get; set; }
- /// <summary>
- /// 证件号
- /// </summary>
- [PropertyDisc("IdCardNum")]
- public string IdCardNum { get; set; }
-
- #endregion
- /// <summary>
- /// 状态-转换显示
- /// </summary>
- public string StatusDisplay
- {
- get
- {
- return Status.Discription();
- }
- }
- /// <summary>
- /// 是否选中-自定义字段
- /// </summary>
- private bool _isSelected;
- /// <summary>
- /// 是否选中-自定义字段
- /// </summary>
- public bool IsSelected
- {
- get { return _isSelected; }
- set
- {
- _isSelected = value;
- INotifyPropertyChanged("IsSelected");
- }
- }
- private bool _isEnabled = true;
- /// <summary>
- /// 是否可用-自定义字段
- /// </summary>
- public bool IsEnabled
- {
- get { return _isEnabled; }
- set
- {
- _isEnabled = value;
- INotifyPropertyChanged("IsEnabled");
- }
-
- }
- /// <summary>
- /// 仓单类型-字符串
- /// </summary>
- public string WRTypeDisplay
- {
- get
- {
- if (WRType != null)
- {
- return WRType.Discription();
- }
- else
- {
- return "-";
- }
-
- }
- }
- /// <summary>
- /// 开始时间
- /// </summary>
- public string StoreStartDisplay
- {
- get
- {
- if (StoreStart != null && StoreStart != DateTime.MinValue)
- {
- return StoreStart.ToString("yyyy-MM-dd HH:mm:ss");
- }
- else
- {
- return "-";
- }
-
- }
- }
- /// <summary>
- /// 结束时间
- /// </summary>
- public string StoreEndDisplay
- {
- get
- {
- if (StoreEnd != null && StoreEnd != DateTime.MinValue)
- {
- return StoreEnd.ToString("yyyy-MM-dd HH:mm:ss");
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 合约单位
- /// </summary>
- public string GoodsUnitIdDisplay { get; set; }
- /// <summary>
- /// 收货人
- /// </summary>
- [PropertyDisc("personname")]
- public string personname { get; set; }
- /// <summary>
- /// 联系电话
- /// </summary>
- [PropertyDisc("telphone")]
- public string telphone { get; set; }
- /// <summary>
- /// 收货地址
- /// </summary>
- [PropertyDisc("address")]
- public string address { get; set; }
- #region 是否可以提货-自定义字段
- private Visibility _canTakeGoods = Visibility.Collapsed;
- /// <summary>
- ///是否可以提货-自定义字段
- /// Changes to that property's value raise the PropertyChanged event.
- /// </summary>
- public Visibility CanTakeGoods
- {
- get
- {
- return _canTakeGoods;
- }
- set
- {
- _canTakeGoods = value;
- INotifyPropertyChanged("CanTakeGoods");
- }
- }
- #endregion
- }
- }
|