CertificateMobileView.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using EMIS.ViewModel.Cache;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace EMIS.ViewModel.CerificateManage
  7. {
  8. public class CertificateMobileView
  9. {
  10. public CertificateMobileView()
  11. {
  12. this.ScoreViewList = new List<CertificateMobileScoreView>();
  13. }
  14. public Guid ProjectScoreID { get; set; }
  15. public Guid? ExaminationProjectID { get; set; }
  16. public string ExaminationProjectName { get; set; }
  17. public Guid? LevelSettingID { get; set; }
  18. public string LevelName { get; set; }
  19. public bool? IsPassed { get; set; }
  20. public Guid? CertisfierDistributeID { get; set; }
  21. public int? DistributeTypeID { get; set; }
  22. public string DistributeTypeName
  23. {
  24. get
  25. {
  26. return IdNameExt.GetDictionaryItem(DictionaryItem.ER_CertisfierDistributeType)
  27. .Where(x => x.Value == DistributeTypeID)
  28. .Select(x => x.Name).FirstOrDefault();
  29. }
  30. }
  31. public int? DistributeStatusID { get; set; }
  32. public string DistributeStatusName
  33. {
  34. get
  35. {
  36. return IdNameExt.GetDictionaryItem(DictionaryItem.ER_CertisfierDistributeStatus)
  37. .Where(x => x.Value == DistributeStatusID)
  38. .Select(x => x.Name).FirstOrDefault();
  39. }
  40. }
  41. public string ContactPerson { get; set; }
  42. public string ContactNo { get; set; }
  43. public string ContactIDNo { get; set; }
  44. public string Address { get; set; }
  45. public string DeliveryNoteNo { get; set; }
  46. public List<CertificateMobileScoreView> ScoreViewList { get; set; }
  47. }
  48. public class CertificateMobileScoreView
  49. {
  50. public Guid ExaminationScoreID { get; set; }
  51. public Guid? ExaminationProjectID { get; set; }
  52. public int? ExaminationSubjectID { get; set; }
  53. public string ExaminationSubjectName
  54. {
  55. get
  56. {
  57. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationSubject)
  58. .Where(x => x.Value == ExaminationSubjectID)
  59. .Select(x => x.Name).FirstOrDefault();
  60. }
  61. }
  62. public decimal? Score { get; set; }
  63. }
  64. }