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

namespace EquipmentApi.IRepositories
{
    /// <summary>
    /// 设备运行计划
    /// </summary>
    public interface IWo_EquipmentRunning_PlanRepository : IRepository<Wo_EquipmentRunning_Plan, 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_EquipmentRunning_PlanDto> GetListsByPage(string keyword, string projectid, string stime, string etime, string nowusercode, UserAccountInfoModel userinfo, int pageIndex, int pageSize, out int recordCount);

        /// <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_EquipmentRunning_PlanDto> GetAppLists(string keyword, string projectid, string stime, string etime);

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