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

namespace EquipmentApi.IRepositories
{
    public interface IWo_EquipmentRunningRepository : IRepository<Wo_EquipmentRunning, string>
    {
        /// <summary>
        /// 获取设备运行列表 by page
        /// </summary>
        /// <param name="sysnameid"></param>
        /// <param name="equipmentid"></param>
        /// <param name="createby"></param>
        /// <param name="daytype"></param>
        /// <param name="stime"></param>
        /// <param name="etime"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        IEnumerable<Wo_EquipmentRunningDto> GetListsByPage(string projectid, string matterid, string wocode, string createby, string daytype, string stime, string etime, int state, string usercode, UserAccountInfoModel userinfo, int pageIndex, int pageSize, out int recordCount);
        IEnumerable<Wo_EquipmentRunningDto> GetLists();

        /// <summary>
        /// 获取设备运行列表 by page
        /// </summary>
        /// <param name="sysnameid"></param>
        /// <param name="projectid"></param>
        /// <param name="createby"></param>
        /// <param name="daytype"></param>
        /// <param name="stime"></param>
        /// <param name="etime"></param>
        /// <returns></returns>
        IEnumerable<Wo_EquipmentRunningDto> GetAppLists(string projectid, string matterid, string checkby, string daytype, int state, string stime, string etime, string rolecode, string usercode);

        /// <summary>
        /// 获取设备运行详情 by id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Wo_EquipmentRunningDto GetDetails(string id);

        IEnumerable<Wo_EquipmentRunningChartDto> GetChart(string projectid);
    }
}
