CSUN#54997 Planning meldingen: overzichtsrapportage & ontdubbeling bij meerdere inleesacties
svn path=/Customer/trunk/; revision=41157
This commit is contained in:
@@ -3437,6 +3437,8 @@ BEGIN
|
||||
v_count_import := 0;
|
||||
header_is_valid := 0;
|
||||
|
||||
DELETE FROM csun_imp_mld;
|
||||
|
||||
FOR rec IN c
|
||||
LOOP
|
||||
BEGIN
|
||||
@@ -3916,6 +3918,58 @@ AS
|
||||
AND TRUNC (n.mld_melding_note_aanmaak) =
|
||||
TRUNC (SYSDATE) - 1));
|
||||
|
||||
CREATE OR REPLACE VIEW csun_v_rap_planning
|
||||
(
|
||||
fac_import_key,
|
||||
fac_import_datum,
|
||||
vakgroeptype,
|
||||
vakgroep,
|
||||
mld_stdmelding_key,
|
||||
standaardmelding,
|
||||
regio,
|
||||
district,
|
||||
alg_locatie_key,
|
||||
locatie,
|
||||
uitvoerdatum,
|
||||
uitvoerweek,
|
||||
uitvoermaand,
|
||||
uitvoerjaar,
|
||||
onderwerp,
|
||||
omschrijving,
|
||||
melding_key
|
||||
)
|
||||
AS
|
||||
SELECT imp.fac_import_key,
|
||||
imp.fac_import_datum,
|
||||
sd.ins_srtdiscipline_omschrijving,
|
||||
vg.ins_discipline_omschrijving,
|
||||
imp.mld_stdmelding_key,
|
||||
mld_stdmelding_oms,
|
||||
r.alg_regio_omschrijving,
|
||||
d.alg_district_omschrijving,
|
||||
imp.alg_locatie_key,
|
||||
imp.alg_locatie_oms,
|
||||
imp.uitvoerdatum,
|
||||
imp.uitvoerweek,
|
||||
imp.uitvoermaand,
|
||||
imp.uitvoerjaar,
|
||||
imp.onderwerp,
|
||||
imp.omschrijving,
|
||||
imp.mld_melding_key
|
||||
FROM csun_imp_mld2 imp,
|
||||
alg_locatie l,
|
||||
alg_district d,
|
||||
alg_regio r,
|
||||
ins_srtdiscipline sd,
|
||||
ins_tab_discipline vg,
|
||||
mld_stdmelding sm
|
||||
WHERE imp.alg_locatie_key = l.alg_locatie_key
|
||||
AND l.alg_district_key = d.alg_district_key
|
||||
AND d.alg_regio_key = r.alg_regio_key
|
||||
AND sm.mld_stdmelding_key = imp.mld_stdmelding_key
|
||||
AND vg.ins_discipline_key = sm.mld_ins_discipline_key
|
||||
AND sd.ins_srtdiscipline_key = vg.ins_srtdiscipline_key
|
||||
ORDER BY alg_locatie_oms, uitvoerdatum;
|
||||
|
||||
------ payload end ------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user