This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,34 @@
DROP PROCEDURE IF EXISTS uspGetNemKotottMunkaIdo
GO
CREATE PROCEDURE uspGetNemKotottMunkaIdo
@IntezmenyId int
,@TanevId int
,@IdoszakKezdete datetime
,@IdoszakVege datetime
,@TanarId int
AS
BEGIN
SET NOCOUNT ON;
SELECT
nkm.ID as Id
,nkm.C_GROUPID as GroupID
,nkm.C_KEZDETE as Kezdete
,nkm.C_MEGJEGYZES as Megjegyzes
,nkm.C_NAPLOZOTTMEGJEGYZES as NaplozottMegjegyzes
,nkm.C_MEGTARTOTT as Megtartott
,nkm.C_TEVEKENYSEGTIPUSA as TorvenyKategoriaID
,nkm.C_VEGE as Vege
,nkm.C_TANARID as TanarID
,nkm.C_TULAJDONOSID as TulajdonosID
,nkm.TOROLT as Torolt
,nkm.C_ISTANARALTALTOROLT as TanarAltalTorolt
FROM T_NEMKOTOTTMUNKAIDO_OSSZES nkm
WHERE
nkm.TOROLT = 'F' AND nkm.C_INTEZMENYID = @IntezmenyId AND nkm.C_TANEVID = @TanevId AND nkm.C_TANARID = @TanarId
AND @IdoszakKezdete <= C_KEZDETE AND @IdoszakVege > C_VEGE
AND (C_ADMINALTALTOROLT = 'F' OR (C_ADMINALTALTOROLT = 'T' AND C_MEGTARTOTT = 'T'))
END
GO