using System.Collections.Generic;

namespace Siger.Middlelayer.TpmRepository.Request
{
    public class RequestAddEnterSparepart
    {
        public string IO_type { get; set; }
        public string number { get; set; }
        public string operate_mid { get; set; }
        public string order_code { get; set; }
        public string remark { get; set; }
        public string sparepartid { get; set; }
        public string is_exchange { get; set; }
    }

    public class RequestSparepartInstock
    {
        public int sparepart_id { get; set; }

        public IEnumerable<SparepartInstock> spareparts { get; set; }
    }

    public class SparepartInstock
    {
        public string code { get; set; }

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

    public class RequestSparepartInstock2
    {
        public int sparepart_id { get; set; } = 0;

        public int io_type { get; set; } = 1;

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

        public string location { get; set; } = string.Empty;
    }
}
