using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MisDataSaveDate.MOM
{
    /// <summary>
    /// 开工
    /// </summary>

    public class JobFinished
    {
        /// <summary>
        /// 派工单ID
        /// </summary>
        public string orderID { get; set; }
        /// <summary>
        /// 派工任务ID
        /// </summary>
        public string taskID { get; set; }
        /// <summary>
        /// 工序ID
        /// </summary>
        public decimal finishedQuantity { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public string createTime { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string endTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public decimal beat { get; set; }
        public string processNo { get; set; }
        public string lastModifiedTime { get; set; }
        public List<InspectionInfo> inspectionInfo { get; set; }
        public List<MaterialInfo> materialInfo { get; set; }
        public List<Workinghours> workinghours { get; set; }
        /// <summary>
        /// 操作：0取消开工，1开工
        /// </summary>
        public string operation { get; set; }

    }
    public class InspectionInfo
    {
        public string Inspectcode { get; set; }
        public string inspector { get; set; }
        public string inspectionTime { get; set; }
        public decimal qualifiedQuantity { get; set; }
        public decimal unqualifiedQuantity { get; set; }
        public string templetecode { get; set; }
        public List<InspectionDetail> inspectionDetails {  get; set; }
    }
    public class InspectionDetail
    {
        public string inspectionItemID { get; set; }
        public string inspectionItemNo { get; set; }
        public string inspectionItemName { get; set; }
        public string inspectionValue { get; set; }
        public string inspectionStandardText { get; set; }
        public string upperLimitSymbol { get; set; }
        public decimal upperLimitValue { get; set; }
        public string lowerLimitSymbol { get; set; }
        public decimal lowerLimitValue { get; set; }
        public decimal standardValue { get; set; }
        public string inspectionResult { get; set; }

    }
    public class MaterialInfo
    {
        public string consumedMaterialNo { get; set; }
        public string type { get; set; }
        public decimal qty { get; set; }
        public decimal qualifiedqty { get; set; }
        public decimal unqualifiedqty { get; set; }
        public string inspectionTool { get; set; }
        public string batchNo { get; set; }
        public string serialNo { get; set; }

    }
    public class Workinghours
    {
        public string employee { get; set; }
        public decimal quantity { get; set; }
        public decimal workingHours { get; set; }
        public string operation { get; set; }
    }
}
