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
{
///
/// 登录控制器
///
[ApiDescriptionSettings("WorkRemind")]
[DynamicApiController]
[Authorize]
public class WorkRemindController
{
private readonly IWorkRemindService _workRemindService;
public WorkRemindController(IWorkRemindService workRemindService)
{
_workRemindService = workRemindService;
}
///
/// 获取用户详情
///
public Document_WorkRemind GetWorkRemindInfo(int ID)
{
return _workRemindService.GetWorkRemindInfo( ID);
}
///
/// 获取员工列表
///
///
///
public PageResult postWorkRemindList(WorkRemindPageSearch page)
{
return _workRemindService.postWorkRemindList(page);
}
///
/// 获取员工列表
///
///
public List GetUEmployeeInfoList()
{
return _workRemindService.GetUEmployeeInfoList();
}
///
/// 创建提醒
///
///
///
public bool CreateWorkRemind(Document_WorkRemind dw)
{
return _workRemindService.InEmployee(dw);
}
///
/// 更新提醒
///
///
///
public bool UpDataWorkRemind(Document_WorkRemind dw)
{
return _workRemindService.UpEmployee(dw);
}
///
/// 删除提醒
///
///
///
public bool GetDelDataWorkRemind(int ID)
{
return _workRemindService.DelEmployee(ID);
}
///
/// 获取数据字典
///
///
[AllowAnonymous]
public List GetDictionaryList()
{
return _workRemindService.GetDictionaryList();
}
///
/// 获取省市县
///
///
///
[AllowAnonymous]
public List GetCitySiteList(int CityLevel)
{
return _workRemindService.GetCitySiteList(CityLevel);
}
///
/// 获取员工列表
///
///
///
///
public List GetEmployeeListByStatus(int isWork, int Role)
{
return _workRemindService.GetEmployeeListByStatus(isWork, Role);
}
}
}