package limscreatereport import ( "time" ) type ShenheModel struct { ApplyList []ApplyListModel //批量审核列表 SuccessStatus int AuditorRemark string } type ApplyListModel struct { Id int EId int EntrustNo string ReportUrl string TemplateId int ReportStatus int } type QianfaModel struct { ApplyList QianfaListModel //批量审核列表 SuccessStatus int AuditorRemark string } type QianfaListModel struct { Id int EId int ReportName string SignTrans string ReceiveBy string ReportUrl string TemplateId int TransTime time.Time } type LimsCreateReport struct { Id int `xorm:"not null pk autoincr INT(10)"` EId int `xorm:"INT(10)"` ReportCode string `xorm:VARCHAR(50)` EntrustNo string `xorm:VARCHAR(50)` CustomerId int `xorm:"INT(10)"` CustomerName string `xorm:VARCHAR(50)` FlowKey string `xorm:VARCHAR(50)` TestDetail string `xorm:VARCHAR(50)` TemplateId int `xorm:"INT(10)"` DocName string `xorm:VARCHAR(255)` ReportUrl string `xorm:VARCHAR(255)` UnHGReportUrl string `xorm:VARCHAR(255)` CheckRemark string `xorm:VARCHAR(255)` ReportStatus int `xorm:"INT(10)"` ConUserBy string `xorm:VARCHAR(50)` ConUserId int `xorm:"INT(10)"` ConUserOn time.Time `xorm:"DATETIME "` SignRemark string `xorm:VARCHAR(255)` SignUserBy string `xorm:VARCHAR(50)` SignUserId int `xorm:"INT(10)"` SignUserOn time.Time `xorm:"DATETIME "` AuthUserBy string `xorm:VARCHAR(50)` Qualify string `xorm:VARCHAR(255)` Remarks string `xorm:VARCHAR(255)` //描述 CreateOn time.Time `xorm:"DATETIME created"` //创建时间 CreateUserId int `xorm:"INT(10)"` CreateBy string `xorm:"VARCHAR(50)"` //创建人 ModifiedOn time.Time `xorm:"DATETIME updated"` ModifiedUserId int `xorm:"INT(10)"` ModifiedBy string `xorm:"VARCHAR(50)"` } type ReportTemplateModel struct { EId int EntrustNo string EntrustTime time.Time EndTime time.Time EntrustStatus int EntrustType string EntrustTypeId int CustomerId int CustomerName string ProjectType string ProjectTypeId int DetectSample string DetectSampleId int SampleNum int Unit string Remarks string Id int CustomerCode string Person string Telephone string Address string CreateOn time.Time CreateUserId int CreateBy string ModifiedOn time.Time ModifiedUserId int ModifiedBy string TemplateId int TemplateName string FullName string } type DataEntryEntrustModel struct { Id int `xorm:"not null pk autoincr INT(10)"` EId int `xorm:"INT(10)"` DataEntryId int `xorm:"INT(10)"` DocKey string `xorm:"VARCHAR(50)"` TaskId int `xorm:"INT(10)"` DocAddress string `xorm:VARCHAR(255)` CreateReportStatus int `xorm:"INT(11)"` DocType string `xorm:VARCHAR(50)` DocId int `xorm:"INT(10)"` DocVersion string `xorm:VARCHAR(50)` DocName string `xorm:VARCHAR(50)` CheckStatus int `xorm:"INT(10)"` EntrustNo string `xorm:"VARCHAR(50)"` EntrustTime time.Time `xorm:"DATETIME"` EndTime time.Time `xorm:"DATETIME"` EntrustStatus int `xorm:"INT(10)"` AuditorRemark string `xorm:"VARCHAR(255)"` DeliverStatus int `xorm:"INT(10)"` ReportStatus int `xorm:"INT(10)"` EntrustType string `xorm:VARCHAR(50)` EntrustTypeId int `xorm:"INT(10)"` CustomerId int `xorm:"INT(10)"` CustomerName string `xorm:VARCHAR(50)` ProjectType string `xorm:VARCHAR(50)` ProjectTypeId int `xorm:"INT(10)"` DetectSample string `xorm:"VARCHAR(50)"` DetectSampleId int `xorm:"INT(10)"` Samplelist string `xorm:VARCHAR(50)` SampleNum float32 `xorm:"FLOAT"` Unit string `xorm:VARCHAR(50)` Remarks string `xorm:VARCHAR(255)` //描述 CreatedTime time.Time `xorm:"DATETIME created"` //创建时间 CreateOn time.Time `xorm:"DATETIME created"` //创建时间 CreateUserId int `xorm:"INT(10)"` DataEntryUserId int `xorm:"INT(10)"` DataEntryBy string `xorm:"VARCHAR(50)"` //创建人 CreateBy string `xorm:"VARCHAR(50)"` //创建人 ModifiedOn time.Time `xorm:"DATETIME updated"` ModifiedUserId int `xorm:"INT(10)"` ModifiedBy string `xorm:"VARCHAR(50)"` } //关联委托方表 获取委托列表 type CustomerEntrustModel struct { EId int EntrustNo string EntrustTime time.Time EndTime time.Time EntrustStatus int EntrustType string EntrustTypeId int CustomerId int CustomerName string ProjectType string ProjectTypeId int DetectSample string DetectSampleId int SampleNum int Unit string Remarks string Id int CustomerCode string Person string Telephone string Address string CreateOn time.Time CreateUserId int CreateBy string ModifiedOn time.Time ModifiedUserId int ModifiedBy string } //样品交接表 type LimsDeliver struct { Id int `xorm:"not null pk autoincr INT(10)"` DeliverNo string `xorm:"VARCHAR(50)"` EId int `xorm:"INT(10)"` EntrustNo string `xorm:"VARCHAR(50)"` SampleCode string `xorm:VARCHAR(50)` DetectSample string `xorm:"VARCHAR(50)"` DetectSampleId int `xorm:"INT(10)"` EntrustType string `xorm:VARCHAR(50)` EntrustTypeId int `xorm:"INT(10)"` SourceType string `xorm:VARCHAR(50)` DetectCharacter string `xorm:VARCHAR(50)` Unit string `xorm:VARCHAR(50)` SampleNum int `xorm:"INT(10)"` Specification string `xorm:VARCHAR(50)` SampleLogo string `xorm:VARCHAR(50)` Environment string `xorm:VARCHAR(50)` OriginalCode string `xorm:VARCHAR(50)` CollectionBy string `xorm:VARCHAR(50)` CollectionDate time.Time `xorm:"DATETIME"` ReceiveBy string `xorm:VARCHAR(50)` ReceiveId int `xorm:"INT(10)"` ReceiveDate time.Time `xorm:"DATETIME"` ISreveive int `xorm:"TINYINT(4)"` ReveiveNum int `xorm:"INT(10)"` Remark string `xorm:VARCHAR(255)` CreateOn time.Time `xorm:"DATETIME created"` //创建时间 CreateUserId int `xorm:"INT(10)"` CreateBy string `xorm:"VARCHAR(50)"` //创建人 ModifiedOn time.Time `xorm:"DATETIME updated"` ModifiedUserId int `xorm:"INT(10)"` ModifiedBy string `xorm:"VARCHAR(50)"` } type LimsReportSign struct { Id int `xorm:"not null pk autoincr INT(10)"` ReportId int `xorm:"INT(10)"` ReportStatus int `xorm:"INT(10)"` ReportCode string `xorm:VARCHAR(255)` ReportName string `xorm:VARCHAR(255)` SignTrans string `xorm:VARCHAR(255)` ReceiveBy string `xorm:VARCHAR(255)` TransTime time.Time `xorm:"DATETIME created"` Remark string `xorm:VARCHAR(255)` CreateOn time.Time `xorm:"DATETIME created"` //创建时间 CreateUserId int `xorm:"INT(10)"` CreateBy string `xorm:"VARCHAR(50)"` //创建人 ModifiedOn time.Time `xorm:"DATETIME updated"` ModifiedUserId int `xorm:"INT(10)"` ModifiedBy string `xorm:"VARCHAR(50)"` } type LimsReportHistory struct { Id int `xorm:"not null pk autoincr INT(10)"` ParentId int `xorm:"not null default 0 comment('报告主表Id') INT(10)"` History string `xorm:"not null default '0' comment('历史') VARCHAR(50)"` Version string `xorm:"not null default '0' comment('版本') VARCHAR(50)"` Address string `xorm:"not null default '0' comment('地址') VARCHAR(255)"` SaveTime time.Time `xorm:"comment('保存时间') DATETIME"` CreateOn time.Time `xorm:"DATETIME created"` //创建时间 CreateUserId int `xorm:"INT(10)"` CreateBy string `xorm:"VARCHAR(50)"` //创建人 ModifiedOn time.Time `xorm:"DATETIME updated"` ModifiedUserId int `xorm:"INT(10)"` ModifiedBy string `xorm:"VARCHAR(50)"` } type ReportModel struct { Id int `xorm:"not null pk autoincr INT(10)"` EId int `xorm:"INT(10)"` ReportCode string `xorm:VARCHAR(50)` EntrustNo string `xorm:VARCHAR(50)` CustomerId int `xorm:"INT(10)"` CustomerName string `xorm:VARCHAR(50)` TemplateName string `xorm:VARCHAR(50)` TemplateId int `xorm:"INT(10)"` ReportUrl string `xorm:VARCHAR(255)` UnHGReportUrl string `xorm:VARCHAR(255)` ReportStatus int `xorm:"INT(10)"` ConUserBy string `xorm:VARCHAR(50)` ConUserId int `xorm:"INT(10)"` ConUserOn time.Time `xorm:"DATETIME "` SignUserBy string `xorm:VARCHAR(50)` SignUserId int `xorm:"INT(10)"` SignUserOn time.Time `xorm:"DATETIME "` AuthUserBy string `xorm:VARCHAR(50)` Qualify string `xorm:VARCHAR(255)` ParentId int `xorm:"not null default 0 comment('报告主表Id') INT(10)"` History string `xorm:"not null default '0' comment('历史') VARCHAR(50)"` Version string `xorm:"not null default '0' comment('版本') VARCHAR(50)"` Address string `xorm:"not null default '0' comment('地址') VARCHAR(255)"` SaveTime time.Time `xorm:"comment('保存时间') DATETIME"` Remarks string `xorm:VARCHAR(255)` //描述 CreateOn time.Time `xorm:"DATETIME created"` //创建时间 CreateUserId int `xorm:"INT(10)"` CreateBy string `xorm:"VARCHAR(50)"` //创建人 ModifiedOn time.Time `xorm:"DATETIME updated"` ModifiedUserId int `xorm:"INT(10)"` ModifiedBy string `xorm:"VARCHAR(50)"` }