广汽安道拓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.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 : WorkLine
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : WorkLine的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-10-28 14:57:09
  17. *
  18. ******************************************************************************/
  19. type WorkLine struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"WorkLine-PlantNr"`
  21. WorkLineid string `xorm:"pk nvarchar(40) 'WorkLineid'" json:"WorkLine-WorkLineid"`
  22. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"WorkLine-Descr"`
  23. LineType string `xorm:"nvarchar(10) 'LineType' not null" json:"WorkLine-LineType"`
  24. GroupType string `xorm:"nvarchar(10) 'GroupType' not null" json:"WorkLine-GroupType"`
  25. GroupLineId string `xorm:"nvarchar(40) 'GroupLineId'" json:"WorkLine-GroupLineId"`
  26. LinePlanMode string `xorm:"nvarchar(3) 'LinePlanMode' not null" json:"WorkLine-LinePlanMode"`
  27. WeekModelNr int `xorm:"int 'WeekModelNr' not null" json:"WorkLine-WeekModelNr"`
  28. WorkCalendarNr int `xorm:"int 'WorkCalendarNr' not null" json:"WorkLine-WorkCalendarNr"`
  29. Location string `xorm:"nvarchar(40) 'Location' not null" json:"WorkLine-Location"`
  30. CostCenterId string `xorm:"nvarchar(40) 'CostCenterId' not null" json:"WorkLine-CostCenterId"`
  31. CostRate float64 `xorm:"float 'CostRate' not null" json:"WorkLine-CostRate"`
  32. ProdEff float64 `xorm:"float 'ProdEff' not null" json:"WorkLine-ProdEff"`
  33. ReqWorkers int `xorm:"int 'ReqWorkers' not null" json:"WorkLine-ReqWorkers"`
  34. Pos int `xorm:"int 'Pos' not null" json:"WorkLine-Pos"`
  35. CheckFirstPieceTogge bool `xorm:"bit 'CheckFirstPieceTogge' not null" json:"WorkLine-CheckFirstPieceTogge"`
  36. TaskQueueSortWay string `xorm:"nvarchar(20) 'TaskQueueSortWay' not null" json:"WorkLine-TaskQueueSortWay"`
  37. MultiQueueMixSortToggle bool `xorm:"bit 'MultiQueueMixSortToggle' not null" json:"WorkLine-MultiQueueMixSortToggle"`
  38. TaskQueueMixSortWay string `xorm:"nvarchar(10) 'TaskQueueMixSortWay' not null" json:"WorkLine-TaskQueueMixSortWay"`
  39. MixSortLogic string `xorm:"nvarchar(100) 'MixSortLogic' not null" json:"WorkLine-MixSortLogic"`
  40. TaskReleaseWay string `xorm:"nvarchar(20) 'TaskReleaseWay' not null" json:"WorkLine-TaskReleaseWay"`
  41. ReleaseQtyParameter int `xorm:"int 'ReleaseQtyParameter' not null" json:"WorkLine-ReleaseQtyParameter"`
  42. ReleaseTimeParameter grmi.DateTime `xorm:"datetime 'ReleaseTimeParameter'" json:"WorkLine-ReleaseTimeParameter"`
  43. ReleaseCtrlParameter string `xorm:"nvarchar(100) 'ReleaseCtrlParameter' not null" json:"WorkLine-ReleaseCtrlParameter"`
  44. ReleaseDurationParameter int `xorm:"int 'ReleaseDurationParameter'" json:"WorkLine-ReleaseDurationParameter"`
  45. SchedKeySnr string `xorm:"nvarchar(40) 'SchedKeySnr' not null" json:"WorkLine-SchedKeySnr"`
  46. SerialOrderSnr string `xorm:"nvarchar(40) 'SerialOrderSnr' not null" json:"WorkLine-SerialOrderSnr"`
  47. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WorkLine-LastModify"`
  48. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WorkLine-LastUser"`
  49. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WorkLine-CreateTime"`
  50. WorkPlaceValst []WorkPlace `json:"WorkPlaceValst" xorm:"-"`
  51. WorkPlaceUnValst []WorkPlace `json:"WorkPlaceUnvalst" xorm:"-"`
  52. }
  53. /******************************************************************************
  54. *
  55. * @Function Name : GetKey
  56. *-----------------------------------------------------------------------------
  57. *
  58. * @Description : 获取实体的主键
  59. *
  60. * @Return Value : 实体的主键
  61. *
  62. * @Author : 代码生成器创建
  63. *
  64. * @Date : 2021-10-28 14:57:09
  65. *
  66. ******************************************************************************/
  67. func (self *WorkLine) GetKey() core.PK {
  68. return core.PK{self.PlantNr, self.WorkLineid}
  69. }