This commit is contained in:
@@ -213,22 +213,35 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
//TAGS
|
||||
progress.Op("Compiling tags");
|
||||
ExportUnitModelCategories(progress);
|
||||
ExportUnitServiceTypes(progress);
|
||||
ExportWorkorderItemTypes(progress);
|
||||
ExportRegions(progress);
|
||||
ExportClientGroups(progress);
|
||||
ExportWorkorderCategories(progress);
|
||||
ExportPartCategories(progress);
|
||||
ExportScheduleableUserGroups(progress);
|
||||
ExportDispatchZones(progress);
|
||||
ExportUserSkills(progress);
|
||||
ExportUserCertifications(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportUnitModelCategories(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportUnitServiceTypes(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportWorkorderItemTypes(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportRegions(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportClientGroups(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportWorkorderCategories(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportPartCategories(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportScheduleableUserGroups(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportDispatchZones(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportUserSkills(progress);
|
||||
if (progress.KeepGoing)
|
||||
ExportUserCertifications(progress);
|
||||
|
||||
progress.Op("Exporting objects");
|
||||
//BIZ objects
|
||||
await ExportUsers(progress);
|
||||
await ExportLocales(progress);
|
||||
if (progress.KeepGoing)
|
||||
await ExportUsers(progress);
|
||||
if (progress.KeepGoing)
|
||||
await ExportLocales(progress);
|
||||
|
||||
|
||||
|
||||
@@ -244,10 +257,19 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
//NOTE: when get to PRIORITY, or WORKORDER STATUS be sure to add color code as per already done in USER export
|
||||
|
||||
if (progress.KeepGoing)
|
||||
{
|
||||
progress.Append("Export completed");
|
||||
progress.Op("");
|
||||
|
||||
progress.Append("Export completed");
|
||||
goto End;
|
||||
}
|
||||
|
||||
progress.Append("Export cancelled before completing");
|
||||
progress.Op("");
|
||||
|
||||
End:
|
||||
;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -327,6 +349,7 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
foreach (UserPickList.UserPickListInfo i in pl)
|
||||
{
|
||||
if (!progress.KeepGoing) return;
|
||||
List<string> tags = new List<string>();
|
||||
tags.Add(ImportTag);
|
||||
|
||||
@@ -417,6 +440,7 @@ namespace AyaNova.PlugIn.V8
|
||||
//Because this is the User's we need to do the event log *after* they have all been posted as event log requires all user's id
|
||||
foreach (UserPickList.UserPickListInfo i in pl)
|
||||
{
|
||||
if (!progress.KeepGoing) return;
|
||||
User c = User.GetItem(i.ID);
|
||||
var newId = Map[c.ID];
|
||||
var creator = Map[c.Creator];
|
||||
@@ -434,17 +458,18 @@ namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
|
||||
//Skip stock locales already handled in Raven
|
||||
List<string> SkipLocales = new List<string>();
|
||||
SkipLocales.Add("Deutsch");
|
||||
SkipLocales.Add("English");
|
||||
SkipLocales.Add("Español");
|
||||
SkipLocales.Add("Français");
|
||||
//List<string> SkipLocales = new List<string>();
|
||||
//SkipLocales.Add("Deutsch");
|
||||
//SkipLocales.Add("English");
|
||||
//SkipLocales.Add("Español");
|
||||
//SkipLocales.Add("Français");
|
||||
|
||||
LocaleList l = LocaleList.GetList();
|
||||
progress.Append("Exporting " + l.Count.ToString() + " Locales");
|
||||
foreach (LocaleList.LocaleListInfo i in l)
|
||||
{
|
||||
if (!SkipLocales.Contains(i.Locale))
|
||||
if (!progress.KeepGoing) return;
|
||||
if (i.Locale!="English")
|
||||
{
|
||||
LocalizedTextTable lt = LocalizedTextTable.Load(i.Locale);
|
||||
//todo: all locales except English default need to be dealt with
|
||||
@@ -714,6 +739,7 @@ namespace AyaNova.PlugIn.V8
|
||||
//iterate the files
|
||||
foreach (AyaFileList.AyaFileListInfo i in fl)
|
||||
{
|
||||
if (!progress.KeepGoing) return;
|
||||
var af = AyaFile.GetItem(i.LT_O_AyaFile.Value);
|
||||
if (af == null) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user