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

73 lines
4.5 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package jit
  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-10-19 10:26:40
  17. *
  18. ******************************************************************************/
  19. type PackTemplate struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"JIT_PackTemplate-PlantNr"`
  21. PackTemplateId string `xorm:"pk nvarchar(40) 'PackTemplateId'" json:"JIT_PackTemplate-PackTemplateId"`
  22. EnabledToggle bool `xorm:"bit 'EnabledToggle' not null" json:"JIT_PackTemplate-EnabledToggle"`
  23. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"JIT_PackTemplate-Descr"`
  24. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"JIT_PackTemplate-ProjectId"`
  25. PackTypeId string `xorm:"nvarchar(40) 'PackTypeId' not null" json:"JIT_PackTemplate-PackTypeId"`
  26. UnfullfillableToggle bool `xorm:"bit 'UnfullfillableToggle' not null" json:"JIT_PackTemplate-UnfullfillableToggle"`
  27. PackOrderSnrId string `xorm:"nvarchar(40) 'PackOrderSnrId' not null" json:"JIT_PackTemplate-PackOrderSnrId"`
  28. PrintQty int `xorm:"int 'PrintQty' not null" json:"JIT_PackTemplate-PrintQty"`
  29. PlanQty int `xorm:"int 'PlanQty' not null" json:"JIT_PackTemplate-PlanQty"`
  30. PrinterId string `xorm:"nvarchar(40) 'PrinterId' not null" json:"JIT_PackTemplate-PrinterId"`
  31. TemplateFile string `xorm:"nvarchar(100) 'TemplateFile' not null" json:"JIT_PackTemplate-TemplateFile"`
  32. SyncNr int `xorm:"int 'SyncNr' not null" json:"JIT_PackTemplate-SyncNr"`
  33. Orientation int `xorm:"int 'Orientation' not null" json:"JIT_PackTemplate-Orientation"`
  34. SyncFlag string `xorm:"nvarchar(40) 'SyncFlag' not null" json:"JIT_PackTemplate-SyncFlag"`
  35. BoxSnrId string `xorm:"nvarchar(40) 'BoxSnrId' not null" json:"JIT_PackTemplate-BoxSnrId"`
  36. CheckSyncKey bool `xorm:"bit 'CheckSyncKey' not null" json:"JIT_PackTemplate-CheckSyncKey"`
  37. CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"JIT_PackTemplate-CtrlPara1"`
  38. CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"JIT_PackTemplate-CtrlPara2"`
  39. CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"JIT_PackTemplate-CtrlStr1"`
  40. CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"JIT_PackTemplate-CtrlStr2"`
  41. CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1' not null" json:"JIT_PackTemplate-CtrlTime1"`
  42. CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2' not null" json:"JIT_PackTemplate-CtrlTime2"`
  43. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"JIT_PackTemplate-LastModify"`
  44. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"JIT_PackTemplate-LastUser"`
  45. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"JIT_PackTemplate-CreateTime"`
  46. PackTemplateItemLstLi []PackTemplateItemLst `xorm:"-" json:"JIT_PackTemplate-PackTemplateItemLstLi"`
  47. PartIdMap map[string]int `xorm:"-" json:"JIT_PackTemplate-PartIdMap"`
  48. }
  49. /******************************************************************************
  50. *
  51. * @Function Name : GetKey
  52. *-----------------------------------------------------------------------------
  53. *
  54. * @Description : 获取实体的主键
  55. *
  56. * @Return Value : 实体的主键
  57. *
  58. * @Author : 代码生成器创建
  59. *
  60. * @Date : 2021-10-19 10:26:40
  61. *
  62. ******************************************************************************/
  63. func (self *PackTemplate) GetKey() core.PK {
  64. return core.PK{self.PlantNr, self.PackTemplateId}
  65. }
  66. func (self *PackTemplate) Init() {
  67. }