using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using EMIS.Entities;
namespace EMIS.ViewModel.TeachingMaterial
{
public class TeachingMaterialPoolImportView
{
///
/// 教材ID
///
[DisplayName("教材ID")]
public Guid TeachingMaterialPoolID { get; set; }
///
/// 教材编号
///
/// [Required]
[DisplayName("教材编号")]
[Required]
public string TeachingMaterialCode { get; set; }
///
/// 教材名称
///
[DisplayName("教材名称")]
[Required]
public string TeachingMaterialName { get; set; }
///
/// 教材名称
///
[DisplayName("教材简称")]
//[Required]
public string TeachingMaterialShorName { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
[Required]
public string CoursematerialName { get; set; }
///
/// ISBN
///
[DisplayName("ISBN")]
[Required]
public string ISBN { get; set; }
///
///教材类型
///
[DisplayName("教材类型")]
public int? TeachingMaterialTypeID { get; set; }
///
///教材类型
///
[DisplayName("教材类型")]
public string TeachingMaterialTypeName { get; set; }
///
/// 获奖级别
///
[DisplayName("获奖级别")]
public int? WnningLevel { get; set; }
///
/// 获奖级别
///
[DisplayName("获奖级别")]
public string WnningLevelName { get; set; }
///
/// 版本时间
///
[DisplayName("版本时间")]
public string PublishTime { get; set; }
///
/// 出版单位ID
///
[DisplayName("出版单位ID")]
[Required]
public Guid? PublishID { get; set; }
///
/// 出版单位
///
[DisplayName("出版单位")]
[Required]
public string PublishName { get; set; }
///
/// 作者
///
[DisplayName("作者")]
[Required]
public string Author { get; set; }
///
/// 单价
///
[DisplayName("单价")]
[Required]
[RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "必须填写有效的价格")]
public decimal? Price { get; set; }
///
/// 折合价
///
[DisplayName("折合价")]
public decimal? DiscountPrice { get; set; }
///
/// 是否过期
///
[DisplayName("是否过期")]
[Required]
public bool IsLate { get; set; }
public string IsLateName { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Desc { get; set; }
///
/// 错误信息
///
[DisplayName("错误信息")]
public string ErrorMessage { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public string CreateUserName { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
///
/// 修改人
///
[DisplayName("修改人")]
public string ModifyUserName { get; set; }
///
/// 征订数量(用于教师征订)
///
[DisplayName("征订数量")]
public int? OrderQty { get; set; }
///
/// 课程级别(用于学生征订)
///
[DisplayName("课程级别")]
public string CourseLevelName { get; set; }
///
/// 课程科类(用于学生征订)
///
[DisplayName("课程科类")]
public string CourseScienceName { get; set; }
///
/// 折扣率
///
[DisplayName("折扣率")]
public decimal? Discount { get; set; }
///
/// 最小库存量
///
[DisplayName("最小库存量")]
[Required]
[RegularExpression(@"^[1-9]\d*$", ErrorMessage = "必须填写正整数")]
public int? MinInventory { get; set; }
///
/// 当前库存量
///
[DisplayName("当前库存量")]
public int? PresentInventory { get; set; }
///
/// 总价
///
[DisplayName("总价")]
public decimal? ZongJia { get; set; }
///
/// 码洋
///
[DisplayName("码洋")]
public decimal? MaYang { get; set; }
private bool _isExcelVaildateOK = true;
///
/// Excel验证是否通过,默认为true
/// true:通过;false:不通过
///
public bool IsExcelVaildateOK
{
get { return _isExcelVaildateOK; }
set { _isExcelVaildateOK = value; }
}
}
}