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,40 @@
using System.Windows.Input;
using DTS.Common.Enums;
using DTS.Common.Enums.Channels;
namespace DTS.Common.Interface.Channels.ChannelCodes
{
/// <summary>
/// used to describe the behavior of channelcodes for the UI
/// </summary>
public interface IChannelCode
{
/// <summary>
/// id of the channel code in the database
/// </summary>
int Id { get; }
/// <summary>
/// codevalue (either user code or isocode depending on codetype)
/// </summary>
string Code { get; set; }
/// <summary>
/// name associated with code (either user channel name or iso channel name)
/// </summary>
string Name { get; set; }
/// <summary>
/// the type of code (iso or user)
/// </summary>
ChannelEnumsAndConstants.ChannelCodeType CodeType { get; }
/// <summary>
/// handler for paste command
/// this is used for when data is pasted into either a channel code or name
/// it's needed because you can paste many rows, a CSV for example, into one field
/// </summary>
ICommand PasteCommand { get; set; }
/// <summary>
/// the status of the item in the UI
/// (failed/success/etc)
/// </summary>
UIItemStatus ItemStatus { get; set; }
}
}

View File

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

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using DTS.Common.Base;
using DTS.Common.Enums;
namespace DTS.Common.Interface.Channels.ChannelCodes
{
public interface IChannelCodesListViewModel : IBaseViewModel
{
IChannelCodesListView View { get; set; }
void Unset();
void SetPage(object page);
void OnSetActive();
bool Save();
ObservableCollection<IChannelCode> ISOChannelCodes { get; set; }
ObservableCollection<IChannelCode> UserChannelCodes { get; set; }
bool Validate(bool bDisplayWindow);
void CopySelected();
void DeleteSelected();
void Filter(object columnTag, string searchTerm);
void Sort(object columnTag, bool bColumnClick);
Func<IList<IChannelCode>> ChannelCodesFunc { get; }
bool ShowISOStringBuilder { get; set; }
bool UniqueISOCodesRequired { get; set; }
bool ShowChannelCodeLookupHelper { get; set; }
bool IsReadOnly { get; set; }
IChannelCode[] SelectedCodes { get; }
}
}