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.

70 lines
4.3 KiB

3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_LF_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-05-07 16:20:28
  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(1) 'LineType' not null" json:"WorkLine-LineType"`
  24. LinePlanMode string `xorm:"nvarchar(3) 'LinePlanMode' not null" json:"WorkLine-LinePlanMode"`
  25. WeekModelNr int `xorm:"int 'WeekModelNr' not null" json:"WorkLine-WeekModelNr"`
  26. WorkCalendarNr int `xorm:"int 'WorkCalendarNr' not null" json:"WorkLine-WorkCalendarNr"`
  27. Location string `xorm:"nvarchar(40) 'Location' not null" json:"WorkLine-Location"`
  28. CostCenterId string `xorm:"nvarchar(40) 'CostCenterId' not null" json:"WorkLine-CostCenterId"`
  29. CostRate float64 `xorm:"float 'CostRate' not null" json:"WorkLine-CostRate"`
  30. ProdEff float64 `xorm:"float 'ProdEff' not null" json:"WorkLine-ProdEff"`
  31. ReqWorkers int `xorm:"int 'ReqWorkers' not null" json:"WorkLine-ReqWorkers"`
  32. Pos int `xorm:"int 'Pos' not null" json:"WorkLine-Pos"`
  33. TaskQueueSortWay string `xorm:"nvarchar(10) 'TaskQueueSortWay' not null" json:"WorkLine-TaskQueueSortWay"`
  34. MultiQueueMixSortToggle bool `xorm:"bit 'MultiQueueMixSortToggle' not null" json:"WorkLine-MultiQueueMixSortToggle"`
  35. TaskQueueMixSortWay string `xorm:"nvarchar(10) 'TaskQueueMixSortWay' not null" json:"WorkLine-TaskQueueMixSortWay"`
  36. MixSortLogic string `xorm:"nvarchar(100) 'MixSortLogic' not null" json:"WorkLine-MixSortLogic"`
  37. TaskReleaseWay string `xorm:"nvarchar(10) 'TaskReleaseWay' not null" json:"WorkLine-TaskReleaseWay"`
  38. ReleaseQtyParameter int `xorm:"int 'ReleaseQtyParameter' not null" json:"WorkLine-ReleaseQtyParameter"`
  39. ReleaseTimeParameter grmi.DateTime `xorm:"datetime 'ReleaseTimeParameter'" json:"WorkLine-ReleaseTimeParameter"`
  40. ReleaseCtrlParameter string `xorm:"nvarchar(100) 'ReleaseCtrlParameter' not null" json:"WorkLine-ReleaseCtrlParameter"`
  41. ReleaseDurationParameter int `xorm:"int 'ReleaseDurationParameter'" json:"WorkLine-ReleaseDurationParameter"`
  42. PrintAddress string `xorm:"nvarchar(40) 'PrintAddress' not null" json:"WorkLine-PrintAddress"`
  43. PrintTemplate string `xorm:"nvarchar(40) 'PrintTemplate' not null" json:"WorkLine-PrintTemplate"`
  44. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WorkLine-LastModify"`
  45. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WorkLine-LastUser"`
  46. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WorkLine-CreateTime"`
  47. WorkPlaceValst []WorkPlace `json:"WorkPlaceValst" xorm:"-"`
  48. WorkPlaceUnValst []WorkPlace `json:"WorkPlaceUnvalst" xorm:"-"`
  49. }
  50. /******************************************************************************
  51. *
  52. * @Function Name : GetKey
  53. *-----------------------------------------------------------------------------
  54. *
  55. * @Description : 获取实体的主键
  56. *
  57. * @Return Value : 实体的主键
  58. *
  59. * @Author : 代码生成器创建
  60. *
  61. * @Date : 2021-03-23 17:06:57
  62. *
  63. ******************************************************************************/
  64. func (self *WorkLine) GetKey() core.PK {
  65. return core.PK{self.PlantNr, self.WorkLineid}
  66. }