| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseController; |
| | | using WIDESEAWCS_DTO.Telescopic; |
| | | using WIDESEAWCS_ITelescopicService; |
| | | using WIDESEAWCS_IWMSPart; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | /// æ¥çæ£ä¿®ç®¡ç |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet,Route("ShowMaintence"),AllowAnonymous] |
| | | public WebResponseContent ShowMaintence() |
| | | [HttpPost,Route("ShowMaintence"),AllowAnonymous] |
| | | public WebResponseContent ShowMaintence([FromBody] PaginationDTO pagination) |
| | | { |
| | | return Service.ShowMaintence(); |
| | | return Service.ShowMaintence(pagination); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("PersonnelMonitoring"), AllowAnonymous] |
| | | public WebResponseContent PersonnelMonitoring(bool ispossible) |
| | | public WebResponseContent PersonnelMonitoring([FromBody] PaginationDTO pagination) |
| | | { |
| | | return Service.PersonnelMonitoring(ispossible); |
| | | return Service.PersonnelMonitoring(pagination); |
| | | } |
| | | |
| | | |
| | |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | [HttpPost,Route("RunOperation"), AllowAnonymous] |
| | | public WebResponseContent RunOperation(int id) |
| | | public WebResponseContent RunOperation(int id, string ispossible) |
| | | { |
| | | return Service.RunOperation(id); |
| | | return Service.RunOperation(id,ispossible); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | return Service.ChangeTasState(id); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ£ä¿®æä½è®°å½ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("MaintenanceOperationRecord"), AllowAnonymous] |
| | | public WebResponseContent MaintenanceOperationRecord([FromBody] PaginationDTO pagination) |
| | | { |
| | | return Service.MaintenanceOperationRecord(pagination); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ¥çç»å
¥ä»å¤©è´¦å·çæ£ä¿®ä»»å¡ |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("MaintenanceTasksOfTheDay"), AllowAnonymous] |
| | | public WebResponseContent MaintenanceTasksOfTheDay(string account) |
| | | { |
| | | return Service.MaintenanceTasksOfTheDay(account); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// å¼å§æ£ä¿® |
| | | /// </summary> |
| | | /// <param name="account"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("StartMaintenceTask"), AllowAnonymous] |
| | | public WebResponseContent StartMaintenceTask(string account) |
| | | { |
| | | return Service.StartMaintenceTask(account); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ç»ææ£ä¿® |
| | | /// </summary> |
| | | /// <param name="account"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("StopMaintenanceTask"), AllowAnonymous] |
| | | public WebResponseContent StopMaintenanceTask(string account) |
| | | { |
| | | return Service.StopMaintenanceTask(account); |
| | | } |
| | | } |
| | | } |