This commit is contained in:
2018-08-30 17:46:33 +00:00
parent 99eef872c8
commit 0422598686
2 changed files with 29 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ namespace AyaNova.Biz
//NOTE: If this code throws an exception the caller will automatically set the job to failed and log the exeption so
//basically any error condition during job processing should throw up an exception if it can't be handled
List<ImportAyaNova7MapItem> importMap = new List<ImportAyaNova7MapItem>();
JobsBiz.UpdateJobStatus(job.GId, JobStatus.Running, ct);
JobsBiz.LogJob(job.GId, $"ImportAyaNova7 starting", ct);
@@ -86,24 +86,27 @@ namespace AyaNova.Biz
//Pass off the JSON data from the import file into the import job item by item
// TAGS
// - Unit model category
// - Unit service type
// - Workorder Item Type
// - Client group
// - Workorder category
// - REGIONS
// - PartCategory
// - Dispatch zones
// - ScheduleableUserGroups
// TAGS
// - Unit model category
// - Unit service type
// - Workorder Item Type
// - Client group
// - Workorder category
// - REGIONS
// - PartCategory
// - Dispatch zones
// - ScheduleableUserGroups
//USERS - Import first so all other objects can be properly attributed in event log
//IMPORT UNIT MODEL CATEGORIES AS TAGS
await DoImport("GZTW.AyaNova.BLL.UnitModelCategory", AyaType.Tag, job.GId, importMap, importFileName, zipEntries);
//IMPORT REGIONS AS TAGS
await DoImport("GZTW.AyaNova.BLL.Region", AyaType.Tag, job.GId, importMap, importFileName, zipEntries);
//IMPORT LOCALES
//IMPORT LOCALES
await DoImport("GZTW.AyaNova.BLL.Locale", AyaType.Locale, job.GId, importMap, importFileName, zipEntries);
JobsBiz.LogJob(job.GId, "ImportAyaNova7 finished", ct);