This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using System;
namespace DTS.Common.Interface.GroupTemplate
{
public interface IGroupTemplate
{
bool Disabled { get; set; }
string Name { get; set; }
string Description { get; set; }
string Channels { get; set; }
string AssociatedGroups { get; set; }
string LastModifiedBy { get; set; }
DateTime LastModified { get; set; }
string SerialNumber { get; set; }
bool Filter(string term);
}
}

View File

@@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using DTS.Common.Enums.GroupTemplates;
namespace DTS.Common.Interface.GroupTemplate
{
public interface IGroupTemplateChannel
{
bool Custom { get; }
int DisplayOrder { get; set; }
string NameOfTheChannel{ get; set; }
string Name { get; }
bool Required { get; set; }
bool Filter(string term);
string ISOCode { get; }
}
public class GroupTemplateChannelComparer : IComparer<IGroupTemplateChannel>
{
public GroupTemplateChannelFields SortField { get; set; }
public bool Ascending { get; set; }
public int Compare(IGroupTemplateChannel x, IGroupTemplateChannel y)
{
if (x == y)
{
return 0;
}
if (null == x)
{
return -1;
}
if (null == y)
{
return 1;
}
var left = x;
var right = y;
if(!Ascending) { left = y; right = x; }
switch (SortField)
{
case GroupTemplateChannelFields.Required:
return left.Required.CompareTo(right.Required);
case GroupTemplateChannelFields.Name:
return String.Compare(left.Name, right.Name, StringComparison.Ordinal);
case GroupTemplateChannelFields.ISOCode:
return String.Compare(left.ISOCode, right.ISOCode, StringComparison.Ordinal);
case GroupTemplateChannelFields.Custom:
return left.Custom.CompareTo(right.Custom);
case GroupTemplateChannelFields.DisplayOrder:
return left.DisplayOrder.CompareTo(right.DisplayOrder);
default:
throw new ArgumentOutOfRangeException();
}
}
}
}

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.GroupTemplate
{
public interface IGroupTemplateExportView : IBaseView { }
}

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.GroupTemplate
{
public interface IGroupTemplateImportView : IBaseView { }
}

View File

@@ -0,0 +1,9 @@
using DataPro.Common.Base;
namespace DataPro.Common.Interface
{
public interface IGroupTemplateInfoControlView : IBaseView
{
}
}

View File

@@ -0,0 +1,14 @@
using DataPro.Common.Base;
using DataPro.Common.Interface.GroupTemplate;
namespace DataPro.Common.Interface
{
public interface IGroupTemplateInfoControlViewModel : IBaseViewModel
{
/// <summary>
/// Gets the Shell View.
/// </summary>
IGroupTemplateInfoView View { get; }
IGroupTemplateModel SelectedGroupTemplate { get; set; }
}
}

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.GroupTemplate
{
public interface IGroupTemplateListView : IBaseView { }
}

View File

@@ -0,0 +1,16 @@
using DTS.Common.Base;
using DTS.Common.Interface.Pagination;
namespace DTS.Common.Interface.GroupTemplate
{
public interface IGroupTemplateListViewModel : IBaseViewModel, IFilterableListView
{
IGroupTemplateListView View { get; set; }
void GetAllTemplates(bool bIncludeEmbedded, bool bISOMode);
void Unset();
void Sort(object o, bool columnClick);
IGroupTemplate [] Templates { get; set; }
void Filter(string term);
void MouseDoubleClick(int index);
}
}

View File

@@ -0,0 +1,11 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.GroupTemplate
{
public interface IGroupTemplateViewModel : IBaseViewModel
{
IGroupTemplateImportView ImportView { get; set; }
IGroupTemplateExportView ExportView { get; set; }
void Unset();
}
}

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.GroupTemplate
{
public interface ITemplateChannelListView : IBaseView { }
}

View File

@@ -0,0 +1,17 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.GroupTemplate
{
public interface ITemplateChannelListViewModel : IBaseViewModel
{
ITemplateChannelListView View { get; set; }
void Unset();
void Sort(object o, bool columnClick);
void Filter(string term);
void SetAllChannels(IGroupTemplateChannel[] channels);
IGroupTemplateChannel[] GetAllChannels();
void MoveDown(IGroupTemplateChannel channel);
void MoveUp(IGroupTemplateChannel channel);
void SetParent(object o);
}
}

View File

@@ -0,0 +1,75 @@
using System;
namespace DTS.Common.Interface.GroupTemplate
{
public interface ITestObjectTemplate
{
/// <summary>
/// name of the test object template, this could be a GUID in the case of embedded test object templates
/// </summary>
string TemplateName { get; set; }
/// <summary>
/// a human readable name for the template, for an embedded template this is the original template name, for
/// a non embedded template, this is the template name (embedded templates have guids for names)
/// </summary>
string TemplateNameOrOriginalTemplateName { get; }
/// <summary>
/// the icon for the template
/// </summary>
string Icon { get; set; }
/// <summary>
/// description for the template
/// </summary>
string Description { get; set; }
/// <summary>
/// whether this template is intended to only be used locally or not
/// </summary>
bool LocalOnly { get; set; }
/// <summary>
/// the version number of this template [not currently used?]
/// </summary>
int Version { get; set; }
/// <summary>
/// last person to modify this template
/// </summary>
string LastModifiedBy { get; set; }
/// <summary>
/// when this template was last modified
/// </summary>
DateTime LastModified { get; set; }
/// <summary>
/// a CRC32 for the template, but not currently used
/// original idea was to allow us to not have to check changes in the template, just quickly calculate whether anything has changed
/// </summary>
int CRC32 { get; set; }
/// <summary>
/// test object (iso meta field) for this template
/// </summary>
string TestObject { get; set; }
/// <summary>
/// test object type (iso meta field) for this template, all channels are of this type ...
/// </summary>
string TestObjectType { get; set; }
/// <summary>
/// unsure if this is still used, was originally used to build up templates from sub templates,
/// so an ATD could be composed of leg, arm, head, etc
/// </summary>
string TemplateParent { get; set; }
/// <summary>
/// unsure, I think this is whether the group is dynamically added or an existing
/// </summary>
bool SysBuilt { get; set; }
/// <summary>
/// the original template name [if we are embedded we got a new name that was a guid, but we store the old name here for readability purposes]
/// </summary>
string OriginalTemplateName { get; set; }
/// <summary>
/// whether this group is embedded in a test setup, or is a user created and living on it's own template
/// </summary>
bool Embedded { get; set; }
bool IsISOMode();
}
}