using Siger.Middlelayer.Repository.Request;
using System;
using System.Collections.Generic;

namespace Siger.Middlelayer.TpmRepository.Request
{
    public class RequestAndon : RequestPageBase
    {
        public int machine { get; set; }
        public int section { get; set; }
        public int status { get; set; }
        public int expection { get; set; }
        public int starttime { get; set; }
        public int endtime { get; set; }
        public List<int> states { get; set; }
        public List<int> ids { get; set; }
        public string work_order { get; set; }
        public string product_code { get; set; }
        public int userid { get; set; }


    }
    public class RequestAndonTrigger
    {
        public int machine { get; set; }
        public int expection { get; set; }
        public int is_shutdown { get; set; }
        public int id { get; set; }
        public int status { get; set; }
        public int start { get; set; } = 0;
        public int end { get; set; } = 0;

        public string remark { get; set; } = string.Empty;
    }
    public class RequestHandleAndon
    {
        public int id { get; set; }
        public int expection { get; set; }
        public int type { get; set; }
        public string remark { get; set; }
        public string product_code { get; set; } = "";
        public int start { get; set; } = 0;
        public int end { get; set; } = 0;
        public string is_shutdown { get; set; }

        //public double cycletime { get; set; } = 0;
    }
    public class RequestAndonSlice
    {
        public int machine { get; set; }
        public long start { get; set; }
        public long end { get; set; }

    }
    public class RequestAndonAbonrmal
    {
        public int machine { get; set; }
        public long abnormal_time { get; set; }
        public int type { get; set; }
        public string parameter { get; set; }
        public int rule { get; set; }
        public int pid { get; set; }
    }
}
