CmmWeightRecordEntity.cs 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using Core.Mes.Client.Comm.Attribute;
  7. namespace Core.StlMes.Client.Mcp.Mch.Mcms.entity
  8. {
  9. /// <summary>
  10. /// 数据库表CMM_WEIGHT_RECORD所对应的实体类(生成工具:代码生成工具3.0)
  11. /// 作者:朱少波 时间:2020-11-10
  12. /// </summary>
  13. public class CmmWeightRecordEntity
  14. {
  15. /// <summary>
  16. /// 称重记录流水号
  17. /// </summary>
  18. private string recordNo = "";
  19. /// <summary>
  20. /// 检斤时间
  21. /// </summary>
  22. private string recordDate = "";
  23. /// <summary>
  24. /// 检斤人
  25. /// </summary>
  26. private string recoder = "";
  27. /// <summary>
  28. /// 车牌号
  29. /// </summary>
  30. private string carNo = "";
  31. /// <summary>
  32. /// 过磅类型 101- 空车过皮 102-钢坯采购 103-钢坯采购 104-采购辅料 105-修复返厂 106-设备采购 107-其他内转 108-内转钢管 109-内转钢坯 201- 配车单称重 202-废料销售 203-修复出厂 204-其他内转 205-内转钢管 206-内转钢坯 207-空车回皮
  33. /// </summary>
  34. private string recordType = "";
  35. /// <summary>
  36. /// 重量
  37. /// </summary>
  38. private decimal? recordWeight = null;
  39. /// <summary>
  40. /// 支数
  41. /// </summary>
  42. private decimal? recordNumber = null;
  43. /// <summary>
  44. /// 有效标志(1:有效,0:无效)
  45. /// </summary>
  46. private string validflag = "";
  47. /// <summary>
  48. /// 物资名称
  49. /// </summary>
  50. private string matName = "";
  51. /// <summary>
  52. /// 称重类型
  53. /// </summary>
  54. private string matType = "";
  55. /// <summary>
  56. /// 装车单号
  57. /// </summary>
  58. private string loadvehicleNo = "";
  59. /// <summary>
  60. /// 收货单位
  61. /// </summary>
  62. private string receiveName = "";
  63. /// <summary>
  64. /// 订货单位
  65. /// </summary>
  66. private string orderName = "";
  67. /// <summary>
  68. /// 发货单位
  69. /// </summary>
  70. private string shippersName = "";
  71. /// <summary>
  72. /// 运输单位
  73. /// </summary>
  74. private string transportName = "";
  75. /// <summary>
  76. /// 作废时间
  77. /// </summary>
  78. private string deleteDate = "";
  79. /// <summary>
  80. /// 作废人
  81. /// </summary>
  82. private string deleteUser = "";
  83. /// <summary>
  84. /// 备注
  85. /// </summary>
  86. private string memo = "";
  87. /// <summary>
  88. /// 称重类型 0- 皮重 1-毛重
  89. /// </summary>
  90. private string wtType = "";
  91. /// <summary>
  92. /// 磅房编号
  93. /// </summary>
  94. private string recoderLocation = "";
  95. private decimal? realWt = null;
  96. /// <summary>
  97. /// 称重记录流水号
  98. /// </summary>
  99. [Description("称重记录流水号")]
  100. [Nullable(false)]
  101. [DataLength(20)]
  102. public string RecordNo
  103. {
  104. get { return recordNo; }
  105. set { recordNo = value; }
  106. }
  107. /// <summary>
  108. /// 检斤时间
  109. /// </summary>
  110. [Description("检斤时间")]
  111. [Nullable(true)]
  112. public string RecordDate
  113. {
  114. get { return recordDate; }
  115. set { recordDate = value; }
  116. }
  117. /// <summary>
  118. /// 检斤人
  119. /// </summary>
  120. [Description("检斤人")]
  121. [Nullable(true)]
  122. [DataLength(10)]
  123. public string Recoder
  124. {
  125. get { return recoder; }
  126. set { recoder = value; }
  127. }
  128. /// <summary>
  129. /// 车牌号
  130. /// </summary>
  131. [Description("车牌号")]
  132. [Nullable(true)]
  133. [DataLength(20)]
  134. public string CarNo
  135. {
  136. get { return carNo; }
  137. set { carNo = value; }
  138. }
  139. /// <summary>
  140. /// 过磅类型 101- 空车过皮 102-钢坯采购 103-钢坯采购 104-采购辅料 105-修复返厂 106-设备采购 107-其他内转 108-内转钢管 109-内转钢坯 201- 配车单称重 202-废料销售 203-修复出厂 204-其他内转 205-内转钢管 206-内转钢坯 207-空车回皮
  141. /// </summary>
  142. [Description(
  143. "过磅类型 101- 空车过皮 102-钢坯采购 103-钢坯采购 104-采购辅料 105-修复返厂 106-设备采购 107-其他内转 108-内转钢管 109-内转钢坯 201- 配车单称重 202-废料销售 203-修复出厂 204-其他内转 205-内转钢管 206-内转钢坯 207-空车回皮"
  144. )]
  145. [Nullable(true)]
  146. [DataLength(2)]
  147. public string RecordType
  148. {
  149. get { return recordType; }
  150. set { recordType = value; }
  151. }
  152. /// <summary>
  153. /// 重量
  154. /// </summary>
  155. [Description("重量")]
  156. [Nullable(true)]
  157. [DataLength(8)]
  158. public decimal? RecordWeight
  159. {
  160. get { return recordWeight; }
  161. set { recordWeight = value; }
  162. }
  163. /// <summary>
  164. /// 支数
  165. /// </summary>
  166. [Description("支数")]
  167. [Nullable(true)]
  168. [DataLength(5)]
  169. public decimal? RecordNumber
  170. {
  171. get { return recordNumber; }
  172. set { recordNumber = value; }
  173. }
  174. /// <summary>
  175. /// 有效标志(1:有效,0:无效)
  176. /// </summary>
  177. [Description("有效标志(1:有效,0:无效)")]
  178. [Nullable(false)]
  179. [DataLength(1)]
  180. public string Validflag
  181. {
  182. get { return validflag; }
  183. set { validflag = value; }
  184. }
  185. /// <summary>
  186. /// 物资名称
  187. /// </summary>
  188. [Description("物资名称")]
  189. [Nullable(true)]
  190. [DataLength(100)]
  191. public string MatName
  192. {
  193. get { return matName; }
  194. set { matName = value; }
  195. }
  196. /// <summary>
  197. /// 称重类型
  198. /// </summary>
  199. [Description("称重类型")]
  200. [Nullable(true)]
  201. [DataLength(22)]
  202. public string MatType
  203. {
  204. get { return matType; }
  205. set { matType = value; }
  206. }
  207. /// <summary>
  208. /// 装车单号
  209. /// </summary>
  210. [Description("装车单号")]
  211. [Nullable(false)]
  212. [DataLength(22)]
  213. public string LoadvehicleNo
  214. {
  215. get { return loadvehicleNo; }
  216. set { loadvehicleNo = value; }
  217. }
  218. /// <summary>
  219. /// 收货单位
  220. /// </summary>
  221. [Description("收货单位")]
  222. [Nullable(true)]
  223. [DataLength(120)]
  224. public string ReceiveName
  225. {
  226. get { return receiveName; }
  227. set { receiveName = value; }
  228. }
  229. /// <summary>
  230. /// 订货单位
  231. /// </summary>
  232. [Description("订货单位")]
  233. [Nullable(true)]
  234. [DataLength(120)]
  235. public string OrderName
  236. {
  237. get { return orderName; }
  238. set { orderName = value; }
  239. }
  240. /// <summary>
  241. /// 发货单位
  242. /// </summary>
  243. [Description("发货单位")]
  244. [Nullable(true)]
  245. [DataLength(120)]
  246. public string ShippersName
  247. {
  248. get { return shippersName; }
  249. set { shippersName = value; }
  250. }
  251. /// <summary>
  252. /// 运输单位
  253. /// </summary>
  254. [Description("运输单位")]
  255. [Nullable(true)]
  256. [DataLength(120)]
  257. public string TransportName
  258. {
  259. get { return transportName; }
  260. set { transportName = value; }
  261. }
  262. /// <summary>
  263. /// 作废时间
  264. /// </summary>
  265. [Description("作废时间")]
  266. [Nullable(true)]
  267. public string DeleteDate
  268. {
  269. get { return deleteDate; }
  270. set { deleteDate = value; }
  271. }
  272. /// <summary>
  273. /// 作废人
  274. /// </summary>
  275. [Description("作废人")]
  276. [Nullable(true)]
  277. [DataLength(10)]
  278. public string DeleteUser
  279. {
  280. get { return deleteUser; }
  281. set { deleteUser = value; }
  282. }
  283. /// <summary>
  284. /// 备注
  285. /// </summary>
  286. [Description("备注")]
  287. [Nullable(true)]
  288. [DataLength(1000)]
  289. public string Memo
  290. {
  291. get { return memo; }
  292. set { memo = value; }
  293. }
  294. /// <summary>
  295. /// 称重类型 0- 皮重 1-毛重
  296. /// </summary>
  297. [Description("称重类型 0- 皮重 1-毛重")]
  298. [Nullable(true)]
  299. [DataLength(2)]
  300. public string WtType
  301. {
  302. get { return wtType; }
  303. set { wtType = value; }
  304. }
  305. /// <summary>
  306. /// 磅房编号
  307. /// </summary>
  308. [Description("磅房编号")]
  309. [Nullable(true)]
  310. [DataLength(2)]
  311. public string RecoderLocation
  312. {
  313. get { return recoderLocation; }
  314. set { recoderLocation = value; }
  315. }
  316. /// <summary>
  317. /// 实发重
  318. /// </summary>
  319. [Description("实发重")]
  320. [Nullable(true)]
  321. [DataLength(8)]
  322. public decimal? RealWt
  323. {
  324. get { return realWt; }
  325. set { realWt = value; }
  326. }
  327. public string firstGross
  328. {
  329. get { return "1" == validflag && "1" == wtType && "101" != recordType ? "是" : ""; }
  330. }
  331. }
  332. }