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_PlanRepository : IRepository<Wo_Maintain_Plan, string>
    {
        /// <summary>
        /// 获取保养计划列表 by page
        /// </summary>
        /// <param name="sysnameid"></param>
        /// <param name="equipmentid"></param>
        /// <param name="wocode"></param>
        /// <param name="createby"></param>
        /// <param name="daytype"></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_PlanDto> GetListsByPage(string keyword, string projectid, string stime, string etime, string nowusercode, UserAccountInfoModel userinfo, int pageindex, int pagesize, out int recordCount);


        /// <summary>
        /// 获取保养计划详情 by id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Wo_Maintain_PlanDto GetDetails(string id);
    }
}
