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,4 @@
DISABLE TRIGGER ALL ON T_TANULO
GO
DISABLE TRIGGER ALL ON T_MAGANTANULOSAGOKA

View file

@ -0,0 +1,4 @@
ENABLE TRIGGER tr_tanuloLog ON T_TANULO
GO
ENABLE TRIGGER tr_magantanulosagokaLog ON T_MAGANTANULOSAGOKA

View file

@ -0,0 +1,26 @@
UPDATE tanulo
SET tanulo.C_MAGANTANULOSAGANAKOKA = 657
FROM T_TANULO tanulo
INNER JOIN T_MAGANTANULOSAGOKA magantan ON magantan.ID = tanulo.C_MAGANTANULOSAGANAKOKA
INNER JOIN T_DICTIONARYITEMBASE dic ON magantan.ID = dic.ID AND magantan.C_ALINTEZMENYID = dic.C_INTEZMENYID AND magantan.C_ALTANEVID = dic.C_TANEVID
WHERE dic.C_TYPE = 'MagantanulosagOka' AND dic.C_NAME = '[na]' AND tanulo.C_MAGANTANULO = 'T'
UPDATE tanulo
SET tanulo.C_MAGANTANULOSAGANAKOKA = NULL
FROM T_TANULO tanulo
INNER JOIN T_MAGANTANULOSAGOKA magantan ON magantan.ID = tanulo.C_MAGANTANULOSAGANAKOKA
INNER JOIN T_DICTIONARYITEMBASE dic ON magantan.ID = dic.ID AND magantan.C_ALINTEZMENYID = dic.C_INTEZMENYID AND magantan.C_ALTANEVID = dic.C_TANEVID
WHERE dic.C_TYPE = 'MagantanulosagOka' AND dic.C_NAME = '[na]' AND tanulo.C_MAGANTANULO = 'F'
UPDATE magantan
SET magantan.TOROLT = 'T'
FROM T_MAGANTANULOSAGOKA magantan
INNER JOIN T_DICTIONARYITEMBASE dic ON magantan.ID = dic.ID AND magantan.C_ALINTEZMENYID = dic.C_INTEZMENYID AND magantan.C_ALTANEVID = dic.C_TANEVID
WHERE dic.C_TYPE = 'MagantanulosagOka' AND dic.C_NAME = '[na]'
UPDATE T_DICTIONARYITEMBASE
SET TOROLT = 'T'
WHERE C_TYPE = 'MagantanulosagOka' AND C_NAME = '[na]'