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
{
///
/// 学年学期ID
///
[DisplayName("学年学期ID")]
[Required]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public string SchoolyearName { get; set; }
///
/// 课程列表
///
[DisplayName("课程列表")]
public HashSet CoursematerialEntityList { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CoursematerialName
{
get
{
return string.Join(",", CoursematerialEntityList.Select(x => x.CourseName));
}
}
///
/// 教材信息ID
///
[DisplayName("教材信息ID")]
[Required]
public Guid TeachingMaterialPoolID { get; set; }
///
/// 教材编号
///
[DisplayName("教材编号")]
public string TeachingMaterialCode { get; set; }
///
/// 教材名称
///
[DisplayName("教材名称")]
public string TeachingMaterialName { get; set; }
///
///教材类型ID
///
[DisplayName("教材类型ID")]
public int? TeachingMaterialTypeID { get; set; }
///
///教材类型
///
[DisplayName("教材类型")]
public string TeachingMaterialTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMaterialType.ToString())
.Where(x => x.Value == TeachingMaterialTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 版本时间
///
[DisplayName("版本时间")]
public string PublishTime { get; set; }
///
/// 出版单位ID
///
[DisplayName("出版单位ID")]
public Guid? PublishID { get; set; }
///
/// 出版单位
///
[DisplayName("出版单位")]
public string PublishName { get; set; }
///
/// 作者
///
[DisplayName("作者")]
public string Author { get; set; }
///
/// ISBN
///
[DisplayName("ISBN")]
[Required]
public string ISBN { get; set; }
///
///单价
///
[DisplayName("单价")]
public decimal? Price { get; set; }
///
///总征订量
///
[DisplayName("总征订量")]
public int? CountNumber { get; set; }
}
}