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

84 lines
5.8 KiB

3 years ago
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 : ArticleDemandEmergency
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ArticleDemandEmergency的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2022-01-07 15:13:48
  17. *
  18. ******************************************************************************/
  19. type ArticleDemandEmergency struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ArticleDemandEmergency-PlantNr"`
  21. ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"AP_ArticleDemandEmergency-ArtId"`
  22. DemandKey string `xorm:"pk nvarchar(40) 'DemandKey'" json:"AP_ArticleDemandEmergency-DemandKey"`
  23. DemandPeriodType string `xorm:"nvarchar(1) 'DemandPeriodType' not null" json:"AP_ArticleDemandEmergency-DemandPeriodType"`
  24. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"AP_ArticleDemandEmergency-ProjectId"`
  25. CustomerId string `xorm:"nvarchar(40) 'CustomerId' not null" json:"AP_ArticleDemandEmergency-CustomerId"`
  26. DemandDate grmi.Date `xorm:"date 'DemandDate' not null" json:"AP_ArticleDemandEmergency-DemandDate"`
  27. DemandYear int `xorm:"int 'DemandYear' not null" json:"AP_ArticleDemandEmergency-DemandYear"`
  28. DemandWeek int `xorm:"int 'DemandWeek' not null" json:"AP_ArticleDemandEmergency-DemandWeek"`
  29. DemandMonth int `xorm:"int 'DemandMonth' not null" json:"AP_ArticleDemandEmergency-DemandMonth"`
  30. ForecastDemandQty float64 `xorm:"float 'ForecastDemandQty'" json:"AP_ArticleDemandEmergency-ForecastDemandQty"`
  31. OrderQty float64 `xorm:"float 'OrderQty'" json:"AP_ArticleDemandEmergency-OrderQty"`
  32. OutSourcingQty float64 `xorm:"float 'OutSourcingQty'" json:"AP_ArticleDemandEmergency-OutSourcingQty"`
  33. IndependentDemandQty float64 `xorm:"float 'IndependentDemandQty'" json:"AP_ArticleDemandEmergency-IndependentDemandQty"`
  34. WipQty float64 `xorm:"float 'WipQty'" json:"AP_ArticleDemandEmergency-WipQty"`
  35. OpeningInventory float64 `xorm:"float 'OpeningInventory'" json:"AP_ArticleDemandEmergency-OpeningInventory"`
  36. TargetInventory float64 `xorm:"float 'TargetInventory'" json:"AP_ArticleDemandEmergency-TargetInventory"`
  37. MinInventory float64 `xorm:"float 'MinInventory'" json:"AP_ArticleDemandEmergency-MinInventory"`
  38. NetDemandQty float64 `xorm:"float 'NetDemandQty'" json:"AP_ArticleDemandEmergency-NetDemandQty"`
  39. EndingInventory float64 `xorm:"float 'EndingInventory'" json:"AP_ArticleDemandEmergency-EndingInventory"`
  40. Status int `xorm:"int 'Status' not null" json:"AP_ArticleDemandEmergency-Status"`
  41. Status1 int `xorm:"int 'Status1' not null" json:"AP_ArticleDemandEmergency-Status1"`
  42. Status2 int `xorm:"int 'Status2' not null" json:"AP_ArticleDemandEmergency-Status2"`
  43. ResourceId string `xorm:"nvarchar(40) 'ResourceId'" json:"AP_ArticleDemandEmergency-ResourceId"`
  44. OriginOutSourcingQty float64 `xorm:"float 'OriginOutSourcingQty'" json:"AP_ArticleDemandEmergency-OriginOutSourcingQty"`
  45. PublishedVersionNr string `xorm:"nvarchar(40) 'PublishedVersionNr'" json:"AP_ArticleDemandEmergency-PublishedVersionNr"`
  46. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ArticleDemandEmergency-LastModify"`
  47. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ArticleDemandEmergency-LastUser"`
  48. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ArticleDemandEmergency-CreateTime"`
  49. ZaituQty float64 `xorm:"ZaituQty" json:"AP_ArticleDemandEmergency-ZaituQty"` //在途量
  50. WeiwaiQty float64 `xorm:"WeiwaiQty" json:"AP_ArticleDemandEmergency-WeiwaiQty"` //委外量
  51. MidBatchQuantity int `xorm:"-" json:"AP_ArticleDemandEmergency-MidBatchQuantity"` //每次削减量
  52. NeedQty float64 `xorm:"-" json:"AP_ArticleDemandEmergency-NeedQty"` //需求
  53. MpsWorkTime float64 `xorm:"-" json:"AP_ArticleDemandEmergency-MpsWorkTime"` //mps产能 单位hour
  54. MinCoverPeriod float64 `xorm:"-" json:"AP_ArticleDemandEmergency-MinCoverPeriod"`
  55. MaxCoverPeriod float64 `xorm:"-" json:"AP_ArticleDemandEmergency-MaxCoverPeriod"`
  56. MinCoverPeriodType string `xorm:"-" json:"AP_ArticleDemandEmergency-MinCoverPeriodType"`
  57. ResourceWorkTime float64 `xorm:"-" json:"AP_ArticleDemandEmergency-ResourceWorkTime"` //资源产量
  58. CanWrite bool `xorm:"-" json:"AP_ArticleDemandEmergency-CanWrite"` //是否可以编辑
  59. LockWeeks int `xorm:"-" json:"AP_ArticleDemandEmergency-LockWeeks"` //前置期
  60. }
  61. /******************************************************************************
  62. *
  63. * @Function Name : GetKey
  64. *-----------------------------------------------------------------------------
  65. *
  66. * @Description : 获取实体的主键
  67. *
  68. * @Return Value : 实体的主键
  69. *
  70. * @Author : 代码生成器创建
  71. *
  72. * @Date : 2022-01-07 15:13:48
  73. *
  74. ******************************************************************************/
  75. func (self *ArticleDemandEmergency) GetKey() core.PK {
  76. return core.PK{self.PlantNr, self.ArtId, self.DemandKey}
  77. }