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