ProcessOverView.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using OASystem.Domain.Entities.Groups;
  2. using OASystem.Domain.Enums;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.ViewModels.Groups
  9. {
  10. public class ProcessOverView
  11. {
  12. }
  13. public class ConfProcessOverInfo {
  14. /// <summary>
  15. /// 是否可切换节点模板
  16. /// </summary>
  17. public bool IsNodeTemplSwitchable { get; set; }
  18. public int TempId
  19. {
  20. get
  21. {
  22. int tempId = 0;
  23. if (ConfProcess.FirstOrDefault().Nodes.Count == 8) tempId = 1;
  24. else if (ConfProcess.FirstOrDefault().Nodes.Count == 6) tempId = 2;
  25. return tempId;
  26. }
  27. }
  28. public List<ConfProcessOverInfoView> ConfProcess { get; set; }
  29. }
  30. public class ConfProcessOverInfoView
  31. {
  32. public int Id { get; set; }
  33. public int GroupId { get; set; }
  34. public ConfProcessType ProcessType { get; set; }
  35. public string ProcessName { get; set; }
  36. public List<ConfProcessNodeInfoView> Nodes { get; set; }
  37. }
  38. public class ConfProcessNodeInfoView
  39. {
  40. public int Id { get; set; }
  41. public int ProcessId { get; set; }
  42. public int NodeOrder { get; set; }
  43. public string NodeName { get; set; }
  44. public string NodeDescTips { get; set; }
  45. public ProcessStatus OverallStatus { get; set; }
  46. public List<int> Participators { get; set; }
  47. public string StatusText { get; set; }
  48. public string Operator { get; set; }
  49. public string OpeateTime { get; set; }
  50. public string ActualDone { get; set; }
  51. public bool IsEnaFileUpBtn { get; set; }
  52. public bool IsFileUp { get; set; }
  53. }
  54. }