苏州瑞玛APS项目web后台
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.

91 lines
7.6 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "leit.com/LAPP_CHEERSSON_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : WorkPlace
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : WorkPlace的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-30 14:02:35
  17. *
  18. ******************************************************************************/
  19. type WorkPlace struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"WorkPlace-PlantNr"`
  21. WorkPlaceId string `xorm:"pk nvarchar(40) 'WorkPlaceId'" json:"WorkPlace-WorkPlaceId"`
  22. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"WorkPlace-Descr"`
  23. WorkPlaceGrpId string `xorm:"nvarchar(40) 'WorkPlaceGrpId' not null" json:"WorkPlace-WorkPlaceGrpId"`
  24. WorkAreaId string `xorm:"nvarchar(40) 'WorkAreaId' not null" json:"WorkPlace-WorkAreaId"`
  25. UsePriority int `xorm:"int 'UsePriority' not null" json:"WorkPlace-UsePriority"`
  26. WorkPlaceType string `xorm:"nvarchar(40) 'WorkPlaceType' not null" json:"WorkPlace-WorkPlaceType"`
  27. OperationType string `xorm:"nvarchar(40) 'OperationType' not null" json:"WorkPlace-OperationType"`
  28. CapacityType string `xorm:"nvarchar(40) 'CapacityType' not null" json:"WorkPlace-CapacityType"`
  29. CapacityFactor float64 `xorm:"float 'CapacityFactor' not null" json:"WorkPlace-CapacityFactor"`
  30. PlanEfficiency float64 `xorm:"float 'PlanEfficiency' not null" json:"WorkPlace-PlanEfficiency"`
  31. CostRate float64 `xorm:"float 'CostRate' not null" json:"WorkPlace-CostRate"`
  32. WeekModelNr int `xorm:"int 'WeekModelNr' not null" json:"WorkPlace-WeekModelNr"`
  33. WorkCalendarNr int `xorm:"int 'WorkCalendarNr' not null" json:"WorkPlace-WorkCalendarNr"`
  34. CostCenterId string `xorm:"nvarchar(40) 'CostCenterId' not null" json:"WorkPlace-CostCenterId"`
  35. MachineFactor float64 `xorm:"float 'MachineFactor' not null" json:"WorkPlace-MachineFactor"`
  36. OperatorFactor float64 `xorm:"float 'OperatorFactor' not null" json:"WorkPlace-OperatorFactor"`
  37. FixedIdleDuration float64 `xorm:"float 'FixedIdleDuration' not null" json:"WorkPlace-FixedIdleDuration"`
  38. FixedPostIdleDuration float64 `xorm:"float 'FixedPostIdleDuration' not null" json:"WorkPlace-FixedPostIdleDuration"`
  39. FixedWaitingDuration float64 `xorm:"float 'FixedWaitingDuration' not null" json:"WorkPlace-FixedWaitingDuration"`
  40. AverageQueueDuration float64 `xorm:"float 'AverageQueueDuration' not null" json:"WorkPlace-AverageQueueDuration"`
  41. DurationUom string `xorm:"nvarchar(40) 'DurationUom' not null" json:"WorkPlace-DurationUom"`
  42. MaxPersons int `xorm:"int 'MaxPersons' not null" json:"WorkPlace-MaxPersons"`
  43. MinPersons int `xorm:"int 'MinPersons' not null" json:"WorkPlace-MinPersons"`
  44. InventoryNr int `xorm:"int 'InventoryNr' not null" json:"WorkPlace-InventoryNr"`
  45. TechnologyId string `xorm:"nvarchar(40) 'TechnologyId' not null" json:"WorkPlace-TechnologyId"`
  46. AutoReleaseToggle bool `xorm:"bit 'AutoReleaseToggle' not null" json:"WorkPlace-AutoReleaseToggle"`
  47. AllowMultiRunningOpToggle bool `xorm:"bit 'AllowMultiRunningOpToggle' not null" json:"WorkPlace-AllowMultiRunningOpToggle"`
  48. CloseReportBySelfToggle bool `xorm:"bit 'CloseReportBySelfToggle' not null" json:"WorkPlace-CloseReportBySelfToggle"`
  49. AllowReportOpByMultiPersonToggle bool `xorm:"bit 'AllowReportOpByMultiPersonToggle' not null" json:"WorkPlace-AllowReportOpByMultiPersonToggle"`
  50. QtyCheckToggle bool `xorm:"bit 'QtyCheckToggle' not null" json:"WorkPlace-QtyCheckToggle"`
  51. OverDeliveryQtyFactor1 float64 `xorm:"float 'OverDeliveryQtyFactor1' not null" json:"WorkPlace-OverDeliveryQtyFactor1"`
  52. OverDeliveryQtyFactor2N float64 `xorm:"float 'OverDeliveryQtyFactor2N' not null" json:"WorkPlace-OverDeliveryQtyFactor2N"`
  53. UnderDeliveryQtyFactor1 float64 `xorm:"float 'UnderDeliveryQtyFactor1' not null" json:"WorkPlace-UnderDeliveryQtyFactor1"`
  54. UnderDeliveryQtyFactor2N float64 `xorm:"float 'UnderDeliveryQtyFactor2N' not null" json:"WorkPlace-UnderDeliveryQtyFactor2N"`
  55. UpdateSuccessorStatusToggle bool `xorm:"bit 'UpdateSuccessorStatusToggle' not null" json:"WorkPlace-UpdateSuccessorStatusToggle"`
  56. StatusQtyFactor float64 `xorm:"float 'StatusQtyFactor' not null" json:"WorkPlace-StatusQtyFactor"`
  57. SuccessorStatus int `xorm:"int 'SuccessorStatus' not null" json:"WorkPlace-SuccessorStatus"`
  58. AutoUpdatePlanQtyToggle bool `xorm:"bit 'AutoUpdatePlanQtyToggle' not null" json:"WorkPlace-AutoUpdatePlanQtyToggle"`
  59. RestQtyRemindToggle bool `xorm:"bit 'RestQtyRemindToggle' not null" json:"WorkPlace-RestQtyRemindToggle"`
  60. PersonLoginParameter string `xorm:"nvarchar(100) 'PersonLoginParameter' not null" json:"WorkPlace-PersonLoginParameter"`
  61. PersonLogoutParameter string `xorm:"nvarchar(100) 'PersonLogoutParameter' not null" json:"WorkPlace-PersonLogoutParameter"`
  62. SetupParameter string `xorm:"nvarchar(100) 'SetupParameter' not null" json:"WorkPlace-SetupParameter"`
  63. PostParameter string `xorm:"nvarchar(100) 'PostParameter' not null" json:"WorkPlace-PostParameter"`
  64. MaterialConsumptionParameter string `xorm:"nvarchar(100) 'MaterialConsumptionParameter' not null" json:"WorkPlace-MaterialConsumptionParameter"`
  65. AutoStartInterruptWhenOpCloseToggle bool `xorm:"bit 'AutoStartInterruptWhenOpCloseToggle' not null" json:"WorkPlace-AutoStartInterruptWhenOpCloseToggle"`
  66. InterruptReasonNr int `xorm:"int 'InterruptReasonNr' not null" json:"WorkPlace-InterruptReasonNr"`
  67. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WorkPlace-LastModify"`
  68. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WorkPlace-LastUser"`
  69. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WorkPlace-CreateTime"`
  70. }
  71. /******************************************************************************
  72. *
  73. * @Function Name : GetKey
  74. *-----------------------------------------------------------------------------
  75. *
  76. * @Description : 获取实体的主键
  77. *
  78. * @Return Value : 实体的主键
  79. *
  80. * @Author : 代码生成器创建
  81. *
  82. * @Date : 2021-11-30 14:02:35
  83. *
  84. ******************************************************************************/
  85. func (self *WorkPlace) GetKey() core.PK {
  86. return core.PK{self.PlantNr, self.WorkPlaceId}
  87. }