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

namespace ConfigurationApi.IRepositories
{
    public interface ISys_DepartmentRepository: IRepository<Sys_Department,string>
    {
        /// <summary>
        /// 列表 - 根据分页查询数据列表 包含查询条件，显示字段，排序 - 关联科室
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="stime"></param>
        /// <param name="etime"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        IEnumerable<DepartmentDto> GetListsByPage(string keyword, string projectid, string Building, string floorid, UserAccountInfoModel userinfo, int pageIndex, int pageSize, out int recordCount);

        /// <summary>
        /// 列表 - 根据分页查询数据列表 包含查询条件，显示字段，排序 - 关联科室
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="stime"></param>
        /// <param name="etime"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        IEnumerable<DepartmentDto> GetLists(string keyword, string projectid, string Building, string floorid, UserAccountInfoModel userinfo);

        /// <summary>
        /// 详情 - 获取科室详情 by id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        DepartmentDetailsDto GetDetails(string id);
    }
}
