using Model.ModelDto.SysDto;
|
using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WMS.Entity.SysEntity;
|
|
namespace WMS.IBLL.ISysServer
|
{
|
/// <summary>
|
/// 部门服务接口
|
/// </summary>
|
public interface IDepartmentServer
|
{
|
/// <summary>
|
/// 获取部门信息列表
|
/// </summary>
|
/// <param name="DepartmentName">部门名称</param>
|
/// <param name="DepartmentNo">部门号</param>
|
/// <returns></returns>
|
List<DepartmentDto> GetDepartmentList(string DepartmentName, string DepartmentNo);
|
|
/// <summary>
|
/// 根据id获取部门信息
|
/// </summary>
|
/// <param name="id">部门id</param>
|
/// <returns></returns>
|
SysDepartment GetDepartmentById(int id);
|
|
/// <summary>
|
/// 根据部门号获取部门信息
|
/// </summary>
|
/// <returns></returns>
|
int GetDepartmentByNo(string DepartmentNo);
|
|
/// <summary>
|
/// 新增部门信息
|
/// </summary>
|
/// <param name="departmentdto">部门dto</param>
|
/// <returns></returns>
|
/// <exception cref="Exception">捕获异常</exception>
|
Task<int> AddDepartment(DepartmentDto departmentdto);
|
|
|
|
/// <summary>
|
/// 删除部门信息
|
/// </summary>
|
/// <param name="department">部门实体模型</param>
|
/// <returns></returns>
|
/// <exception cref="Exception">捕获异常</exception>
|
Task<int> DelDepartment(SysDepartment department);
|
|
/// <summary>
|
/// 编辑部门信息
|
/// </summary>
|
/// <param name="departmentdto">部门dto</param>
|
/// <returns></returns>
|
/// <exception cref="Exception">捕获异常</exception>
|
Task<int> ExitDepartment(DepartmentDto departmentdto);
|
}
|
}
|