using MadRunFabric.Model;
using EquipmentApi.Model.Dto;
using MadRunFabric.Common;
using System;
using System.Collections.Generic;
using System.Text;

namespace EquipmentApi.IRepositories
{
    /// <summary>
    /// 设备信息
    /// </summary>
    public interface IRunningRepairRepository : IRepository<Pro_Project_Info, string>
    {
        #region Pc统计
        /// <summary>
        /// 项目统计报表 - 列表/统计
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetProjectListAndStatisticsByPage(string keyword, string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 项目工单来源统计报表 - 列表/统计
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetProjectRepairOrderListAndStatisticsByPage(string keyword, string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 项目报修统计报表 - 列表/统计
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetProjectRepairListAndStatisticsByPage(string keyword, string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 设备状态分析报表 - 列表/统计
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetEquipmentStateStatisticsByPage(string keyword, string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 设备保养分析报表 - 列表/统计
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetEquipmentMaintainStatisticsByPage(string keyword, string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 人员满意度统计报表 - 列表/统计
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetUserEvaluateStatisticsByPage(string keyword, string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 人员维修及时率统计报表报表 - 列表/统计
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetUseRpairetimerateStatisticsByPage(string keyword, string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 人员个人工作量统计报表 - 列表/统计
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetUseWorkStatisticsByPage(string keyword, string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 人员个人工作量统计报表 - 列表/统计
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="projectid"></param>
        /// <param name="start"></param>
        /// <param name="end"></param>
        /// <param name="userinfo"></param>
        /// <returns></returns>
        object GetUseWorkCount(string keyword, string projectid, string start, string end, UserAccountInfoModel userinfo);

        /// <summary>
        /// 保修统计详情/统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 保修统计详情）
        /// </summary>
        /// <param name="sysnameid">报修类型 日常类、设备类</param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetRepaireListAndStatisticsByPagePc(string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 满意度统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 满意度统计详情）
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetRepairEvaluateListAndStatisticsByPagePc(string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 人员个人接单量统计报表（列表、统计） - 报表
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="projectid"></param>
        /// <param name="type"></param>
        /// <param name="start"></param>
        /// <param name="end"></param>
        /// <param name="userinfo"></param>
        /// <returns></returns>
        object GetUserAcceptCount(string keyword, string projectid, int type, string start, string end, UserAccountInfoModel userinfo);

        #endregion

        #region App统计
        /// <summary>
        /// 设备巡检详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 设备巡检详情）
        /// </summary>
        /// <param name="sysnameid">报修类型 日常类、设备类</param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        object GetRunningListAndStatisticsByPage(string projectid, string start, string end, string systemid,
            int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);
        /// <summary>
        /// 保修统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 保修统计详情）
        /// </summary>
        /// <param name="sysnameid">报修类型 日常类、设备类</param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetMaintainListAndStatisticsByPage(string projectid, string start, string end, string systemid,
            int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 设备状态详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 设备状态详情）
        /// </summary>
        /// <param name="sysnameid">报修类型 日常类、设备类</param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetRepairStateListAndStatisticsByPage(string projectid, string start, string end, string systemid,
            int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 维修工维修数量排名
        /// </summary>
        /// <param name="projectid">项目id</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="top">前几名</param>
        /// <returns></returns>
        object GetUserRepairCountReport(string projectid, string start, string end, int top, UserAccountInfoModel userinfo);

        /// <summary>
        /// 设备运维饼图
        /// </summary>
        /// <param name="datetype">日期类型</param>
        /// <returns></returns>
        object GetEquipmentRoundReport(string projectid, string start, string end, UserAccountInfoModel userinfo);

        /// <summary>
        /// 保修统计详情/统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 保修统计详情）
        /// </summary>
        /// <param name="sysnameid">报修类型 日常类、设备类</param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetSourceListAndStatisticsByPage(string projectid, string start, string end, string systemid, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 保修统计详情/统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 保修统计详情）
        /// </summary>
        /// <param name="sysnameid">报修类型 日常类、设备类</param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetListAndStatisticsByPage(string projectid, string start, string end, string systemid, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 维修及时率统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 维修及时率统计详情）
        /// </summary>
        /// <param name="sysnameid">报修类型 日常类、设备类</param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetRepaireTimeRateReportByPage(string projectid, string start, string end, string systemid, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 耗材统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 耗材统计详情）
        /// </summary>
        /// <param name="sysnameid">报修类型 日常类、设备类</param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetMaterialListAndStatisticsByPage(string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 满意度统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 满意度统计详情）
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetRepairEvaluateListAndStatisticsByPage(string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        /// <summary>
        /// 满意度统计详情 - 列表/统计 （设备运维 -> 设备维修（饼） -> 满意度统计详情） - 项目主管
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name=""></param>
        /// <returns></returns>
        object GetUsersEvaluateListAndStatisticsByPage(string projectid, string start, string end, int pageIndex, int pageSize, out int recordCount, UserAccountInfoModel userinfo);

        #endregion
    }
}
