123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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 SupplierDiscountSetView
- {
- /// <summary>
- /// 供应商折扣率设置ID
- /// </summary>
- [DisplayName("供应商折扣率设置ID")]
- public Guid SupplierDiscountSetID { get; set; }
- /// <summary>
- /// 供应商编号
- /// </summary>
- [DisplayName("供应商编号")]
- public string UnitCode { get; set; }
- /// <summary>
- /// 出版社ID
- /// </summary>
- [Required]
- [DisplayName("出版社")]
- public Guid? PublishID { get; set; }
- /// <summary>
- /// 供应商名称
- /// </summary>
- [DisplayName("供应商")]
- public string UnitName { get; set; }
- /// <summary>
- /// 是否默认
- /// </summary>
- [DisplayName("是否默认")]
- public bool IsDefault { get; set; }
- public string IsDefaultName {
- get {
- return IsDefault ? "是" : "否";
- }
- }
- /// <summary>
- /// 折扣率
- /// </summary>
- [Required]
- [DisplayName("折扣率")]
- [RegularExpression(@"[\d]?(\.[\d]{0,2})?", ErrorMessage = "必须填写小数值")]
- public decimal? Discount { get; set; }
- }
- }
|