This commit is contained in:
2020-05-02 23:43:09 +00:00
parent 0f38277890
commit c1874e3530

View File

@@ -251,7 +251,7 @@ namespace AyaNova.PlugIn.V8
progress.Op("Exporting Business objects");
//BIZ objects
// await ExportLocales(progress);
// await ExportLocales(progress);
await ExportUsers(progress);
await ExportClients(progress);
await ExportHeadOffices(progress);
@@ -263,7 +263,7 @@ namespace AyaNova.PlugIn.V8
//await ExportUnits(progress);
//await ExportUnitModels(progress);
//await ExportVendors(progress);
//workorders once work out the actual objects and routes at server end
//workorders once work out the actual objects and routes at server end
@@ -493,7 +493,7 @@ namespace AyaNova.PlugIn.V8
//Step 2: export the objects
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)
{
@@ -561,10 +561,10 @@ namespace AyaNova.PlugIn.V8
//Step 2: export the objects
PickListAutoComplete pl = PickListAutoComplete.GetList("**", "headoffice");
progress.Append("Exporting " + pl.Count.ToString() + ObjectTypeName + "s");
foreach (PickListAutoComplete.PickListAutoCompleteInfo i in pl )
progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s");
foreach (PickListAutoComplete.PickListAutoCompleteInfo i in pl)
{
if (!progress.KeepGoing) return;
List<string> tags = new List<string>();
@@ -578,8 +578,8 @@ namespace AyaNova.PlugIn.V8
progress.Op(ObjectTypeName + " " + d.name);
d.active = c.Active;
d.notes = c.Notes;
Tagit(c.RegionID, tags);
Tagit(c.ClientGroupID, tags);
Tagit(c.RegionID, tags);
Tagit(c.ClientGroupID, tags);
SetTags(d, tags);
var hasWiki = WikiPage.HasWiki(c.ID);
@@ -629,7 +629,7 @@ namespace AyaNova.PlugIn.V8
//Step 2: export the objects
PickListAutoComplete pl = PickListAutoComplete.GetList("**", "contract");
progress.Append("Exporting " + pl.Count.ToString() + ObjectTypeName + "s");
progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s");
foreach (PickListAutoComplete.PickListAutoCompleteInfo i in pl)
{
@@ -645,7 +645,7 @@ namespace AyaNova.PlugIn.V8
progress.Op(ObjectTypeName + " " + d.name);
d.active = c.Active;
d.notes = c.Notes;
Tagit(c.RegionID, tags);
Tagit(c.RegionID, tags);
SetTags(d, tags);
var hasWiki = WikiPage.HasWiki(c.ID);
@@ -672,7 +672,7 @@ namespace AyaNova.PlugIn.V8
//need to repost the object with the notes modified
d = rMainObject.ObjectResponse["data"];
d.notes = NonFileUrls + "\n-----------------\n" + d.notes;
await util.PutAsync(ObjectTypeName+"/" + RavenId.ToString(), d.ToString());
await util.PutAsync(ObjectTypeName + "/" + RavenId.ToString(), d.ToString());
}
//Event log fixup