This commit is contained in:
@@ -217,14 +217,24 @@ namespace AyaNova.DataList
|
|||||||
catch (Npgsql.PostgresException e)
|
catch (Npgsql.PostgresException e)
|
||||||
{
|
{
|
||||||
//log out the exception and the query
|
//log out the exception and the query
|
||||||
log.LogInformation("DataList query failed unexpectedly. Data Query was:");
|
log.LogError("DataListFetcher:GetResponseAsync query failed. Data Query was:");
|
||||||
log.LogInformation(qDataQuery);
|
log.LogError(qDataQuery);
|
||||||
log.LogInformation("Count Query was:");
|
log.LogError("Count Query was:");
|
||||||
log.LogInformation(qTotalRecordsQuery);
|
log.LogError(qTotalRecordsQuery);
|
||||||
log.LogInformation(e, "DB Exception");
|
log.LogError(e, "DB Exception");
|
||||||
throw new System.Exception("DataListFetcher - Query failed see log");
|
throw new System.Exception("DataListFetcher:GetResponseAsync - Query failed see log");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
catch (System.Exception e)
|
||||||
|
{
|
||||||
|
//ensure any other type of exception gets surfaced properly
|
||||||
|
//log out the exception and the query
|
||||||
|
log.LogError("DataListFetcher:GetResponseAsync unexpected failure. Data Query was:");
|
||||||
|
log.LogError(qDataQuery);
|
||||||
|
|
||||||
|
log.LogError(e, "Exception");
|
||||||
|
throw new System.Exception("DataListFetcher:GetResponseAsync - unexpected failure see log");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -336,12 +346,22 @@ namespace AyaNova.DataList
|
|||||||
catch (Npgsql.PostgresException e)
|
catch (Npgsql.PostgresException e)
|
||||||
{
|
{
|
||||||
//log out the exception and the query
|
//log out the exception and the query
|
||||||
log.LogInformation("DataListFetcher:GetIdListResponseAsync query failed unexpectedly. Data Query was:");
|
log.LogError("DataListFetcher:GetIdListResponseAsync query failed unexpectedly. IDList Query was:");
|
||||||
log.LogInformation(qDataQuery);
|
log.LogError(qDataQuery);
|
||||||
|
|
||||||
log.LogInformation(e, "DB Exception");
|
log.LogError(e, "DB Exception");
|
||||||
throw new System.Exception("DataListFetcher:GetIdListResponseAsync - Query failed see log");
|
throw new System.Exception("DataListFetcher:GetIdListResponseAsync - Query failed see log");
|
||||||
}
|
}
|
||||||
|
catch (System.Exception e)
|
||||||
|
{
|
||||||
|
//ensure any other type of exception gets surfaced properly
|
||||||
|
//log out the exception and the query
|
||||||
|
log.LogError("DataListFetcher:GetIdListResponseAsync unexpected failure. IDList Query was:");
|
||||||
|
log.LogError(qDataQuery);
|
||||||
|
|
||||||
|
log.LogError(e, "Exception");
|
||||||
|
throw new System.Exception("DataListFetcher:GetIdListResponseAsync - unexpected failure see log");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return retList.ToArray();
|
return retList.ToArray();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ namespace AyaNova.DataList
|
|||||||
cm.fld = "PartInventoryBalance";
|
cm.fld = "PartInventoryBalance";
|
||||||
dlistView.Add(cm);
|
dlistView.Add(cm);
|
||||||
|
|
||||||
cm = new JObject();
|
// cm = new JObject();
|
||||||
cm.fld = "PartInventoryTransactionDescription";
|
// cm.fld = "PartInventoryTransactionDescription";
|
||||||
dlistView.Add(cm);
|
// dlistView.Add(cm);
|
||||||
|
|
||||||
DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
|
DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
|
||||||
|
|
||||||
@@ -82,7 +82,8 @@ namespace AyaNova.DataList
|
|||||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||||
SqlIdColumnName = "vpartinventorynow.id",
|
SqlIdColumnName = "vpartinventorynow.id",
|
||||||
SqlValueColumnName = "vpartinventorynow.description",
|
SqlValueColumnName = "vpartinventorynow.description",
|
||||||
IsRowId = true//should open to eventlog since no edit
|
IsMeta=true,//only so it doesn't show in the UI but is required for report
|
||||||
|
IsRowId = true
|
||||||
});
|
});
|
||||||
|
|
||||||
// FieldDefinitions.Add(new AyaDataListFieldDefinition
|
// FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||||
|
|||||||
@@ -72,11 +72,20 @@ namespace AyaNova.PickList
|
|||||||
//This may be called internally in *Biz classes who don't have a log of their own
|
//This may be called internally in *Biz classes who don't have a log of their own
|
||||||
if (log == null)
|
if (log == null)
|
||||||
log = AyaNova.Util.ApplicationLogging.CreateLogger("PickListFetcher");
|
log = AyaNova.Util.ApplicationLogging.CreateLogger("PickListFetcher");
|
||||||
log.LogInformation("PickList query failed unexpectedly. Query was:");
|
log.LogError("PickList query failed unexpectedly. Query was:");
|
||||||
log.LogInformation(q);
|
log.LogError(q);
|
||||||
log.LogInformation(e, "DB Exception");
|
log.LogError(e, "DB Exception");
|
||||||
throw new System.Exception("PickListFetcher - Query failed see log");
|
throw new System.Exception("PickListFetcher - Query failed see log");
|
||||||
|
}
|
||||||
|
catch (System.Exception e)
|
||||||
|
{
|
||||||
|
//ensure any other type of exception gets surfaced properly
|
||||||
|
//log out the exception and the query
|
||||||
|
log.LogError("PickListFetcher unexpected failure. Query was:");
|
||||||
|
log.LogError(q);
|
||||||
|
|
||||||
|
log.LogError(e, "Exception");
|
||||||
|
throw new System.Exception("PickListFetcher - unexpected failure see log");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user