using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace EMIS.ViewModel.TeachingMaterial
{
public class PublisherView
{
///
/// 出版单位ID
///
[DisplayName("出版单位ID")]
public Guid PublishID { get; set; }
///
/// 单位编码
///
/// [Required]
[DisplayName("单位编码")]
[Required]
public string UnitCode { get; set; }
///
/// 单位名称
///
[DisplayName("单位名称")]
[Required]
public string UnitName { get; set; }
///
/// 简称
///
[DisplayName("简称")]
//[Required]
public string UnitShortName { get; set; }
///
/// 联系人
///
[DisplayName("联系人")]
//[Required]
public string ContectUser { get; set; }
///
/// 移动电话
///
[DisplayName("移动电话")]
// [Required]
[RegularExpression(@"^1[3|4|5|7|8]\d{9}$", ErrorMessage = "手机号码不正确")]
public string Mobile { get; set; }
///
/// 固定电话
///
[DisplayName("固定电话")]
public string Phone { get; set; }
///
/// 传真
///
[DisplayName("传真")]
public string Fax { get; set; }
///
/// 邮箱
///
//[Required]
[DisplayName("邮箱")]
[RegularExpression(@"^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]+$", ErrorMessage = "邮箱格式不正确")]
public string Email { get; set; }
///
/// 银行卡号
///
[DisplayName("银行卡号")]
public string BandCard { get; set; }
///
/// 开户银行
///
[DisplayName("开户银行")]
public string BandName { get; set; }
///
/// 税号
///
[DisplayName("税号")]
public string Ein { get; set; }
///
/// 单位地址
///
[DisplayName("单位地址")]
public string Address { get; set; }
///
/// 是否供应商
///
[DisplayName("是否供应商")]
public bool IsSupplier { get; set; }
///
/// 是否出版社
///
[DisplayName("是否出版社")]
public bool IsPulish { get; set; }
///
/// 是否印刷厂
///
[DisplayName("是否印刷厂")]
public bool IsPrint { get; set; }
///
/// 是否供应商
///
[DisplayName("是否供应商")]
public string IsSupplierName { get; set; }
///
/// 是否出版社
///
[DisplayName("是否出版社")]
public string IsPulishName { get; set; }
///
/// 是否印刷厂
///
[DisplayName("是否印刷厂")]
public string IsPrintName { get; set; }
///
/// 错误信息
///
[DisplayName("错误信息")]
public string ErrorMessage { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Desc { get; set; }
private bool _isExcelVaildateOK = true;
///
/// Excel验证是否通过,默认为true
/// true:通过;false:不通过
///
public bool IsExcelVaildateOK
{
get { return _isExcelVaildateOK; }
set { _isExcelVaildateOK = value; }
}
}
}