fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. public class Program
  6. {
  7. public static void Main(string[] args)
  8. {
  9. var query = new UvwRequestAssignmentManagementBO().GetAll().Where(uvw => (uvw.FK_ProcessStep == 2)
  10. && (uvw.FK_Entity == 1)
  11. && (uvw.FK_Manager == 15))
  12. .Select(p => new ReqSupAdminGridVm
  13. {
  14. NameFamily = p.NameFamily,
  15. RequestDate = p.RequestDate,
  16. RequestNo = p.RequestNo,
  17. RequestType = ReqType.GetReqType(p.RequestType),
  18. RequestEvaluationStatus = ReqEvalStatus.GetReqEvalStatus(p.RequestEvaluationStatus_Aggregation),
  19. });
  20. }
  21. }
  22.  
  23. public class ReqSupAdminGridVm
  24. {
  25. public string NameFamily;
  26. public DateTime RequestDate;
  27. public string RequestNo;
  28. public string RequestType;
  29. public string RequestEvaluationStatus;
  30. }
  31.  
  32. // ReSharper disable InconsistentNaming
  33. public struct UvwRequestAssignmentManagementBO
  34. {
  35. public IEnumerable<Stuff> GetAll()
  36. {
  37. throw new NotImplementedException();
  38. }
  39. }
  40.  
  41. public struct Stuff
  42. {
  43. public int FK_ProcessStep;
  44. public int FK_Entity;
  45. public int FK_Manager;
  46. public string NameFamily;
  47. public DateTime RequestDate;
  48. public string RequestNo;
  49. public int RequestType;
  50. public int RequestEvaluationStatus_Aggregation;
  51. }
  52.  
  53. static internal class ReqType
  54. {
  55. public static string GetReqType(int type)
  56. {
  57. switch (type)
  58. {
  59. case 1: return "a";
  60. case 2: return "b";
  61. case 3: return "c";
  62. case 4: return "d";
  63. default: return "";
  64. }
  65. }
  66. }
  67.  
  68. static internal class ReqEvalStatus
  69. {
  70. public static string GetReqEvalStatus(int agg)
  71. {
  72. switch (agg)
  73. {
  74. case 1: return "a";
  75. case 2: return "b";
  76. case 3: return "c";
  77. case 4: return "d";
  78. default: return "";
  79. }
  80. }
  81. }
Runtime error #stdin #stdout #stderr 0.03s 36688KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception: System.NotImplementedException: The requested feature is not implemented.
  at Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: The requested feature is not implemented.
  at Program.Main (System.String[] args) [0x00000] in <filename unknown>:0