General tidy.
This commit is contained in:
@@ -106,7 +106,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Mgr
|
||||
catch (Exception exc)
|
||||
{
|
||||
SetErrorState("Database query exception");
|
||||
SaLogger.Warn(GetType().Name + ".GetProcess\n\tQuery: " + dbCommand.CommandText + "\n\tException: " + exc.Message);
|
||||
SaLogger.Warn($"{SysUtil.Fn}\n\tQuery: {dbCommand.CommandText}\n\t{ExceptionUtil.GetErrorStateMessage(exc)}");
|
||||
}
|
||||
}
|
||||
return prmProcess;
|
||||
@@ -485,7 +485,8 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Mgr
|
||||
// Process list.
|
||||
public override List<SbmProcess> GetProcessList(SbmProcess.Params prm)
|
||||
{
|
||||
List<SbmProcess> Processes = new List<SbmProcess>();
|
||||
ClearErrorState();
|
||||
List<SbmProcess> processes = new List<SbmProcess>();
|
||||
DbQuery qry = new DbQuery(db.DbmsType);
|
||||
qry.Tables.Add(SbmDbDfn.GetTableName(SbmDbDfn.TableIdx.Process), aliasProcess);
|
||||
Process_Db dbProcess = new Process_Db(DbInfo);
|
||||
@@ -506,16 +507,17 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Mgr
|
||||
{
|
||||
dbProcess = new Process_Db(DbInfo);
|
||||
dbProcess.PopulateFrom(dbDataReader);
|
||||
Processes.Add(CreateProcess(dbProcess));
|
||||
processes.Add(CreateProcess(dbProcess));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
SaLogger.Warn(GetType().Name + ".GetProcessList\n\tQuery: " + dbCommand.CommandText + "\n\tException: " + exc.Message);
|
||||
SetErrorState("Database query exception");
|
||||
SaLogger.Warn($"{SysUtil.Fn}\n\tQuery: {dbCommand.CommandText}\n\t{ExceptionUtil.GetErrorStateMessage(exc)}");
|
||||
}
|
||||
}
|
||||
return Processes;
|
||||
return processes;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user