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,19 @@
ALTER PROCEDURE [dbo].[sp_GroupChannelSettingsUpdate]
@ChannelId BIGINT,
@SettingId INT,
@SettingValue NVARCHAR (255),
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
UPDATE [dbo].[GroupChannelSettings] SET SettingValue = (CASE WHEN @SettingValue = 'UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE @SettingValue END) WHERE ChannelId = @ChannelId and SettingId = @SettingId
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,97 @@
CREATE PROCEDURE [dbo].[sp_TestSetupsGet_98]
@TestSetupId int = null,
@TestSetupName nvarchar(50) = null
AS
BEGIN
SET NOCOUNT ON;
if(@TestSetupName is not null)
begin
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
end
SELECT [TestSetupId]
,[TestSetupName] as 'SetupName'
,[SetupDescription]
,[AutomaticTestProgression]
,[AutomaticProgressionDelayMS]
,[InvertTrigger]
,[InvertStart]
,[ViewDiagnostics]
,[VerifyChannels]
,[AutoVerifyChannels]
,[VerifyChannelsDelayMS]
,[RecordingMode]
,[SamplesPerSecond]
,[PreTriggerSeconds]
,[PostTriggerSeconds]
,[NumberOfEvents]
,[StrictDiagnostics]
,[RequireConfirmationOnErrors]
,[ROIDownload]
,[ViewROIDownload]
,[DownloadAll]
,[ViewRealtime]
,[RealtimePlotCount]
,[ROIStart]
,[ROIEnd]
,[ViewDownloadAll]
,[Export]
,[ExportFormat]
,[LabDetails]
,[UseLabDetails]
,[CustomerDetails]
,[UseCustomerDetails]
,[AllowMissingSensors]
,[AllowSensorIdToBlankChannel]
,[CalibrationBehavior]
,[LocalOnly]
,[LastModified]
,[LastModifiedBy]
,[TurnOffExcitation]
,[TriggerCheckRealtime]
,[TriggerCheckStep]
,[PostTestDiagnostics]
,[ExportFolder]
,[DownloadFolder]
,[CommonStatusLine]
,[SameAsDownloadFolder]
,[UploadData]
,[UploadDataFolder]
,[UploadExportsOnly]
,[Settings]
,[WarnOnBatteryFail]
,[Dirty]
,[Complete]
,[ErrorMessage]
,[TestEngineerDetails]
,[UseTestEngineerDetails]
,[UserTags]
,isnull([DoAutoArm], 0) as [DoAutoArm]
,isnull([CheckoutMode], 0) as [CheckoutMode]
,isnull([ISFFile], 0) as [ISFFile]
,isnull([QuitTestWithoutWarning], 0) as [QuitTestWithoutWarning]
,isnull([NotAllChannelsRealTime], 0) as [NotAllChannelsRealTime]
,isnull([NotAllChannelsViewer], 0) as [NotAllChannelsViewer]
,isnull([SuppressMissingSensorsWarning], 0) as [SuppressMissingSensorsWarning]
,isnull([DoStreaming], 0) as [DoStreaming]
,[ClockSyncProfileMaster]
,[ClockSyncProfileSlave]
,[ExtraProperties]
,isnull([MeasureSquibResistancesStep], 0) as [MeasureSquibResistancesStep]
,[TestSetupUniqueId]
,[TestSetup]
,[WakeupAndTriggerOn]
,[WakeupTrigger]
,[WakeUpMotionTimeout]
,[TimedIntervalFrequency]
,[RTCScheduleStartDateTime]
,[RTCScheduleDuration]
,[StartWithEvent]
,isnull([RepeatAutoArmOrStreaming], 0) as [RepeatAutoArmOrStreaming]
,isnull([IgnoreShortedStart], 0) as [IgnoreShortedStart]
,isnull([IgnoreShortedTrigger], 0) as [IgnoreShortedTrigger]
,[AlignUDPToPPS]
from [dbo].[TestSetups]
where ((@TestSetupId is null or @TestSetupId= 0) or TestSetupId = @TestSetupId)
and (@TestSetupName is null or TestSetupName = @TestSetupName);
END