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.

67 lines
4.1 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package pj
  3. import (
  4. "LEIT_PM/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : ProjectPhaseResourceLst
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ProjectPhaseResourceLst的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-09-06 13:59:55
  17. *
  18. ******************************************************************************/
  19. type ProjectPhaseResourceLst struct {
  20. ProjectId string `xorm:"pk nvarchar(40) 'ProjectId'" json:"PJ_ProjectPhaseResourceLst-ProjectId"`
  21. PhaseId string `xorm:"pk nvarchar(40) 'PhaseId'" json:"PJ_ProjectPhaseResourceLst-PhaseId"`
  22. ResourceId string `xorm:"pk nvarchar(40) 'ResourceId'" json:"PJ_ProjectPhaseResourceLst-ResourceId"`
  23. PlanStartDate grmi.Date `xorm:"pk date 'PlanStartDate'" json:"PJ_ProjectPhaseResourceLst-PlanStartDate"`
  24. Pos int `xorm:"int 'Pos' not null" json:"PJ_ProjectPhaseResourceLst-Pos"`
  25. ResourceName string `xorm:"nvarchar(40) 'ResourceName' not null" json:"PJ_ProjectPhaseResourceLst-ResourceName"`
  26. PlanEndDate grmi.Date `xorm:"date 'PlanEndDate'" json:"PJ_ProjectPhaseResourceLst-PlanEndDate"`
  27. ActualStartDate grmi.Date `xorm:"date 'ActualStartDate'" json:"PJ_ProjectPhaseResourceLst-ActualStartDate"`
  28. ActualEndDate grmi.Date `xorm:"date 'ActualEndDate'" json:"PJ_ProjectPhaseResourceLst-ActualEndDate"`
  29. PlanMandays float64 `xorm:"float 'PlanMandays' not null" json:"PJ_ProjectPhaseResourceLst-PlanMandays"`
  30. ActualMandays float64 `xorm:"float 'ActualMandays' not null" json:"PJ_ProjectPhaseResourceLst-ActualMandays"`
  31. PlanCost float64 `xorm:"float 'PlanCost' not null" json:"PJ_ProjectPhaseResourceLst-PlanCost"`
  32. ActualCost float64 `xorm:"float 'ActualCost' not null" json:"PJ_ProjectPhaseResourceLst-ActualCost"`
  33. MandayRate float64 `xorm:"float 'MandayRate' not null" json:"PJ_ProjectPhaseResourceLst-MandayRate"`
  34. Remark string `xorm:"nvarchar(255) 'Remark' not null" json:"PJ_ProjectPhaseResourceLst-Remark"`
  35. CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"PJ_ProjectPhaseResourceLst-CtrlPara1"`
  36. CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"PJ_ProjectPhaseResourceLst-CtrlPara2"`
  37. CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"PJ_ProjectPhaseResourceLst-CtrlStr1"`
  38. CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"PJ_ProjectPhaseResourceLst-CtrlStr2"`
  39. CtrlTime1 grmi.Date `xorm:"date 'CtrlTime1'" json:"PJ_ProjectPhaseResourceLst-CtrlTime1"`
  40. CtrlTime2 grmi.Date `xorm:"date 'CtrlTime2'" json:"PJ_ProjectPhaseResourceLst-CtrlTime2"`
  41. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PJ_ProjectPhaseResourceLst-LastModify"`
  42. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PJ_ProjectPhaseResourceLst-LastUser"`
  43. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PJ_ProjectPhaseResourceLst-CreateTime"`
  44. ProjectPhaseResourcePeopleLst []ProjectPhaseResourcePeopleLst `json:"PJ_ProjectPhaseResourceLst-ProjectPhaseResourcePeopleLst" xorm:"-"`
  45. }
  46. /******************************************************************************
  47. *
  48. * @Function Name : GetKey
  49. *-----------------------------------------------------------------------------
  50. *
  51. * @Description : 获取实体的主键
  52. *
  53. * @Return Value : 实体的主键
  54. *
  55. * @Author : 代码生成器创建
  56. *
  57. * @Date : 2021-09-06 13:59:55
  58. *
  59. ******************************************************************************/
  60. func (self *ProjectPhaseResourceLst) GetKey() core.PK {
  61. return core.PK{self.ProjectId, self.PhaseId, self.ResourceId, self.PlanStartDate.ToString()}
  62. }