ContractReview.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. namespace Admin.NET.Plugin.AiDOP.Order;
  2. /// <summary>
  3. /// 合同评审主表(ado_contract_review)
  4. /// </summary>
  5. [SugarTable("ado_contract_review", "合同评审主表")]
  6. public class ContractReview
  7. {
  8. [SugarColumn(ColumnName = "RecID", IsPrimaryKey = true, IsIdentity = true)]
  9. public int RecID { get; set; }
  10. /// <summary>单据编号(业务主键,格式 CRyyyyMMxxxx)</summary>
  11. [SugarColumn(ColumnName = "BillNo", Length = 64)]
  12. public string BillNo { get; set; } = string.Empty;
  13. /// <summary>合同标题</summary>
  14. [SugarColumn(ColumnName = "Title", Length = 256, IsNullable = true)]
  15. public string? Title { get; set; }
  16. /// <summary>客户名称</summary>
  17. [SugarColumn(ColumnName = "CustomerName", Length = 128, IsNullable = true)]
  18. public string? CustomerName { get; set; }
  19. /// <summary>客户编号</summary>
  20. [SugarColumn(ColumnName = "CustomerNo", Length = 64, IsNullable = true)]
  21. public string? CustomerNo { get; set; }
  22. /// <summary>销售公司</summary>
  23. [SugarColumn(ColumnName = "SalesCompany", Length = 64, IsNullable = true)]
  24. public string? SalesCompany { get; set; }
  25. /// <summary>销售区域</summary>
  26. [SugarColumn(ColumnName = "SalesArea", Length = 64, IsNullable = true)]
  27. public string? SalesArea { get; set; }
  28. /// <summary>项目编号</summary>
  29. [SugarColumn(ColumnName = "ProjectCode", Length = 64, IsNullable = true)]
  30. public string? ProjectCode { get; set; }
  31. /// <summary>CRM机会编号</summary>
  32. [SugarColumn(ColumnName = "CrmNo", Length = 64, IsNullable = true)]
  33. public string? CrmNo { get; set; }
  34. /// <summary>负责人账号</summary>
  35. [SugarColumn(ColumnName = "ResponsibleAccount", Length = 64, IsNullable = true)]
  36. public string? ResponsibleAccount { get; set; }
  37. /// <summary>负责人姓名</summary>
  38. [SugarColumn(ColumnName = "ResponsibleName", Length = 64, IsNullable = true)]
  39. public string? ResponsibleName { get; set; }
  40. /// <summary>项目开始日期</summary>
  41. [SugarColumn(ColumnName = "ProjectStartDate", IsNullable = true)]
  42. public DateTime? ProjectStartDate { get; set; }
  43. /// <summary>当前审批阶段(0=草稿, 1~5=各环节)</summary>
  44. [SugarColumn(ColumnName = "CurrentStage", IsNullable = true)]
  45. public int? CurrentStage { get; set; }
  46. /// <summary>当前审批部门</summary>
  47. [SugarColumn(ColumnName = "CurrentDept", Length = 64, IsNullable = true)]
  48. public string? CurrentDept { get; set; }
  49. /// <summary>项目孵化状态</summary>
  50. [SugarColumn(ColumnName = "ProjectStatus", Length = 64, IsNullable = true)]
  51. public string? ProjectStatus { get; set; }
  52. /// <summary>项目成单概率</summary>
  53. [SugarColumn(ColumnName = "WinRate", Length = 32, IsNullable = true)]
  54. public string? WinRate { get; set; }
  55. /// <summary>预计进单月份</summary>
  56. [SugarColumn(ColumnName = "ExpectedOrderMonth", IsNullable = true)]
  57. public DateTime? ExpectedOrderMonth { get; set; }
  58. /// <summary>预计发货日期</summary>
  59. [SugarColumn(ColumnName = "ExpectedDeliveryDate", IsNullable = true)]
  60. public DateTime? ExpectedDeliveryDate { get; set; }
  61. /// <summary>项目需求说明</summary>
  62. [SugarColumn(ColumnName = "ProjectRequirement", Length = 1024, IsNullable = true)]
  63. public string? ProjectRequirement { get; set; }
  64. /// <summary>备注</summary>
  65. [SugarColumn(ColumnName = "Remark", Length = 512, IsNullable = true)]
  66. public string? Remark { get; set; }
  67. /// <summary>流程状态:draft/reviewing/completed/rejected</summary>
  68. [SugarColumn(ColumnName = "FlowStatus", Length = 32, IsNullable = true)]
  69. public string? FlowStatus { get; set; }
  70. [SugarColumn(ColumnName = "CreateUser", Length = 64, IsNullable = true)]
  71. public string? CreateUser { get; set; }
  72. [SugarColumn(ColumnName = "CreateTime", IsNullable = true)]
  73. public DateTime? CreateTime { get; set; }
  74. [SugarColumn(ColumnName = "UpdateUser", Length = 64, IsNullable = true)]
  75. public string? UpdateUser { get; set; }
  76. [SugarColumn(ColumnName = "UpdateTime", IsNullable = true)]
  77. public DateTime? UpdateTime { get; set; }
  78. [SugarColumn(ColumnName = "IsActive", IsNullable = true)]
  79. public int? IsActive { get; set; }
  80. }