This commit is contained in:
@@ -155,7 +155,7 @@ namespace AyaNova.PlugIn.V8
|
||||
/// Dump the objects into a temporary directory as a series of JSON files
|
||||
/// then zip it all up into a single archive file and then erase the temporary folder
|
||||
/// </summary>
|
||||
private void DoExport()
|
||||
private async void DoExport()
|
||||
{
|
||||
Map.Clear();
|
||||
|
||||
@@ -178,7 +178,8 @@ namespace AyaNova.PlugIn.V8
|
||||
//Export in correct order:
|
||||
|
||||
//ERASE DB
|
||||
util.EraseDB();
|
||||
var a = await util.PostAsync("License/PermanentlyEraseAllData", "I understand");
|
||||
if (!a.HttpResponse.IsSuccessStatusCode) { MessageBox.Show("Error erasing database: \n" + a.HttpResponse.ReasonPhrase); return;}
|
||||
|
||||
//TAGS
|
||||
ExportUnitModelCategories(progress);
|
||||
@@ -221,7 +222,7 @@ namespace AyaNova.PlugIn.V8
|
||||
#region Global settings
|
||||
private void ExportGlobalSettings(ProgressForm progress)
|
||||
{
|
||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
|
||||
progress.Append("STUB: Dumping Global Settings");
|
||||
////DumpObjectToFolder(tempArchiveFolder, AyaBizUtils.GlobalSettings, "globalsettings", objectExcludeProperties, new TypeAndID(RootObjectTypes.Global, Address.GlobalAddressID));
|
||||
}
|
||||
@@ -230,7 +231,7 @@ namespace AyaNova.PlugIn.V8
|
||||
#region locales
|
||||
private void ExportLocales(ProgressForm progress)
|
||||
{
|
||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
// List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
|
||||
//Skip stock locales already handled in Raven
|
||||
List<string> SkipLocales = new List<string>();
|
||||
@@ -255,9 +256,8 @@ namespace AyaNova.PlugIn.V8
|
||||
#region REGIONS
|
||||
private void ExportRegions(ProgressForm progress)
|
||||
{
|
||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
objectExcludeProperties.Add("ContractName");
|
||||
objectExcludeProperties.Add("uiHasTechNotes");
|
||||
// List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
|
||||
RegionList l = RegionList.GetList(string.Empty);
|
||||
progress.Append("Dumping " + l.Count.ToString() + " Regions");
|
||||
foreach (RegionList.RegionListInfo i in l)
|
||||
@@ -281,7 +281,7 @@ namespace AyaNova.PlugIn.V8
|
||||
}
|
||||
private void ExportSeedNumbers(ProgressForm progress)
|
||||
{
|
||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
// List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
progress.Append("Dumping seeds");
|
||||
//create a new object with the id numbers in it and then dump it
|
||||
WorkorderPMList pml = WorkorderPMList.GetList("<?xml version=\"1.0\" encoding=\"utf-16\" standalone=\"yes\"?> \r\n" +
|
||||
@@ -309,9 +309,6 @@ namespace AyaNova.PlugIn.V8
|
||||
#region clients
|
||||
private void ExportClients(ProgressForm progress)
|
||||
{
|
||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
objectExcludeProperties.Add("ContractName");
|
||||
objectExcludeProperties.Add("uiHasTechNotes");
|
||||
ClientPickList pl = ClientPickList.GetList();
|
||||
progress.Append("Dumping " + pl.Count.ToString() + " Clients");
|
||||
foreach (ClientPickList.ClientPickListInfo i in pl)
|
||||
@@ -326,9 +323,7 @@ namespace AyaNova.PlugIn.V8
|
||||
#region headoffices
|
||||
private void ExportHeadOffices(ProgressForm progress)
|
||||
{
|
||||
List<string> excludes = new List<string>(standardExcludePropertiesList);
|
||||
//excludes.Add("ContractInEffect");
|
||||
//excludes.Add("uiHasTechNotes");
|
||||
|
||||
PickListAutoComplete pl = PickListAutoComplete.GetList("**", "headoffice");
|
||||
|
||||
progress.Append("Dumping " + pl.Count.ToString() + " Head offices");
|
||||
@@ -341,7 +336,7 @@ namespace AyaNova.PlugIn.V8
|
||||
#endregion clients
|
||||
|
||||
#region users
|
||||
private void ExportUsers(ProgressForm progress)
|
||||
private async void ExportUsers(ProgressForm progress)
|
||||
{
|
||||
|
||||
//List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
||||
@@ -388,7 +383,7 @@ namespace AyaNova.PlugIn.V8
|
||||
Tagit(c.DispatchZoneID, tags);
|
||||
SetTags(d, tags);
|
||||
|
||||
util.PostAsync("
|
||||
var a=await util.PostAsync("User", d.ToString());
|
||||
|
||||
|
||||
//JObject xtra = new JObject();
|
||||
|
||||
Reference in New Issue
Block a user