BillInvnow.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using SqlSugar;
  5. using Wms.Screen.SqlSugar;
  6. namespace wms.sqlsugar.model.fj
  7. {
  8. /// <summary>
  9. /// 组盘类型
  10. /// </summary>
  11. public enum FJContGrpType
  12. {
  13. /// <summary>
  14. /// 物料盘
  15. /// </summary>
  16. [Description("物料盘")]
  17. Material = 1,
  18. /// <summary>
  19. /// 空盘
  20. /// </summary>
  21. [Description("空盘")]
  22. EmptyCon = 2,
  23. }
  24. /// <summary>
  25. /// 出入库类型
  26. /// </summary>
  27. public enum FJInvInOutType
  28. {
  29. /// <summary>
  30. /// 默认
  31. /// </summary>
  32. [Description("默认")]
  33. Default = 0,
  34. /// <summary>
  35. /// 入库
  36. /// </summary>
  37. [Description("入库")]
  38. In = 1,
  39. /// <summary>
  40. /// 出库
  41. /// </summary>
  42. [Description("出库")]
  43. Out = 2,
  44. }
  45. /// <summary>
  46. /// 托盘类型
  47. /// </summary>
  48. public enum FJPalletType
  49. {
  50. /// <summary>
  51. /// 09使用的托盘
  52. /// </summary>
  53. [Description("09使用的托盘")]
  54. Pallet09 = 1,
  55. /// <summary>
  56. /// 非09使用的托盘
  57. /// </summary>
  58. [Description("非09使用的托盘")]
  59. PalletNo09 = 2,
  60. }
  61. [Tenant("fj")]
  62. [SugarTable("Bill_InvNow")]
  63. public partial class BillInvnow : BaseModel
  64. {
  65. /// <summary>
  66. /// 仓库ID 关联仓库表 ID
  67. /// </summary>
  68. [SugarColumn(ColumnDataType = "bigint", IsNullable = false)]
  69. public long WarehouseId { get; set; }
  70. /// <summary>
  71. /// 组盘ID
  72. /// 创建库存的时候 获取条码表ContGrpId
  73. /// </summary>
  74. [SugarColumn(ColumnDataType = "bigint", IsNullable = false)]
  75. public long ContGrpId { get; set; }
  76. /// <summary>
  77. /// 容器条码 同联容器表容器条码 ContBarCode
  78. /// </summary>
  79. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  80. public string ContGrpBarCode { get; set; }
  81. /// <summary>
  82. /// 组盘类型(1物料盘 2空盘)
  83. /// </summary>
  84. [SugarColumn(IsNullable = true)]
  85. public FJContGrpType ContGrpType { get; set; }
  86. /// <summary>
  87. /// 箱条码
  88. /// </summary>
  89. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  90. public string BoxBarCode { get; set; }
  91. /// <summary>
  92. /// Bom单号 关联投料单 帘线工序工单号 BillCode
  93. /// </summary>
  94. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  95. public string BomDocsNo { get; set; }
  96. /// <summary>
  97. /// Bom物料ID
  98. /// </summary>
  99. [SugarColumn(ColumnDataType = "bigint", IsNullable = false)]
  100. public long BomMatId { get; set; }
  101. /// <summary>
  102. /// Bom物料编号
  103. /// </summary>
  104. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  105. public string BomMatCode { get; set; }
  106. /// <summary>
  107. /// Bom物料
  108. /// </summary>
  109. [SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
  110. public string BomMatName { get; set; }
  111. /// <summary>
  112. /// 垛形主表 ID
  113. /// </summary>
  114. [SugarColumn(ColumnDataType = "bigint", IsNullable = false)]
  115. public long BomSetId { get; set; }
  116. /// <summary>
  117. /// 库存状态码
  118. /// </summary>
  119. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  120. public string ExecStateCode { get; set; }
  121. /// <summary>
  122. /// 单据编号 关联单据表单据编号 DocsNo
  123. /// </summary>
  124. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  125. public string ExecDocsNo { get; set; }
  126. /// <summary>
  127. /// 单据行号
  128. /// </summary>
  129. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  130. public string ExecDocsRowNo { get; set; }
  131. /// <summary>
  132. /// 单据类型编号 同单据表TypeNum
  133. /// </summary>
  134. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  135. public string ExecDocsTypeCode { get; set; }
  136. /// <summary>
  137. /// 出入库标识
  138. /// </summary>
  139. [SugarColumn(ColumnDataType = "int", IsNullable = false)]
  140. public FJInvInOutType InvInOut { get; set; }
  141. /// <summary>
  142. /// 执行人
  143. /// </summary>
  144. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  145. public string ExecWho { get; set; }
  146. /// <summary>
  147. /// 执行时间
  148. /// </summary>
  149. [SugarColumn(ColumnDataType = "datetime", IsNullable = false)]
  150. public DateTime ExecTime { get; set; }
  151. /// <summary>
  152. /// 行
  153. /// </summary>
  154. [SugarColumn(ColumnDataType = "int", IsNullable = false)]
  155. public int PutRow { get; set; }
  156. /// <summary>
  157. /// 列
  158. /// </summary>
  159. [SugarColumn(ColumnDataType = "int", IsNullable = false)]
  160. public int PutCol { get; set; }
  161. /// <summary>
  162. /// 层
  163. /// </summary>
  164. [SugarColumn(ColumnDataType = "int", IsNullable = false)]
  165. public int PutLayer { get; set; }
  166. /// <summary>
  167. /// 入库条码号 FJ材料号
  168. /// </summary>
  169. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  170. public string InvBarCode { get; set; }
  171. /// <summary>
  172. /// 库存状态
  173. /// </summary>
  174. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  175. public string InvStateCode { get; set; }
  176. /// <summary>
  177. /// 入库单号
  178. /// </summary>
  179. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  180. public string InDocsNo { get; set; }
  181. /// <summary>
  182. /// 入库单行号
  183. /// </summary>
  184. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  185. public string InDocsRowNo { get; set; }
  186. /// <summary>
  187. /// 供应编号
  188. /// </summary>
  189. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  190. public string SuppCode { get; set; }
  191. /// <summary>
  192. /// 供应商名称
  193. /// </summary>
  194. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  195. public string SuppName { get; set; }
  196. /// <summary>
  197. /// 海关编号
  198. /// </summary>
  199. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  200. public string CustCode { get; set; }
  201. /// <summary>
  202. /// 海关名称
  203. /// </summary>
  204. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  205. public string CustName { get; set; }
  206. /// <summary>
  207. /// 物料ID
  208. /// </summary>
  209. [SugarColumn(ColumnDataType = "bigint", IsNullable = false)]
  210. public long MatId { get; set; }
  211. /// <summary>
  212. /// 物料编号
  213. /// </summary>
  214. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  215. public string MatCode { get; set; }
  216. /// <summary>
  217. /// 物料名称
  218. /// </summary>
  219. [SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
  220. public string MatName { get; set; }
  221. /// <summary>
  222. /// 总重量
  223. /// </summary>
  224. [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)]
  225. public decimal TolWQty { get; set; }
  226. /// <summary>
  227. /// 净重
  228. /// </summary>
  229. [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)]
  230. public decimal NetWQty { get; set; }
  231. /// <summary>
  232. /// 皮重
  233. /// </summary>
  234. [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)]
  235. public decimal TareWQty { get; set; }
  236. /// <summary>
  237. /// 总长
  238. /// </summary>
  239. [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)]
  240. public decimal LengthQty { get; set; }
  241. /// <summary>
  242. /// 碳当量
  243. /// </summary>
  244. [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)]
  245. public decimal CaQty { get; set; }
  246. /// <summary>
  247. /// 销售总量
  248. /// </summary>
  249. [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)]
  250. public decimal SolderQty { get; set; }
  251. /// <summary>
  252. /// 暂定
  253. /// </summary>
  254. [SugarColumn(ColumnDataType = "int", IsNullable = false)]
  255. public int ContUsageQty { get; set; }
  256. /// <summary>
  257. /// 批次号
  258. /// </summary>
  259. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  260. public string BatchNo { get; set; }
  261. /// <summary>
  262. /// 生产时间
  263. /// </summary>
  264. [SugarColumn(ColumnDataType = "datetime", IsNullable = false)]
  265. public DateTime ProductTime { get; set; }
  266. /// <summary>
  267. /// 第一次入库时间
  268. /// </summary>
  269. [SugarColumn(ColumnDataType = "datetime", IsNullable = false)]
  270. public DateTime OneInTime { get; set; }
  271. /// <summary>
  272. /// 盘条条码
  273. /// </summary>
  274. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  275. public string RodBarCode { get; set; }
  276. /// <summary>
  277. /// 工字轮条码
  278. /// </summary>
  279. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  280. public string HWBarCode { get; set; }
  281. /// <summary>
  282. /// RFID条码
  283. /// </summary>
  284. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  285. public string RFIDBarCode { get; set; }
  286. /// <summary>
  287. /// 材料号
  288. /// </summary>
  289. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  290. public string CLBarCode { get; set; }
  291. /// <summary>
  292. /// 工字轮条码类型
  293. /// </summary>
  294. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  295. public string HWTypeCode { get; set; }
  296. /// <summary>
  297. /// 炉号
  298. /// </summary>
  299. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  300. public string BoilerNo { get; set; }
  301. /// <summary>
  302. /// 包号
  303. /// </summary>
  304. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  305. public string PackNo { get; set; }
  306. /// <summary>
  307. /// 牌号
  308. /// </summary>
  309. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  310. public string BrandNo { get; set; }
  311. /// <summary>
  312. /// 执行标准
  313. /// </summary>
  314. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  315. public string ExecStd { get; set; }
  316. /// <summary>
  317. /// 许可证号
  318. /// </summary>
  319. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  320. public string LicenceCode { get; set; }
  321. /// <summary>
  322. /// 改手盘标记
  323. /// </summary>
  324. [SugarColumn(ColumnDataType = "bit", IsNullable = false)]
  325. public bool IsSurplus { get; set; }
  326. /// <summary>
  327. /// 返工标记
  328. /// </summary>
  329. [SugarColumn(ColumnDataType = "bit", IsNullable = false)]
  330. public bool IsRework { get; set; }
  331. /// <summary>
  332. /// 是否黑盘
  333. /// </summary>
  334. [SugarColumn(ColumnDataType = "bit", IsNullable = false)]
  335. public bool IsBlack { get; set; }
  336. /// <summary>
  337. /// 是否芯股
  338. /// </summary>
  339. [SugarColumn(ColumnDataType = "bit", IsNullable = false)]
  340. public bool IsCore { get; set; }
  341. /// <summary>
  342. /// 快投标记
  343. /// </summary>
  344. [SugarColumn(ColumnDataType = "bit", IsNullable = false)]
  345. public bool IsFast { get; set; }
  346. /// <summary>
  347. /// 是否异常
  348. /// </summary>
  349. [SugarColumn(ColumnDataType = "bit", IsNullable = false)]
  350. public bool IsFail { get; set; }
  351. /// <summary>
  352. /// 异常原因
  353. /// </summary>
  354. [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)]
  355. public string FailReason { get; set; }
  356. /// <summary>
  357. /// 单/双丝
  358. /// </summary>
  359. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  360. public string SilkTypeCode { get; set; }
  361. /// <summary>
  362. /// 等级
  363. /// </summary>
  364. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  365. public string Grade { get; set; }
  366. /// <summary>
  367. /// 是否退料
  368. /// </summary>
  369. [SugarColumn(ColumnDataType = "bit", IsNullable = false)]
  370. public bool IsBack { get; set; }
  371. /// <summary>
  372. /// 退料原因
  373. /// </summary>
  374. [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)]
  375. public string BackReason { get; set; }
  376. /// <summary>
  377. /// 是否扭转检测
  378. /// </summary>
  379. [SugarColumn(ColumnDataType = "bit", IsNullable = false)]
  380. public bool IsTorsChk { get; set; }
  381. /// <summary>
  382. /// 扭转次数
  383. /// </summary>
  384. [SugarColumn(ColumnDataType = "int", IsNullable = false)]
  385. public int TorsChkQty { get; set; }
  386. /// <summary>
  387. /// 扭转检测时间
  388. /// </summary>
  389. [SugarColumn(ColumnDataType = "datetime", IsNullable = false)]
  390. public DateTime TorsChkTime { get; set; }
  391. /// <summary>
  392. /// 扭转检测结果值
  393. /// </summary>
  394. [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = true)]
  395. public decimal? TorsChkValue { get; set; }
  396. /// <summary>
  397. /// 扭转检测设备号
  398. /// </summary>
  399. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  400. public string TorsChkMachCode { get; set; }
  401. /// <summary>
  402. /// 工序订单号
  403. /// </summary>
  404. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  405. public string ProcessDocsCode { get; set; }
  406. /// <summary>
  407. /// 生产机台号
  408. /// </summary>
  409. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  410. public string ProductMachCode { get; set; }
  411. /// <summary>
  412. /// 生成产线号
  413. /// </summary>
  414. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  415. public string ProductLineNo { get; set; }
  416. /// <summary>
  417. /// 货物大小
  418. /// </summary>
  419. [SugarColumn(IsNullable = false)]
  420. public int Size { get; set; }
  421. /// <summary>
  422. /// 托盘类型
  423. /// </summary>
  424. [SugarColumn(IsNullable = true, ColumnDescription = "托盘类型")]
  425. public FJPalletType PalletType { get; set; }
  426. [SugarColumn(IsNullable = false)]
  427. public int SideNum { get; set; }
  428. [SugarColumn(ColumnDataType = "nvarchar", Length =100, IsNullable = true)]
  429. public string SetGrpCode { get; set; }
  430. /// <summary>
  431. /// 循环码垛物料
  432. /// </summary>
  433. [SugarColumn(ColumnDataType = "bit", IsNullable = true, ColumnDescription = "循环码垛物料")]
  434. public bool? Secondary { get; set; }
  435. }
  436. }