//批量提交设备重启 private void RebootApTasck(byte TaskType) { try { switch (TaskType) { case 0: JsonInterFace.SystemLogsInfo.Input( DateTime.Now.ToString(), "正在重启动设备[" + JsonInterFace.LteDeviceParameter.DomainFullPathName + "." + JsonInterFace.LteDeviceParameter.DeviceName + ",SN=" + JsonInterFace.LteDeviceParameter.SN + "]", "设备重启", "正在通讯..." ); NetWorkClient.ControllerServer.Send(JsonInterFace.APRestartRequest( JsonInterFace.LteDeviceParameter.DomainFullPathName + "." + JsonInterFace.LteDeviceParameter.DeviceName, JsonInterFace.LteDeviceParameter.DeviceName, JsonInterFace.LteDeviceParameter.IpAddr, int.Parse(JsonInterFace.LteDeviceParameter.Port), JsonInterFace.LteDeviceParameter.InnerType, JsonInterFace.LteDeviceParameter.SN )); break; case 1: JsonInterFace.SystemLogsInfo.Input( DateTime.Now.ToString(), "正在重启动设备[" + JsonInterFace.WCDMADeviceParameter.DomainFullPathName + "." + JsonInterFace.WCDMADeviceParameter.DeviceName + ",SN=" + JsonInterFace.WCDMADeviceParameter.SN + "]", "设备重启", "正在通讯..." ); NetWorkClient.ControllerServer.Send(JsonInterFace.APRestartRequest( JsonInterFace.WCDMADeviceParameter.DomainFullPathName + "." + JsonInterFace.WCDMADeviceParameter.DeviceName, JsonInterFace.WCDMADeviceParameter.DeviceName, JsonInterFace.WCDMADeviceParameter.IpAddr, int.Parse(JsonInterFace.WCDMADeviceParameter.Port), JsonInterFace.WCDMADeviceParameter.InnerType, JsonInterFace.WCDMADeviceParameter.SN )); break; case 2: JsonInterFace.SystemLogsInfo.Input( DateTime.Now.ToString(), "正在重启动设备[" + JsonInterFace.GSMDeviceParameter.DomainFullPathName + "." + JsonInterFace.GSMDeviceParameter.DeviceName + ",SN=" + JsonInterFace.GSMDeviceParameter.SN + "]", "设备重启", "正在通讯..." ); NetWorkClient.ControllerServer.Send(JsonInterFace.APRestartRequest( JsonInterFace.GSMDeviceParameter.DomainFullPathName + "." + JsonInterFace.GSMDeviceParameter.DeviceName, JsonInterFace.GSMDeviceParameter.DeviceName, JsonInterFace.GSMDeviceParameter.IpAddr, int.Parse(JsonInterFace.GSMDeviceParameter.Port), JsonInterFace.GSMDeviceParameter.InnerType, JsonInterFace.GSMDeviceParameter.SN )); break; case 3: JsonInterFace.SystemLogsInfo.Input( DateTime.Now.ToString(), "正在重启动设备[" + JsonInterFace.CDMADeviceParameter.DomainFullPathName + "." + JsonInterFace.CDMADeviceParameter.DeviceName + ",SN=" + JsonInterFace.CDMADeviceParameter.SN + "]", "设备重启", "正在通讯..." ); NetWorkClient.ControllerServer.Send(JsonInterFace.APRestartRequest( JsonInterFace.CDMADeviceParameter.DomainFullPathName + "." + JsonInterFace.CDMADeviceParameter.DeviceName, JsonInterFace.CDMADeviceParameter.DeviceName, JsonInterFace.CDMADeviceParameter.IpAddr, int.Parse(JsonInterFace.CDMADeviceParameter.Port), JsonInterFace.CDMADeviceParameter.InnerType, JsonInterFace.CDMADeviceParameter.SN )); break; case 4: JsonInterFace.SystemLogsInfo.Input( DateTime.Now.ToString(), "正在重启动设备[" + JsonInterFace.GSMV2DeviceParameter.DomainFullPathName + "." + JsonInterFace.GSMV2DeviceParameter.DeviceName + ",SN=" + JsonInterFace.GSMV2DeviceParameter.SN + "]", "设备重启", "正在通讯..." ); NetWorkClient.ControllerServer.Send(JsonInterFace.APRestartRequest( JsonInterFace.GSMV2DeviceParameter.DomainFullPathName + "." + JsonInterFace.GSMV2DeviceParameter.DeviceName, JsonInterFace.GSMV2DeviceParameter.DeviceName, JsonInterFace.GSMV2DeviceParameter.IpAddr, int.Parse(JsonInterFace.GSMV2DeviceParameter.Port), JsonInterFace.GSMV2DeviceParameter.InnerType, JsonInterFace.GSMV2DeviceParameter.SN )); break; case 5: JsonInterFace.SystemLogsInfo.Input( DateTime.Now.ToString(), "正在重启动设备[" + JsonInterFace.TDSDeviceParameter.DomainFullPathName + "." + JsonInterFace.TDSDeviceParameter.DeviceName + ",SN=" + JsonInterFace.TDSDeviceParameter.SN + "]", "设备重启", "正在通讯..." ); NetWorkClient.ControllerServer.Send(JsonInterFace.APRestartRequest( JsonInterFace.TDSDeviceParameter.DomainFullPathName + "." + JsonInterFace.TDSDeviceParameter.DeviceName, JsonInterFace.TDSDeviceParameter.DeviceName, JsonInterFace.TDSDeviceParameter.IpAddr, int.Parse(JsonInterFace.TDSDeviceParameter.Port), JsonInterFace.TDSDeviceParameter.InnerType, JsonInterFace.TDSDeviceParameter.SN )); break; default: JsonInterFace.SystemLogsInfo.Input(DateTime.Now.ToString(), "设备重启未找到对应的类型", "设备重启", "内部故障"); break; } } catch (Exception Ex) { Parameters.PrintfLogsExtended("提交设备重启", Ex.Message, Ex.StackTrace); } }