public void ShowAllDevicesAlarmConfig() { dataGridViewDevicesAlarmConfig.Rows.Clear(); DevicesService.DevicesClient _dc = new DevicesService.DevicesClient(); DevicesAlarmConfigurationService.DevicesAlarmConfigurationClient _dac = new DevicesAlarmConfigurationClient(); string[] _devicesAlarmConfigID = _dac.GetAllDevicesAlarmConfigID(); string[] _devicesID = _dc.GetAllDevicesID(); for (int i = 0; i < _devicesAlarmConfigID.Length; i++) { string[] _deviceAlarmConfigData = _dac.GetDeviceAlarmConfigData(_devicesAlarmConfigID[i]); string[] _deviceData = _dc.GetDeviceData(_deviceAlarmConfigData[0]); //string[] _deviceEventLogData = _delc.GetOneDeviceEventLog(_devicesAlarmConfigID[i]); dataGridViewDevicesAlarmConfig.Rows.Add(); dataGridViewDevicesAlarmConfig[_colDeviceID.Name, i].Value = _deviceAlarmConfigData[0]; dataGridViewDevicesAlarmConfig[_ColDeviceName.Name, i].Value = _deviceData[1]; dataGridViewDevicesAlarmConfig[_colAlarmValue.Name, i].Value = _deviceAlarmConfigData[1]; dataGridViewDevicesAlarmConfig[_colConfigType.Name, i].Value = _deviceAlarmConfigData[2]; } }
public void ShowAllDevices() { dataGridViewDevices.Rows.Clear(); DevicesService.DevicesClient _dc = new DevicesService.DevicesClient(); DeviceEventLogService.DeviceEventLogClient _delc = new DeviceEventLogClient(); string[] _devicesID = _dc.GetAllDevicesID(); for (int i = 0; i < _devicesID.Length; i++) { string[] _deviceData = _dc.GetDeviceData(_devicesID[i]); string[] _deviceEventLogData = _delc.GetOneDeviceEventLog(_devicesID[i]); dataGridViewDevices.Rows.Add(); dataGridViewDevices[_colDeviceID.Name, i].Value = _deviceData[0]; dataGridViewDevices[_colDeviceName.Name, i].Value = _deviceData[1]; dataGridViewDevices[_colDeviceValue.Name, i].Value = _deviceEventLogData[7]; dataGridViewDevices[_colDeviceAssignedToRoomID.Name, i].Value = _deviceData[2]; dataGridViewDevices[_colDeviceStatus.Name, i].Value = _deviceData[3]; } }
public void ShowAllDevices() { DevicesService.DevicesClient _dc = new DevicesService.DevicesClient(); string[] _devicesID = _dc.GetAllDevicesID(); for (int i = 0; i < _devicesID.Length; i++) { string[] _deviceData = _dc.GetDeviceData(_devicesID[i]); _GDictionaryDevicesIDName.Add(_deviceData[1], _devicesID[i]); ComboxDeviceName.Items.Add(_deviceData[1]); } }
public void ShowAllDevices() { dataGridViewDevices.Rows.Clear(); DevicesService.DevicesClient _dc = new DevicesService.DevicesClient(); string[] _devicesID = _dc.GetAllDevicesID(); for (int i = 0; i < _devicesID.Length; i++) { string[] _deviceData = _dc.GetDeviceData(_devicesID[i]); dataGridViewDevices.Rows.Add(); dataGridViewDevices[_colDeviceAlreadyinDB.Name, i].Value = "1"; //Device in database already. dataGridViewDevices[_colDeviceID.Name, i].Value = _deviceData[0]; dataGridViewDevices[_colDeviceName.Name, i].Value = _deviceData[1]; dataGridViewDevices[_colDeviceAreaAssign.Name, i].Value = _deviceData[2]; dataGridViewDevices[_colDeviceStatus.Name, i].Value = _deviceData[3]; } }