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

69 lines
4.2 KiB

3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package log
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : PackTemplate
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : PackTemplate的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-16 10:30:42
  17. *
  18. ******************************************************************************/
  19. type PackTemplate struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"LOG_PackTemplate-PlantNr"`
  21. PackTemplateId string `xorm:"pk nvarchar(40) 'PackTemplateId'" json:"LOG_PackTemplate-PackTemplateId"`
  22. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"LOG_PackTemplate-Descr"`
  23. ActiveToggle bool `xorm:"bit 'ActiveToggle' not null" json:"LOG_PackTemplate-ActiveToggle"`
  24. PackTypeId string `xorm:"nvarchar(40) 'PackTypeId' not null" json:"LOG_PackTemplate-PackTypeId"`
  25. PrinterId string `xorm:"nvarchar(40) 'PrinterId' not null" json:"LOG_PackTemplate-PrinterId"`
  26. TemplateFile string `xorm:"nvarchar(40) 'TemplateFile' not null" json:"LOG_PackTemplate-TemplateFile"`
  27. PrintQty int `xorm:"int 'PrintQty' not null" json:"LOG_PackTemplate-PrintQty"`
  28. PackOrderSn string `xorm:"nvarchar(40) 'PackOrderSn' not null" json:"LOG_PackTemplate-PackOrderSn"`
  29. BoxSn string `xorm:"nvarchar(40) 'BoxSn' not null" json:"LOG_PackTemplate-BoxSn"`
  30. SyncToggle bool `xorm:"bit 'SyncToggle' not null" json:"LOG_PackTemplate-SyncToggle"`
  31. SyncSn string `xorm:"nvarchar(40) 'SyncSn' not null" json:"LOG_PackTemplate-SyncSn"`
  32. TwoDSheet int `xorm:"int 'TwoDSheet' not null" json:"LOG_PackTemplate-TwoDSheet"`
  33. FullFillToggle bool `xorm:"bit 'FullFillToggle' not null" json:"LOG_PackTemplate-FullFillToggle"`
  34. MaterialId string `xorm:"nvarchar(40) 'MaterialId' not null" json:"LOG_PackTemplate-MaterialId"`
  35. PlanQty int `xorm:"int 'PlanQty' not null" json:"LOG_PackTemplate-PlanQty"`
  36. PKTMPCustC1 string `xorm:"nvarchar(40) 'PKTMP_CustC1' not null" json:"LOG_PackTemplate-PKTMP_CustC1"`
  37. PKTMPCustC2 string `xorm:"nvarchar(40) 'PKTMP_CustC2' not null" json:"LOG_PackTemplate-PKTMP_CustC2"`
  38. PKTMPCustI1 int `xorm:"int 'PKTMP_CustI1' not null" json:"LOG_PackTemplate-PKTMP_CustI1"`
  39. PKTMPCustI2 int `xorm:"int 'PKTMP_CustI2' not null" json:"LOG_PackTemplate-PKTMP_CustI2"`
  40. ShipTo string `xorm:"nvarchar(40) 'ShipTo'" json:"LOG_PackTemplate-ShipTo"`
  41. CustArtId string `xorm:"nvarchar(40) 'CustArtId'" json:"LOG_PackTemplate-CustArtId"`
  42. Descr2 string `xorm:"nvarchar(40) 'Descr2'" json:"LOG_PackTemplate-Descr2"`
  43. SiteCode string `xorm:"nvarchar(40) 'SiteCode'" json:"LOG_PackTemplate-SiteCode"`
  44. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"LOG_PackTemplate-LastModify"`
  45. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"LOG_PackTemplate-LastUser"`
  46. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"LOG_PackTemplate-CreateTime"`
  47. Items []PackTemplateItemlst `xorm:"-" json:"LOG_PackTemplate-Items"`
  48. }
  49. /******************************************************************************
  50. *
  51. * @Function Name : GetKey
  52. *-----------------------------------------------------------------------------
  53. *
  54. * @Description : 获取实体的主键
  55. *
  56. * @Return Value : 实体的主键
  57. *
  58. * @Author : 代码生成器创建
  59. *
  60. * @Date : 2021-08-16 10:30:42
  61. *
  62. ******************************************************************************/
  63. func (self *PackTemplate) GetKey() core.PK {
  64. return core.PK{self.PlantNr, self.PackTemplateId}
  65. }