contractReview.go 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package contractReview
  2. import (
  3. "time"
  4. )
  5. type OilContractReview struct {
  6. Id int `json:"Id" xorm:"not null pk autoincr INT(11) 'Id'"`
  7. ContractId int `json:"ContractId" xorm:"not null comment('合同表Id') INT(11) 'ContractId'"`
  8. Status string `json:"Status" xorm:"not null default '0' comment('状态标识( 0 初始 - 1待二级初审 - 2待二级复审 - 3专业科室接收 - 4待专业科室审核- 7待专业处室审批 - 8 完成)') VARCHAR(10) 'Status'"`
  9. WorkflowId string `json:"WorkflowId" xorm:"default '0' comment('工作流的ID') VARCHAR(50) 'WorkflowId'"`
  10. BusinessKey string `json:"BusinessKey" xorm:"comment('流程序号') VARCHAR(255) 'BusinessKey'"`
  11. ProcessKey string `json:"ProcessKey" xorm:"comment('工作流名称') VARCHAR(255) 'ProcessKey'"`
  12. BackRemark string `json:"BackRemark" xorm:"comment('退回原因') VARCHAR(255) 'BackRemark'"`
  13. FirstAudit int `json:"FirstAudit" xorm:"comment('初审') INT(11) 'FirstAudit'"`
  14. SecondAudit int `json:"SecondAudit" xorm:"comment('复审') INT(11) 'SecondAudit'"`
  15. ThirdAudit int `json:"ThirdAudit" xorm:"comment('专业科室审批') INT(11) 'ThirdAudit'"`
  16. FourthAudit int `json:"FourthAudit" xorm:"comment('集中审批') INT(11) 'FourthAudit'"`
  17. CommitComId string `xorm:"default '0' comment('提交二级单位Id') VARCHAR(50)"`
  18. ProfessionalAudit int `json:"ProfessionalAudit" xorm:"comment('业务处室专业审批人id') INT(11) 'ProfessionalAudit'"`
  19. AuditIndex int `json:"AuditIndex" xorm:"default 0 comment('审批次数') INT(11) 'AuditIndex'"`
  20. IsFinal int `json:"IsFinal" xorm:"comment('是否最终评价(履行完成) 0否1是') INT(11) 'IsFinal'"`
  21. CreateOn time.Time `json:"CreateOn" xorm:"DATETIME 'CreateOn'"`
  22. CreateUserId int `json:"CreateUserId" xorm:"INT(11) 'CreateUserId'"`
  23. CreateBy string `json:"CreateBy" xorm:"VARCHAR(50) 'CreateBy'"`
  24. ModifiedOn time.Time `json:"ModifiedOn" xorm:"DATETIME 'ModifiedOn'"`
  25. ModifiedUserId int `json:"ModifiedUserId" xorm:"INT(11) 'ModifiedUserId'"`
  26. ModifiedBy string `json:"ModifiedBy" xorm:"VARCHAR(50) 'ModifiedBy'"`
  27. UnitId int `json:"UnitId" xorm:"INT(11) 'UnitId'"`
  28. Unit string `json:"Unit" xorm:"VARCHAR(50) 'Unit'"`
  29. }
  30. type OilContractReviewListVo struct {
  31. Id int `json:"Id"`
  32. ContractId int `json:"ContractId"`
  33. Status string `json:"Status"`
  34. WorkflowId string `json:"WorkflowId"`
  35. BusinessKey string `json:"BusinessKey"`
  36. ProcessKey string `json:"ProcessKey"`
  37. BackRemark string `json:"BackRemark"`
  38. FirstAudit int `json:"FirstAudit"`
  39. SecondAudit int `json:"SecondAudit"`
  40. ThirdAudit int `json:"ThirdAudit"`
  41. FourthAudit int `json:"FourthAudit"`
  42. CommitComId string `json:"FourthAudit"`
  43. ProfessionalAudit int `json:"ProfessionalAudit"`
  44. AuditIndex int `json:"AuditIndex"`
  45. IsFinal string `json:"IsFinal"`
  46. CreateOn time.Time `json:"CreateOn"`
  47. CreateUserId int `json:"CreateUserId"`
  48. CreateBy string `json:"CreateBy"`
  49. ModifiedOn time.Time `json:"ModifiedOn"`
  50. ModifiedUserId int `json:"ModifiedUserId"`
  51. ModifiedBy string `json:"ModifiedBy"`
  52. SupplierName string `json:"SupplierName"` // 供应商名称
  53. ProjectName string `json:"ProjectName"` // 项目名称
  54. ContractNo string `json:"ContractNo"` // 合同编号
  55. SupplierId int `json:"SupplierId"`
  56. ProjectPlace string `json:"ProjectPlace"`
  57. ProjectOwner string `json:"ProjectOwner"`
  58. Telephone string `json:"Telephone"`
  59. ProjectType string `json:"ProjectType"`
  60. ContractClass string `json:"ContractClass"`
  61. ContractMode string `json:"ContractMode"`
  62. Amount string `json:"Amount"`
  63. ContractPeriod string `json:"ContractPeriod"`
  64. OpenDate time.Time `json:"OpenDate"`
  65. PlanFinishDate time.Time `json:"PlanFinishDate"`
  66. SettleStatus string `json:"SettleStatus"`
  67. Remark string `json:"Remark"`
  68. }
  69. type OilContractReviewVo struct {
  70. Items []*OilContractEvaluationItemsVo
  71. Id int `json:"Id" xorm:"not null pk INT(11) 'Id'"`
  72. ContractId int `json:"ContractId" xorm:"not null comment('合同表Id') INT(11) 'ContractId'"`
  73. Status string `xorm:"not null default '0' VARCHAR(10)"`
  74. WorkflowId string `json:"WorkflowId" xorm:"default '0' comment('工作流的ID') VARCHAR(50) 'WorkflowId'"`
  75. BusinessKey string `json:"BusinessKey" xorm:"comment('流程序号') VARCHAR(255) 'BusinessKey'"`
  76. ProcessKey string `json:"ProcessKey" xorm:"comment('工作流名称') VARCHAR(255) 'ProcessKey'"`
  77. BackRemark string `json:"BackRemark" xorm:"comment('退回原因') VARCHAR(255) 'BackRemark'"`
  78. FirstAudit int `xorm:"default 0 comment('初审') INT(10)"`
  79. SecondAudit int `xorm:"default 0 comment('复审') INT(10)"`
  80. ThirdAudit int `xorm:"default 0 comment('专业科室审批') INT(10)"`
  81. ProfessionalAudit int `xorm:"default 0 comment('业务处室专业审批') INT(10)"`
  82. FourthAudit int `xorm:"default 0 comment('集中审批') INT(10)"`
  83. AuditIndex int `xorm:"default 0 comment('审批次数') INT(11)"`
  84. CreateOn time.Time `json:"CreateOn" xorm:"DATETIME 'CreateOn'"`
  85. CreateUserId int `json:"CreateUserId" xorm:"INT(11) 'CreateUserId'"`
  86. CreateBy string `json:"CreateBy" xorm:"VARCHAR(50) 'CreateBy'"`
  87. ModifiedOn time.Time `json:"ModifiedOn" xorm:"DATETIME 'ModifiedOn'"`
  88. ModifiedUserId int `json:"ModifiedUserId" xorm:"INT(11) 'ModifiedUserId'"`
  89. ModifiedBy string `json:"ModifiedBy" xorm:"VARCHAR(50) 'ModifiedBy'"`
  90. }
  91. type OilContractEvaluationItemsVo struct{
  92. Id int `json:"Id" xorm:"not null pk autoincr comment('ID') INT(11) 'Id'"`
  93. Type int `json:"Type" xorm:"default 1 comment('项类型 1分值 2布尔') INT(11) 'Type'"`
  94. ContractId int `json:"ContractId" xorm:"default 0 comment('合同表ID') INT(11) 'ContractId'"`
  95. ContractWorkId int `json:"ContractId" xorm:"default 0 comment('ReviewWork表ID') INT(11) 'ContractWorkId'"`
  96. ParentId int `json:"ParentId" xorm:"not null default 0 comment('上级节点ID') INT(11) 'ParentId'"`
  97. SequenceNo string `json:"SequenceNo" xorm:"default '0' comment('序号') VARCHAR(50) 'SequenceNo'"`
  98. Content string `json:"content" xorm:"comment('评价内容') VARCHAR(1000) 'content'"`
  99. NormalScore string `json:"NormalScore" xorm:"comment('标准分值') DECIMAL(11,2) 'NormalScore'"`
  100. Score string `json:"Score" xorm:"comment('实得分数') DECIMAL(11,2) 'Score'"`
  101. LevelCode int `json:"LevelCode" xorm:"not null default 0 comment('级别') INT(11) 'LevelCode'"`
  102. Remark string `json:"Remark" xorm:"comment('备注') VARCHAR(500) 'Remark'"`
  103. }