init
This commit is contained in:
@@ -0,0 +1,112 @@
|
||||
ALTER PROCEDURE [dbo].[sp_TestSetupsGet_92]
|
||||
@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 t.[TestSetupId]
|
||||
,[TestSetupName] as 'SetupName'
|
||||
,[SetupDescription]
|
||||
,[AutomaticTestProgression]
|
||||
,[AutomaticProgressionDelayMS]
|
||||
,[InvertTrigger]
|
||||
,[InvertStart]
|
||||
,[ViewDiagnostics]
|
||||
,[VerifyChannels]
|
||||
,[AutoVerifyChannels]
|
||||
,[VerifyChannelsDelayMS]
|
||||
,CASE t.[RecordingMode]
|
||||
WHEN 17 THEN 4 -- Multiple-event CircBuff w/UART to Single-event CircBuff w/UART
|
||||
WHEN 18 THEN 5 -- Multiple-event Recorder w/UART to Single-event Recorder w/UART
|
||||
WHEN 19 THEN 8 -- Continuous Mode w/UART to Continuous Mode
|
||||
ELSE t.[RecordingMode]
|
||||
END as [RecordingMode]
|
||||
,[SamplesPerSecond]
|
||||
,[PreTriggerSeconds]
|
||||
,[PostTriggerSeconds]
|
||||
,CASE t.[RecordingMode]
|
||||
WHEN 17 THEN 1 -- Multiple-event CircBuff w/UART to Single-event CircBuff w/UART
|
||||
WHEN 18 THEN 1 -- Multiple-event Recorder w/UART to Single-event Recorder w/UART
|
||||
ELSE t.[NumberOfEvents]
|
||||
END as [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]
|
||||
,CASE
|
||||
WHEN t.[DoAutoArm] IS NULL OR t.[RecordingMode] = 22 THEN 0
|
||||
ELSE t.[DoAutoArm]
|
||||
END 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]
|
||||
,CASE
|
||||
WHEN t.[RepeatAutoArmOrStreaming] IS NULL OR t.[RecordingMode] = 22 THEN 0
|
||||
ELSE t.[RepeatAutoArmOrStreaming]
|
||||
END AS RepeatAutoArmOrStreaming
|
||||
,isnull([IgnoreShortedStart], 0) as [IgnoreShortedStart]
|
||||
,isnull([IgnoreShortedTrigger], 0) as [IgnoreShortedTrigger]
|
||||
from [dbo].[TestSetups] t
|
||||
where ((@TestSetupId is null or @TestSetupId= 0) or TestSetupId = @TestSetupId)
|
||||
and (@TestSetupName is null or TestSetupName = @TestSetupName)
|
||||
and TestSetupName <> 'TSRAIR_GO_TEST';
|
||||
END
|
||||
@@ -0,0 +1,97 @@
|
||||
ALTER PROCEDURE [dbo].[sp_TestSetupsGet_96]
|
||||
@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]
|
||||
from [dbo].[TestSetups]
|
||||
where ((@TestSetupId is null or @TestSetupId= 0) or TestSetupId = @TestSetupId)
|
||||
and (@TestSetupName is null or TestSetupName = @TestSetupName)
|
||||
and TestSetupName <> 'TSRAIR_GO_TEST';
|
||||
END
|
||||
@@ -0,0 +1,140 @@
|
||||
ALTER PROCEDURE [dbo].[sp_TestSetupsGet]
|
||||
@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 t.[TestSetupId]
|
||||
,[TestSetupName] as 'SetupName'
|
||||
,[SetupDescription]
|
||||
,[AutomaticTestProgression]
|
||||
,[AutomaticProgressionDelayMS]
|
||||
,[InvertTrigger]
|
||||
,[InvertStart]
|
||||
,[ViewDiagnostics]
|
||||
,[VerifyChannels]
|
||||
,[AutoVerifyChannels]
|
||||
,[VerifyChannelsDelayMS]
|
||||
,CASE t.[RecordingMode]
|
||||
WHEN 17 THEN 4 -- Multiple-event CircBuff w/UART to Single-event CircBuff w/UART
|
||||
WHEN 18 THEN 5 -- Multiple-event Recorder w/UART to Single-event Recorder w/UART
|
||||
WHEN 19 THEN 8 -- Continuous Mode w/UART to Continuous Mode
|
||||
ELSE t.[RecordingMode]
|
||||
END as [RecordingMode]
|
||||
,[SamplesPerSecond]
|
||||
,[PreTriggerSeconds]
|
||||
,[PostTriggerSeconds]
|
||||
,CASE t.[RecordingMode]
|
||||
WHEN 17 THEN 1 -- Multiple-event CircBuff w/UART to Single-event CircBuff w/UART
|
||||
WHEN 18 THEN 1 -- Multiple-event Recorder w/UART to Single-event Recorder w/UART
|
||||
ELSE t.[NumberOfEvents]
|
||||
END as [NumberOfEvents]
|
||||
,[StrictDiagnostics]
|
||||
,[RequireConfirmationOnErrors]
|
||||
,[ROIDownload]
|
||||
,[ViewROIDownload]
|
||||
,[DownloadAll]
|
||||
,[ViewRealtime]
|
||||
,[RealtimePlotCount]
|
||||
,dbo.foo_RegionsOfInterestString(t.TestSetupId) as [RegionsOfInterest]
|
||||
,t.[ROIStart]
|
||||
,t.[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]
|
||||
,CASE
|
||||
WHEN t.[DoAutoArm] IS NULL OR t.[RecordingMode] = 22 THEN 0
|
||||
ELSE t.[DoAutoArm]
|
||||
END 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]
|
||||
,CASE WHEN t.[ClockSyncProfileMaster]='None' OR
|
||||
t.[ClockSyncProfileMaster]='Manual' OR
|
||||
t.[ClockSyncProfileMaster]='Slave_E2E' OR
|
||||
t.[ClockSyncProfileMaster]='Master_E2E' OR
|
||||
t.[ClockSyncProfileMaster]='Auto_E2E' OR
|
||||
t.[ClockSyncProfileMaster]='Master_E2E_IRIG' OR
|
||||
t.[ClockSyncProfileMaster]='Master_E2E_IRIG_EXT_PPS' OR
|
||||
t.[ClockSyncProfileMaster]='Master_E2E_GPS' OR
|
||||
t.[ClockSyncProfileMaster]='Master_E2E_GPS_EXT_PPS' OR
|
||||
t.[ClockSyncProfileMaster]='IRIG' OR
|
||||
t.[ClockSyncProfileMaster]='IRIG_EXT_PPS' OR
|
||||
t.[ClockSyncProfileMaster]='GPS' OR
|
||||
t.[ClockSyncProfileMaster]='GPS_EXT_PPS' OR
|
||||
t.[ClockSyncProfileMaster]='EXT_PPS'
|
||||
THEN t.[ClockSyncProfileMaster]
|
||||
ELSE 'None'
|
||||
END as [ClockSyncProfileMaster]
|
||||
,CASE WHEN t.[ClockSyncProfileSlave]='None' OR
|
||||
t.[ClockSyncProfileSlave]='Manual' OR
|
||||
t.[ClockSyncProfileSlave]='Slave_E2E' OR
|
||||
t.[ClockSyncProfileSlave]='Master_E2E' OR
|
||||
t.[ClockSyncProfileSlave]='Auto_E2E' OR
|
||||
t.[ClockSyncProfileSlave]='Master_E2E_IRIG' OR
|
||||
t.[ClockSyncProfileSlave]='Master_E2E_IRIG_EXT_PPS' OR
|
||||
t.[ClockSyncProfileSlave]='Master_E2E_GPS' OR
|
||||
t.[ClockSyncProfileSlave]='Master_E2E_GPS_EXT_PPS' OR
|
||||
t.[ClockSyncProfileSlave]='IRIG' OR
|
||||
t.[ClockSyncProfileSlave]='IRIG_EXT_PPS' OR
|
||||
t.[ClockSyncProfileSlave]='GPS' OR
|
||||
t.[ClockSyncProfileSlave]='GPS_EXT_PPS' OR
|
||||
t.[ClockSyncProfileSlave]='EXT_PPS'
|
||||
THEN t.[ClockSyncProfileSlave]
|
||||
ELSE 'None'
|
||||
END as [ClockSyncProfileSlave]
|
||||
,[ExtraProperties]
|
||||
,isnull([MeasureSquibResistancesStep], 0) as [MeasureSquibResistancesStep]
|
||||
,[TestSetupUniqueId]
|
||||
,[TestSetup]
|
||||
,[WakeupAndTriggerOn]
|
||||
,[WakeupTrigger]
|
||||
,[WakeUpMotionTimeout]
|
||||
,[TimedIntervalFrequency]
|
||||
,[RTCScheduleStartDateTime]
|
||||
,[RTCScheduleDuration]
|
||||
,[StartWithEvent]
|
||||
from [dbo].[TestSetups] t inner join [dbo].[TestSetupROIs] r ON t.TestSetupId = r.TestSetupId
|
||||
where ((@TestSetupId is null or @TestSetupId= 0) or t.TestSetupId = @TestSetupId)
|
||||
and (r.Suffix = '' or r.Suffix = '_ROI Period 1') -- Don't return duplicates if there are multiple ROIs
|
||||
and (@TestSetupName is null or TestSetupName = @TestSetupName)
|
||||
and TestSetupName <> 'TSRAIR_GO_TEST';
|
||||
END
|
||||
@@ -0,0 +1,96 @@
|
||||
CREATE PROCEDURE [dbo].[sp_TestSetupsGet_97]
|
||||
@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]
|
||||
from [dbo].[TestSetups]
|
||||
where ((@TestSetupId is null or @TestSetupId= 0) or TestSetupId = @TestSetupId)
|
||||
and (@TestSetupName is null or TestSetupName = @TestSetupName);
|
||||
END
|
||||
@@ -0,0 +1 @@
|
||||
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_TestSetupsGet', 97)
|
||||
Reference in New Issue
Block a user