| | |
| | | var taskStation = BaseDal.QueryFirst(x => x.SourceAddress == item.stationName || x.TargetAddress == item.stationName); |
| | | outStationStatus.Add(new OutStationStatus() |
| | | { |
| | | StationName = item.stationName, |
| | | StationName = item.HostName, |
| | | StationEnable = station.StationEnable == "1" ? "0" : "1", |
| | | IsDistributionTask = taskStation == null ? "0" : "1", |
| | | Spare1 = "00" |
| | |
| | | switch (Status.AutoStatus) |
| | | { |
| | | case "MaintenanceMode": |
| | | //杩愯 |
| | | //鎵嬪姩 |
| | | _Socket.DeviceAutoStatusReport("1"); |
| | | Thread.Sleep(500); |
| | | break; |
| | | case "ControlMode": |
| | | //鍏虫満 |
| | | //鑷姩 |
| | | _Socket.DeviceAutoStatusReport("0"); |
| | | Thread.Sleep(500); |
| | | break; |
| | |
| | | return content.Error(ex.Message); |
| | | } |
| | | } |
| | | //public WebResponseContent Add() |
| | | //{ |
| | | // try |
| | | // { |
| | | // var x = BaseDal.GetTaskNo().Result; |
| | | |
| | | // task_call task_Call = new task_call() |
| | | // { |
| | | // d_task_type = 1, |
| | | // d_floor = 1, |
| | | // d_involed1 = "480101", |
| | | // d_involed2 = "B001::1", |
| | | // d_involed5 = x, |
| | | // }; |
| | | // var y=SqlSugarHelper.DbAGV.Insertable(task_Call).ExecuteCommand(); |
| | | // return WebResponseContent.Instance.OK(data: y); |
| | | // } |
| | | // catch (Exception ex) |
| | | // { |
| | | // return WebResponseContent.Instance.Error(ex.Message); |
| | | // } |
| | | //} |
| | | #endregion 澶栭儴鎺ュ彛鏂规硶 |
| | | |
| | | |