using DocumentServiceAPI.Application.UserAndLogin.Services;
|
using DocumentServiceAPI.Application.UserAndLogin.Services.Interfaces;
|
using DocumentServiceAPI.Application.UserAndLogin.ViewMode;
|
using DocumentServiceAPI.Application.WorkRemind.Services.Interfaces;
|
using DocumentServiceAPI.Application.WorkRemind.ViewMode;
|
using DocumentServiceAPI.Model.cyDocumentModel;
|
using DocumentServiceAPI.Utility;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace DocumentServiceAPI.Application.WorkRemind
|
{
|
/// <summary>
|
/// 登录控制器
|
/// </summary>
|
[ApiDescriptionSettings("WorkRemind")]
|
[DynamicApiController]
|
[Authorize]
|
public class WorkRemindController
|
{
|
private readonly IWorkRemindService _workRemindService;
|
public WorkRemindController(IWorkRemindService workRemindService)
|
{
|
_workRemindService = workRemindService;
|
}
|
|
/// <summary>
|
/// 获取用户详情
|
/// </summary>
|
public Document_WorkRemind GetWorkRemindInfo(int ID)
|
{
|
return _workRemindService.GetWorkRemindInfo( ID);
|
}
|
/// <summary>
|
/// 获取员工列表
|
/// </summary>
|
/// <param name="page"></param>
|
/// <returns></returns>
|
public PageResult<Document_WorkRemind> postWorkRemindList(WorkRemindPageSearch page)
|
{
|
return _workRemindService.postWorkRemindList(page);
|
}
|
|
/// <summary>
|
/// 获取员工列表
|
/// </summary>
|
/// <returns></returns>
|
public List<Document_EmployeeInfo> GetUEmployeeInfoList()
|
{
|
return _workRemindService.GetUEmployeeInfoList();
|
}
|
|
/// <summary>
|
/// 创建提醒
|
/// </summary>
|
/// <param name="dw"></param>
|
/// <returns></returns>
|
public bool CreateWorkRemind(Document_WorkRemind dw)
|
{
|
return _workRemindService.InEmployee(dw);
|
}
|
|
|
/// <summary>
|
/// 更新提醒
|
/// </summary>
|
/// <param name="dw"></param>
|
/// <returns></returns>
|
public bool UpDataWorkRemind(Document_WorkRemind dw)
|
{
|
return _workRemindService.UpEmployee(dw);
|
}
|
|
/// <summary>
|
/// 删除提醒
|
/// </summary>
|
/// <param name="ID"></param>
|
/// <returns></returns>
|
public bool GetDelDataWorkRemind(int ID)
|
{
|
return _workRemindService.DelEmployee(ID);
|
}
|
|
|
/// <summary>
|
/// 获取数据字典
|
/// </summary>
|
/// <returns></returns>
|
[AllowAnonymous]
|
public List<Document_Dictionary> GetDictionaryList()
|
{
|
return _workRemindService.GetDictionaryList();
|
}
|
|
/// <summary>
|
/// 获取省市县
|
/// </summary>
|
/// <param name="CityLevel"></param>
|
/// <returns></returns>
|
[AllowAnonymous]
|
public List<Sys_CitySite> GetCitySiteList(int CityLevel)
|
{
|
return _workRemindService.GetCitySiteList(CityLevel);
|
}
|
|
|
/// <summary>
|
/// 获取员工列表
|
/// </summary>
|
/// <param name="isWork"></param>
|
/// <param name="Role"></param>
|
/// <returns></returns>
|
public List<DocumentEmployeeInfoDTO> GetEmployeeListByStatus(int isWork, int Role)
|
{
|
return _workRemindService.GetEmployeeListByStatus(isWork, Role);
|
}
|
}
|
}
|