This commit is contained in:
@@ -370,18 +370,13 @@ namespace AyaNova.PlugIn.V8
|
|||||||
}
|
}
|
||||||
#endregion clients
|
#endregion clients
|
||||||
|
|
||||||
|
#region TAG ITEMS
|
||||||
#region Unitmodelcategories
|
#region Unitmodelcategories
|
||||||
private void ExportUnitModelCategories(ProgressForm progress)
|
private void ExportUnitModelCategories(ProgressForm progress)
|
||||||
{
|
{
|
||||||
UnitModelCategories l = UnitModelCategories.GetItems();
|
UnitModelCategories l = UnitModelCategories.GetItems();
|
||||||
progress.Append("Exporting " + l.Count.ToString() + " Unit model categories");
|
progress.Append("Compiling " + l.Count.ToString() + " Unit model categories");
|
||||||
|
foreach (UnitModelCategory i in l) TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "unitmodelcategory"));
|
||||||
|
|
||||||
foreach (UnitModelCategory i in l)
|
|
||||||
{
|
|
||||||
TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "unitmodelcategory"));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -389,124 +384,72 @@ namespace AyaNova.PlugIn.V8
|
|||||||
private void ExportUnitServiceTypes(ProgressForm progress)
|
private void ExportUnitServiceTypes(ProgressForm progress)
|
||||||
{
|
{
|
||||||
UnitServiceTypes l = UnitServiceTypes.GetItems();
|
UnitServiceTypes l = UnitServiceTypes.GetItems();
|
||||||
progress.Append("Dumping " + l.Count.ToString() + " Unit service types");
|
progress.Append("Compiling " + l.Count.ToString() + " Unit service types");
|
||||||
|
|
||||||
foreach (UnitServiceType i in l)
|
foreach (UnitServiceType i in l)
|
||||||
{
|
|
||||||
|
|
||||||
TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "unitservicetype"));
|
TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "unitservicetype"));
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region WorkorderItemTypes
|
#region WorkorderItemTypes
|
||||||
private void ExportWorkorderItemTypes(ProgressForm progress)
|
private void ExportWorkorderItemTypes(ProgressForm progress)
|
||||||
{
|
{
|
||||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
|
||||||
//objectExcludeProperties.Add("ContractName");
|
|
||||||
//objectExcludeProperties.Add("uiHasTechNotes");
|
|
||||||
WorkorderItemTypes l = WorkorderItemTypes.GetItems();
|
WorkorderItemTypes l = WorkorderItemTypes.GetItems();
|
||||||
progress.Append("Dumping " + l.Count.ToString() + " Workorder item types");
|
progress.Append("Compiling " + l.Count.ToString() + " Workorder item types");
|
||||||
|
|
||||||
foreach (WorkorderItemType i in l)
|
foreach (WorkorderItemType i in l)
|
||||||
{
|
TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "workorderitemtype"));
|
||||||
|
|
||||||
DumpObjectToFolder(tempArchiveFolder, i, "workorderitemtype." + i.ID.ToString(), objectExcludeProperties, TypeAndID.Empty);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Client groups
|
#region Client groups
|
||||||
private void ExportClientGroups(ProgressForm progress)
|
private void ExportClientGroups(ProgressForm progress)
|
||||||
{
|
{
|
||||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
|
||||||
//objectExcludeProperties.Add("ContractName");
|
|
||||||
//objectExcludeProperties.Add("uiHasTechNotes");
|
|
||||||
ClientGroups l = ClientGroups.GetItems();
|
ClientGroups l = ClientGroups.GetItems();
|
||||||
progress.Append("Dumping " + l.Count.ToString() + " Client groups");
|
progress.Append("Compiling " + l.Count.ToString() + " Client groups");
|
||||||
|
|
||||||
foreach (ClientGroup i in l)
|
foreach (ClientGroup i in l)
|
||||||
{
|
TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "clientgroup"));
|
||||||
|
|
||||||
DumpObjectToFolder(tempArchiveFolder, i, "clientgroup." + i.ID.ToString(), objectExcludeProperties, TypeAndID.Empty);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Workorder categories
|
#region Workorder categories
|
||||||
private void ExportWorkorderCategories(ProgressForm progress)
|
private void ExportWorkorderCategories(ProgressForm progress)
|
||||||
{
|
{
|
||||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
|
||||||
//objectExcludeProperties.Add("ContractName");
|
|
||||||
//objectExcludeProperties.Add("uiHasTechNotes");
|
|
||||||
WorkorderCategories l = WorkorderCategories.GetItems();
|
WorkorderCategories l = WorkorderCategories.GetItems();
|
||||||
progress.Append("Dumping " + l.Count.ToString() + " Workorder categories");
|
progress.Append("Compiling " + l.Count.ToString() + " Workorder categories");
|
||||||
|
|
||||||
foreach (WorkorderCategory i in l)
|
foreach (WorkorderCategory i in l)
|
||||||
{
|
TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "workordercategory"));
|
||||||
|
|
||||||
DumpObjectToFolder(tempArchiveFolder, i, "workordercategory." + i.ID.ToString(), objectExcludeProperties, TypeAndID.Empty);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Part categories
|
#region Part categories
|
||||||
private void ExportPartCategories(ProgressForm progress)
|
private void ExportPartCategories(ProgressForm progress)
|
||||||
{
|
{
|
||||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
|
||||||
//objectExcludeProperties.Add("ContractName");
|
|
||||||
//objectExcludeProperties.Add("uiHasTechNotes");
|
|
||||||
PartCategories l = PartCategories.GetItems();
|
PartCategories l = PartCategories.GetItems();
|
||||||
progress.Append("Dumping " + l.Count.ToString() + " Part categories");
|
progress.Append("Compiling " + l.Count.ToString() + " Part categories");
|
||||||
|
foreach (PartCategory i in l) TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "partcategory"));
|
||||||
foreach (PartCategory i in l)
|
|
||||||
{
|
|
||||||
|
|
||||||
DumpObjectToFolder(tempArchiveFolder, i, "partcategory." + i.ID.ToString(), objectExcludeProperties, TypeAndID.Empty);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ScheduleableUserGroups
|
#region ScheduleableUserGroups
|
||||||
private void ExportScheduleableUserGroups(ProgressForm progress)
|
private void ExportScheduleableUserGroups(ProgressForm progress)
|
||||||
{
|
{
|
||||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
|
||||||
objectExcludeProperties.Add("ContractName");
|
|
||||||
objectExcludeProperties.Add("uiHasTechNotes");
|
|
||||||
ScheduleableUserGroupPickList pl = ScheduleableUserGroupPickList.GetList();
|
ScheduleableUserGroupPickList pl = ScheduleableUserGroupPickList.GetList();
|
||||||
progress.Append("Dumping " + pl.Count.ToString() + " Scheduleable user groups");
|
progress.Append("Compiling " + pl.Count.ToString() + " Scheduleable user groups");
|
||||||
foreach (ScheduleableUserGroupPickList.ScheduleableUserGroupPickListInfo i in pl)
|
foreach (ScheduleableUserGroupPickList.ScheduleableUserGroupPickListInfo i in pl)
|
||||||
{
|
TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "partcategory"));
|
||||||
ScheduleableUserGroup c = ScheduleableUserGroup.GetItem(i.ID);
|
|
||||||
DumpObjectToFolder(tempArchiveFolder, c, "scheduleableusergroup." + c.ID.ToString(), objectExcludeProperties, TypeAndID.Empty);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion clients
|
#endregion clients
|
||||||
|
|
||||||
#region Dispatch zones
|
#region Dispatch zones
|
||||||
private void ExportDispatchZones(ProgressForm progress)
|
private void ExportDispatchZones(ProgressForm progress)
|
||||||
{
|
{
|
||||||
List<string> objectExcludeProperties = new List<string>(standardExcludePropertiesList);
|
|
||||||
//objectExcludeProperties.Add("ContractName");
|
|
||||||
//objectExcludeProperties.Add("uiHasTechNotes");
|
|
||||||
DispatchZones l = DispatchZones.GetItems(false);
|
DispatchZones l = DispatchZones.GetItems(false);
|
||||||
progress.Append("Dumping " + l.Count.ToString() + " Dispatch zones");
|
progress.Append("Compiling " + l.Count.ToString() + " Dispatch zones");
|
||||||
|
|
||||||
foreach (DispatchZone i in l)
|
foreach (DispatchZone i in l)
|
||||||
{
|
TagMap.Add(i.ID, util.NormalizeTag(i.Name + "." + "dispatchzone"));
|
||||||
|
|
||||||
DumpObjectToFolder(tempArchiveFolder, i, "dispatchzone." + i.ID.ToString(), objectExcludeProperties, TypeAndID.Empty);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
#endregion TAG ITEMS
|
||||||
//--------------------------------------------
|
//--------------------------------------------
|
||||||
#endregion object dump methods
|
#endregion object dump methods
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user