Example #1
0
        private bool GetValvesDataTable(Data valveMain, string[] equipKeys, out DataTable dtRepairs)
        {
            dtRepairs = null;

            try
            {
                dtRepairs = _dataService.GetRepairHistoryData(valveMain.TenantKey.ToStringEx(),
                                                              valveMain.ValveTable, string.Join((char)8, equipKeys).ToStringEx());
            }
            catch (Exception ex)
            {
                _logger.LogError($"Get Valve Data Error: {ex}");
            }

            return(dtRepairs != null && dtRepairs.Rows.Count != 0);
        }