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

3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package ap
  3. import (
  4. "leit.com/LAPP_CHEERSSON_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : MpsSetting
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : MpsSetting的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-30 14:02:35
  17. *
  18. ******************************************************************************/
  19. type MpsSetting struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_MpsSetting-PlantNr"`
  21. MpsSettingNr int `xorm:"pk int 'MpsSettingNr' autoincr" json:"AP_MpsSetting-MpsSettingNr"`
  22. Descr string `xorm:"nvarchar(40) 'Descr' not null" json:"AP_MpsSetting-Descr"`
  23. MpsRule string `xorm:"nvarchar(40) 'MpsRule' not null" json:"AP_MpsSetting-MpsRule"`
  24. MpsStartDaysDeviation int `xorm:"int 'MpsStartDaysDeviation' not null" json:"AP_MpsSetting-MpsStartDaysDeviation"`
  25. MpsStartWeeksDeviation int `xorm:"int 'MpsStartWeeksDeviation' not null" json:"AP_MpsSetting-MpsStartWeeksDeviation"`
  26. MpsStartMonthsDeviation int `xorm:"int 'MpsStartMonthsDeviation' not null" json:"AP_MpsSetting-MpsStartMonthsDeviation"`
  27. UseCustDemandLockToggle bool `xorm:"bit 'UseCustDemandLockToggle' not null" json:"AP_MpsSetting-UseCustDemandLockToggle"`
  28. DefaultLockDays int `xorm:"int 'DefaultLockDays' not null" json:"AP_MpsSetting-DefaultLockDays"`
  29. DefaultLockWeeks int `xorm:"int 'DefaultLockWeeks' not null" json:"AP_MpsSetting-DefaultLockWeeks"`
  30. DefaultLockMonths int `xorm:"int 'DefaultLockMonths' not null" json:"AP_MpsSetting-DefaultLockMonths"`
  31. UseFixedStockCoverToggle bool `xorm:"bit 'UseFixedStockCoverToggle' not null" json:"AP_MpsSetting-UseFixedStockCoverToggle"`
  32. DefaultMinCoverPeriod float64 `xorm:"float 'DefaultMinCoverPeriod'" json:"AP_MpsSetting-DefaultMinCoverPeriod"`
  33. DefaultMaxCoverPeriod float64 `xorm:"float 'DefaultMaxCoverPeriod'" json:"AP_MpsSetting-DefaultMaxCoverPeriod"`
  34. DefaultMinCoverPeriodType string `xorm:"nvarchar(1) 'DefaultMinCoverPeriodType' not null" json:"AP_MpsSetting-DefaultMinCoverPeriodType"`
  35. DefaultMaxCoverPeriodType string `xorm:"nvarchar(1) 'DefaultMaxCoverPeriodType' not null" json:"AP_MpsSetting-DefaultMaxCoverPeriodType"`
  36. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_MpsSetting-LastModify"`
  37. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_MpsSetting-LastUser"`
  38. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_MpsSetting-CreateTime"`
  39. SalesOrderFetchLeadTimeByDay int `xorm:"int 'SalesOrderFetchLeadTimeByDay' not null" json:"AP_MpsSetting-SalesOrderFetchLeadTimeByDay"`
  40. DefaultLookAheadWeeks int `xorm:"int 'DefaultLookAheadWeeks' not null" json:"AP_MpsSetting-DefaultLookAheadWeeks"`
  41. }
  42. /******************************************************************************
  43. *
  44. * @Function Name : GetKey
  45. *-----------------------------------------------------------------------------
  46. *
  47. * @Description : 获取实体的主键
  48. *
  49. * @Return Value : 实体的主键
  50. *
  51. * @Author : 代码生成器创建
  52. *
  53. * @Date : 2021-11-30 14:02:35
  54. *
  55. ******************************************************************************/
  56. func (self *MpsSetting) GetKey() core.PK {
  57. return core.PK{self.PlantNr, self.MpsSettingNr}
  58. }