| | |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.Telescopic; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | /// </summary> |
| | | /// <param name="entity"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent AddAlarmHsy(string alarmContent, bool resetStatus) |
| | | public WebResponseContent AddAlarmHsy(int deptid, string alarmContent, bool resetStatus) |
| | | { |
| | | var alarm = new Dt_AlarmResetHsy |
| | | { |
| | | Deptid = deptid, |
| | | AlarmContent= alarmContent, |
| | | ResetStatus= resetStatus, |
| | | AlarmTime=DateTime.Now, |
| | |
| | | return new WebResponseContent { Status = false, Message = "æ¨é失败ï¼" + ex.Message }; |
| | | } |
| | | } |
| | | public WebResponseContent DeleteAllinform() |
| | | { |
| | | try |
| | | { |
| | | |
| | | |
| | | |
| | | //æ¾å°è¯¥è½¨éç«çå
¨é¨ä¿¡æ¯ |
| | | var alarm = BaseDal.QueryData().ToList(); |
| | | if (alarm.Count < 0) |
| | | { |
| | | return new WebResponseContent { Status = false, Message = $"没æè¦å é¤çæ¥è¦ä¿¡æ¯" }; |
| | | } |
| | | //æ¾å°åå
¨é¨å é¤ |
| | | var reslut = BaseDal.DeleteData(alarm); |
| | | return new WebResponseContent { Status = true, Message = "å 餿å", Data = reslut }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | return new WebResponseContent { Status = false, Message = ex.Message }; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |