Update Version 2.3

This commit is contained in:
2021-05-25 21:01:12 +02:00
parent 1cc7ed8893
commit 97ef665fd1
183 changed files with 86758 additions and 197 deletions

View File

@@ -1,5 +1,5 @@
-- ================================================================================================================
-- Stored Procedures generated by LLBLGen v1.21.2003.712 Final on Samstag, 16. Januar 2021, 08:03:58
-- Stored Procedures generated by LLBLGen v1.21.2003.712 Final on Montag, 17. Mai 2021, 17:24:52
-- For the Low Level Business Logic Layer for the database 'beA_PROD'
-- ================================================================================================================
SET NOCOUNT ON
@@ -8,67 +8,59 @@ USE [beA_PROD]
GO
-- ========================================================================================================
-- [Stored Procedures generated for table: Application]
-- [Stored Procedures generated for table: MailTexte]
GO
-- //// Insert Stored procedure.
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Application_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_Insert]
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_MailTexte_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_MailTexte_Insert]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will insert 1 row in the table 'Application'
-- Gets: @iapplikationsnr int
-- Gets: @sversion varchar(4)
-- Gets: @bshowlogin bit
-- Gets: @imandantnr int
-- Gets: @baktiv bit
-- Stored procedure that will insert 1 row in the table 'MailTexte'
-- Gets: @iid int
-- Gets: @sBeschreibung varchar(255)
-- Gets: @sBetreff varchar(255)
-- Gets: @sInhalt varchar(2048)
-- Gets: @daerstellt_am datetime
-- Gets: @damutiert_am datetime
-- Gets: @imutierer int
-- Gets: @stmp_filepath varchar(255)
-- Gets: @sTag_Externe_MA varchar(255)
-- Gets: @baktiv bit
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_Application_Insert]
@iapplikationsnr int,
@sversion varchar(4),
@bshowlogin bit,
@imandantnr int,
@baktiv bit,
CREATE PROCEDURE [dbo].[pr_MailTexte_Insert]
@iid int,
@sBeschreibung varchar(255),
@sBetreff varchar(255),
@sInhalt varchar(2048),
@daerstellt_am datetime,
@damutiert_am datetime,
@imutierer int,
@stmp_filepath varchar(255),
@sTag_Externe_MA varchar(255),
@baktiv bit,
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- INSERT a new row in the table.
INSERT [dbo].[Application]
INSERT [dbo].[MailTexte]
(
[applikationsnr],
[version],
[showlogin],
[mandantnr],
[aktiv],
[id],
[Beschreibung],
[Betreff],
[Inhalt],
[erstellt_am],
[mutiert_am],
[mutierer],
[tmp_filepath],
[Tag_Externe_MA]
[aktiv]
)
VALUES
(
@iapplikationsnr,
@sversion,
@bshowlogin,
@imandantnr,
@baktiv,
@iid,
@sBeschreibung,
@sBetreff,
@sInhalt,
@daerstellt_am,
@damutiert_am,
@imutierer,
@stmp_filepath,
@sTag_Externe_MA
@baktiv
)
-- Get the Error Code for the statement just executed.
SELECT @iErrorCode=@@ERROR
@@ -76,147 +68,137 @@ GO
-- //// Update Stored procedure for updating one single row.
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Application_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_Update]
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_MailTexte_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_MailTexte_Update]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will update an existing row in the table 'Application'
-- Gets: @iapplikationsnr int
-- Gets: @sversion varchar(4)
-- Gets: @bshowlogin bit
-- Gets: @imandantnr int
-- Gets: @baktiv bit
-- Stored procedure that will update an existing row in the table 'MailTexte'
-- Gets: @iid int
-- Gets: @sBeschreibung varchar(255)
-- Gets: @sBetreff varchar(255)
-- Gets: @sInhalt varchar(2048)
-- Gets: @daerstellt_am datetime
-- Gets: @damutiert_am datetime
-- Gets: @imutierer int
-- Gets: @stmp_filepath varchar(255)
-- Gets: @sTag_Externe_MA varchar(255)
-- Gets: @baktiv bit
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_Application_Update]
@iapplikationsnr int,
@sversion varchar(4),
@bshowlogin bit,
@imandantnr int,
@baktiv bit,
CREATE PROCEDURE [dbo].[pr_MailTexte_Update]
@iid int,
@sBeschreibung varchar(255),
@sBetreff varchar(255),
@sInhalt varchar(2048),
@daerstellt_am datetime,
@damutiert_am datetime,
@imutierer int,
@stmp_filepath varchar(255),
@sTag_Externe_MA varchar(255),
@baktiv bit,
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- UPDATE an existing row in the table.
UPDATE [dbo].[Application]
UPDATE [dbo].[MailTexte]
SET
[version] = @sversion,
[showlogin] = @bshowlogin,
[mandantnr] = @imandantnr,
[aktiv] = @baktiv,
[Beschreibung] = @sBeschreibung,
[Betreff] = @sBetreff,
[Inhalt] = @sInhalt,
[erstellt_am] = @daerstellt_am,
[mutiert_am] = @damutiert_am,
[mutierer] = @imutierer,
[tmp_filepath] = @stmp_filepath,
[Tag_Externe_MA] = @sTag_Externe_MA
[aktiv] = @baktiv
WHERE
[applikationsnr] = @iapplikationsnr
[id] = @iid
-- 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_Application_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_Delete]
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_MailTexte_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_MailTexte_Delete]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will delete an existing row from the table 'Application'
-- Stored procedure that will delete an existing row from the table 'MailTexte'
-- using the Primary Key.
-- Gets: @iapplikationsnr int
-- Gets: @iid int
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_Application_Delete]
@iapplikationsnr int,
CREATE PROCEDURE [dbo].[pr_MailTexte_Delete]
@iid int,
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- DELETE an existing row from the table.
DELETE FROM [dbo].[Application]
DELETE FROM [dbo].[MailTexte]
WHERE
[applikationsnr] = @iapplikationsnr
[id] = @iid
-- 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_Application_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_SelectOne]
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_MailTexte_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_MailTexte_SelectOne]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will select an existing row from the table 'Application'
-- Stored procedure that will select an existing row from the table 'MailTexte'
-- based on the Primary Key.
-- Gets: @iapplikationsnr int
-- Gets: @iid int
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_Application_SelectOne]
@iapplikationsnr int,
CREATE PROCEDURE [dbo].[pr_MailTexte_SelectOne]
@iid int,
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- SELECT an existing row from the table.
SELECT
[applikationsnr],
[version],
[showlogin],
[mandantnr],
[aktiv],
[id],
[Beschreibung],
[Betreff],
[Inhalt],
[erstellt_am],
[mutiert_am],
[mutierer],
[tmp_filepath],
[Tag_Externe_MA]
FROM [dbo].[Application]
[aktiv]
FROM [dbo].[MailTexte]
WHERE
[applikationsnr] = @iapplikationsnr
[id] = @iid
-- 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_Application_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_SelectAll]
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_MailTexte_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_MailTexte_SelectAll]
GO
---------------------------------------------------------------------------------
-- Stored procedure that will select all rows from the table 'Application'
-- Stored procedure that will select all rows from the table 'MailTexte'
-- Returns: @iErrorCode int
---------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[pr_Application_SelectAll]
CREATE PROCEDURE [dbo].[pr_MailTexte_SelectAll]
@iErrorCode int OUTPUT
AS
SET NOCOUNT ON
-- SELECT all rows from the table.
SELECT
[applikationsnr],
[version],
[showlogin],
[mandantnr],
[aktiv],
[id],
[Beschreibung],
[Betreff],
[Inhalt],
[erstellt_am],
[mutiert_am],
[mutierer],
[tmp_filepath],
[Tag_Externe_MA]
FROM [dbo].[Application]
[aktiv]
FROM [dbo].[MailTexte]
ORDER BY
[applikationsnr] ASC
[id] ASC
-- Get the Error Code for the statement just executed.
SELECT @iErrorCode=@@ERROR
GO
-- [End of Stored Procedures for table: Application]
-- [End of Stored Procedures for table: MailTexte]
-- ========================================================================================================
GO