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,46 @@
---
source_files:
- Common/DTS.CommonCore/Classes/Groups/ChannelSettings/ChannelSettingRecord.cs
- Common/DTS.CommonCore/Classes/Groups/ChannelSettings/GroupChannelSettingRecord.cs
- Common/DTS.CommonCore/Classes/Groups/ChannelSettings/ChannelSettingBase.cs
generated_at: "2026-04-17T15:39:15.041041+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "e5d75cd5b9640621"
---
# Documentation: DTS.Common.Classes.Groups.ChannelSettings
## 1. Purpose
This module provides data structures for managing channel configuration settings within the DTS system. It defines three core classes: `ChannelSettingRecord` for storing setting metadata (ID, name, default value), `GroupChannelSettingRecord` for associating settings with specific channels, and `ChannelSettingBase` which serves as the primary working object for channel settings with typed accessors and a comprehensive set of string constants defining valid setting names across analog, squib, digital I/O, UART, and streaming configurations.
---
## 2. Public Interface
### ChannelSettingRecord
**Implements:** `IChannelSettingRecord`, extends `Common.Base.BasePropertyChanged`
| Member | Signature | Description |
|--------|-----------|-------------|
| `Id` | `int Id { get; set; }` | Numeric identifier for the setting. Raises property change notification via `SetProperty`. |
| `SettingName` | `string SettingName { get; set; }` | Name of the setting. Raises property change notification. |
| `DefaultValue` | `string DefaultValue { get; set; }` | Default value for the setting. Raises property change notification. |
| Constructor | `ChannelSettingRecord()` | Default parameterless constructor. |
| Constructor | `ChannelSettingRecord(IDataReader reader)` | Populates instance from a data reader using `Utility.GetInt` and `Utility.GetString`. Expects columns: "Id", "SettingName", "DefaultValue". |
---
### GroupChannelSettingRecord
**Implements:** `IGroupChannelSettingRecord`, extends `BasePropertyChanged`
| Member | Signature | Description |
|--------|-----------|-------------|
| `ChannelId` | `long ChannelId { get; set; }` | Identifier for the channel. Raises property change notification. |
| `SettingId` | `int SettingId { get; set; }` | Identifier for the setting. Raises property change notification. |
| `SettingValue` | `string SettingValue { get; set; }` | The value assigned to this setting. Raises property change notification. |
| Constructor | `GroupChannelSettingRecord()` | Default parameterless constructor. |
| Constructor | `GroupChannelSettingRecord(IDataReader reader, int storedProcedureVersionUsed)` | Populates instance from data