广汽安道拓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.

63 lines
3.6 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : LabelTemplateDetail
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : LabelTemplateDetail的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-25 16:19:35
  17. *
  18. ******************************************************************************/
  19. type LabelTemplateDetail struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"LabelTemplateDetail-PlantNr"`
  21. LabelTemplateId string `xorm:"pk nvarchar(40) 'LabelTemplateId'" json:"LabelTemplateDetail-LabelTemplateId"`
  22. Pos int `xorm:"pk int 'Pos'" json:"LabelTemplateDetail-Pos"`
  23. X int `xorm:"int 'X' not null" json:"LabelTemplateDetail-X"`
  24. Y int `xorm:"int 'Y' not null" json:"LabelTemplateDetail-Y"`
  25. Height int `xorm:"int 'Height' not null" json:"LabelTemplateDetail-Height"`
  26. Width int `xorm:"int 'Width' not null" json:"LabelTemplateDetail-Width"`
  27. LabelItemType string `xorm:"nvarchar(20) 'LabelItemType' not null" json:"LabelTemplateDetail-LabelItemType"`
  28. ValueParseToggle bool `xorm:"bit 'ValueParseToggle' not null" json:"LabelTemplateDetail-ValueParseToggle"`
  29. LabelItemValue string `xorm:"nvarchar(255) 'LabelItemValue' not null" json:"LabelTemplateDetail-LabelItemValue"`
  30. LabelItemPen string `xorm:"nvarchar(255) 'LabelItemPen' not null" json:"LabelTemplateDetail-LabelItemPen"`
  31. LabelItemFilled bool `xorm:"bit 'LabelItemFilled' not null" json:"LabelTemplateDetail-LabelItemFilled"`
  32. LabelItemFont string `xorm:"nvarchar(255) 'LabelItemFont' not null" json:"LabelTemplateDetail-LabelItemFont"`
  33. PreviewValue string `xorm:"nvarchar(255) 'PreviewValue' not null" json:"LabelTemplateDetail-PreviewValue"`
  34. ShowBarcodeText bool `xorm:"bit 'ShowBarcodeText' not null" json:"LabelTemplateDetail-ShowBarcodeText"`
  35. LabelItemPara1 int `xorm:"int 'LabelItemPara1' not null" json:"LabelTemplateDetail-LabelItemPara1"`
  36. LabelItemPara2 int `xorm:"int 'LabelItemPara2' not null" json:"LabelTemplateDetail-LabelItemPara2"`
  37. LabelItemPara3 int `xorm:"int 'LabelItemPara3' not null" json:"LabelTemplateDetail-LabelItemPara3"`
  38. LabelItemPara4 int `xorm:"int 'LabelItemPara4' not null" json:"LabelTemplateDetail-LabelItemPara4"`
  39. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"LabelTemplateDetail-LastModify"`
  40. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"LabelTemplateDetail-LastUser"`
  41. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"LabelTemplateDetail-CreateTime"`
  42. }
  43. /******************************************************************************
  44. *
  45. * @Function Name : GetKey
  46. *-----------------------------------------------------------------------------
  47. *
  48. * @Description : 获取实体的主键
  49. *
  50. * @Return Value : 实体的主键
  51. *
  52. * @Author : 代码生成器创建
  53. *
  54. * @Date : 2021-11-25 16:19:35
  55. *
  56. ******************************************************************************/
  57. func (self *LabelTemplateDetail) GetKey() core.PK {
  58. return core.PK{self.PlantNr, self.LabelTemplateId, self.Pos}
  59. }