using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using EMIS.ViewModel.CacheManage;
using System.ComponentModel.DataAnnotations;
namespace EMIS.ViewModel.TeachingMaterial
{
public class StudentsOrderShowReportView
{
///
/// 学年学期编号
///
[DisplayName("学年学期编号")]
public string SchoolyearCode { get; set; }
///
/// 院系所
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? GradeID { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public string Grade
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 专业名称对应数据字典Value
///
[DisplayName("Value")]
public int? SpecialtyValue { get; set; }
///
/// 专业代码
///
[DisplayName("专业代码")]
public string SpecialtyCode
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == SpecialtyValue)
.Select(x => x.Code).FirstOrDefault();
}
}
///
/// 专业名称
///
[DisplayName("专业名称")]
public string SpecialtyName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == SpecialtyValue)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 年级专业编号
///
[DisplayName("年级专业编号")]
public string GrademajorCode { get; set; }
///
/// 年级专业名称
///
[DisplayName("年级专业名称")]
public string GrademajorName { get; set; }
///
/// 课程代码
///
[DisplayName("课程代码")]
public string CourseCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 教材编号
///
[DisplayName("教材编号")]
public string TeachingMaterialCode { get; set; }
///
/// 教材名称
///
[DisplayName("教材名称")]
public string TeachingMaterialName { get; set; }
///
/// 教材类型
///
[DisplayName("教材类型")]
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();
}
}
///
/// ISBN
///
[DisplayName("ISBN")]
public string ISBN { get; set; }
///
/// 版本时间
///
[DisplayName("版本时间")]
public string PublishTime { get; set; }
///
/// 出版单位
///
[DisplayName("出版单位")]
public string PublishName { get; set; }
///
/// 作者
///
[DisplayName("作者")]
public string Author { get; set; }
///
/// 单价
///
[DisplayName("单价")]
public decimal? Price { get; set; }
///
/// 学生人数
///
[DisplayName("学生人数")]
public int? ClassNum { get; set; }
///
/// 征订数量
///
[DisplayName("征订数量")]
public int? OrderQty { get; set; }
///
/// 增加数量
///
[DisplayName("增加数量")]
public int? PreIncreaseQty { get; set; }
///
/// 总数量
///
[DisplayName("总数量")]
public int? Count { get; set; }
/////
///// 课程类别
/////
//[DisplayName("课程属性")]
//public int? CourseCategory { get; set; }
/////
///// 课程类别
/////
//[DisplayName("课程属性")]
//public string CourseCategoryName
//{
// get
// {
// return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString())
// .Where(x => x.Value == CourseCategory)
// .Select(x => x.Name).FirstOrDefault();
// }
//}
}
public class StudentsOrderDataReportView
{
///
/// 学年学期ID
///
[DisplayName("学年学期")]
public Guid? SchoolyearID { get; set; }
///
/// 学年学期编号
///
[DisplayName("学年学期编号")]
public string SchoolyearCode { get; set; }
///
/// 校区ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
public Guid? CampusID { get; set; }
///
/// 院系所ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
public Guid? CollegeID { get; set; }
///
/// 院系所
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? GradeID { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public string Grade
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
}
}
///
/// 专业名称对应数据字典Value
///
[DisplayName("Value")]
public int? SpecialtyValue { get; set; }
///
/// 专业代码
///
[DisplayName("专业代码")]
public string SpecialtyCode
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == SpecialtyValue)
.Select(x => x.Code).FirstOrDefault();
}
}
///
/// 专业名称
///
[DisplayName("专业名称")]
public string SpecialtyName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == SpecialtyValue)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 年级专业ID
///
[DisplayName("年级专业ID")]
public Guid? GrademajorID { get; set; }
///
/// 年级专业编号
///
[DisplayName("年级专业编号")]
public string GrademajorCode { get; set; }
///
/// 年级专业名称
///
[DisplayName("年级专业名称")]
public string GrademajorName { get; set; }
///
/// 学生人数
///
[DisplayName("学生人数")]
public int? ClassNum { get; set; }
///
/// 征订数量
///
[DisplayName("征订数量")]
public int? OrderQty { get; set; }
///
/// 预加数量
///
[DisplayName("预加数量")]
public int? PreIncreaseQty { get; set; }
///
/// 总数
///
[DisplayName("总数")]
public int? Count { get; set; }
///
/// 是否征订
///
[DisplayName("是否征订")]
public bool? IsOrdered { get; set; }
public int? Years { get; set; }
///
/// 课程ID
///
[DisplayName("课程ID")]
public Guid? CoursematerialID { get; set; }
///
/// 课程代码
///
[DisplayName("课程代码")]
public string CourseCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 教材ID
///
[DisplayName("教材ID")]
public Guid TeachingMaterialPoolID { get; set; }
///
/// 年级专业
///
[DisplayName("教材编号")]
public string TeachingMaterialCode { get; set; }
///
/// 教材名称
///
[DisplayName("教材名称")]
public string TeachingMaterialName { get; set; }
///
/// 教材类型
///
[DisplayName("教材类型")]
public int? TeachingMaterialTypeID { get; set; }
///
/// ISBN
///
[DisplayName("ISBN")]
public string ISBN { get; set; }
///
/// 版本时间
///
[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; }
///
/// 单价
///
[DisplayName("单价")]
public decimal? Price { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public string CreateUserName { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 课程类别
///
[DisplayName("课程属性")]
public int? CourseCategory { get; set; }
}
}