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