You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AssesmentMgmt/.svn/pristine/00/002299ca4417921c99f879816c6...

259 lines
8.2 KiB

-- ================================================================================================================
-- Stored Procedures generated by LLBLGen v1.21.2003.712 Final on Mittwoch, 30. November 2016, 11:18:45
-- For the Low Level Business Logic Layer for the database 'assessmentmgmt'
-- ================================================================================================================
SET NOCOUNT ON
GO
USE [assessmentmgmt]
GO
-- ========================================================================================================
-- [Stored Procedures generated for table: PruefSchrittResultat]
GO
-- //// Insert Stored procedure.
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_PruefSchrittResultat_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_PruefSchrittResultat_Insert]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will insert 1 row in the table 'PruefSchrittResultat'
-- Gets: @iPruefSchrittResultatNr int
-- Gets: @iPruefschrittNr int
-- Gets: @iPruefschrittResultatStatusNr int
-- Gets: @sKurzbeschreibung varchar(1024)
-- Gets: @sBeschreibung varchar(4096)
-- Gets: @bAktiv bit
-- Gets: @daErstellt_am datetime
-- Gets: @daMutiert_am datetime
-- Gets: @iMutierer int
-- Gets: @iAnzahl_Pruefungen int
-- Gets: @iFindings_niedrig int
-- Gets: @iFindings_mittel int
-- Gets: @iFindings_hoch int
-- Gets: @iFinding_kein int
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_PruefSchrittResultat_Insert]
@iPruefSchrittResultatNr int,
@iPruefschrittNr int,
@iPruefschrittResultatStatusNr int,
@sKurzbeschreibung varchar(1024),
@sBeschreibung varchar(4096),
@bAktiv bit,
@daErstellt_am datetime,
@daMutiert_am datetime,
@iMutierer int,
@iAnzahl_Pruefungen int,
@iFindings_niedrig int,
@iFindings_mittel int,
@iFindings_hoch int,
@iFinding_kein int,
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- INSERT a new row in the table.
INSERT [dbo].[PruefSchrittResultat]
(
[PruefSchrittResultatNr],
[PruefschrittNr],
[PruefschrittResultatStatusNr],
[Kurzbeschreibung],
[Beschreibung],
[Aktiv],
[Erstellt_am],
[Mutiert_am],
[Mutierer],
[Anzahl_Pruefungen],
[Findings_niedrig],
[Findings_mittel],
[Findings_hoch],
[Finding_kein]
)
VALUES
(
@iPruefSchrittResultatNr,
@iPruefschrittNr,
@iPruefschrittResultatStatusNr,
@sKurzbeschreibung,
@sBeschreibung,
@bAktiv,
@daErstellt_am,
@daMutiert_am,
@iMutierer,
@iAnzahl_Pruefungen,
@iFindings_niedrig,
@iFindings_mittel,
@iFindings_hoch,
@iFinding_kein
)
-- Get the Error Code for the statement just executed.
SELECT @iErrorCode=@@ERROR
GO
-- //// Update Stored procedure for updating one single row.
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_PruefSchrittResultat_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_PruefSchrittResultat_Update]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will update an existing row in the table 'PruefSchrittResultat'
-- Gets: @iPruefSchrittResultatNr int
-- Gets: @iPruefschrittNr int
-- Gets: @iPruefschrittResultatStatusNr int
-- Gets: @sKurzbeschreibung varchar(1024)
-- Gets: @sBeschreibung varchar(4096)
-- Gets: @bAktiv bit
-- Gets: @daErstellt_am datetime
-- Gets: @daMutiert_am datetime
-- Gets: @iMutierer int
-- Gets: @iAnzahl_Pruefungen int
-- Gets: @iFindings_niedrig int
-- Gets: @iFindings_mittel int
-- Gets: @iFindings_hoch int
-- Gets: @iFinding_kein int
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_PruefSchrittResultat_Update]
@iPruefSchrittResultatNr int,
@iPruefschrittNr int,
@iPruefschrittResultatStatusNr int,
@sKurzbeschreibung varchar(1024),
@sBeschreibung varchar(4096),
@bAktiv bit,
@daErstellt_am datetime,
@daMutiert_am datetime,
@iMutierer int,
@iAnzahl_Pruefungen int,
@iFindings_niedrig int,
@iFindings_mittel int,
@iFindings_hoch int,
@iFinding_kein int,
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- UPDATE an existing row in the table.
UPDATE [dbo].[PruefSchrittResultat]
SET
[PruefschrittNr] = @iPruefschrittNr,
[PruefschrittResultatStatusNr] = @iPruefschrittResultatStatusNr,
[Kurzbeschreibung] = @sKurzbeschreibung,
[Beschreibung] = @sBeschreibung,
[Aktiv] = @bAktiv,
[Erstellt_am] = @daErstellt_am,
[Mutiert_am] = @daMutiert_am,
[Mutierer] = @iMutierer,
[Anzahl_Pruefungen] = @iAnzahl_Pruefungen,
[Findings_niedrig] = @iFindings_niedrig,
[Findings_mittel] = @iFindings_mittel,
[Findings_hoch] = @iFindings_hoch,
[Finding_kein] = @iFinding_kein
WHERE
[PruefSchrittResultatNr] = @iPruefSchrittResultatNr
-- Get the Error Code for the statement just executed.
SELECT @iErrorCode=@@ERROR
GO
-- //// Delete Stored procedure using Primary Key.
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_PruefSchrittResultat_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_PruefSchrittResultat_Delete]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will delete an existing row from the table 'PruefSchrittResultat'
-- using the Primary Key.
-- Gets: @iPruefSchrittResultatNr int
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_PruefSchrittResultat_Delete]
@iPruefSchrittResultatNr int,
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- DELETE an existing row from the table.
DELETE FROM [dbo].[PruefSchrittResultat]
WHERE
[PruefSchrittResultatNr] = @iPruefSchrittResultatNr
-- Get the Error Code for the statement just executed.
SELECT @iErrorCode=@@ERROR
GO
-- //// Select Stored procedure, based on Primary Key.
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_PruefSchrittResultat_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_PruefSchrittResultat_SelectOne]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will select an existing row from the table 'PruefSchrittResultat'
-- based on the Primary Key.
-- Gets: @iPruefSchrittResultatNr int
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_PruefSchrittResultat_SelectOne]
@iPruefSchrittResultatNr int,
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- SELECT an existing row from the table.
SELECT
[PruefSchrittResultatNr],
[PruefschrittNr],
[PruefschrittResultatStatusNr],
[Kurzbeschreibung],
[Beschreibung],
[Aktiv],
[Erstellt_am],
[Mutiert_am],
[Mutierer],
[Anzahl_Pruefungen],
[Findings_niedrig],
[Findings_mittel],
[Findings_hoch],
[Finding_kein]
FROM [dbo].[PruefSchrittResultat]
WHERE
[PruefSchrittResultatNr] = @iPruefSchrittResultatNr
-- Get the Error Code for the statement just executed.
SELECT @iErrorCode=@@ERROR
GO
-- //// Select All Stored procedure.
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_PruefSchrittResultat_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_PruefSchrittResultat_SelectAll]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will select all rows from the table 'PruefSchrittResultat'
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_PruefSchrittResultat_SelectAll]
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- SELECT all rows from the table.
SELECT
[PruefSchrittResultatNr],
[PruefschrittNr],
[PruefschrittResultatStatusNr],
[Kurzbeschreibung],
[Beschreibung],
[Aktiv],
[Erstellt_am],
[Mutiert_am],
[Mutierer],
[Anzahl_Pruefungen],
[Findings_niedrig],
[Findings_mittel],
[Findings_hoch],
[Finding_kein]
FROM [dbo].[PruefSchrittResultat]
ORDER BY
[PruefSchrittResultatNr] ASC
-- Get the Error Code for the statement just executed.
SELECT @iErrorCode=@@ERROR
GO
-- [End of Stored Procedures for table: PruefSchrittResultat]
-- ========================================================================================================
GO