| | |
| | | using System; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseController; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.Telescopic; |
| | | using WIDESEAWCS_ITelescopicService; |
| | | using WIDESEAWCS_IWMSPart; |
| | |
| | | [ApiController] |
| | | public class MaintenanceController : ApiBaseController<IMaintenanceService, Dt_Maintenance> |
| | | { |
| | | |
| | | public MaintenanceController(IMaintenanceService service) : base(service) |
| | | { |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查看检修管理 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost,Route("ShowMaintence"),AllowAnonymous] |
| | | [HttpPost, Route("ShowMaintence"), AllowAnonymous] |
| | | public WebResponseContent ShowMaintence([FromBody] PaginationDTO pagination) |
| | | { |
| | | return Service.ShowMaintence(pagination); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 在检修人员监控 |
| | | /// 在检修人员监控(数字大屏) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("PersonnelMonitoring"), AllowAnonymous] |
| | |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | [HttpPost,Route("RunOperation"), AllowAnonymous] |
| | | [HttpPost, Route("RunOperation"), AllowAnonymous] |
| | | public WebResponseContent RunOperation(int id, string ispossible) |
| | | { |
| | | return Service.RunOperation(id,ispossible); |
| | | // |
| | | return Service.RunOperation(id, ispossible); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | [HttpPost, Route("MaintenanceOperationRecord"), AllowAnonymous] |
| | | public WebResponseContent MaintenanceOperationRecord([FromBody] PaginationDTO pagination) |
| | | { |
| | | |
| | | return Service.MaintenanceOperationRecord(pagination); |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("MaintenanceTasksOfTheDay"), AllowAnonymous] |
| | | [HttpPost, Route("MaintenanceTasksOfTheDay")] |
| | | public WebResponseContent MaintenanceTasksOfTheDay(string account) |
| | | { |
| | | |
| | | return Service.MaintenanceTasksOfTheDay(account); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 开始检修 |
| | | /// </summary> |
| | | /// <param name="account"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("StartMaintenceTask"), AllowAnonymous] |
| | | [HttpPost, Route("StartMaintenceTask")] |
| | | public WebResponseContent StartMaintenceTask(string account) |
| | | { |
| | | return Service.StartMaintenceTask(account); |
| | | var userIp = HttpContext.GetUserIp();//用户电脑ip |
| | | var reslut = userIp.Replace("::ffff:", " "); |
| | | return Service.StartMaintenceTask(account, reslut); |
| | | } |
| | | |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="account"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("StopMaintenanceTask"), AllowAnonymous] |
| | | [HttpPost, Route("StopMaintenanceTask")] |
| | | public WebResponseContent StopMaintenanceTask(string account) |
| | | { |
| | | return Service.StopMaintenanceTask(account); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 展示开始检修人员 |
| | | /// </summary> |
| | | /// <param name="status">检修状态</param> |
| | | /// <returns></returns> |
| | | [HttpPost,Route("YShowStartTake")] |
| | | public WebResponseContent YShowStartTake() |
| | | { |
| | | return Service.YShowStartTake(); |
| | | } |
| | | |
| | | } |
| | | } |