This commit is contained in:
@@ -176,6 +176,19 @@ namespace AyaNova.Plugin.Dump
|
|||||||
|
|
||||||
|
|
||||||
//DUMP IT!
|
//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);
|
dumpGlobalSettings(tempArchiveFolder, progress);
|
||||||
dumpLocales(tempArchiveFolder, progress);
|
dumpLocales(tempArchiveFolder, progress);
|
||||||
dumpRegions(tempArchiveFolder, progress);
|
dumpRegions(tempArchiveFolder, progress);
|
||||||
@@ -326,7 +339,37 @@ namespace AyaNova.Plugin.Dump
|
|||||||
}
|
}
|
||||||
#endregion clients
|
#endregion clients
|
||||||
|
|
||||||
|
#region users
|
||||||
|
private void dumpUsers(string tempArchiveFolder, ProgressForm progress)
|
||||||
|
{
|
||||||
|
|
||||||
|
List<string> objectExcludeProperties = new List<string>(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
|
#endregion object dump methods
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user