| | |
| | | using WIDESEAWCS_BasicInfoRepository; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_ISystemServices; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | { |
| | | _sys_ConfigService = sys_ConfigService; |
| | | } |
| | | |
| | | public WebResponseContent GetStation() |
| | | { |
| | | return WebResponseContent.Instance.OK(data: BaseDal.QueryData(x => x.stationRemark == "AGVæ¾è´§ç«å°").ToList()); |
| | | } |
| | | |
| | | public WebResponseContent UpdateStation(SaveModel saveModel) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | |
| | | try |
| | | { |
| | | string stationid = saveModel.MainData["stationid"].ToString(); |
| | | |
| | | string stationLoc = stationid == "1" ? "2033" : "2043"; |
| | | Dt_StationManager dt_Station = BaseDal.QueryFirst(x => x.stationLocation == stationLoc); |
| | | |
| | | if (dt_Station.stationStatus == "0") |
| | | { |
| | | dt_Station.stationStatus = "1"; |
| | | } |
| | | else |
| | | { |
| | | dt_Station.stationStatus = "0"; |
| | | } |
| | | BaseDal.UpdateData(dt_Station); |
| | | return content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error("é误信æ¯ï¼" + ex); |
| | | throw; |
| | | } |
| | | } |
| | | } |
| | | } |