using System;
using System.Collections.Generic;
using System.Text;

namespace Siger.Middlelayer.QmsRepository.Request
{
    public class RequestAddRepair
    {
        public int Id { get; set; }
        public int SettingId { get; set; }
        public int SectionId { get; set; } = 0;
        public string Sn { get; set; } = string.Empty;
        public int ProductId { get; set; } = 0;
        /// <summary>
        /// 产品数量
        /// </summary>
        public int Qty { get; set; }
        public int Materail { get; set; } = 0;
        public int PreRoute { get; set; } = 0;
        public int Route { get; set; } = 0;
        public int SnType { get; set; } = 0;
        public int QID { get; set; } = 0;
        public string Remark { get; set; } = string.Empty;
        /// <summary>
        /// 报废物料明细
        /// </summary>
        public int DetailsId { get; set; }
        /// <summary>
        /// 物料数量
        /// </summary>
        public int Count { get; set; } = 0;
    }
    public class RequestAddRepariData
    {
        public int SectionId { get; set; } = 0;
        public string Sn { get; set; } = string.Empty;
        public int ProductId { get; set; } = 0;


        public List<WasteMaterail> Materail { get; set; } = new List<WasteMaterail>();
        public int PreRoute { get; set; } = 0;
        public int Route { get; set; } = 0;
        public int SnType { get; set; } = 0;
        public int QID { get; set; } = 0;
        public string Remark { get; set; } = string.Empty;
        /// <summary>
        /// 产品数量
        /// </summary>
        public int Count { get; set; } = 0;
    }

    public class WasteMaterail
    {
        public int id { get; set; }
        /// <summary>
        /// 物料数量
        /// </summary>
        public int qty { get; set; }
    }
}
