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_Maintain_BaseRepository : IRepository<Wo_Maintain_Base, string>
    {
        /// <summary>
        /// 获取保养列表 by page
        /// </summary>
        /// <param name="sysname"></param>
        /// <param name="equipname"></param>
        /// <param name="maintainman"></param>
        /// <param name="state"></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_Maintain_BaseDto> GetListsByPage(string projectid, string matterid, string maintainman, string stime, string etime, int state, string usercode, UserAccountInfoModel userinfo, int pageindex, int pagesize, out int recordCount);
        IEnumerable<Wo_Maintain_BaseDto> GetLists();
        /// <summary>
        /// 获取保养详情 by id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Wo_Maintain_BaseDto GetDetails(string id);

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