DeliveryWhRecieptInfo.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. using Muchinfo.MTPClient.Data.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Text;
  7. namespace Muchinfo.MTPClient.Data.Model.Delivery
  8. {
  9. /// <summary>
  10. /// 申报点选仓单查询MTP2.0
  11. /// </summary>
  12. public class DeliveryWhRecieptInfo : INotifyPropertyChanged
  13. {
  14. #region 重写方法
  15. public event PropertyChangedEventHandler PropertyChanged;
  16. private void INotifyPropertyChanged(string name)
  17. {
  18. if (PropertyChanged != null)
  19. {
  20. PropertyChanged(this, new PropertyChangedEventArgs(name));
  21. }
  22. }
  23. #endregion
  24. #region SQL字段
  25. //<select id="SearchWarehouseRecieptOrder" parameterType="java.util.Map"
  26. // resultType="java.util.Map">
  27. // select e.wrcode,
  28. // w.deliverygoodsid,
  29. // h.warehousename,
  30. // a.separablename,
  31. // h.address,
  32. // g.brand,
  33. // l.brand goodlevel,
  34. // w.level_moreprice,
  35. // w.brand_moreprice,
  36. // w.wh_moreprice,e.restqty
  37. // from exchangehold e
  38. // left join warehousereciept w on e.wrid = w.wrid
  39. // left join warehouse h on
  40. // w.warehouseid = h.warehouseid
  41. // left join tbl_area a on a.areaid=h.areaid
  42. // left join goodsbrand g on g.goodsbrandid = w.goodsbrandid
  43. // left join
  44. // goodslevel l on l.goodslevelid=w.goodslevelid
  45. // <where>
  46. // <if test="goodsid != null and goodsid != ''">
  47. // AND e.goodsid = #{goodsid}
  48. // </if>
  49. // </where>
  50. //</select>
  51. #endregion
  52. /// <summary>
  53. /// 仓单ID
  54. /// </summary>
  55. [PropertyDisc("wrid")]
  56. public long WRID { get; set; }
  57. /// <summary>
  58. /// 仓单号
  59. /// </summary>
  60. [PropertyDisc("wrcode")]
  61. public string WRCode { get; set; }
  62. /// <summary>
  63. /// 注册数量
  64. /// </summary>
  65. [PropertyDisc("restqty")]
  66. public decimal Qty { get; set; }
  67. /// <summary>
  68. /// 冻结数量
  69. /// </summary>
  70. [PropertyDisc("freezeqty")]
  71. public decimal freezeqty { get; set; }
  72. /// <summary>
  73. /// 兑付数量
  74. /// </summary>
  75. [PropertyDisc("payqty")]
  76. public decimal payqty { get; set; }
  77. public decimal EnableQty
  78. {
  79. get
  80. {
  81. return (Qty - freezeqty - payqty);
  82. }
  83. }
  84. /// <summary>
  85. /// 等级
  86. /// </summary>
  87. [PropertyDisc("goodlevel")]
  88. public string Rank { get; set; }
  89. /// <summary>
  90. /// 品牌
  91. /// </summary>
  92. [PropertyDisc("brand")]
  93. public string Brand { get; set; }
  94. /// <summary>
  95. /// 交割商品名称
  96. /// </summary>
  97. [PropertyDisc("DeliveryGoodsName")]
  98. public string DeliveryGoodsName { get; set; }
  99. /// <summary>
  100. /// 仓库名称
  101. /// </summary>
  102. [PropertyDisc("warehousename")]
  103. public string WareHouseName { get; set; }
  104. /// <summary>
  105. /// 商品单位名称:千克
  106. /// </summary>
  107. [PropertyDisc("GoodsunitName")]
  108. public string GoodsunitName { get; set; }
  109. /// <summary>
  110. /// 升贴水【仓库+等级+品牌】
  111. /// </summary>
  112. public decimal PriceMove
  113. {
  114. get
  115. {
  116. return wh_moreprice + level_moreprice + brand_moreprice;
  117. }
  118. }
  119. /// <summary>
  120. /// 升贴水【仓库】
  121. /// </summary>
  122. [PropertyDisc("wh_moreprice")]
  123. public decimal wh_moreprice { get; set; }
  124. /// <summary>
  125. /// 升贴水【等级】
  126. /// </summary>
  127. [PropertyDisc("level_moreprice")]
  128. public decimal level_moreprice { get; set; }
  129. /// <summary>
  130. /// 升贴水【品牌】
  131. /// </summary>
  132. [PropertyDisc("brand_moreprice")]
  133. public decimal brand_moreprice { get; set; }
  134. /// <summary>
  135. /// 是否选中-自定义字段
  136. /// </summary>
  137. private bool _isSelected;
  138. /// <summary>
  139. /// 是否选中-自定义字段
  140. /// </summary>
  141. public bool IsSelected
  142. {
  143. get { return _isSelected; }
  144. set
  145. {
  146. _isSelected = value;
  147. INotifyPropertyChanged("IsSelected");
  148. }
  149. }
  150. #region 选择数量-自定义
  151. private string _selectQty;
  152. public string SelectQty
  153. {
  154. get { return _selectQty; }
  155. set
  156. {
  157. _selectQty = value;
  158. INotifyPropertyChanged("SelectQty");
  159. }
  160. }
  161. #endregion
  162. /// <summary>
  163. /// 点选顺序-自定义字段
  164. /// </summary>
  165. private int _numSort = int.MaxValue;
  166. /// <summary>
  167. /// 点选顺序-自定义字段
  168. /// </summary>
  169. public int NumSort
  170. {
  171. get { return _numSort; }
  172. set { _numSort = value; }
  173. }
  174. private bool _isEnabled = true;
  175. /// <summary>
  176. /// 是否可用-自定义字段
  177. /// </summary>
  178. public bool IsEnabled
  179. {
  180. get { return _isEnabled; }
  181. set
  182. {
  183. _isEnabled = value;
  184. INotifyPropertyChanged("IsEnabled");
  185. }
  186. }
  187. }
  188. }