SOCDetailGroupScoreView.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 SOCDetailGroupScoreView
  10. {
  11. public Guid? SOCID { get; set; }
  12. public Guid? SchoolyearID { get; set; }
  13. public string SchoolyearCode { get; set; }
  14. public Guid? CoursematerialID { get; set; }
  15. public string CourseCode { get; set; }
  16. public string CourseName { get; set; }
  17. public Guid? ClassmajorID { get; set; }
  18. public string ClassmajorNo { get; set; }
  19. public string ClassmajorName { get; set; }
  20. public Guid? SOCDetailID { get; set; }
  21. public string SOCDetailName { get; set; }
  22. public Guid? SOCDetailGroupID { get; set; }
  23. public string LoginID { get; set; }
  24. public string SOCDetailUrl { get; set; }
  25. public string FileName { get; set; }
  26. public int? No { get; set; }
  27. public string Name
  28. {
  29. get
  30. {
  31. return "第" + No.ToString() + "组";
  32. }
  33. }
  34. public decimal? SOCDetailCredit { get; set; }
  35. public decimal? Weight { get; set; }
  36. public decimal? Score { get; set; }
  37. public int? RecordStatus { get; set; }
  38. public string RecordStatusDesc
  39. {
  40. get
  41. {
  42. return IdNameExt.GetDictionaryItem(DictionaryItem.DQP_SOCDetailSubmitStatus.ToString())
  43. .Where(x => x.Value == RecordStatus)
  44. .Select(x => x.Name).FirstOrDefault();
  45. }
  46. }
  47. public bool IsCanEdit
  48. {
  49. get
  50. {
  51. return RecordStatus == (int)DQP_SOCDetailSubmitStatus.Submited || RecordStatus == (int)DQP_SOCDetailSubmitStatus.HasScore;
  52. }
  53. }
  54. [DisplayName("意见")]
  55. public string Remark { get; set; }
  56. public Guid? EducationMissionID { get; set; }
  57. public string EducationMissionName { get; set; }
  58. public string EducationMissionNameStr
  59. {
  60. get
  61. {
  62. if (string.IsNullOrEmpty(EducationMissionName))
  63. {
  64. return "";
  65. }
  66. else
  67. {
  68. return EducationMissionName.Replace(CourseName, "").Replace("-", "");
  69. }
  70. }
  71. }
  72. }
  73. }