123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.ScoreManage
- {
- public class StudentScoreInputView
- {
- //序号
- public int No { get; set; }
- /// <summary>
- /// 成绩录入ID
- /// </summary>
- public Guid? ScoreID { get; set; }
- public Guid? CoursematerialID{get;set;}
- /// <summary>
- /// 期末设定ID
- /// </summary>
- public Guid? FinalExaminationID { get; set; }
- /// <summary>
- /// 学生ID
- /// </summary>
- public Guid? UserID { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- public string LoginID { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- public string UserName { get; set; }
- /// <summary>
- /// 考试性质
- /// </summary>
- public int? ExamsCategoryID { get; set; }
- /// <summary>
- /// 考试性质
- /// </summary>
- public string ExamsCategoryName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
- .Where(x => x.Value == ExamsCategoryID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 考试状态
- /// </summary>
- public int? ExamsStateID { get; set; }
- /// <summary>
- /// 考试性质
- /// </summary>
- public string ExamsStateName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsState.ToString())
- .Where(x => x.Value == ExamsStateID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 总成绩
- /// </summary>
- public decimal? TotalScore { get; set; }
- /// <summary>
- /// 学分
- /// </summary>
- public decimal? Credit { get; set; }
- /// <summary>
- /// 绩点
- /// </summary>
- public decimal? GradePoint { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string Remarks { get; set; }
- //dictionary反序列化时,键必须为字符串或者对象……
- public Dictionary<string, StudentScoreInputDetailView> ScoreDetail { get; set; }
- public bool IsCanEdit { get; set; }
- public bool IsConvert { get; set; }
- public int? StarttermID { get; set; }
- /// <summary>
- /// 考试状态
- /// </summary>
- public int? RecordStatus { get; set; }
- }
- [Serializable]
- public class StudentScoreInputDetailView
- {
- public Guid? UserID { get; set; }
- public int? ScoreTypeID { get; set; }
- public decimal? Score { get; set; }
- public bool IsCanEdit { get; set; }
- public int? RecordStatus { get; set; }
- public static explicit operator StudentScoreInputDetailView(string jsonString)
- {
- return Newtonsoft.Json.JsonConvert.DeserializeObject<StudentScoreInputDetailView>(jsonString);
- }
- public override string ToString()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this);
- }
- }
- }
|