123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.Entities;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.TeachingMaterial
- {
- public class TeachersOrderView
- {
- /// <summary>
- /// 教师征订ID
- /// </summary>
- [DisplayName("教师征订ID")]
- public Guid TeachersOrderID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- /// [Required]
- [DisplayName("学年学期")]
- [Required]
- public Guid? SchoolyearID { get; set; }
- [DisplayName("学年学期")]
- public string SchoolyearName { get; set; }
- /// <summary>
- /// 院系所ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
- [Required]
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 教材总库ID
- /// </summary>
- [DisplayName("教材总库ID")]
- [Required]
- public Guid TeachingMaterialPoolID { get; set; }
- /// <summary>
- /// 课程ID
- /// </summary>
- [DisplayName("课程")]
- public HashSet<EM_Coursematerial> CoursematerialEntityList { get; set; }
- /// <summary>
- /// 课程名称
- /// </summary>
- [DisplayName("课程名称")]
- public string CoursematerialName
- {
- get
- {
- return string.Join(",", CoursematerialEntityList.Select(x => x.CourseName));
- }
- }
- /// <summary>
- /// 课程类型
- /// </summary>
- [DisplayName("课程类型")]
- public string CoursematerialTypeName { get; set; }
- /// <summary>
- /// 课程类型
- /// </summary>
- [DisplayName("课程类型")]
- public int? CoursematerialType { get; set; }
- /// <summary>
- /// 课程代码
- /// </summary>
- [DisplayName("课程代码")]
- public string CoursematerialCode
- {
- get
- {
- return string.Join(",", CoursematerialEntityList.Select(x => x.CourseCode));
- }
- }
- /// <summary>
- /// 课程级别
- /// </summary>
- [DisplayName("课程级别")]
- public string CoursematerialLevelName { get; set; }
- /// <summary>
- /// 课程级别
- /// </summary>
- [DisplayName("课程级别")]
- public int? CoursematerialLevel { get; set; }
- /// <summary>
- /// 教材编号
- /// </summary>
- [DisplayName("教材编号")]
- public string TeachingMaterialCode { get; set; }
- /// <summary>
- /// 教材名称
- /// </summary>
- [DisplayName("教材名称")]
- public string TeachingMaterialName { get; set; }
- /// <summary>
- ///教材类型
- /// </summary>
- [DisplayName("教材类型")]
- public int? TeachingMaterialTypeID { get; set; }
- /// <summary>
- ///教材类型
- /// </summary>
- [DisplayName("教材类型")]
- public string TeachingMaterialTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMaterialType.ToString())
- .Where(x => x.Value == TeachingMaterialTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 版本时间
- /// </summary>
- [DisplayName("版本时间")]
- public string PublishTime { get; set; }
- /// <summary>
- /// 出版单位ID
- /// </summary>
- [DisplayName("出版单位ID")]
- public Guid? PublishID { get; set; }
- /// <summary>
- /// 出版单位
- /// </summary>
- [DisplayName("出版单位")]
- public string PublishName { get; set; }
- /// <summary>
- /// 作者
- /// </summary>
- [DisplayName("作者")]
- public string Author { get; set; }
- /// <summary>
- ///征订数量
- /// </summary>
- [DisplayName("征订数量")]
- [Required]
- public int? OrderQty { get; set; }
- /// <summary>
- /// 征订人ID
- /// </summary>
- [DisplayName("征订人ID")]
- public Guid OrderUserID { get; set; }
- /// <summary>
- /// 征订人编号
- /// </summary>
- [DisplayName("征订人编号")]
- public string OrderLoginID { get; set; }
- /// <summary>
- /// 征订人
- /// </summary>
- [DisplayName("征订人")]
- public string OrderUserName { get; set; }
- /// <summary>
- /// 征订日期
- /// </summary>
- [DisplayName("征订日期")]
- public DateTime? OrderDate { get; set; }
- /// <summary>
- /// 征订说明
- /// </summary>
- [DisplayName("征订说明")]
- public string OrderDesc { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- [DisplayName("审核状态")]
- public int ApproveStatus { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- [DisplayName("审核状态")]
- public string ApproveStatusName { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("审核状态")]
- public DateTime? CreateTime { get; set; }
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// ISBN
- /// </summary>
- [DisplayName("ISBN")]
- [Required]
- public string ISBN { get; set; }
- /// <summary>
- /// 单价
- /// </summary>
- [DisplayName("单价")]
- [Required]
- public decimal? Price { get; set; }
- }
- }
|