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

namespace Waste.Application
{
    public class BusinessInfo : W_Business
    {
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 账户类型
        /// </summary>
        public int AccountType { get; set; }
    }
    /// <summary>
    /// 修改密码
    /// </summary>
    public class BusienssPwd
    {
        /// <summary>
        /// 旧密码
        /// </summary>
        public string OldPwd { get; set; }
        /// <summary>
        /// 新密码
        /// </summary>
        public string NewPwd { get; set; }
        /// <summary>
        /// 确认新密码
        /// </summary>
        public string ReNewPwd { get; set; }
    }
    /// <summary>
    /// 商户列表
    /// </summary>
    public class BusinessList:W_Business
    {
        /// <summary>
        /// 子商户数量
        /// </summary>
        public int BusinessCnt { get; set; } = 0;
        /// <summary>
        /// 设备数量
        /// </summary>
        public int DevCnt { get; set; } = 0;
        /// <summary>
        /// 今日活跃设备台数
        /// </summary>
        public int TodayDevActiveCnt { get; set; } = 0;
        /// <summary>
        /// 今日测量数
        /// </summary>
        public int TodayCount { get; set; } = 0;
        /// <summary>
        /// 今日重量
        /// </summary>
        public decimal TodayWeight { get; set; } = 0;
        /// <summary>
        /// 今日净重
        /// </summary>
        public decimal TodayPureWeight { get; set; } = 0;
        /// <summary>
        /// 累计测量数
        /// </summary>
        public int TotalCount { get; set; } = 0;
        /// <summary>
        /// 累计重量
        /// </summary>
        public decimal TotalWeight { get; set; } = 0;
        /// <summary>
        /// 累计净重
        /// </summary>
        public decimal TotalPureWeight { get; set; } = 0;
    }
    /// <summary>
    /// 商户汇总信息
    /// </summary>
    public class BusinessReport
    {
        /// <summary>
        /// 名下商户数量,包含所有级
        /// </summary>
        public int BusinessCnt { get; set; } = 0;
        /// <summary>
        /// 名下设备数量,包含所有级
        /// </summary>
        public int DevCount { get; set; } = 0;
        /// <summary>
        /// 昨日测量次数
        /// </summary>
        public int YestodayCount { get; set; } = 0;
        /// <summary>
        /// 昨日测量毛重
        /// </summary>
        public decimal YestodayWeight { get; set; } = 0;
        /// <summary>
        /// 昨日测量净重
        /// </summary>
        public decimal YestodayPureWeight { get; set; } = 0;
    }
    /// <summary>
    /// 商户授权信息
    /// </summary>
    public class BusinessApiInfo:W_BusinessAppApi
    {
        /// <summary>
        /// 商户名称
        /// </summary>
        public string BusinessName { get; set; }
    }
    /// <summary>
    /// 第三方推送的消息体内容
    /// </summary>
    public class BusinessApiS2CDto
    {
        public string devcode { get; set; }

        public string devname { get; set; }

        public string address { get; set; }

        public decimal weight { get; set; }

        public decimal tare { get; set; }

        public decimal pweight { get; set; }

        public string type { get; set; }

        public int time { get; set; }
    }
}
