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.
114 lines
5.1 KiB
114 lines
5.1 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_Vertragsereignis_Insert] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_Vertragsereignis_Insert]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_Vertragsereignis_Insert] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
|
|
---------------------------------------------------------------------------------
|
|
-- Stored procedure that will insert 1 row in the table 'Vertragsereignis'
|
|
-- Gets: @iEreignisNr int
|
|
-- Gets: @iVertragselementnr int
|
|
-- Gets: @iEreignistypNr int
|
|
-- Gets: @iPeriodizitaetNr int
|
|
-- Gets: @sBezeichnung varchar(50)
|
|
-- Gets: @sBeschreibung varchar(255)
|
|
-- Gets: @fBetrag float(53)
|
|
-- Gets: @bInklMwSt bit
|
|
-- Gets: @daDatum datetime
|
|
-- Gets: @daStart datetime
|
|
-- Gets: @daEnde datetime
|
|
-- Gets: @iVorlaufzeit int
|
|
-- Gets: @iKostenartNr int
|
|
-- Gets: @bAktiv bit
|
|
-- Gets: @daErstellt_am datetime
|
|
-- Gets: @daMutiert_am datetime
|
|
-- Gets: @iMutierer int
|
|
-- Gets: @iMandantNr int
|
|
-- Gets: @iSecurityLevelNr int
|
|
-- Gets: @iKuendigungsfristnr int
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_Vertragsereignis_Insert]
|
|
@iEreignisNr int,
|
|
@iVertragselementnr int,
|
|
@iEreignistypNr int,
|
|
@iPeriodizitaetNr int,
|
|
@sBezeichnung varchar(50),
|
|
@sBeschreibung varchar(255),
|
|
@fBetrag float(53),
|
|
@bInklMwSt bit,
|
|
@daDatum datetime,
|
|
@daStart datetime,
|
|
@daEnde datetime,
|
|
@iVorlaufzeit int,
|
|
@iKostenartNr int,
|
|
@bAktiv bit,
|
|
@daErstellt_am datetime,
|
|
@daMutiert_am datetime,
|
|
@iMutierer int,
|
|
@iMandantNr int,
|
|
@iSecurityLevelNr int,
|
|
@iKuendigungsfristnr int,
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- INSERT a new row in the table.
|
|
INSERT [dbo].[Vertragsereignis]
|
|
(
|
|
[EreignisNr],
|
|
[Vertragselementnr],
|
|
[EreignistypNr],
|
|
[PeriodizitaetNr],
|
|
[Bezeichnung],
|
|
[Beschreibung],
|
|
[Betrag],
|
|
[InklMwSt],
|
|
[Datum],
|
|
[Start],
|
|
[Ende],
|
|
[Vorlaufzeit],
|
|
[KostenartNr],
|
|
[Aktiv],
|
|
[Erstellt_am],
|
|
[Mutiert_am],
|
|
[Mutierer],
|
|
[MandantNr],
|
|
[SecurityLevelNr],
|
|
[Kuendigungsfristnr]
|
|
)
|
|
VALUES
|
|
(
|
|
@iEreignisNr,
|
|
@iVertragselementnr,
|
|
@iEreignistypNr,
|
|
@iPeriodizitaetNr,
|
|
@sBezeichnung,
|
|
@sBeschreibung,
|
|
@fBetrag,
|
|
@bInklMwSt,
|
|
@daDatum,
|
|
@daStart,
|
|
@daEnde,
|
|
@iVorlaufzeit,
|
|
@iKostenartNr,
|
|
@bAktiv,
|
|
@daErstellt_am,
|
|
@daMutiert_am,
|
|
@iMutierer,
|
|
@iMandantNr,
|
|
@iSecurityLevelNr,
|
|
@iKuendigungsfristnr
|
|
)
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
|
|
|
|
GO
|