GAAS 广汽安道拓GFrame金属件MOM项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.3 KiB

  1. package qm
  2. import (
  3. "leit.com/LAPP_GAAS_GFrame/grmi"
  4. "xorm.io/core"
  5. )
  6. //ViewValst的实体映射
  7. type ViewValst struct {
  8. PlantNr int `xorm:"pk int 'PlantNr'" json:"QM_ViewValst-PlantNr"`
  9. ViewId string `xorm:"pk nvarchar(20) 'ViewId'" json:"QM_ViewValst-ViewId"`
  10. Pos int `xorm:"pk int 'Pos'" json:"QM_ViewValst-Pos"`
  11. ValName string `xorm:"nvarchar(16) 'ValName' not null" json:"QM_ViewValst-ValName"`
  12. XStart int `xorm:"int 'XStart' not null" json:"QM_ViewValst-XStart"`
  13. YStart int `xorm:"int 'YStart' not null" json:"QM_ViewValst-YStart"`
  14. Width int `xorm:"int 'Width' not null" json:"QM_ViewValst-Width"`
  15. Height int `xorm:"int 'Height' not null" json:"QM_ViewValst-Height"`
  16. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"QM_ViewValst-Descr"`
  17. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"QM_ViewValst-LastModify"`
  18. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"QM_ViewValst-LastUser"`
  19. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"QM_ViewValst-CreateTime"`
  20. }
  21. //获取ViewValst的主键
  22. func (self *ViewValst) GetKey() core.PK {
  23. return core.PK{self.PlantNr, self.ViewId, self.Pos}
  24. }