using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Siger.Middlelayer.Common.ModuleEnum;

namespace Siger.Middlelayer.ToolRepository.Request
{
    public class RequestToolCutterLocationEdit
    {
        public List<ToolSetting> setting { get; set; }   
    }
    public class ToolSetting
    {
        [Required(ErrorMessage = "IdIsEmpty")]
        public int id { get; set; }

        public int toolID { get; set; }

        //[Required(ErrorMessage = "ProductNotFound")]
        public string product_id { get; set; }

        //[Required(ErrorMessage = "ToolNameNotNull")]
        public string toolName { get; set; }

        [Required(ErrorMessage = "RatedLifeNotNull")]
        public int ratedlife { get; set; }

        public int is_processing_program { get; set; }
        /// <summary>
        /// 刀具类型
        /// </summary>
        public ToolType type { get; set; }
        /// <summary>
        /// 寿命系数
        /// </summary>
        public double coefficent { get; set; }

    }
}
