init
This commit is contained in:
@@ -0,0 +1,268 @@
|
||||
CREATE PROCEDURE [dbo].[sp_TestSetupsUpdateInsert_98]
|
||||
@TestSetupName nvarchar(50) = Null
|
||||
,@SetupDescription nvarchar(50)
|
||||
,@AutomaticTestProgression bit
|
||||
,@AutomaticProgressionDelayMS int
|
||||
,@InvertTrigger bit
|
||||
,@InvertStart bit
|
||||
,@ViewDiagnostics bit
|
||||
,@VerifyChannels bit
|
||||
,@AutoVerifyChannels bit
|
||||
,@VerifyChannelsDelayMS int
|
||||
,@RecordingMode smallint
|
||||
,@SamplesPerSecond float
|
||||
,@PreTriggerSeconds float
|
||||
,@PostTriggerSeconds float
|
||||
,@NumberOfEvents int
|
||||
,@StrictDiagnostics bit
|
||||
,@RequireConfirmationOnErrors bit
|
||||
,@ROIDownload bit
|
||||
,@ViewROIDownload bit
|
||||
,@DownloadAll bit
|
||||
,@ViewRealtime bit
|
||||
,@RealtimePlotCount smallint
|
||||
,@ROIStart float
|
||||
,@ROIEnd float
|
||||
,@ViewDownloadAll bit
|
||||
,@Export bit
|
||||
,@ExportFormat bigint
|
||||
,@LabDetails nvarchar(50)
|
||||
,@UseLabDetails bit
|
||||
,@CustomerDetails nvarchar(50)
|
||||
,@UseCustomerDetails bit
|
||||
,@AllowMissingSensors bit
|
||||
,@AllowSensorIdToBlankChannel bit
|
||||
,@CalibrationBehavior smallint
|
||||
,@LocalOnly bit
|
||||
,@LastModified datetime
|
||||
,@LastModifiedBy nvarchar(50)
|
||||
,@TurnOffExcitation bit
|
||||
,@TriggerCheckRealtime bit
|
||||
,@TriggerCheckStep bit
|
||||
,@PostTestDiagnostics int
|
||||
,@ExportFolder nvarchar(150)
|
||||
,@DownloadFolder nvarchar(150)
|
||||
,@CommonStatusLine bit
|
||||
,@SameAsDownloadFolder bit
|
||||
,@UploadData bit
|
||||
,@UploadDataFolder nvarchar(150)
|
||||
,@UploadExportsOnly bit
|
||||
,@Settings nvarchar(4000)
|
||||
,@WarnOnBatteryFail bit
|
||||
,@Dirty bit
|
||||
,@Complete bit
|
||||
,@Error nvarchar(255)
|
||||
,@TestEngineerDetails nvarchar(50)
|
||||
,@UseTestEngineerDetails bit
|
||||
,@UserTags varbinary(max)
|
||||
,@DoAutoArm bit
|
||||
,@CheckoutMode bit
|
||||
,@ISFFile nvarchar(4000)
|
||||
,@QuitTestWithoutWarning bit
|
||||
,@NotAllChannelsRealTime bit
|
||||
,@NotAllChannelsViewer bit
|
||||
,@SuppressMissingSensorsWarning bit
|
||||
,@DoStreaming bit
|
||||
,@ClockSyncProfileMaster nvarchar(50)
|
||||
,@ClockSyncProfileSlave nvarchar(50)
|
||||
,@ExtraProperties nvarchar(max)
|
||||
,@MeasureSquibResistancesStep bit
|
||||
,@TestSetupUniqueId nvarchar(max)
|
||||
,@TestSetup varbinary(MAX)
|
||||
,@WakeupAndTriggerOn bit
|
||||
,@WakeupTrigger smallint
|
||||
,@WakeUpMotionTimeout int
|
||||
,@TimedIntervalFrequency int
|
||||
,@RTCScheduleStartDateTime datetime
|
||||
,@RTCScheduleDuration bigint
|
||||
,@StartWithEvent bit
|
||||
,@RepeatAutoArmOrStreaming bit
|
||||
,@IgnoreShortedStart bit
|
||||
,@IgnoreShortedTrigger bit
|
||||
,@AlignUDPToPPS bit
|
||||
,@new_id int output
|
||||
,@errorNumber int output
|
||||
,@errorMessage nvarchar(250) output
|
||||
AS
|
||||
BEGIN
|
||||
set @errorNumber = 0; set @errorMessage = space(0);
|
||||
declare @TestSetupId int
|
||||
|
||||
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
|
||||
|
||||
if(exists(select TestSetupId from [dbo].[TestSetups] where TestSetupId = @TestSetupId))
|
||||
begin
|
||||
set @new_id = @TestSetupId
|
||||
exec dbo.sp_TestSetupsUpdate_98 @TestSetupName
|
||||
,@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
|
||||
,@Error
|
||||
,@TestEngineerDetails
|
||||
,@UseTestEngineerDetails
|
||||
,@UserTags
|
||||
,@DoAutoArm
|
||||
,@CheckoutMode
|
||||
,@ISFFile
|
||||
,@QuitTestWithoutWarning
|
||||
,@NotAllChannelsRealTime
|
||||
,@NotAllChannelsViewer
|
||||
,@SuppressMissingSensorsWarning
|
||||
,@DoStreaming
|
||||
,@ClockSyncProfileMaster
|
||||
,@ClockSyncProfileSlave
|
||||
,@ExtraProperties
|
||||
,@MeasureSquibResistancesStep
|
||||
,@TestSetupUniqueId
|
||||
,@TestSetup
|
||||
,@WakeupAndTriggerOn
|
||||
,@WakeupTrigger
|
||||
,@WakeUpMotionTimeout
|
||||
,@TimedIntervalFrequency
|
||||
,@RTCScheduleStartDateTime
|
||||
,@RTCScheduleDuration
|
||||
,@StartWithEvent
|
||||
,@RepeatAutoArmOrStreaming
|
||||
,@IgnoreShortedStart
|
||||
,@IgnoreShortedTrigger
|
||||
,@AlignUDPToPPS
|
||||
,@new_id output
|
||||
,@errorNumber output
|
||||
,@errorMessage output
|
||||
end
|
||||
else
|
||||
begin
|
||||
exec dbo.sp_TestSetupsInsert_98 @TestSetupName
|
||||
,@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
|
||||
,@Error
|
||||
,@TestEngineerDetails
|
||||
,@UseTestEngineerDetails
|
||||
,@UserTags
|
||||
,@DoAutoArm
|
||||
,@CheckoutMode
|
||||
,@ISFFile
|
||||
,@QuitTestWithoutWarning
|
||||
,@NotAllChannelsRealTime
|
||||
,@NotAllChannelsViewer
|
||||
,@SuppressMissingSensorsWarning
|
||||
,@DoStreaming
|
||||
,@ClockSyncProfileMaster
|
||||
,@ClockSyncProfileSlave
|
||||
,@ExtraProperties
|
||||
,@MeasureSquibResistancesStep
|
||||
,@TestSetupUniqueId
|
||||
,@TestSetup
|
||||
,@WakeupAndTriggerOn
|
||||
,@WakeupTrigger
|
||||
,@WakeUpMotionTimeout
|
||||
,@TimedIntervalFrequency
|
||||
,@RTCScheduleStartDateTime
|
||||
,@RTCScheduleDuration
|
||||
,@StartWithEvent
|
||||
,@RepeatAutoArmOrStreaming
|
||||
,@IgnoreShortedStart
|
||||
,@IgnoreShortedTrigger
|
||||
,@AlignUDPToPPS
|
||||
,@new_id output
|
||||
,@errorNumber output
|
||||
,@errorMessage output
|
||||
end;
|
||||
END
|
||||
@@ -0,0 +1,3 @@
|
||||
UPDATE [dbo].[DAS]
|
||||
SET MaxModules=4, Channels=8, ChannelTypes='0,0,0,0,0,0,5,6'
|
||||
WHERE Type = '36' AND Position <> 'Prototype' AND ChannelTypes = '0,0,0,0,0,0'
|
||||
@@ -0,0 +1,3 @@
|
||||
UPDATE [dbo].[DefaultProperties]
|
||||
SET DefaultValue = 'CH10_PCM_128BIT_2HDR'
|
||||
WHERE PropertyName = 'DefaultUDPStreamProfile';
|
||||
Reference in New Issue
Block a user