using System;
using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.AccRepository.Request
{
    public class RequestEquipment
    {
        [Required(ErrorMessage = "EqNameIsEmpty")]
        public string EqName { get; set; }
        [Required(ErrorMessage = "EqIDIsEmpty")]
        public string EqID { get; set; }
        [Required(ErrorMessage = "EqTypeIsEmpty")]
        public string EqType { get; set; }
        [Required(ErrorMessage = "EqDriverIsEmpty")]
        public string EqDriver { get; set; }
        public string Para { get; set; }
        public string UID { get; set; }
        public DateTime TransDateTime { get; set; }
    }
    public class RequestModifyEquipment:RequestEquipment
    {
        [Required(ErrorMessage = "IdIsEmpty")]
        public int Id { get; set; }   
    }
}
