Fin_ApplicationLinkGoods.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.Entities.Financial
  7. {
  8. /// <summary>
  9. /// 日服申请单物品关联表
  10. /// </summary>
  11. [SugarTable(tableName: "Fin_ApplicationLinkGoods", tableDescription: "日服申请单物品关联表")]
  12. public class Fin_ApplicationLinkGoods : EntityBase
  13. {
  14. /// <summary>
  15. /// 日付申请Id(Fin_DailyFeePayment)
  16. /// </summary>
  17. [SugarColumn(ColumnName = "DailyId", ColumnDescription = "日付申请Id(Fin_DailyFeePayment)", IsNullable = true, ColumnDataType = "int")]
  18. public int DailyId { get; private set; }
  19. /// <summary>
  20. /// 物品Id(Pm_GoodsInfo)
  21. /// </summary>
  22. [SugarColumn(ColumnName = "GoodsId", ColumnDescription = "物品Id(Pm_GoodsInfo)", IsNullable = true, ColumnDataType = "int")]
  23. public int GoodsId { get; private set; }
  24. /// <summary>
  25. /// 物品入库Id(Pm_GoodsStorage)
  26. /// </summary>
  27. [SugarColumn(ColumnName = "GoodsStorageId", ColumnDescription = "物品入库Id(Pm_GoodsStorage)", IsNullable = true, ColumnDataType = "int")]
  28. public int GoodsStorageId { get; private set; }
  29. public Fin_ApplicationLinkGoods() { }
  30. /// <summary>
  31. /// info
  32. /// 构造函数
  33. /// </summary>
  34. /// <param name="id"></param>
  35. /// <param name="dailyId"></param>
  36. /// <param name="goodsId"></param>
  37. /// <param name="goodsStorageId"></param>
  38. /// <param name="remark"></param>
  39. /// <param name="userId"></param>
  40. public Fin_ApplicationLinkGoods(int id, int dailyId, int goodsId, int goodsStorageId, string remark, int userId)
  41. {
  42. Id = id;
  43. DailyId = dailyId;
  44. GoodsId = goodsId;
  45. GoodsStorageId = goodsStorageId;
  46. Remark = remark;
  47. CreateUserId = userId;
  48. CreateTime = DateTime.Now;
  49. }
  50. /// <summary>
  51. /// 删除赋值构造函数
  52. /// </summary>
  53. /// <param name="userId"></param>
  54. public Fin_ApplicationLinkGoods(int userId)
  55. {
  56. DeleteUserId = userId;
  57. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
  58. }
  59. }
  60. }