fork(1) 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 = GetReqType(p.RequestType),
  18. RequestEvaluationStatus = GetReqEvalStatus(p.RequestEvaluationStatus_Aggregation),
  19. });
  20. }
  21.  
  22. private static string GetReqEvalStatus(int agg)
  23. {
  24. switch (agg)
  25. {
  26. case 1: return "a";
  27. case 2: return "b";
  28. case 3: return "c";
  29. case 4: return "d";
  30. default: return "";
  31. }
  32. }
  33.  
  34. private static string GetReqType(int type)
  35. {
  36. switch (type)
  37. {
  38. case 1: return "a";
  39. case 2: return "b";
  40. case 3: return "c";
  41. case 4: return "d";
  42. default: return "";
  43. }
  44. }
  45. }
  46.  
  47. public class ReqSupAdminGridVm
  48. {
  49. public string NameFamily;
  50. public DateTime RequestDate;
  51. public string RequestNo;
  52. public string RequestType;
  53. public string RequestEvaluationStatus;
  54. }
  55.  
  56. // ReSharper disable InconsistentNaming
  57. public struct UvwRequestAssignmentManagementBO
  58. {
  59. public IEnumerable<Stuff> GetAll()
  60. {
  61. throw new NotImplementedException();
  62. }
  63. }
  64.  
  65. public struct Stuff
  66. {
  67. public int FK_ProcessStep;
  68. public int FK_Entity;
  69. public int FK_Manager;
  70. public string NameFamily;
  71. public DateTime RequestDate;
  72. public string RequestNo;
  73. public int RequestType;
  74. public int RequestEvaluationStatus_Aggregation;
  75. }
Runtime error #stdin #stdout #stderr 0.02s 36632KB
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