This commit is contained in:
2018-08-30 19:22:13 +00:00
parent 3221aa3c82
commit b016795875
3 changed files with 11 additions and 15 deletions

View File

@@ -95,12 +95,7 @@ namespace AyaNova.Biz
//Now can do event log entries
await DoImport("GZTW.AyaNova.BLL.User-eventlog", AyaType.User, job.GId, importMap, importFileName, zipEntries);
//LOCALE HERE
//await DoImport .... blah blah for locale, then:
//Now can do user locale settings properly
//await DoImport("GZTW.AyaNova.BLL.User-locale", AyaType.User, job.GId, importMap, importFileName, zipEntries);
//IMPORT UNIT MODEL CATEGORIES AS TAGS
await DoImport("GZTW.AyaNova.BLL.UnitModelCategory", AyaType.Tag, job.GId, importMap, importFileName, zipEntries);
@@ -126,8 +121,7 @@ namespace AyaNova.Biz
await DoImport("GZTW.AyaNova.BLL.ScheduleableUserGroup", AyaType.Tag, job.GId, importMap, importFileName, zipEntries);
//Now can set users to correct tag for scheduleable user group
await DoImport("GZTW.AyaNova.BLL.User-scheduleableusergrouptags", AyaType.User, job.GId, importMap, importFileName, zipEntries);
//IMPORT REGIONS AS TAGS
@@ -135,7 +129,8 @@ namespace AyaNova.Biz
//IMPORT LOCALES
await DoImport("GZTW.AyaNova.BLL.Locale", AyaType.Locale, job.GId, importMap, importFileName, zipEntries);
//Now can do user locale settings properly
await DoImport("GZTW.AyaNova.BLL.User-locale", AyaType.User, job.GId, importMap, importFileName, zipEntries);
//TODO: second pass now that all objects are in the db, need to go through again and set properties based on all imported data, e.g. scheduleableUserGroups are tags that must now be set on users

View File

@@ -451,21 +451,21 @@ namespace AyaNova.Biz
//EventLogProcessor.AddEntry(new Event(userId, o.Id, AyaType.User, AyaEvent.Created), ct);
//MODIFIED HERE
// await ct.SaveChangesAsync();
throw new System.NotImplementedException();
}
break;
//break;
case "GZTW.AyaNova.BLL.User-locale":
{
//handle locale entries for users now that we have the locales created
throw new System.NotImplementedException();
}
break;
// break;
case "GZTW.AyaNova.BLL.User-scheduleableusergrouptags":
{
//handle tag entries for users now that we have the SUG tags created
throw new System.NotImplementedException();
}
break;
//break;
}
//just to hide compiler warning for now