3
2

limscreatereport.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. package limscreatereport
  2. import (
  3. "time"
  4. )
  5. type ShenheModel struct {
  6. ApplyList []ApplyListModel //批量审核列表
  7. SuccessStatus int
  8. AuditorRemark string
  9. }
  10. type ApplyListModel struct {
  11. Id int
  12. EId int
  13. EntrustNo string
  14. ReportUrl string
  15. TemplateId int
  16. ReportStatus int
  17. }
  18. type QianfaModel struct {
  19. ApplyList QianfaListModel //批量审核列表
  20. SuccessStatus int
  21. AuditorRemark string
  22. }
  23. type QianfaListModel struct {
  24. Id int
  25. EId int
  26. ReportName string
  27. SignTrans string
  28. ReceiveBy string
  29. ReportUrl string
  30. TemplateId int
  31. TransTime time.Time
  32. }
  33. type LimsCreateReport struct {
  34. Id int `xorm:"not null pk autoincr INT(10)"`
  35. EId int `xorm:"INT(10)"`
  36. ReportCode string `xorm:VARCHAR(50)`
  37. EntrustNo string `xorm:VARCHAR(50)`
  38. CustomerId int `xorm:"INT(10)"`
  39. CustomerName string `xorm:VARCHAR(50)`
  40. FlowKey string `xorm:VARCHAR(50)`
  41. TestDetail string `xorm:VARCHAR(50)`
  42. TemplateId int `xorm:"INT(10)"`
  43. DocName string `xorm:VARCHAR(255)`
  44. ReportUrl string `xorm:VARCHAR(255)`
  45. UnHGReportUrl string `xorm:VARCHAR(255)`
  46. CheckRemark string `xorm:VARCHAR(255)`
  47. ReportStatus int `xorm:"INT(10)"`
  48. ConUserBy string `xorm:VARCHAR(50)`
  49. ConUserId int `xorm:"INT(10)"`
  50. ConUserOn time.Time `xorm:"DATETIME "`
  51. SignRemark string `xorm:VARCHAR(255)`
  52. SignUserBy string `xorm:VARCHAR(50)`
  53. SignUserId int `xorm:"INT(10)"`
  54. SignUserOn time.Time `xorm:"DATETIME "`
  55. AuthUserBy string `xorm:VARCHAR(50)`
  56. Qualify string `xorm:VARCHAR(255)`
  57. Remarks string `xorm:VARCHAR(255)` //描述
  58. CreateOn time.Time `xorm:"DATETIME created"` //创建时间
  59. CreateUserId int `xorm:"INT(10)"`
  60. CreateBy string `xorm:"VARCHAR(50)"` //创建人
  61. ModifiedOn time.Time `xorm:"DATETIME updated"`
  62. ModifiedUserId int `xorm:"INT(10)"`
  63. ModifiedBy string `xorm:"VARCHAR(50)"`
  64. }
  65. type ReportTemplateModel struct {
  66. EId int
  67. EntrustNo string
  68. EntrustTime time.Time
  69. EndTime time.Time
  70. EntrustStatus int
  71. EntrustType string
  72. EntrustTypeId int
  73. CustomerId int
  74. CustomerName string
  75. ProjectType string
  76. ProjectTypeId int
  77. DetectSample string
  78. DetectSampleId int
  79. SampleNum int
  80. Unit string
  81. Remarks string
  82. Id int
  83. CustomerCode string
  84. Person string
  85. Telephone string
  86. Address string
  87. CreateOn time.Time
  88. CreateUserId int
  89. CreateBy string
  90. ModifiedOn time.Time
  91. ModifiedUserId int
  92. ModifiedBy string
  93. TemplateId int
  94. TemplateName string
  95. FullName string
  96. }
  97. type DataEntryEntrustModel struct {
  98. Id int `xorm:"not null pk autoincr INT(10)"`
  99. EId int `xorm:"INT(10)"`
  100. DataEntryId int `xorm:"INT(10)"`
  101. DocKey string `xorm:"VARCHAR(50)"`
  102. TaskId int `xorm:"INT(10)"`
  103. DocAddress string `xorm:VARCHAR(255)`
  104. CreateReportStatus int `xorm:"INT(11)"`
  105. DocType string `xorm:VARCHAR(50)`
  106. DocId int `xorm:"INT(10)"`
  107. DocVersion string `xorm:VARCHAR(50)`
  108. DocName string `xorm:VARCHAR(50)`
  109. CheckStatus int `xorm:"INT(10)"`
  110. EntrustNo string `xorm:"VARCHAR(50)"`
  111. EntrustTime time.Time `xorm:"DATETIME"`
  112. EndTime time.Time `xorm:"DATETIME"`
  113. EntrustStatus int `xorm:"INT(10)"`
  114. AuditorRemark string `xorm:"VARCHAR(255)"`
  115. DeliverStatus int `xorm:"INT(10)"`
  116. ReportStatus int `xorm:"INT(10)"`
  117. EntrustType string `xorm:VARCHAR(50)`
  118. EntrustTypeId int `xorm:"INT(10)"`
  119. CustomerId int `xorm:"INT(10)"`
  120. CustomerName string `xorm:VARCHAR(50)`
  121. ProjectType string `xorm:VARCHAR(50)`
  122. ProjectTypeId int `xorm:"INT(10)"`
  123. DetectSample string `xorm:"VARCHAR(50)"`
  124. DetectSampleId int `xorm:"INT(10)"`
  125. Samplelist string `xorm:VARCHAR(50)`
  126. SampleNum float32 `xorm:"FLOAT"`
  127. Unit string `xorm:VARCHAR(50)`
  128. Remarks string `xorm:VARCHAR(255)` //描述
  129. CreatedTime time.Time `xorm:"DATETIME created"` //创建时间
  130. CreateOn time.Time `xorm:"DATETIME created"` //创建时间
  131. CreateUserId int `xorm:"INT(10)"`
  132. DataEntryUserId int `xorm:"INT(10)"`
  133. DataEntryBy string `xorm:"VARCHAR(50)"` //创建人
  134. CreateBy string `xorm:"VARCHAR(50)"` //创建人
  135. ModifiedOn time.Time `xorm:"DATETIME updated"`
  136. ModifiedUserId int `xorm:"INT(10)"`
  137. ModifiedBy string `xorm:"VARCHAR(50)"`
  138. }
  139. //关联委托方表 获取委托列表
  140. type CustomerEntrustModel struct {
  141. EId int
  142. EntrustNo string
  143. EntrustTime time.Time
  144. EndTime time.Time
  145. EntrustStatus int
  146. EntrustType string
  147. EntrustTypeId int
  148. CustomerId int
  149. CustomerName string
  150. ProjectType string
  151. ProjectTypeId int
  152. DetectSample string
  153. DetectSampleId int
  154. SampleNum int
  155. Unit string
  156. Remarks string
  157. Id int
  158. CustomerCode string
  159. Person string
  160. Telephone string
  161. Address string
  162. CreateOn time.Time
  163. CreateUserId int
  164. CreateBy string
  165. ModifiedOn time.Time
  166. ModifiedUserId int
  167. ModifiedBy string
  168. }
  169. //样品交接表
  170. type LimsDeliver struct {
  171. Id int `xorm:"not null pk autoincr INT(10)"`
  172. DeliverNo string `xorm:"VARCHAR(50)"`
  173. EId int `xorm:"INT(10)"`
  174. EntrustNo string `xorm:"VARCHAR(50)"`
  175. SampleCode string `xorm:VARCHAR(50)`
  176. DetectSample string `xorm:"VARCHAR(50)"`
  177. DetectSampleId int `xorm:"INT(10)"`
  178. EntrustType string `xorm:VARCHAR(50)`
  179. EntrustTypeId int `xorm:"INT(10)"`
  180. SourceType string `xorm:VARCHAR(50)`
  181. DetectCharacter string `xorm:VARCHAR(50)`
  182. Unit string `xorm:VARCHAR(50)`
  183. SampleNum int `xorm:"INT(10)"`
  184. Specification string `xorm:VARCHAR(50)`
  185. SampleLogo string `xorm:VARCHAR(50)`
  186. Environment string `xorm:VARCHAR(50)`
  187. OriginalCode string `xorm:VARCHAR(50)`
  188. CollectionBy string `xorm:VARCHAR(50)`
  189. CollectionDate time.Time `xorm:"DATETIME"`
  190. ReceiveBy string `xorm:VARCHAR(50)`
  191. ReceiveId int `xorm:"INT(10)"`
  192. ReceiveDate time.Time `xorm:"DATETIME"`
  193. ISreveive int `xorm:"TINYINT(4)"`
  194. ReveiveNum int `xorm:"INT(10)"`
  195. Remark string `xorm:VARCHAR(255)`
  196. CreateOn time.Time `xorm:"DATETIME created"` //创建时间
  197. CreateUserId int `xorm:"INT(10)"`
  198. CreateBy string `xorm:"VARCHAR(50)"` //创建人
  199. ModifiedOn time.Time `xorm:"DATETIME updated"`
  200. ModifiedUserId int `xorm:"INT(10)"`
  201. ModifiedBy string `xorm:"VARCHAR(50)"`
  202. }
  203. type LimsReportSign struct {
  204. Id int `xorm:"not null pk autoincr INT(10)"`
  205. ReportId int `xorm:"INT(10)"`
  206. ReportStatus int `xorm:"INT(10)"`
  207. ReportCode string `xorm:VARCHAR(255)`
  208. ReportName string `xorm:VARCHAR(255)`
  209. SignTrans string `xorm:VARCHAR(255)`
  210. ReceiveBy string `xorm:VARCHAR(255)`
  211. TransTime time.Time `xorm:"DATETIME created"`
  212. Remark string `xorm:VARCHAR(255)`
  213. CreateOn time.Time `xorm:"DATETIME created"` //创建时间
  214. CreateUserId int `xorm:"INT(10)"`
  215. CreateBy string `xorm:"VARCHAR(50)"` //创建人
  216. ModifiedOn time.Time `xorm:"DATETIME updated"`
  217. ModifiedUserId int `xorm:"INT(10)"`
  218. ModifiedBy string `xorm:"VARCHAR(50)"`
  219. }
  220. type LimsReportHistory struct {
  221. Id int `xorm:"not null pk autoincr INT(10)"`
  222. ParentId int `xorm:"not null default 0 comment('报告主表Id') INT(10)"`
  223. History string `xorm:"not null default '0' comment('历史') VARCHAR(50)"`
  224. Version string `xorm:"not null default '0' comment('版本') VARCHAR(50)"`
  225. Address string `xorm:"not null default '0' comment('地址') VARCHAR(255)"`
  226. SaveTime time.Time `xorm:"comment('保存时间') DATETIME"`
  227. CreateOn time.Time `xorm:"DATETIME created"` //创建时间
  228. CreateUserId int `xorm:"INT(10)"`
  229. CreateBy string `xorm:"VARCHAR(50)"` //创建人
  230. ModifiedOn time.Time `xorm:"DATETIME updated"`
  231. ModifiedUserId int `xorm:"INT(10)"`
  232. ModifiedBy string `xorm:"VARCHAR(50)"`
  233. }
  234. type ReportModel struct {
  235. Id int `xorm:"not null pk autoincr INT(10)"`
  236. EId int `xorm:"INT(10)"`
  237. ReportCode string `xorm:VARCHAR(50)`
  238. EntrustNo string `xorm:VARCHAR(50)`
  239. CustomerId int `xorm:"INT(10)"`
  240. CustomerName string `xorm:VARCHAR(50)`
  241. TemplateName string `xorm:VARCHAR(50)`
  242. TemplateId int `xorm:"INT(10)"`
  243. ReportUrl string `xorm:VARCHAR(255)`
  244. UnHGReportUrl string `xorm:VARCHAR(255)`
  245. ReportStatus int `xorm:"INT(10)"`
  246. ConUserBy string `xorm:VARCHAR(50)`
  247. ConUserId int `xorm:"INT(10)"`
  248. ConUserOn time.Time `xorm:"DATETIME "`
  249. SignUserBy string `xorm:VARCHAR(50)`
  250. SignUserId int `xorm:"INT(10)"`
  251. SignUserOn time.Time `xorm:"DATETIME "`
  252. AuthUserBy string `xorm:VARCHAR(50)`
  253. Qualify string `xorm:VARCHAR(255)`
  254. ParentId int `xorm:"not null default 0 comment('报告主表Id') INT(10)"`
  255. History string `xorm:"not null default '0' comment('历史') VARCHAR(50)"`
  256. Version string `xorm:"not null default '0' comment('版本') VARCHAR(50)"`
  257. Address string `xorm:"not null default '0' comment('地址') VARCHAR(255)"`
  258. SaveTime time.Time `xorm:"comment('保存时间') DATETIME"`
  259. Remarks string `xorm:VARCHAR(255)` //描述
  260. CreateOn time.Time `xorm:"DATETIME created"` //创建时间
  261. CreateUserId int `xorm:"INT(10)"`
  262. CreateBy string `xorm:"VARCHAR(50)"` //创建人
  263. ModifiedOn time.Time `xorm:"DATETIME updated"`
  264. ModifiedUserId int `xorm:"INT(10)"`
  265. ModifiedBy string `xorm:"VARCHAR(50)"`
  266. }