|
// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
|
|
|
|
package base
|
|
|
|
import (
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/grmi"
|
|
"xorm.io/core"
|
|
)
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Struct Name : WorkPlace
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : WorkPlace的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-11-30 14:02:35
|
|
*
|
|
******************************************************************************/
|
|
type WorkPlace struct {
|
|
PlantNr int `xorm:"pk int 'PlantNr'" json:"WorkPlace-PlantNr"`
|
|
WorkPlaceId string `xorm:"pk nvarchar(40) 'WorkPlaceId'" json:"WorkPlace-WorkPlaceId"`
|
|
Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"WorkPlace-Descr"`
|
|
WorkPlaceGrpId string `xorm:"nvarchar(40) 'WorkPlaceGrpId' not null" json:"WorkPlace-WorkPlaceGrpId"`
|
|
WorkAreaId string `xorm:"nvarchar(40) 'WorkAreaId' not null" json:"WorkPlace-WorkAreaId"`
|
|
UsePriority int `xorm:"int 'UsePriority' not null" json:"WorkPlace-UsePriority"`
|
|
WorkPlaceType string `xorm:"nvarchar(40) 'WorkPlaceType' not null" json:"WorkPlace-WorkPlaceType"`
|
|
OperationType string `xorm:"nvarchar(40) 'OperationType' not null" json:"WorkPlace-OperationType"`
|
|
CapacityType string `xorm:"nvarchar(40) 'CapacityType' not null" json:"WorkPlace-CapacityType"`
|
|
CapacityFactor float64 `xorm:"float 'CapacityFactor' not null" json:"WorkPlace-CapacityFactor"`
|
|
PlanEfficiency float64 `xorm:"float 'PlanEfficiency' not null" json:"WorkPlace-PlanEfficiency"`
|
|
CostRate float64 `xorm:"float 'CostRate' not null" json:"WorkPlace-CostRate"`
|
|
WeekModelNr int `xorm:"int 'WeekModelNr' not null" json:"WorkPlace-WeekModelNr"`
|
|
WorkCalendarNr int `xorm:"int 'WorkCalendarNr' not null" json:"WorkPlace-WorkCalendarNr"`
|
|
CostCenterId string `xorm:"nvarchar(40) 'CostCenterId' not null" json:"WorkPlace-CostCenterId"`
|
|
MachineFactor float64 `xorm:"float 'MachineFactor' not null" json:"WorkPlace-MachineFactor"`
|
|
OperatorFactor float64 `xorm:"float 'OperatorFactor' not null" json:"WorkPlace-OperatorFactor"`
|
|
FixedIdleDuration float64 `xorm:"float 'FixedIdleDuration' not null" json:"WorkPlace-FixedIdleDuration"`
|
|
FixedPostIdleDuration float64 `xorm:"float 'FixedPostIdleDuration' not null" json:"WorkPlace-FixedPostIdleDuration"`
|
|
FixedWaitingDuration float64 `xorm:"float 'FixedWaitingDuration' not null" json:"WorkPlace-FixedWaitingDuration"`
|
|
AverageQueueDuration float64 `xorm:"float 'AverageQueueDuration' not null" json:"WorkPlace-AverageQueueDuration"`
|
|
DurationUom string `xorm:"nvarchar(40) 'DurationUom' not null" json:"WorkPlace-DurationUom"`
|
|
MaxPersons int `xorm:"int 'MaxPersons' not null" json:"WorkPlace-MaxPersons"`
|
|
MinPersons int `xorm:"int 'MinPersons' not null" json:"WorkPlace-MinPersons"`
|
|
InventoryNr int `xorm:"int 'InventoryNr' not null" json:"WorkPlace-InventoryNr"`
|
|
TechnologyId string `xorm:"nvarchar(40) 'TechnologyId' not null" json:"WorkPlace-TechnologyId"`
|
|
AutoReleaseToggle bool `xorm:"bit 'AutoReleaseToggle' not null" json:"WorkPlace-AutoReleaseToggle"`
|
|
AllowMultiRunningOpToggle bool `xorm:"bit 'AllowMultiRunningOpToggle' not null" json:"WorkPlace-AllowMultiRunningOpToggle"`
|
|
CloseReportBySelfToggle bool `xorm:"bit 'CloseReportBySelfToggle' not null" json:"WorkPlace-CloseReportBySelfToggle"`
|
|
AllowReportOpByMultiPersonToggle bool `xorm:"bit 'AllowReportOpByMultiPersonToggle' not null" json:"WorkPlace-AllowReportOpByMultiPersonToggle"`
|
|
QtyCheckToggle bool `xorm:"bit 'QtyCheckToggle' not null" json:"WorkPlace-QtyCheckToggle"`
|
|
OverDeliveryQtyFactor1 float64 `xorm:"float 'OverDeliveryQtyFactor1' not null" json:"WorkPlace-OverDeliveryQtyFactor1"`
|
|
OverDeliveryQtyFactor2N float64 `xorm:"float 'OverDeliveryQtyFactor2N' not null" json:"WorkPlace-OverDeliveryQtyFactor2N"`
|
|
UnderDeliveryQtyFactor1 float64 `xorm:"float 'UnderDeliveryQtyFactor1' not null" json:"WorkPlace-UnderDeliveryQtyFactor1"`
|
|
UnderDeliveryQtyFactor2N float64 `xorm:"float 'UnderDeliveryQtyFactor2N' not null" json:"WorkPlace-UnderDeliveryQtyFactor2N"`
|
|
UpdateSuccessorStatusToggle bool `xorm:"bit 'UpdateSuccessorStatusToggle' not null" json:"WorkPlace-UpdateSuccessorStatusToggle"`
|
|
StatusQtyFactor float64 `xorm:"float 'StatusQtyFactor' not null" json:"WorkPlace-StatusQtyFactor"`
|
|
SuccessorStatus int `xorm:"int 'SuccessorStatus' not null" json:"WorkPlace-SuccessorStatus"`
|
|
AutoUpdatePlanQtyToggle bool `xorm:"bit 'AutoUpdatePlanQtyToggle' not null" json:"WorkPlace-AutoUpdatePlanQtyToggle"`
|
|
RestQtyRemindToggle bool `xorm:"bit 'RestQtyRemindToggle' not null" json:"WorkPlace-RestQtyRemindToggle"`
|
|
PersonLoginParameter string `xorm:"nvarchar(100) 'PersonLoginParameter' not null" json:"WorkPlace-PersonLoginParameter"`
|
|
PersonLogoutParameter string `xorm:"nvarchar(100) 'PersonLogoutParameter' not null" json:"WorkPlace-PersonLogoutParameter"`
|
|
SetupParameter string `xorm:"nvarchar(100) 'SetupParameter' not null" json:"WorkPlace-SetupParameter"`
|
|
PostParameter string `xorm:"nvarchar(100) 'PostParameter' not null" json:"WorkPlace-PostParameter"`
|
|
MaterialConsumptionParameter string `xorm:"nvarchar(100) 'MaterialConsumptionParameter' not null" json:"WorkPlace-MaterialConsumptionParameter"`
|
|
AutoStartInterruptWhenOpCloseToggle bool `xorm:"bit 'AutoStartInterruptWhenOpCloseToggle' not null" json:"WorkPlace-AutoStartInterruptWhenOpCloseToggle"`
|
|
InterruptReasonNr int `xorm:"int 'InterruptReasonNr' not null" json:"WorkPlace-InterruptReasonNr"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WorkPlace-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WorkPlace-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WorkPlace-CreateTime"`
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-11-30 14:02:35
|
|
*
|
|
******************************************************************************/
|
|
func (self *WorkPlace) GetKey() core.PK {
|
|
return core.PK{self.PlantNr, self.WorkPlaceId}
|
|
}
|