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

namespace Siger.Middlelayer.Repository.Data.Acc
{
    public class BasketTotal:EntityBase
    {
        public bool Show { get; set; }
        public int Rows { get; set; }
        public string ProductBh { get; set; }
        public string ProductName { get; set; }
        public string ProductType { get; set; }
        public string OrderNo { get; set; }
        public int OrderQty { get; set; }
        public string Wo { get; set; }
        /// <summary>
        /// 车间
        /// </summary>
        public string Station { get; set; }
        /// <summary>
        /// 工站
        /// </summary>
        public string Postion { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>

        public int OkCount { get; set; }
        /// <summary>
        /// 工废数量
        /// </summary>
        public int NgCount { get; set; }
        /// <summary>
        /// 料废数量
        /// </summary>
        public int NgCount2 { get; set; }

        /// <summary>
        /// 不良率
        /// </summary>
        public double NgRate { get; set; }

        //public string Date { get; set; }

        ///// <summary>
        ///// 报工 /检验
        ///// </summary>
        //public string Type { get; set; }
        //public string Item { get; set; }
        ///// <summary>
        ///// 总报工工单数量
        ///// </summary>
        //public int WoCount { get; set; }
        ///// <summary>
        ///// 总报工总数
        ///// </summary>
        //public int RptCount { get; set; }
        ///// <summary>
        ///// 报工合格总数
        ///// </summary>
        //public int RptOkCount { get; set; }
        ///// <summary>
        ///// 工废总数
        ///// </summary>
        //public int RptNgCount { get; set; }
        ///// <summary>
        ///// 料废总数
        ///// </summary>
        //public int RptNgCount2 { get; set; }
        ///// <summary>
        ///// 总良率
        ///// </summary>
        //public double RateOk { get; set; }
        ///// <summary>
        ///// 总检验次数
        ///// </summary>
        //public int ChkCount { get; set; }
        ///// <summary>
        ///// 总检验合格次数
        ///// </summary>
        //public int ChkOkCount { get; set; }
        ///// <summary>
        ///// 总检验不合格次数
        ///// </summary>
        //public int ChkNgCount { get; set; }
        ///// <summary>
        ///// 平均不良率
        ///// </summary>
        //public double AvgRateNg { get; set; }
    }

    public class ReportTTL
    {
        public DateTime BusiDate { get; set; }
        public int Week { get; set; }
        public int Month { get; set; }
        public string OrderNo { get; set; }
        public string Wo { get; set; }
        public string Product { get; set; }
        public int OkCount { get; set; }
        public int NgCount { get; set; }
        public int NgCount2 { get; set; }
    }
    public class ChekTTL
    {
        public DateTime BusiDate { get; set; }
        public int Week { get; set; }
        public int Month { get; set; }
        public string OrderNo { get; set; }
        public string Wo { get; set; }

        public string Product { get; set; }
        /// <summary>
        /// 不良率
        /// </summary>
        public double Rate { get; set; }
        /// <summary>
        /// 0:不通过 1 通过
        /// </summary>
        public int Result { get; set; }

        /// <summary>
        /// 检查次数
        /// </summary>
        public int Count { get; set; }
    }
}
