StepList.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. namespace WeApp.TrainingCamp
  4. {
  5. public static class StepList
  6. {
  7. public static List<StepInfo> List = new List<StepInfo>()
  8. {
  9. new StepInfo("0_1","演练已就绪",5),
  10. new StepInfo("0_2","组建指挥部",16),
  11. new StepInfo("1_1","第1轮情景处置",20),
  12. new StepInfo("1_2","第1轮答记者问",25),
  13. new StepInfo("1_3","第1轮专家点评",35),
  14. new StepInfo("2_1","第2轮情景处置",45),
  15. new StepInfo("2_2","第2轮答记者问",55),
  16. new StepInfo("2_3","第2轮专家点评",65),
  17. new StepInfo("3_1","第3轮情景处置",75),
  18. new StepInfo("3_2","第3轮新闻发布会",85),
  19. new StepInfo("3_3","第3轮专家点评",95),
  20. new StepInfo("0_5","生成报告",98),
  21. new StepInfo("0_6","演练完成",100),
  22. };
  23. public static StepInfo GetStepInfo(string id)
  24. {
  25. return List.FirstOrDefault(a => a.Id == id);
  26. }
  27. public class StepInfo
  28. {
  29. public StepInfo(string id, string name, int progress)
  30. {
  31. Id = id;
  32. Name = name;
  33. Progress = progress;
  34. }
  35. public string Id { get; set; }
  36. public string Name { get; set; }
  37. public int Progress { get; set; }
  38. }
  39. }
  40. }