using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Waste.Domain;

namespace Waste.Application
{
    /// <summary>
    /// 统计列表
    /// </summary>
    public class ReportList : W_DeviceStatistics
    {
        /// <summary>
        /// 商户名称
        /// </summary>
        public string BusinessName { get; set; } = "";
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DevName { get; set; } = "";
        /// <summary>
        /// 设备地址
        /// </summary>
        public string DevAddress { get; set; } = "";
        /// <summary>
        /// 设备编号
        /// </summary>
        public string DevCode { get; set; } = "";
        /// <summary>
        /// 合计测量次数
        /// </summary>
        public int TotalDayCount { get; set; } = 0;

        /// <summary>
        /// 合计测量净重
        /// </summary>
        public decimal TotalDayPureWeight { get; set; } = 0;

        /// <summary>
        /// 合计测量重量
        /// </summary>
        public decimal TotalDayWeight { get; set; } = 0;
    }

    public class ApiReportBaseData<T>
    {
        public List<T> list { get; set; }
        /// <summary>
        /// 总条数
        /// </summary>
        public int totalcount { get; set; }
    }

    public class ApiReportBaseData
    {
        /// <summary>
        /// 点位地址,包含省市区县详细地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 设备唯一编号
        /// </summary>
        public string devcode { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string devname { get; set; }
        /// <summary>
        /// 总毛重,精确到小数点后两位,单位为KG
        /// </summary>
        public string weight { get; set; }
        /// <summary>
        /// 总净重,精确到小数点后两位,单位为KG
        /// </summary>
        public string pweight { get; set; }
        /// <summary>
        /// 垃圾类型
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 统计时间,时间格式
        /// </summary>
        public string time { get; set; }
    }

    public class ApiReportBaseDataItem : W_DeviceStatistics
    {
        /// <summary>
        /// 点位地址,包含省市区县详细地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 设备唯一编号
        /// </summary>
        public string devcode { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string devname { get; set; }
    }
    /// <summary>
    /// 获取统计结果请求数据
    /// </summary>
    public class ApiReportRequestData
    {
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime begindate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime enddate { get; set; }
    }
}
