ScoreEditView.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.Entities;
  6. namespace EMIS.ViewModel.ScoreManage
  7. {
  8. public class ScoreEditView : FinalExaminationView
  9. {
  10. public ScoreEditView()
  11. : base()
  12. { }
  13. public ScoreEditView(FinalExaminationView finalExamination)
  14. {
  15. var ParentType = typeof(FinalExaminationView);
  16. var Properties = ParentType.GetProperties();
  17. foreach (var Propertie in Properties)
  18. {
  19. //循环遍历属性
  20. if (Propertie.CanRead && Propertie.CanWrite)
  21. {
  22. //进行属性拷贝
  23. Propertie.SetValue(this, Propertie.GetValue(finalExamination, null), null);
  24. }
  25. }
  26. }
  27. public bool IsTotalFormula { get; set; }
  28. public bool IsCreditFormula { get; set; }
  29. public bool IsGradePointFormula { get; set; }
  30. public List<ER_CustomScoreFormula> CustomScoreFormula { get; set; }
  31. public List<ER_ResultTypeDetail> ResultType { get; set; }
  32. public List<ER_ExamsStateSetting> ExamsStateSetting { get; set; }
  33. public int? NormalExamsID { get; set; }
  34. public int? ExaminationSuspensonID { get; set; }
  35. public int? ExaminationExemptionID { get; set; }
  36. public List<int?> MisconductIDList { get; set; }
  37. public int? FixScoreTypeID { get; set; }
  38. public int? ScoreDigitCount { get; set; }
  39. }
  40. }