PublisherView.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. namespace EMIS.ViewModel.TeachingMaterial
  8. {
  9. public class PublisherView
  10. {
  11. /// <summary>
  12. /// 出版单位ID
  13. /// </summary>
  14. [DisplayName("出版单位ID")]
  15. public Guid PublishID { get; set; }
  16. /// <summary>
  17. /// 单位编码
  18. /// </summary>
  19. /// [Required]
  20. [DisplayName("单位编码")]
  21. [Required]
  22. public string UnitCode { get; set; }
  23. /// <summary>
  24. /// 单位名称
  25. /// </summary>
  26. [DisplayName("单位名称")]
  27. [Required]
  28. public string UnitName { get; set; }
  29. /// <summary>
  30. /// 简称
  31. /// </summary>
  32. [DisplayName("简称")]
  33. //[Required]
  34. public string UnitShortName { get; set; }
  35. /// <summary>
  36. /// 联系人
  37. /// </summary>
  38. [DisplayName("联系人")]
  39. //[Required]
  40. public string ContectUser { get; set; }
  41. /// <summary>
  42. /// 移动电话
  43. /// </summary>
  44. [DisplayName("移动电话")]
  45. // [Required]
  46. [RegularExpression(@"^1[3|4|5|7|8]\d{9}$", ErrorMessage = "手机号码不正确")]
  47. public string Mobile { get; set; }
  48. /// <summary>
  49. /// 固定电话
  50. /// </summary>
  51. [DisplayName("固定电话")]
  52. public string Phone { get; set; }
  53. /// <summary>
  54. /// 传真
  55. /// </summary>
  56. [DisplayName("传真")]
  57. public string Fax { get; set; }
  58. /// <summary>
  59. /// 邮箱
  60. /// </summary>
  61. //[Required]
  62. [DisplayName("邮箱")]
  63. [RegularExpression(@"^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]+$", ErrorMessage = "邮箱格式不正确")]
  64. public string Email { get; set; }
  65. /// <summary>
  66. /// 银行卡号
  67. /// </summary>
  68. [DisplayName("银行卡号")]
  69. public string BandCard { get; set; }
  70. /// <summary>
  71. /// 开户银行
  72. /// </summary>
  73. [DisplayName("开户银行")]
  74. public string BandName { get; set; }
  75. /// <summary>
  76. /// 税号
  77. /// </summary>
  78. [DisplayName("税号")]
  79. public string Ein { get; set; }
  80. /// <summary>
  81. /// 单位地址
  82. /// </summary>
  83. [DisplayName("单位地址")]
  84. public string Address { get; set; }
  85. /// <summary>
  86. /// 是否供应商
  87. /// </summary>
  88. [DisplayName("是否供应商")]
  89. public bool IsSupplier { get; set; }
  90. /// <summary>
  91. /// 是否出版社
  92. /// </summary>
  93. [DisplayName("是否出版社")]
  94. public bool IsPulish { get; set; }
  95. /// <summary>
  96. /// 是否印刷厂
  97. /// </summary>
  98. [DisplayName("是否印刷厂")]
  99. public bool IsPrint { get; set; }
  100. /// <summary>
  101. /// 是否供应商
  102. /// </summary>
  103. [DisplayName("是否供应商")]
  104. public string IsSupplierName { get; set; }
  105. /// <summary>
  106. /// 是否出版社
  107. /// </summary>
  108. [DisplayName("是否出版社")]
  109. public string IsPulishName { get; set; }
  110. /// <summary>
  111. /// 是否印刷厂
  112. /// </summary>
  113. [DisplayName("是否印刷厂")]
  114. public string IsPrintName { get; set; }
  115. /// <summary>
  116. /// 错误信息
  117. /// </summary>
  118. [DisplayName("错误信息")]
  119. public string ErrorMessage { get; set; }
  120. /// <summary>
  121. /// 备注
  122. /// </summary>
  123. [DisplayName("备注")]
  124. public string Desc { get; set; }
  125. private bool _isExcelVaildateOK = true;
  126. /// <summary>
  127. /// Excel验证是否通过,默认为true
  128. /// <para>true:通过;false:不通过</para>
  129. /// </summary>
  130. public bool IsExcelVaildateOK
  131. {
  132. get { return _isExcelVaildateOK; }
  133. set { _isExcelVaildateOK = value; }
  134. }
  135. }
  136. }