using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.CncRepository.Request
{
    public class RequestGetMachineCanvasDataInfo
    {
        public int sectionId { get; set; }

        [Required(ErrorMessage = "StartTimeIsEmpty")]
        public string startTime { get; set; }

        [Required(ErrorMessage = "EndTimeIsEmpty")]
        public string endTime { get; set; }

        public int xtype { get; set; }

        public string x_id { get; set; }

        public int toexcel { get; set; } = 0;

        public string sectionIdStr { get; set; }
        public int frequency { get; set; }
    }


    public class RequestGetMachineCanvasDataInfoTwo
    {
        public int sectionId { get; set; }

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

       // [Required(ErrorMessage = "EndTimeIsEmpty")]

        public int xtype { get; set; }

        public string x_id { get; set; }

        public int frequency { get; set; }
    }

    public class RequestGetWeek
    {
        public string startTime { get; set; }

        public string endTime { get; set; }
    }
}
