苏州瑞玛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.

62 lines
3.8 KiB

// 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 : MpsSetting
*-----------------------------------------------------------------------------
*
* @Description : MpsSetting的实体映射
*
* @Author : 代码生成器创建
*
* @Date : 2021-11-30 14:02:35
*
******************************************************************************/
type MpsSetting struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_MpsSetting-PlantNr"`
MpsSettingNr int `xorm:"pk int 'MpsSettingNr' autoincr" json:"AP_MpsSetting-MpsSettingNr"`
Descr string `xorm:"nvarchar(40) 'Descr' not null" json:"AP_MpsSetting-Descr"`
MpsRule string `xorm:"nvarchar(40) 'MpsRule' not null" json:"AP_MpsSetting-MpsRule"`
MpsStartDaysDeviation int `xorm:"int 'MpsStartDaysDeviation' not null" json:"AP_MpsSetting-MpsStartDaysDeviation"`
MpsStartWeeksDeviation int `xorm:"int 'MpsStartWeeksDeviation' not null" json:"AP_MpsSetting-MpsStartWeeksDeviation"`
MpsStartMonthsDeviation int `xorm:"int 'MpsStartMonthsDeviation' not null" json:"AP_MpsSetting-MpsStartMonthsDeviation"`
UseCustDemandLockToggle bool `xorm:"bit 'UseCustDemandLockToggle' not null" json:"AP_MpsSetting-UseCustDemandLockToggle"`
DefaultLockDays int `xorm:"int 'DefaultLockDays' not null" json:"AP_MpsSetting-DefaultLockDays"`
DefaultLockWeeks int `xorm:"int 'DefaultLockWeeks' not null" json:"AP_MpsSetting-DefaultLockWeeks"`
DefaultLockMonths int `xorm:"int 'DefaultLockMonths' not null" json:"AP_MpsSetting-DefaultLockMonths"`
UseFixedStockCoverToggle bool `xorm:"bit 'UseFixedStockCoverToggle' not null" json:"AP_MpsSetting-UseFixedStockCoverToggle"`
DefaultMinCoverPeriod float64 `xorm:"float 'DefaultMinCoverPeriod'" json:"AP_MpsSetting-DefaultMinCoverPeriod"`
DefaultMaxCoverPeriod float64 `xorm:"float 'DefaultMaxCoverPeriod'" json:"AP_MpsSetting-DefaultMaxCoverPeriod"`
DefaultMinCoverPeriodType string `xorm:"nvarchar(1) 'DefaultMinCoverPeriodType' not null" json:"AP_MpsSetting-DefaultMinCoverPeriodType"`
DefaultMaxCoverPeriodType string `xorm:"nvarchar(1) 'DefaultMaxCoverPeriodType' not null" json:"AP_MpsSetting-DefaultMaxCoverPeriodType"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_MpsSetting-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_MpsSetting-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_MpsSetting-CreateTime"`
SalesOrderFetchLeadTimeByDay int `xorm:"int 'SalesOrderFetchLeadTimeByDay' not null" json:"AP_MpsSetting-SalesOrderFetchLeadTimeByDay"`
DefaultLookAheadWeeks int `xorm:"int 'DefaultLookAheadWeeks' not null" json:"AP_MpsSetting-DefaultLookAheadWeeks"`
}
/******************************************************************************
*
* @Function Name : GetKey
*-----------------------------------------------------------------------------
*
* @Description : 获取实体的主键
*
* @Return Value : 实体的主键
*
* @Author : 代码生成器创建
*
* @Date : 2021-11-30 14:02:35
*
******************************************************************************/
func (self *MpsSetting) GetKey() core.PK {
return core.PK{self.PlantNr, self.MpsSettingNr}
}