Fixed order of AD1 decoded files + fixed notification + added running status to UI.

This commit is contained in:
Patrick Fic
2020-01-22 14:44:33 -08:00
parent 99cf3efaf1
commit fcdb44d730
5 changed files with 55 additions and 50 deletions

View File

@@ -100,22 +100,21 @@ namespace BodyshopUploader.Utils
jobInput = item.Job
}
};
var d = await Utils.GraphQL.ExecuteQuery(r);
if (d != null)
try
{
var d = await Utils.GraphQL.ExecuteQuery(r);
logger.Trace("Job insert succesful. Show notification");
App.Current.Dispatcher.Invoke(() =>
{
Growler.AddNotification(new Notification()
{
Title = Properties.Resources.Msg_NewJobUploaded,
Subtitle = item.Job?.owner?.data.first_name?.Value + " " + item.Job?.owner?.data.last_name?.Value,
Subtitle = item.Job?.ownr_fn?.Value + " " + item.Job?.ownr_ln?.Value + " | " + item.Job?.clm_no?.Value,
Message = item.Job?.vehicle?.data.v_model_yr?.Value + " " + item.Job?.vehicle?.data.v_make_desc?.Value + " " + item.Job?.vehicle?.data.v_model_desc?.Value
});
});
}
else
catch (Exception Ex)
{
logger.Error("Job insert failed. Show notification");
//Succesful upsert
@@ -124,9 +123,9 @@ namespace BodyshopUploader.Utils
Growler.AddNotification(new Notification()
{
Title = Properties.Resources.Msg_NewJobUploadError,
Subtitle = item.Job.owner?.first_name?.Value + " " + item.Job.owner?.last_name?.Value,
Message = item.Job.vehicle?.v_model_yr?.Value + " " + item.Job.vehicle?.v_make_desc?.Value + " " + item.Job.vehicle?.v_model_desc?.Value
});
Subtitle = item.Job?.ownr_fn?.Value + " " + item.Job?.ownr_ln?.Value,
Message = Ex.Message
}); ;
});
}
_jobs.Dequeue();