Grp_ScheduleView.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using Newtonsoft.Json;
  2. using OASystem.Domain.Enums;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Collections.Specialized;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace OASystem.Domain.ViewModels.Groups
  10. {
  11. public class Grp_ScheduleView
  12. {
  13. /// <summary>
  14. /// 流程管控Id
  15. /// </summary>
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 团组Id
  19. /// </summary>
  20. public int DiId { get; set; }
  21. /// <summary>
  22. /// 团组名称
  23. /// </summary>
  24. public string DeleName { get; set; }
  25. /// <summary>
  26. /// 主流程(枚举)
  27. /// </summary>
  28. public GrpSchedulePrimaryStepEnum PrimaryStep { get; set; }
  29. /// <summary>
  30. /// 主流程中文描述
  31. /// </summary>
  32. public string PrimaryStep_Text
  33. {
  34. get
  35. {
  36. return EnumHelper.GetEnumDescription(PrimaryStep);
  37. }
  38. }
  39. /// <summary>
  40. /// 预计开始时间
  41. /// </summary>
  42. public DateTime ExpectBeginDt { get; set; }
  43. /// <summary>
  44. /// 预计结束时间
  45. /// </summary>
  46. public DateTime ExpectEndDt { get; set; }
  47. /// <summary>
  48. /// 总负责人Id
  49. /// </summary>
  50. public int Leader { get; set; }
  51. /// <summary>
  52. /// 总负责人
  53. /// </summary>
  54. public string LeaderName { get; set; }
  55. /// <summary>
  56. /// 异常状态0:正常 1:异常
  57. /// </summary>
  58. public int Exception { get; set; }
  59. }
  60. public class Grp_ScheduleRootView
  61. {
  62. public int Root { get; set; }
  63. public string RootName
  64. {
  65. get
  66. {
  67. NameValueCollection nvc = EnumHelper.GetNVCFromEnumValue(typeof(GrpSchedulePrimaryStepEnum));
  68. string rst = nvc[this.Root.ToString()];
  69. if (string.IsNullOrEmpty(rst))
  70. {
  71. rst = Root.ToString();
  72. }
  73. return rst;
  74. }
  75. }
  76. public List<Grp_ScheduleDetailView> ChildList { get; set; }
  77. public GrpConfig Config { get; set; }
  78. }
  79. public class GrpConfig
  80. {
  81. public string backgroundColor { get; set; }
  82. }
  83. }