| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- 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>
- /// 申报点选仓单查询MTP2.0
- /// </summary>
- public class DeliveryWhRecieptInfo : INotifyPropertyChanged
- {
- #region 重写方法
- public event PropertyChangedEventHandler PropertyChanged;
- private void INotifyPropertyChanged(string name)
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(name));
- }
- }
- #endregion
- #region SQL字段
- //<select id="SearchWarehouseRecieptOrder" parameterType="java.util.Map"
- // resultType="java.util.Map">
- // select e.wrcode,
- // w.deliverygoodsid,
- // h.warehousename,
- // a.separablename,
- // h.address,
- // g.brand,
- // l.brand goodlevel,
- // w.level_moreprice,
- // w.brand_moreprice,
- // w.wh_moreprice,e.restqty
- // from exchangehold e
- // left join warehousereciept w on e.wrid = w.wrid
- // left join warehouse h on
- // w.warehouseid = h.warehouseid
- // left join tbl_area a on a.areaid=h.areaid
- // left join goodsbrand g on g.goodsbrandid = w.goodsbrandid
- // left join
- // goodslevel l on l.goodslevelid=w.goodslevelid
- // <where>
- // <if test="goodsid != null and goodsid != ''">
- // AND e.goodsid = #{goodsid}
- // </if>
- // </where>
- //</select>
- #endregion
- /// <summary>
- /// 仓单ID
- /// </summary>
- [PropertyDisc("wrid")]
- public long WRID { get; set; }
- /// <summary>
- /// 仓单号
- /// </summary>
- [PropertyDisc("wrcode")]
- public string WRCode { get; set; }
- /// <summary>
- /// 注册数量
- /// </summary>
- [PropertyDisc("restqty")]
- 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 EnableQty
- {
- get
- {
- return (Qty - freezeqty - payqty);
- }
-
- }
- /// <summary>
- /// 等级
- /// </summary>
- [PropertyDisc("goodlevel")]
- public string Rank { get; set; }
- /// <summary>
- /// 品牌
- /// </summary>
- [PropertyDisc("brand")]
- public string Brand { get; set; }
- /// <summary>
- /// 交割商品名称
- /// </summary>
- [PropertyDisc("DeliveryGoodsName")]
- public string DeliveryGoodsName { get; set; }
- /// <summary>
- /// 仓库名称
- /// </summary>
- [PropertyDisc("warehousename")]
- public string WareHouseName { get; set; }
- /// <summary>
- /// 商品单位名称:千克
- /// </summary>
- [PropertyDisc("GoodsunitName")]
- public string GoodsunitName { get; set; }
- /// <summary>
- /// 升贴水【仓库+等级+品牌】
- /// </summary>
- public decimal PriceMove
- {
- get
- {
- return wh_moreprice + level_moreprice + brand_moreprice;
- }
- }
- /// <summary>
- /// 升贴水【仓库】
- /// </summary>
- [PropertyDisc("wh_moreprice")]
- public decimal wh_moreprice { get; set; }
- /// <summary>
- /// 升贴水【等级】
- /// </summary>
- [PropertyDisc("level_moreprice")]
- public decimal level_moreprice { get; set; }
- /// <summary>
- /// 升贴水【品牌】
- /// </summary>
- [PropertyDisc("brand_moreprice")]
- public decimal brand_moreprice { get; set; }
- /// <summary>
- /// 是否选中-自定义字段
- /// </summary>
- private bool _isSelected;
- /// <summary>
- /// 是否选中-自定义字段
- /// </summary>
- public bool IsSelected
- {
- get { return _isSelected; }
- set
- {
- _isSelected = value;
- INotifyPropertyChanged("IsSelected");
- }
- }
- #region 选择数量-自定义
- private string _selectQty;
- public string SelectQty
- {
- get { return _selectQty; }
- set
- {
- _selectQty = value;
- INotifyPropertyChanged("SelectQty");
- }
- }
- #endregion
- /// <summary>
- /// 点选顺序-自定义字段
- /// </summary>
- private int _numSort = int.MaxValue;
- /// <summary>
- /// 点选顺序-自定义字段
- /// </summary>
- public int NumSort
- {
- get { return _numSort; }
- set { _numSort = value; }
- }
- private bool _isEnabled = true;
- /// <summary>
- /// 是否可用-自定义字段
- /// </summary>
- public bool IsEnabled
- {
- get { return _isEnabled; }
- set
- {
- _isEnabled = value;
- INotifyPropertyChanged("IsEnabled");
- }
- }
- }
- }
|