FCLT#64834 Tweezijdige communicatie over een reeds uitgezette opdracht

svn path=/Database/trunk/; revision=52741
This commit is contained in:
Peter Feij
2021-08-20 08:02:51 +00:00
parent fe23f7dd23
commit 196e718cea
3 changed files with 46 additions and 3 deletions

View File

@@ -1962,6 +1962,7 @@ DEF_FAC_SRTNOT('MLDA2M', 0, 'lcl_noti_MLDA2M', 'mld/mld_melding.asp?urole=fe&mld
-- bericht aan uitvoerende
DEF_FAC_SRTNOT('ORDMLI', 4, 'lcl_noti_ORDMLI', 'mld/mld_opdr.asp?opdr_key=', '0', 'opdracht', 10);
DEF_FAC_SRTNOT('ORDMLE', 2, 'lcl_noti_ORDMLE', '', '0', 'opdracht', 10);
DEF_FAC_SRTNOT('ORDNOL', 2, 'lcl_noti_ORDNOL', 'mld/mld_opdr.asp?opdr_key=', '0', 'opdracht', 10);
-- bericht naar interne contactpersoon
DEF_FAC_SRTNOT('ORDAFM', 1, 'lcl_noti_ORDAFM', 'mld/mld_opdr.asp?opdr_key=', '0', 'opdracht', 10);
DEF_FAC_SRTNOT('ORDNEW', 0, 'lcl_noti_ORDNEW', 'mld/mld_opdr.asp?opdr_key=', '0', 'opdracht', 10);
@@ -1989,6 +1990,8 @@ DEF_FAC_SRTNOT('ORDANO', 0, 'lcl_noti_ORDANO', 'mld/mld_opdr.asp?opdr_key=', '0'
DEF_FAC_SRTNOT('ORD2GO', 3, 'lcl_noti_ORD2GO', 'mld/mld_opdr.asp?opdr_key=', '0', 'opdracht', 10);
DEF_FAC_SRTNOT('ORDOOK', 0, 'lcl_noti_ORDOOK', 'mld/mld_opdr.asp?opdr_key=', '0', 'opdracht', 10);
DEF_FAC_SRTNOT('ORDONO', 0, 'lcl_noti_ORDONO', 'mld/mld_opdr.asp?opdr_key=', '0', 'opdracht', 10);
-- opdrachtnotitie voor melder linkt naar melding, niet opdracht
DEF_FAC_SRTNOT('ORDNOT', 1, 'lcl_noti_ORDNOT', 'mld/mld_melding.asp?mld_key=', '0', 'melding', 10);
DEF_FAC_SRTNOT('PRSINF', 2, 'lcl_noti_PRSINF', '' , '0', 'perslid', 10);
DEF_FAC_SRTNOT('PRSREG', 127, 'lcl_noti_PRSREG', '' , '0', 'perslid', 0);

View File

@@ -493,6 +493,10 @@ CREATE_TABLE(mld_stdmelding,0)
VARCHAR2(256),
mld_stdmelding_externsyncdate
DATE,
mld_stdmelding_notes // 0:geen notities, +1=FE, +2=FOBO, +4=UITV
NUMBER(1)
DEFAULT 3
NOT_NULL(mld_stdmelding_notes, mld_c_mld_stdmelding_notes),
-- in CAD_TAB.SRC:
-- cad_thema_key
-- NUMBER(10)
@@ -1062,7 +1066,11 @@ CREATE_TABLE(mld_opdr,0)
NOT NULL,
mld_opdr_parent_key
NUMBER(10)
CONSTRAINT mld_r_mld_opdr_key4 REFERENCES mld_opdr(mld_opdr_key)
CONSTRAINT mld_r_mld_opdr_key4 REFERENCES mld_opdr(mld_opdr_key),
mld_opdr_actiecode
NUMBER(3)
DEFAULT 1 /* actie bij +1=FOBO behandelaar, +2=melder, +4=uitvoerende, +128 attentie */
NOT NULL
);
CREATE_TABLE(mld_vrije_dagen, 0)
@@ -1318,7 +1326,7 @@ CREATE_TABLE(mld_melding_note, 0)
prs_perslid_key NUMBER (10) REFERENCES prs_perslid (prs_perslid_key) ON DELETE SET NULL,
fac_note_group_key NUMBER (10) REFERENCES fac_note_group(fac_note_group_key) ON DELETE SET NULL,
mld_melding_note_omschrijving VARCHAR2 (4000 CHAR),
mld_melding_note_flag NUMBER (2) DEFAULT 0
mld_melding_note_flag NUMBER (2) DEFAULT 2 // 0=system, +1=FE, +2=FOBO, +4=UITV (redefined DB41)
);
CREATE_TABLE(mld_opdr_note, 0)
@@ -1329,7 +1337,8 @@ CREATE_TABLE(mld_opdr_note, 0)
mld_opdr_note_wijzigdatum DATE,
prs_perslid_key NUMBER (10) REFERENCES prs_perslid (prs_perslid_key) ON DELETE SET NULL,
fac_note_group_key NUMBER (10) REFERENCES fac_note_group(fac_note_group_key) ON DELETE SET NULL,
mld_opdr_note_omschrijving VARCHAR2 (4000 CHAR)
mld_opdr_note_omschrijving VARCHAR2 (4000 CHAR),
mld_opdr_note_flag NUMBER (2) DEFAULT 6 // 0=system, +1=FE, +2=FOBO, +4=UITV
);
-- Improductieve opdrachten, alternatief van mld_opdr om uren op te registreren

View File

@@ -11,6 +11,37 @@ COMMIT;
ALTER TABLE res_activiteit ADD res_activiteit_limiet NUMBER(3);
ALTER TABLE res_activiteit ADD res_activiteit_limiet_fe NUMBER(3);
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#64834
ALTER TABLE mld_stdmelding ADD
mld_stdmelding_notes
NUMBER(1)
DEFAULT 3
NOT_NULL(mld_stdmelding_notes, mld_c_mld_stdmelding_notes);
ALTER TABLE mld_opdr_note ADD
mld_opdr_note_flag
NUMBER (2)
DEFAULT 6;
ALTER TABLE mld_melding_note MODIFY mld_melding_note_flag DEFAULT 2;
UPDATE mld_melding_note
SET mld_melding_note_flag = mld_melding_note_flag + 2
WHERE mld_melding_note_flag IS NOT NULL AND BITAND (mld_melding_note_flag, 2) = 0;
ALTER mld_opdr ADD
mld_opdr_actiecode
NUMBER(3)
DEFAULT 1
NOT NULL;
DEF_FAC_SRTNOT('ORDNOL', 2, 'lcl_noti_ORDNOL', 'mld/mld_opdr.asp?opdr_key=', '0', 'opdracht', 10);
DEF_FAC_SRTNOT('ORDNOT', 1, 'lcl_noti_ORDNOT', 'mld/mld_melding.asp?mld_key=', '0', 'melding', 10);
-- in FAC_LCL:
--FAC_LCL('lcl_noti_ORDNOT', 'Er is een opmerking bij ##OPDRKEY## geplaatst door uitvoerende', 'New note from handler for ##OPDRKEY##')
--FAC_LCL('lcl_noti_ORDNOL', 'Er is een opmerking bij ##OPDRKEY## geplaatst door aanvrager', 'New note from requestor for ##OPDRKEY## ')
///////////////////////////////////////////////////////////////////////////////////////////