123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using EMIS.Entities;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.TeachingMaterial
- {
- public class PurchasingStatisticsView
- {
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [DisplayName("学年学期ID")]
- [Required]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolyearName { get; set; }
- /// <summary>
- /// 课程列表
- /// </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>
- /// 教材信息ID
- /// </summary>
- [DisplayName("教材信息ID")]
- [Required]
- public Guid TeachingMaterialPoolID { get; set; }
- /// <summary>
- /// 教材编号
- /// </summary>
- [DisplayName("教材编号")]
- public string TeachingMaterialCode { get; set; }
-
- /// <summary>
- /// 教材名称
- /// </summary>
- [DisplayName("教材名称")]
- public string TeachingMaterialName { get; set; }
- /// <summary>
- ///教材类型ID
- /// </summary>
- [DisplayName("教材类型ID")]
- 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>
- /// ISBN
- /// </summary>
- [DisplayName("ISBN")]
- [Required]
- public string ISBN { get; set; }
- /// <summary>
- ///单价
- /// </summary>
- [DisplayName("单价")]
- public decimal? Price { get; set; }
- /// <summary>
- ///总征订量
- /// </summary>
- [DisplayName("总征订量")]
- public int? CountNumber { get; set; }
- }
- }
|