SOCDetailStudentScoreView.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. using System.ComponentModel;
  7. namespace EMIS.ViewModel.DQPSystem
  8. {
  9. public class SOCDetailStudentScoreView
  10. {
  11. public Guid? SOCID { get; set; }
  12. public Guid? SOCDetailStudentID { get; set; }
  13. public Guid? SchoolyearID { get; set; }
  14. public Guid? EducationMissionID { get; set; }
  15. public string EducationMissionName { get; set; }
  16. public string EducationMissionNameStr
  17. {
  18. get
  19. {
  20. if (string.IsNullOrEmpty(EducationMissionName))
  21. {
  22. return "";
  23. }
  24. else
  25. {
  26. return EducationMissionName.Replace(CourseName, "").Replace("-", "");
  27. }
  28. }
  29. }
  30. public string SchoolyearCode { get; set; }
  31. public int? YearID { get; set; }
  32. public Guid? CoursematerialID { get; set; }
  33. public string CourseCode { get; set; }
  34. public string CourseName { get; set; }
  35. public Guid? ClassmajorID { get; set; }
  36. public string ClassmajorNo { get; set; }
  37. public string ClassmajorName { get; set; }
  38. public Guid? UserID { get; set; }
  39. public string LoginID { get; set; }
  40. public string Name { get; set; }
  41. public Guid? SOCDetailID { get; set; }
  42. public string SOCDetailName { get; set; }
  43. public string SOCDetailUrl { get; set; }
  44. public string FileName { get; set; }
  45. public decimal? SOCDetailCredit { get; set; }
  46. public decimal? Weight { get; set; }
  47. public decimal? Score { get; set; }
  48. public decimal? Credit { get; set; }
  49. public int? RecordStatus { get; set; }
  50. public string RecordStatusDesc
  51. {
  52. get
  53. {
  54. return IdNameExt.GetDictionaryItem(DictionaryItem.DQP_SOCDetailSubmitStatus.ToString())
  55. .Where(x => x.Value == RecordStatus)
  56. .Select(x => x.Name).FirstOrDefault();
  57. }
  58. }
  59. public bool IsCanEdit
  60. {
  61. get
  62. {
  63. return RecordStatus == (int)DQP_SOCDetailSubmitStatus.Submited || RecordStatus == (int)DQP_SOCDetailSubmitStatus.HasScore;
  64. }
  65. }
  66. [DisplayName("意见")]
  67. public string Remark { get; set; }
  68. }
  69. }