This commit is contained in:
2020-05-02 22:11:15 +00:00
parent 239168d9da
commit 457868026a

View File

@@ -250,23 +250,14 @@ namespace AyaNova.PlugIn.V8
if (progress.KeepGoing) if (progress.KeepGoing)
ExportUserCertifications(progress); ExportUserCertifications(progress);
progress.Op("Exporting objects"); progress.Op("Exporting Business objects");
//BIZ objects //BIZ objects
await ExportLocales(progress);
//if (progress.KeepGoing) await ExportUsers(progress);
// await ExportLocales(progress); await ExportClients(progress);
if (progress.KeepGoing)
await ExportUsers(progress);
if (progress.KeepGoing)
await ExportClients(progress);
//NOTE: when get to PRIORITY, or WORKORDER STATUS be sure to add color code as per already done in USER export //NOTE: when get to PRIORITY, or WORKORDER STATUS be sure to add color code as per already done in USER export
if (progress.KeepGoing) if (progress.KeepGoing)
{ {
progress.Append("Export completed"); progress.Append("Export completed");
@@ -307,6 +298,7 @@ namespace AyaNova.PlugIn.V8
#region users #region users
private async System.Threading.Tasks.Task ExportUsers(ProgressForm progress) private async System.Threading.Tasks.Task ExportUsers(ProgressForm progress)
{ {
if (!progress.KeepGoing) return;
//Step 1: export the CustomFields to FormCustom if applicable so that when doing individual items we can export their custom data too //Step 1: export the CustomFields to FormCustom if applicable so that when doing individual items we can export their custom data too
var ocf = ObjectHasCustomFieldDataToExport("User"); var ocf = ObjectHasCustomFieldDataToExport("User");
bool ShouldExportCustom = ocf != null; bool ShouldExportCustom = ocf != null;
@@ -417,7 +409,7 @@ namespace AyaNova.PlugIn.V8
var hasWiki = WikiPage.HasWiki(c.ID); var hasWiki = WikiPage.HasWiki(c.ID);
if (hasWiki) if (hasWiki)
{ {
// await ExportAttachments(ObjectTID, progress); // await ExportAttachments(ObjectTID, progress);
d.wiki = GetWikiContent(ObjectTID); d.wiki = GetWikiContent(ObjectTID);
} }
@@ -481,6 +473,7 @@ namespace AyaNova.PlugIn.V8
#region clients #region clients
private async System.Threading.Tasks.Task ExportClients(ProgressForm progress) private async System.Threading.Tasks.Task ExportClients(ProgressForm progress)
{ {
if (!progress.KeepGoing) return;
var ObjectTypeName = "Client"; var ObjectTypeName = "Client";
//Step 1: export the CustomFields to FormCustom if applicable so that when doing individual items we can export their custom data too //Step 1: export the CustomFields to FormCustom if applicable so that when doing individual items we can export their custom data too
var ocf = ObjectHasCustomFieldDataToExport(ObjectTypeName); var ocf = ObjectHasCustomFieldDataToExport(ObjectTypeName);
@@ -489,7 +482,7 @@ namespace AyaNova.PlugIn.V8
//Step 2: export the objects //Step 2: export the objects
ClientPickList pl = ClientPickList.GetList(); ClientPickList pl = ClientPickList.GetList();
progress.Append("Exporting " + pl.Count.ToString() + ObjectTypeName +"s"); progress.Append("Exporting " + pl.Count.ToString() + ObjectTypeName + "s");
foreach (ClientPickList.ClientPickListInfo i in pl) foreach (ClientPickList.ClientPickListInfo i in pl)
{ {
@@ -502,7 +495,7 @@ namespace AyaNova.PlugIn.V8
dynamic d = new JObject(); dynamic d = new JObject();
d.name = c.Name; d.name = c.Name;
progress.Op(ObjectTypeName +" "+ d.name); progress.Op(ObjectTypeName + " " + d.name);
d.active = c.Active; d.active = c.Active;
d.notes = c.Notes; d.notes = c.Notes;
Tagit(c.RegionID, tags); Tagit(c.RegionID, tags);
@@ -549,6 +542,7 @@ namespace AyaNova.PlugIn.V8
#region locales #region locales
private async System.Threading.Tasks.Task ExportLocales(ProgressForm progress) private async System.Threading.Tasks.Task ExportLocales(ProgressForm progress)
{ {
if (!progress.KeepGoing) return;
progress.Append("Exporting customized Locales"); progress.Append("Exporting customized Locales");
//checksum locales //checksum locales
//if a recognized checksum then don't import because it means it wasn't modified from stock //if a recognized checksum then don't import because it means it wasn't modified from stock