diff --git a/source/Plugins/AyaNova.Plugin.Dump/Dump.cs b/source/Plugins/AyaNova.Plugin.Dump/Dump.cs index dcf7cd9..7b88358 100644 --- a/source/Plugins/AyaNova.Plugin.Dump/Dump.cs +++ b/source/Plugins/AyaNova.Plugin.Dump/Dump.cs @@ -176,6 +176,19 @@ namespace AyaNova.Plugin.Dump //DUMP IT! + + //TODO: These next for tags so can be attributed when other objects are imported +- Unit model category +- Unit service type +- Workorder Item Type +- Client group +- Workorder category +- REGIONS +- PartCategory +- Dispatch zones +- ScheduleableUserGroups + + dumpUsers(tempArchiveFolder, progress); dumpGlobalSettings(tempArchiveFolder, progress); dumpLocales(tempArchiveFolder, progress); dumpRegions(tempArchiveFolder, progress); @@ -326,7 +339,37 @@ namespace AyaNova.Plugin.Dump } #endregion clients + #region users + private void dumpUsers(string tempArchiveFolder, ProgressForm progress) + { + + List objectExcludeProperties = new List(standardExcludePropertiesList); + objectExcludeProperties.Add("LastView"); + objectExcludeProperties.Add("LastSchedGroupID"); + objectExcludeProperties.Add("LastSchedStartDate"); + objectExcludeProperties.Add("LastSchedStopDate"); + objectExcludeProperties.Add("LastSchedView"); + objectExcludeProperties.Add("ScheduleLastGraphicalPrintSettings"); + objectExcludeProperties.Add("MainGridLastRowCount"); + objectExcludeProperties.Add("ScheduleLastViewOpenOnly"); + objectExcludeProperties.Add("IsAdministrator"); + objectExcludeProperties.Add("IsGenerator"); + objectExcludeProperties.Add("IsScheduleable"); + objectExcludeProperties.Add("IsClientOrHeadOfficeAccount"); + objectExcludeProperties.Add("IsClientAccount"); + objectExcludeProperties.Add("IsHeadOfficeAccount"); + objectExcludeProperties.Add("OrganizationTypeAndID"); + + UserPickList pl = UserPickList.GetList(false); + progress.Append("Dumping " + pl.Count.ToString() + " Users"); + foreach (UserPickList.UserPickListInfo i in pl) + { + User c = User.GetItem(i.ID); + DumpObjectToFolder(tempArchiveFolder, c, "user." + c.ID.ToString(), objectExcludeProperties); + } + } + #endregion clients #endregion object dump methods