|
// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
|
|
|
|
package ap
|
|
|
|
import (
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/grmi"
|
|
"xorm.io/core"
|
|
)
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Struct Name : ArticleDemandEmergency
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : ArticleDemandEmergency的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2022-01-07 15:13:48
|
|
*
|
|
******************************************************************************/
|
|
type ArticleDemandEmergency struct {
|
|
PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ArticleDemandEmergency-PlantNr"`
|
|
ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"AP_ArticleDemandEmergency-ArtId"`
|
|
DemandKey string `xorm:"pk nvarchar(40) 'DemandKey'" json:"AP_ArticleDemandEmergency-DemandKey"`
|
|
DemandPeriodType string `xorm:"nvarchar(1) 'DemandPeriodType' not null" json:"AP_ArticleDemandEmergency-DemandPeriodType"`
|
|
ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"AP_ArticleDemandEmergency-ProjectId"`
|
|
CustomerId string `xorm:"nvarchar(40) 'CustomerId' not null" json:"AP_ArticleDemandEmergency-CustomerId"`
|
|
DemandDate grmi.Date `xorm:"date 'DemandDate' not null" json:"AP_ArticleDemandEmergency-DemandDate"`
|
|
DemandYear int `xorm:"int 'DemandYear' not null" json:"AP_ArticleDemandEmergency-DemandYear"`
|
|
DemandWeek int `xorm:"int 'DemandWeek' not null" json:"AP_ArticleDemandEmergency-DemandWeek"`
|
|
DemandMonth int `xorm:"int 'DemandMonth' not null" json:"AP_ArticleDemandEmergency-DemandMonth"`
|
|
ForecastDemandQty float64 `xorm:"float 'ForecastDemandQty'" json:"AP_ArticleDemandEmergency-ForecastDemandQty"`
|
|
OrderQty float64 `xorm:"float 'OrderQty'" json:"AP_ArticleDemandEmergency-OrderQty"`
|
|
OutSourcingQty float64 `xorm:"float 'OutSourcingQty'" json:"AP_ArticleDemandEmergency-OutSourcingQty"`
|
|
IndependentDemandQty float64 `xorm:"float 'IndependentDemandQty'" json:"AP_ArticleDemandEmergency-IndependentDemandQty"`
|
|
WipQty float64 `xorm:"float 'WipQty'" json:"AP_ArticleDemandEmergency-WipQty"`
|
|
OpeningInventory float64 `xorm:"float 'OpeningInventory'" json:"AP_ArticleDemandEmergency-OpeningInventory"`
|
|
TargetInventory float64 `xorm:"float 'TargetInventory'" json:"AP_ArticleDemandEmergency-TargetInventory"`
|
|
MinInventory float64 `xorm:"float 'MinInventory'" json:"AP_ArticleDemandEmergency-MinInventory"`
|
|
NetDemandQty float64 `xorm:"float 'NetDemandQty'" json:"AP_ArticleDemandEmergency-NetDemandQty"`
|
|
EndingInventory float64 `xorm:"float 'EndingInventory'" json:"AP_ArticleDemandEmergency-EndingInventory"`
|
|
Status int `xorm:"int 'Status' not null" json:"AP_ArticleDemandEmergency-Status"`
|
|
Status1 int `xorm:"int 'Status1' not null" json:"AP_ArticleDemandEmergency-Status1"`
|
|
Status2 int `xorm:"int 'Status2' not null" json:"AP_ArticleDemandEmergency-Status2"`
|
|
ResourceId string `xorm:"nvarchar(40) 'ResourceId'" json:"AP_ArticleDemandEmergency-ResourceId"`
|
|
OriginOutSourcingQty float64 `xorm:"float 'OriginOutSourcingQty'" json:"AP_ArticleDemandEmergency-OriginOutSourcingQty"`
|
|
PublishedVersionNr string `xorm:"nvarchar(40) 'PublishedVersionNr'" json:"AP_ArticleDemandEmergency-PublishedVersionNr"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ArticleDemandEmergency-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ArticleDemandEmergency-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ArticleDemandEmergency-CreateTime"`
|
|
|
|
ZaituQty float64 `xorm:"ZaituQty" json:"AP_ArticleDemandEmergency-ZaituQty"` //在途量
|
|
WeiwaiQty float64 `xorm:"WeiwaiQty" json:"AP_ArticleDemandEmergency-WeiwaiQty"` //委外量
|
|
|
|
MidBatchQuantity int `xorm:"-" json:"AP_ArticleDemandEmergency-MidBatchQuantity"` //每次削减量
|
|
NeedQty float64 `xorm:"-" json:"AP_ArticleDemandEmergency-NeedQty"` //需求
|
|
MpsWorkTime float64 `xorm:"-" json:"AP_ArticleDemandEmergency-MpsWorkTime"` //mps产能 单位hour
|
|
MinCoverPeriod float64 `xorm:"-" json:"AP_ArticleDemandEmergency-MinCoverPeriod"`
|
|
MaxCoverPeriod float64 `xorm:"-" json:"AP_ArticleDemandEmergency-MaxCoverPeriod"`
|
|
MinCoverPeriodType string `xorm:"-" json:"AP_ArticleDemandEmergency-MinCoverPeriodType"`
|
|
ResourceWorkTime float64 `xorm:"-" json:"AP_ArticleDemandEmergency-ResourceWorkTime"` //资源产量
|
|
CanWrite bool `xorm:"-" json:"AP_ArticleDemandEmergency-CanWrite"` //是否可以编辑
|
|
|
|
LockWeeks int `xorm:"-" json:"AP_ArticleDemandEmergency-LockWeeks"` //前置期
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2022-01-07 15:13:48
|
|
*
|
|
******************************************************************************/
|
|
func (self *ArticleDemandEmergency) GetKey() core.PK {
|
|
return core.PK{self.PlantNr, self.ArtId, self.DemandKey}
|
|
}
|