广汽安道拓Acura项目MES后台
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.

56 lines
2.4 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package qm
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : View
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : View的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-03-23 17:06:57
  17. *
  18. ******************************************************************************/
  19. type View struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"QM_View-PlantNr"`
  21. ViewId string `xorm:"pk nvarchar(20) 'ViewId'" json:"QM_View-ViewId"`
  22. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"QM_View-Descr"`
  23. Picture string `xorm:"nvarchar(1000) 'Picture' not null" json:"QM_View-Picture"`
  24. Abrev string `xorm:"nvarchar(20) 'Abrev' not null" json:"QM_View-Abrev"`
  25. Width int `xorm:"int 'Width' not null" json:"QM_View-Width"`
  26. Height int `xorm:"int 'Height' not null" json:"QM_View-Height"`
  27. XLineColor string `xorm:"nvarchar(20) 'XLineColor' not null" json:"QM_View-XLineColor"`
  28. YLineColor string `xorm:"nvarchar(20) 'YLineColor' not null" json:"QM_View-YLineColor"`
  29. UseXYToggle bool `xorm:"bit 'UseXYToggle' not null" json:"QM_View-UseXYToggle"`
  30. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"QM_View-LastModify"`
  31. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"QM_View-LastUser"`
  32. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"QM_View-CreateTime"`
  33. Groups []DefectGrp `xorm:"-" json:"QM_View-Groups"`
  34. Areas []ViewValst `xorm:"-" json:"QM_View-Areas"`
  35. }
  36. /******************************************************************************
  37. *
  38. * @Function Name : GetKey
  39. *-----------------------------------------------------------------------------
  40. *
  41. * @Description : 获取实体的主键
  42. *
  43. * @Return Value : 实体的主键
  44. *
  45. * @Author : 代码生成器创建
  46. *
  47. * @Date : 2021-03-23 17:06:57
  48. *
  49. ******************************************************************************/
  50. func (self *View) GetKey() core.PK {
  51. return core.PK{self.PlantNr, self.ViewId}
  52. }