SOCDetailRawScoreView.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. namespace EMIS.ViewModel.DQPSystem
  7. {
  8. public class SOCDetailRawScoreView
  9. {
  10. public Guid? SOCID { get; set; }
  11. public Guid? SchoolyearID { get; set; }
  12. public string SchoolyearCode { get; set; }
  13. public Guid? CoursematerialID { get; set; }
  14. public string CourseCode { get; set; }
  15. public string CourseName { get; set; }
  16. public Guid? DepartmentID { get; set; }
  17. public Guid? CollegeID { get; set; }
  18. public decimal? TotalCredit { get; set; }
  19. public Guid? ClassmajorID { get; set; }
  20. public string ClassmajorNo { get; set; }
  21. public string ClassmajorName { get; set; }
  22. public int? Gradeyear { get; set; }
  23. public int? StandardID { get; set; }
  24. public string StandardDesc
  25. {
  26. get
  27. {
  28. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  29. .Where(x => x.Value == StandardID)
  30. .Select(x => x.Name).FirstOrDefault();
  31. }
  32. }
  33. public Guid? UserID { get; set; }
  34. public string LoginID { get; set; }
  35. public string Name { get; set; }
  36. public Guid? SOCDetailID { get; set; }
  37. public string SOCDetailName { get; set; }
  38. public decimal? SOCDetailCredit { get; set; }
  39. public decimal? Weight { get; set; }
  40. public decimal? Score { get; set; }
  41. public decimal? Credit { get; set; }
  42. public decimal? ActualScore
  43. {
  44. get
  45. {
  46. if (Score.HasValue)
  47. {
  48. return ((Score ?? 0) * (Weight ?? 0)) / 100;
  49. }
  50. else
  51. {
  52. return null;
  53. }
  54. }
  55. }
  56. public DateTime? CreateTime { get; set; }
  57. public Guid? CreateUserID { get; set; }
  58. public string CreateUserName { get; set; }
  59. }
  60. }