From 8aa8244465fc44f95ca210504f949767e09aacb2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 16 Oct 2021 17:31:53 +0000 Subject: [PATCH] removed old export code --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 130 ------------------------- 1 file changed, 130 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 5504504..dc3cce2 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -6517,136 +6517,6 @@ and this one - #region OLD JSON EXPORT STUFF - - - - - //#region Seeds - //private class GZSeeds - //{ - // public int InventoryAdjustmentStartSeed = 1; - // public int PurchaseOrderStartSeed = 1; - // public int QuoteNumberStartSeed = 1; - // public int WorkorderNumberStartSeed = 1; - // public int PreventiveMaintenanceNumberStartSeed = 1; - //} - //private void ExportSeedNumbers(ProgressForm progress) - //{ - // // List objectExcludeProperties = new List(standardExcludePropertiesList); - // progress.Append("Dumping seeds"); - // //create a new object with the id numbers in it and then dump it - // WorkorderPMList pml = WorkorderPMList.GetList(" \r\n" + - // " \r\n" + - // " \r\n" + - // " "); - - // int PMStartSeed = 0; - // if (pml.Count > 0) - // { - // PMStartSeed = int.Parse(pml[0].LT_O_WorkorderPreventiveMaintenance.Display); - // } - - // var seeds = new GZSeeds(); - // seeds.InventoryAdjustmentStartSeed = AyaBizUtils.GlobalSettings.InventoryAdjustmentStartSeed + 1; - // seeds.PurchaseOrderStartSeed = AyaBizUtils.GlobalSettings.PurchaseOrderStartSeed + 1; - // seeds.QuoteNumberStartSeed = AyaBizUtils.GlobalSettings.QuoteNumberStartSeed + 1; - // seeds.WorkorderNumberStartSeed = AyaBizUtils.GlobalSettings.WorkorderNumberStartSeed + 1; - // seeds.PreventiveMaintenanceNumberStartSeed = PMStartSeed + 1; - - // //DumpObjectToFolder(tempArchiveFolder, seeds, "seeds", objectExcludeProperties, TypeAndID.Empty, "GZTW.AyaNova.BLL.Seed"); - //} - //#endregion globalsettings - - - - //#region contract resolver - ////public class ExcludeNamedPropertiesContractResolver : DefaultContractResolver - ////{ - //// private readonly List _excludeProperties; - - //// public ExcludeNamedPropertiesContractResolver(List excludeProperties) - //// { - //// _excludeProperties = excludeProperties; - //// } - - //// protected override IList CreateProperties(Type type, MemberSerialization memberSerialization) - //// { - //// IList properties = base.CreateProperties(type, memberSerialization); - - //// // only serializer properties that start with the specified character - //// //properties = properties.Where(p => p.PropertyName.StartsWith(_startingWithChar.ToString())).ToList(); - //// properties = properties.Where(p => !_excludeProperties.Contains(p.PropertyName)).ToList(); - - //// return properties; - //// } - ////} - //#endregion contract resolver - - - ////private static string EnsureValidFileName(string fileName) - ////{ - //// //make lower and replace spaces with dashes - //// fileName = fileName.ToLowerInvariant().Replace(" ", "-"); - - //// //ensure each character is a valid path character - //// foreach (char c in System.IO.Path.GetInvalidFileNameChars()) - //// { - //// fileName = fileName.Replace(c, '_'); - //// } - //// return fileName; - ////} - - - - ////private static void makeFolderIfNotExist(string fldr, bool shouldNotExist = false) - ////{ - //// if (Directory.Exists(fldr)) - //// { - //// if (shouldNotExist) - //// throw new System.Exception("Error: path already exists and shouldn't:\r\n" + fldr); - //// return; - //// } - //// Directory.CreateDirectory(fldr); - ////} - - ////private List standardExcludePropertiesList - ////{ - //// get - //// { - //// return new List() - //// { - //// "CanWiki", - //// "CanDuplicate", - //// "IsValid", - //// "IsDirty", - //// "CurrentUserID", - //// "IsEditing", - //// "IsNew", - //// "IsDeleted", - //// "IsSavable", - //// "Notify", - //// "BrokenRulesText", - //// "Docs", - //// "MapQuestURL", - //// "FullAddress" - //// //"XXX", - //// //"XXX", - //// //"XXX", - //// //"XXX", - //// //"XXX", - //// //"XXX", - //// //"XXX", - //// //"XXX", - //// //"XXX", - //// //"XXX", - //// //"XXX" - //// }; - - //// } - ////} - #endregion old - //eoc }