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

namespace Siger.Middlelayer.CncRepository.Repositories
{
    /// <summary>
    /// 手机app报工扫描工序二维码回参
    /// </summary>
    public class ResponseAppGetWorkOrdersDetail
    {
        /// <summary>
        /// 产品编号
        /// </summary>
        public string product_code { get; set; }
        /// <summary>
        /// 工位名称
        /// </summary>
        public string sectionname { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string product_name { get; set; }

        public string product_drawcode { get; set; }
        /// <summary>
        /// 计划数量
        /// </summary>
        public int quantity { get; set; }
        /// <summary>
        /// 已生产数量
        /// </summary>
        public int producted_number { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>
        public int ok_number { get; set; }
        /// <summary>
        /// 不合格数量
        /// </summary>
        public int nok_number { get; set; }
        /// <summary>
        /// 计划完成实际
        /// </summary>
        public string plan_endtime { get; set; }
        /// <summary>
        /// 工令单号
        /// </summary>
        public string ordernumber { get; set; }
        /// <summary>
        /// 操作人id
        /// </summary>
        public int workercode { get; set; }
        /// <summary>
        /// 操作人名称
        /// </summary>
        public string workername { get; set; }
        /// <summary>
        /// 工序id
        /// </summary>
        public int route_id { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string route_name { get; set; }      
    }


    public class ResponseGetWorkOrderMachine
    {
        /// <summary>
        /// 设备名称
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 设备id
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 报工人员
        /// </summary>
        public string username { get; set; }

    }

    public class ResponseGetUser 
    {
        /// <summary>
        /// 用户的id _user.id
        /// </summary>
        public int mid { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string name { get; set; }
    }

    /// <summary>
    /// 手机app接口生产进度详情回参
    /// </summary>
    public class ResponseProductionSchedule 
    {
        /// <summary>
        /// 工序名称
        /// </summary>
        public string route_name { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>
        public int oknumber { get; set; }
        /// <summary>
        /// 不合格数量
        /// </summary>
        public int noknumber { get; set; }
    }
}
