init
This commit is contained in:
76
Common/DTS.Common/Interface/Groups/GroupList/IGroup.cs
Normal file
76
Common/DTS.Common/Interface/Groups/GroupList/IGroup.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
using DTS.Common.Interface.Channels;
|
||||
using DTS.Common.Interface.DataRecorders;
|
||||
using DTS.Common.Interface.Sensors;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Interface.TestSetups.TestSetupsList;
|
||||
|
||||
namespace DTS.Common.Interface.Groups.GroupList
|
||||
{
|
||||
public interface IGroup : IComparable<IGroup>
|
||||
{
|
||||
IGroupDbRecord GetIGroupDbRecord();
|
||||
int ChannelCount { get; set; }
|
||||
int Id { get; set; }
|
||||
string Name { get; set; }
|
||||
string DisplayName { get; set; }
|
||||
int? StaticGroupId { get; set; }
|
||||
string Description { get; set; }
|
||||
bool Embedded { get; set; }
|
||||
DateTime LastModified { get; set; }
|
||||
string LastModifiedBy { get; set; }
|
||||
/// <summary>
|
||||
/// returns true if group matches search term
|
||||
/// false otherwise
|
||||
/// </summary>
|
||||
/// <param name="term"></param>
|
||||
/// <returns></returns>
|
||||
bool Filter(string term);
|
||||
int[] IncludedHardware { get; set; }
|
||||
//holds a list of hardware identified using the old SerialNumber_type id scheme
|
||||
//I believe this is primarily for import purposes.
|
||||
string[] IncludedHardwareStringList { get; set; }
|
||||
bool Save(Channels.IGroupChannel[] groupChannels, bool canUserCommitChannelCodes);
|
||||
bool Save(Channels.IGroupChannel[] groupChannels, bool canUserCommitChannelCodes, ref List<DTS.Common.Interface.Channels.IGroupChannel> newGroupChannelList);
|
||||
void ClearGroupChannelSettingCache(long groupId);
|
||||
Channels.IGroupChannel[] GetAllChannels(bool bEditable, IDictionary<int, ISensorData> sensorLookup,
|
||||
IDictionary<int, IDASHardware> hardwareLookup, IChannelSetting[] channelDefaults, bool allowSensorPushAndPull = false);
|
||||
void LoadHardware();
|
||||
void ConvertToEmbedded(Channels.IGroupChannel[] groupChannels);
|
||||
|
||||
void DeterminePositionAndTestObject(Channels.IGroupChannel[] channels);
|
||||
bool PositionIsMixed { get; set; }
|
||||
bool PositionIsTextbox { get; set; }
|
||||
bool PositionIsCombobox { get; set; }
|
||||
string Position { get; set; }
|
||||
|
||||
bool TestObjectIsMixed { get; set; }
|
||||
string TestObject { get; set; }
|
||||
|
||||
int DisplayOrder { get; set; }
|
||||
|
||||
ISensorData GetSensor(Channels.IGroupChannel channel, ISensorData sensorData, bool bUseIsoFilter);
|
||||
|
||||
void SetSensor(Channels.IGroupChannel channel, ISensorData sensorData);
|
||||
void WriteXML(ref System.Xml.XmlWriter writer);
|
||||
IGroup ReadXML(System.Xml.XmlElement node, Dictionary<long, DTS.Common.Interface.Channels.IGroupChannel> channelLookup, List<ISensorData> sensors);
|
||||
List<Channels.IGroupChannel> GroupChannelList { get; set; }
|
||||
/// <summary>
|
||||
/// sets the included hardware property and the _bloaded property
|
||||
/// </summary>
|
||||
/// <param name="hardware"></param>
|
||||
void SetIncludedHardware(int[] hardware);
|
||||
List<TestSetupParentHelper> AssociatedTestSetups { get; set; }
|
||||
void SetTestSetupLists();
|
||||
bool StaticGroupIsEqual();
|
||||
bool IsDifferentThanStaticGroup { get; set; }
|
||||
bool TagCompatible(int[] tags);
|
||||
int[] TagIDs { get; set; }
|
||||
string GetTagsAsCommaSeparatedString(Classes.Tags.TagsInstance.TagsGetDelegate tagsGet);
|
||||
string Tags { get; set; }
|
||||
List<string> AvailableTestObjects { get; set; }
|
||||
string SelectedTestObjectItem { get; set; }
|
||||
List<string> AvailablePositions { get; set; }
|
||||
string SelectedPositionItem { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.Groups.GroupTemplateList
|
||||
{
|
||||
public interface IGroupListView : IBaseView { }
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Interface.Groups.GroupTemplateList;
|
||||
using DTS.Common.Interface.Pagination;
|
||||
|
||||
namespace DTS.Common.Interface.Groups.GroupList
|
||||
{
|
||||
public interface IGroupListViewModel : IBaseViewModel, IFilterableListView
|
||||
{
|
||||
IGroupListView View { get; set; }
|
||||
void Unset();
|
||||
void Sort(object o, bool columnClick);
|
||||
IGroup[] Groups { get; set; }
|
||||
void OnSetActive(object page, bool groupTile, object currentUser);
|
||||
void MouseDoubleClick(int index);
|
||||
void Filter(string term);
|
||||
IGroup GetGroup(int? id, bool updateTags = true);
|
||||
IGroup GetGroup(string displayName);
|
||||
IGroup[] GetGroups(int[] ids);
|
||||
IGroup[] GetAllGroups();
|
||||
void DeleteGroups(int[] ids);
|
||||
IGroup CreateGroup();
|
||||
IGroup CreateGroup(List<string> includedHardwareStringList);
|
||||
IGroup CreateGroup(System.Data.SqlClient.SqlDataReader reader, List<string> includedHardwareStringList, List<int> dasIdList);
|
||||
IGroup CreateGroup(IGroupDbRecord groupRecord, List<string> includedHardwareStringList, List<int> dasIdList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace DTS.Common.Interface.Groups.GroupList
|
||||
{
|
||||
public class TestSetupParentHelper
|
||||
{
|
||||
public int Id;
|
||||
public string Name { get; set; }
|
||||
public bool Modified { get; set; }
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user