This commit is contained in:
@@ -251,7 +251,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
progress.Op("Exporting Business objects");
|
progress.Op("Exporting Business objects");
|
||||||
//BIZ objects
|
//BIZ objects
|
||||||
// await ExportLocales(progress);
|
// await ExportLocales(progress);
|
||||||
await ExportUsers(progress);
|
await ExportUsers(progress);
|
||||||
await ExportClients(progress);
|
await ExportClients(progress);
|
||||||
await ExportHeadOffices(progress);
|
await ExportHeadOffices(progress);
|
||||||
@@ -263,7 +263,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//await ExportUnits(progress);
|
//await ExportUnits(progress);
|
||||||
//await ExportUnitModels(progress);
|
//await ExportUnitModels(progress);
|
||||||
//await ExportVendors(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
|
//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)
|
||||||
{
|
{
|
||||||
@@ -561,10 +561,10 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
//Step 2: export the objects
|
//Step 2: export the objects
|
||||||
PickListAutoComplete pl = PickListAutoComplete.GetList("**", "headoffice");
|
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;
|
if (!progress.KeepGoing) return;
|
||||||
List<string> tags = new List<string>();
|
List<string> tags = new List<string>();
|
||||||
@@ -578,8 +578,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
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);
|
||||||
Tagit(c.ClientGroupID, tags);
|
Tagit(c.ClientGroupID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
var hasWiki = WikiPage.HasWiki(c.ID);
|
var hasWiki = WikiPage.HasWiki(c.ID);
|
||||||
@@ -629,7 +629,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
//Step 2: export the objects
|
//Step 2: export the objects
|
||||||
PickListAutoComplete pl = PickListAutoComplete.GetList("**", "contract");
|
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)
|
foreach (PickListAutoComplete.PickListAutoCompleteInfo i in pl)
|
||||||
{
|
{
|
||||||
@@ -645,7 +645,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
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);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
var hasWiki = WikiPage.HasWiki(c.ID);
|
var hasWiki = WikiPage.HasWiki(c.ID);
|
||||||
@@ -672,7 +672,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//need to repost the object with the notes modified
|
//need to repost the object with the notes modified
|
||||||
d = rMainObject.ObjectResponse["data"];
|
d = rMainObject.ObjectResponse["data"];
|
||||||
d.notes = NonFileUrls + "\n-----------------\n" + d.notes;
|
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
|
//Event log fixup
|
||||||
|
|||||||
Reference in New Issue
Block a user