| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- using GalaSoft.MvvmLight;
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- using Muchinfo.MTPClient.Resources;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Muchinfo.MTPClient.Data.Model.Delivery
- {
- /// <summary>
- /// 仓单表实体
- /// </summary>
- public class WarehouseRecieptModel : ViewModelBase
- {
- #region SQL字段
- // <select id="QueryTakeGoodsMoreDetail" parameterType="java.util.Map"
- // resultType="HashMap">
- // SELECT wr.WRCode,
- // wr.WRType,
- // wr.WRAccountId,
- // wr.DeliveryGoodsId,
- // wr.Brand,
- // wr.Rank,
- // wr.WareHouseId,
- // wr.Qty,
- // wr.FreezeQty,
- // wr.PayQty,
- // wr.StoreCharge,
- // wr.StorePlace,
- // wr.Spec,
- // wr.StoreAmount,
- // wr.Status,
- // dg.DeliveryGoodsName,
- // dg.GoodsUnitId,
- // dg.AgreeUnit,
- // sd.storeoutqty,
- // os.AuditTime,
- // (select d.parametervalue from DeliveryRule d where d.deliverygoodsid=wr.deliverygoodsid and d.ruleid=2021) TakeGoodsDate
- //from StoreOutRequestDetial sd
- //left join OutStoreRequest os on os.storeoutid =sd.storeoutid
- //left join WarehouseReciept wr
- // on sd.WRId = wr.wrid
- //left join DeliveryGoods dg
- // on dg.DeliveryGoodsId = wr.DeliveryGoodsId
- // <where>
- // sd.STOREOUTID =#{STOREOUTID}
- // </where>
- // </select>
- #endregion
- /// <summary>
- /// 仓单号
- /// </summary>
- [PropertyDisc("WRCode")]
- public string WRCode { get; set; }
- /// <summary>
- /// 仓单类型
- /// </summary>
- [PropertyDisc("WRType")]
- public int WRType { get; set; }
- /// <summary>
- /// 存货人Id
- /// </summary>
- [PropertyDisc("WRAccountId")]
- public long WRAccountId { get; set; }
- /// <summary>
- /// 交割商品ID
- /// </summary>
- [PropertyDisc("DeliveryGoodsId")]
- public long DeliveryGoodsId { get; set; }
- ///// <summary>
- ///// 品牌
- ///// </summary>
- //[PropertyDisc("Brand")]
- //public string Brand { get; set; }
- ///// <summary>
- ///// 等级
- ///// </summary>
- //[PropertyDisc("Rank")]
- //public string Rank { 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>
- /// 存储仓库ID
- /// </summary>
- [PropertyDisc("WareHouseId")]
- public long WareHouseId { get; set; }
- /// <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; }
- /// <summary>
- /// 仓储费
- /// </summary>
- [PropertyDisc("StoreCharge")]
- public decimal StoreCharge { get; set; }
-
- //public string StorePlace { get; set; }
- private string _StorePlace = "-";
- /// <summary>
- /// 库位
- /// </summary>
- [PropertyDisc("StorePlace")]
- public string StorePlace
- {
- get { return _StorePlace; }
- set { _StorePlace = value; }
- }
- ///// <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("StoreAmount")]
- public decimal StoreAmount { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [PropertyDisc("Status")]
- public int Status { get; set; }
- /// <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("GoodsUnitId")]
- public long GoodsUnitId { get; set; }
- /// <summary>
- /// 合约单位
- /// </summary>
- //[PropertyDisc("AgreeUnit")]
- //public decimal AgreeUnit { get; set; }
- /// <summary>
- /// 提货数量
- /// </summary>
- [PropertyDisc("storeoutqty")]
- public decimal StoreoutQty { get; set; }
- // /// <summary>
- // /// 审核时间
- // /// </summary>
- // [PropertyDisc("AuditTime")]
- // public DateTime AuditTime { get; set; }
- // private int _takeGoodsDate=-1;
- // /// <summary>
- // /// 提货有效日期
- // /// </summary>
- //[PropertyDisc("TakeGoodsDate")]
- // public int TakeGoodsDate
- // {
- // get { return _takeGoodsDate; }
- // set { _takeGoodsDate = value; }
- // }
- private DateTime _storeOutValidDate=DateTime.MinValue;
- /// <summary>
- /// 提货截止日期时间
- /// </summary>
- [PropertyDisc("storeOutValidDate")]
- public DateTime storeOutValidDate
- {
- get { return _storeOutValidDate; }
- set { _storeOutValidDate = value; }
- }
- /// <summary>
- /// 出库状态
- /// </summary>
- [PropertyDisc("AuditStatus")]
- public eAuditStatus AuditStatus { get; set; }
-
- /// <summary>
- /// 合约单位-自定义字段
- /// </summary>
- public string GoodsUnitIdDisplay { get; set; }
- }
- }
|