This commit is contained in:
@@ -485,6 +485,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
V7UseInventory = AyaBizUtils.GlobalSettings.UseInventory;
|
V7UseInventory = AyaBizUtils.GlobalSettings.UseInventory;
|
||||||
|
|
||||||
//BIZ objects
|
//BIZ objects
|
||||||
|
|
||||||
await ExportLocales(progress);
|
await ExportLocales(progress);
|
||||||
await ExportStaffUsers(progress);
|
await ExportStaffUsers(progress);
|
||||||
await ExportRates(progress);
|
await ExportRates(progress);
|
||||||
@@ -4852,7 +4853,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
#region Global / Regional WIKIPAGES
|
#region Global / Regional WIKIPAGES
|
||||||
private async System.Threading.Tasks.Task ExportGlobalRegionalWiki(ProgressForm progress)
|
private async System.Threading.Tasks.Task ExportGlobalRegionalWiki(ProgressForm progress)
|
||||||
{
|
{
|
||||||
ResetUniqueNames();
|
progress.Append("Export Global / Regional WIKI");
|
||||||
if (!progress.KeepGoing) return;
|
if (!progress.KeepGoing) return;
|
||||||
progress.Op("Start Global / Regional WIKI page export");
|
progress.Op("Start Global / Regional WIKI page export");
|
||||||
progress.SubOp("Global WIKI check");
|
progress.SubOp("Global WIKI check");
|
||||||
@@ -4860,15 +4861,22 @@ namespace AyaNova.PlugIn.V8
|
|||||||
{
|
{
|
||||||
progress.SubOp("Global WIKI exists, migrating to special User account");
|
progress.SubOp("Global WIKI exists, migrating to special User account");
|
||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
d.name = "zV8Migrate GLOBAL_WIKI_REPOSITORY";
|
d.name = "zV8Migrate GLOBAL_WIKI_REPOSITORY";
|
||||||
d.wiki = await GetWikiContent(new TypeAndID(RootObjectTypes.Global,Address.GlobalAddressID));
|
|
||||||
d.active = false;
|
d.active = false;
|
||||||
d.userType = 2;
|
d.userType = 2;
|
||||||
d.roles = 0;
|
d.roles = 0;
|
||||||
d.login = util.RandomString();
|
d.login = util.RandomString();
|
||||||
d.password = util.RandomString();
|
d.password = util.RandomString();
|
||||||
d.notes = "This record created by V8Migrate utility to contain the AyaNova 7 Global WIKI which has no corresponding place in v8";
|
d.notes = "This record created by V8Migrate utility to contain the AyaNova 7 Global WIKI which has no corresponding place in v8";
|
||||||
await util.PostAsync("user", d);
|
var r= await util.PostAsync("user", d);
|
||||||
|
long RavenId = util.IdFromResponse(r);
|
||||||
|
Addv7v8IdMap(Address.GlobalAddressID, RavenId);
|
||||||
|
//FILES / ATTACHMENTS FOR WIKI
|
||||||
|
var tid = new TypeAndID(RootObjectTypes.Global, Address.GlobalAddressID);
|
||||||
|
await ExportAttachments(tid, progress, util.AyaType.User);
|
||||||
|
d = r.ObjectResponse["data"];
|
||||||
|
d.wiki = await GetWikiContent(tid);
|
||||||
|
await util.PutAsync("user", d);
|
||||||
}
|
}
|
||||||
RegionList l = RegionList.GetList(string.Empty);
|
RegionList l = RegionList.GetList(string.Empty);
|
||||||
progress.SubOp("Regional WIKI checks");
|
progress.SubOp("Regional WIKI checks");
|
||||||
@@ -4878,15 +4886,22 @@ namespace AyaNova.PlugIn.V8
|
|||||||
{
|
{
|
||||||
progress.SubOp("Region "+i.LT_Region_Label_Name.Display+" WIKI exists, migrating to special User account");
|
progress.SubOp("Region "+i.LT_Region_Label_Name.Display+" WIKI exists, migrating to special User account");
|
||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
d.name = "zV8Migrate REGION_WIKI_REPOSITORY_"+i.LT_Region_Label_Name.Display;
|
d.name = "zV8Migrate REGION_WIKI_REPOSITORY_"+i.LT_Region_Label_Name.Display;
|
||||||
d.wiki = await GetWikiContent(new TypeAndID(RootObjectTypes.Region, i.LT_Region_Label_Name.Value));
|
|
||||||
d.active = false;
|
d.active = false;
|
||||||
d.userType = 2;
|
d.userType = 2;
|
||||||
d.roles = 0;
|
d.roles = 0;
|
||||||
d.login = util.RandomString();
|
d.login = util.RandomString();
|
||||||
d.password = util.RandomString();
|
d.password = util.RandomString();
|
||||||
d.notes = "This record created by V8Migrate utility to contain the AyaNova 7 Regional WIKI which has no corresponding place in v8";
|
d.notes = "This record created by V8Migrate utility to contain the AyaNova 7 Regional WIKI which has no corresponding place in v8";
|
||||||
await util.PostAsync("user", d);
|
var r = await util.PostAsync("user", d);
|
||||||
|
long RavenId = util.IdFromResponse(r);
|
||||||
|
Addv7v8IdMap(i.LT_Region_Label_Name.Value, RavenId);
|
||||||
|
//FILES / ATTACHMENTS FOR WIKI
|
||||||
|
var tid=new TypeAndID(RootObjectTypes.Region, i.LT_Region_Label_Name.Value);
|
||||||
|
await ExportAttachments(tid, progress, util.AyaType.User);
|
||||||
|
d = r.ObjectResponse["data"];
|
||||||
|
d.wiki = await GetWikiContent(tid);
|
||||||
|
await util.PutAsync("user", d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user