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,5 @@
ALTER TABLE dbo.SensorsAnalog
ADD FirstUseDate datetime NULL;
ALTER TABLE dbo.SensorsAnalog
ADD LatestCalibrationId int NULL;

View File

@@ -0,0 +1,22 @@
ALTER PROCEDURE [dbo].[sp_ChannelSettingsGet_95]
@Id int = NULL,
@SettingName NVARCHAR (255) = NULL
AS
BEGIN
SET NOCOUNT ON;
IF (@Id IS NOT NULL) OR (@SettingName IS NOT NULL)
BEGIN
IF (@Id IS NULL)
BEGIN
SELECT [Id], [DefaultValue] FROM [dbo].[ChannelSettings] where (SettingName = @SettingName) AND (SettingName <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
END
ELSE
BEGIN
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id) AND (SettingName <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
END
END
ELSE
BEGIN
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings] WHERE (SettingName <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
END
END

View File

@@ -0,0 +1,24 @@
CREATE PROCEDURE [dbo].[sp_DefaultPropertiesUpdateByName]
-- Add the parameters for the stored procedure here
@PropertyName nvarchar(255),
@DefaultValue nvarchar(255),
@errorNumber int output,
@errorMessage nvarchar(255) output
AS
BEGIN
-- Insert statements for procedure here
set @errorNumber = 0
set @errorMessage = space(0)
SET NOCOUNT ON;
BEGIN
update [dbo].[DefaultProperties]
set [DefaultValue] = @DefaultValue
where PropertyName = @PropertyName
END
IF(@@error!=0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END;