removed old export code

This commit is contained in:
2021-10-16 17:31:53 +00:00
parent 391c9cde98
commit 8aa8244465

View File

@@ -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<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" +
// "<GRIDCRITERIA> \r\n" +
// " <COLUMNITEM CM=\"aWorkorderPreventiveMaintenance.aPreventiveMaintenanceNumber\" UI=\"LT_O_WorkorderPreventiveMaintenance\" PIN=\"0\" WIDTH=\"150\" SORT=\"DESC\" /> \r\n" +
// "</GRIDCRITERIA> ");
// 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<string> _excludeProperties;
//// public ExcludeNamedPropertiesContractResolver(List<string> excludeProperties)
//// {
//// _excludeProperties = excludeProperties;
//// }
//// protected override IList<JsonProperty> CreateProperties(Type type, MemberSerialization memberSerialization)
//// {
//// IList<JsonProperty> 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<string> standardExcludePropertiesList
////{
//// get
//// {
//// return new List<string>()
//// {
//// "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
}