FCLT#74564 Ondersteuning van subreserveringen bij masterreserveringen savepoint

svn path=/Database/trunk/; revision=58704
This commit is contained in:
Jos Groot Lipman
2023-01-17 21:25:16 +00:00
parent 1eb713ab93
commit 4cd2a61068
5 changed files with 90 additions and 35 deletions

View File

@@ -279,15 +279,15 @@ FAC_LCL('lcl_firstlogin_url', 'Welkom bij Facilitor', 'Welcome to Facilitor')
FAC_LCL('lcl_welcome_title', 'Welkom bij Facilitor {0}!', 'Welcome to Facilitor {0}!')
FAC_LCL('lcl_welcome_intro', 'Welkom in jouw persoonlijke Facilitor-omgeving. Je kunt hier allerlei zaken regelen, we leggen je hier kort even uit hoe.',
'Welcome at your personal Facilitor-environment. You can arrange all sorts of things here, let us explain how.')
'Welcome to your personal Facilitor-environment. You can arrange all sorts of things here, let us explain how.')
FAC_LCL('lcl_welcome_line1', 'Hierboven zie je altijd het tabblad <strong>Mijn overzicht</strong> waarin je de actuele status kunt zien van alles wat met jou te maken heeft. Het is allemaal eigenlijk behoorlijk vanzelfsprekend en je kunt bijna overal op klikken voor meer informatie.',
'You can find the latest status information and other personal related business on the <strong>My overview</strong> tab, this tab will always be there and cannot be closed. The rest is more or less self explanatory and you can click on almost everthing for more information.')
FAC_LCL('lcl_welcome_line2', 'Links zie je een in- en uitklapbaar <strong>menu</strong> waaruit je je keuze kunt maken. Wat je daarin kiest verschijnt hier in het midden.',
'At the left side of your screen you see a collapsible <strong>menu</strong> which you can you use by clicking on one of the items. The selected option will appear here in the middle.')
FAC_LCL('lcl_welcome_line3', 'Helemaal rechts bovenin dit scherm zie je een <strong>zoekveld met een vergrootglas</strong>. Als je niet weet waar je iets kunt vinden, probeer het dan daar.',
'On the top right you see a <strong>looking glass</strong> field. If you do not know where to find something, try to find it there.')
FAC_LCL('lcl_welcome_line4', 'Een actief tabblad kun je vastpinnen voor later door op de grote <i class=''fas fa-thumbtack''></i> rechtsboven te klikken. Als je hem toch weer kwijt wilt, klik dan op de kleine <i class=''fas fa-thumbtack''></i> van het tabblad.',
'Facilitor can remember your favourite tabs. To pin an active tab you can click on <i class=''fas fa-thumbtack''></i> at the top right side. You can unfavourite the tab by clicking on the small <i class=''fas fa-thumbtack''></i>.')
FAC_LCL('lcl_welcome_line4', 'Een actief tabblad kun je vastpinnen voor later door op de grote <i class=''fal fa-thumbtack''></i> rechtsboven te klikken. Als je hem toch weer kwijt wilt, klik dan op de kleine <i class=''fas fa-thumbtack''></i> van het tabblad.',
'Facilitor can remember your favourite tabs. To pin an active tab you can click on <i class=''fal fa-thumbtack''></i> at the top right side. You can unfavourite the tab by clicking on the small <i class=''fas fa-thumbtack''></i>.')
FAC_LCL('lcl_welcome_line5', 'Als je iets niet snapt, probeer dan de <strong>hulp via het vraagteken</strong> rechtsbovenin.',
'If you want additonal information, you can try the online <strong>Help</strong> which can be accessed by the question mark symbol at the top right side of the screen.')
FAC_LCL('lcl_welcome_bye', 'Succes!',
@@ -2053,7 +2053,7 @@ FAC_LCL('lcl_res_shown_deleted', 'Verwijderd', 'Deleted')
FAC_LCL('lcl_res_alldone', 'Wilt u al deze reserveringen afmelden?', 'Would you like to close all these reservations?')
FAC_LCL('lcl_res_alldo', 'Afmelden van al deze reserveringen', 'Close all these reservations')
FAC_LCL('lcl_res_goedkeur', 'Wilt u reservering {0} goedkeuren?', 'Do you want to validate reservation {0}?')
FAC_LCL('lcl_res_afmeld', 'Weet je zeker dat je wil deze reservering afmelden? Deze actie kan niet ongedaan gemaakt worden', 'Are you sure you want to close this reservation? This action cannot be undone')
FAC_LCL('lcl_res_afmeld', 'Weet je zeker dat je deze reservering wilt afmelden? Deze actie kan niet ongedaan gemaakt worden', 'Are you sure you want to close this reservation? This action cannot be undone')
FAC_LCL('lcl_res_reserved_objects', ' Voorziening(en)', ' Equipment')
FAC_LCL('lcl_res_shown_res', 'Getoonde reserveringen', 'Reservations displayed')
FAC_LCL('lcl_res_kenmerken', 'Reserveringskenmerken', 'Reservation properties')
@@ -2907,6 +2907,7 @@ FAC_LCL('lcl_invalid_browser', 'ATTENTIE: Uw browser wordt niet ondersteund, geb
FAC_LCL('lcl_help', 'Help', 'Help')
FAC_LCL('lcl_do_upload_image', 'Toevoegen', 'Upload')
FAC_LCL('lcl_do_upload_file', 'Uploaden', 'Upload')
FAC_LCL('lcl_do_replace_file', 'Vervangen', 'Replace')
FAC_LCL('lcl_busy_upload_file', 'Wacht tot alle bestanden zijn geupload!', 'Wait until the upload is ready!')
FAC_LCL('lcl_upload_file', 'Bestand toevoegen', 'Upload file')
FAC_LCL('lcl_drag_file', 'Bestand hierheen verslepen', 'Drag file here')
@@ -3115,6 +3116,7 @@ FAC_LCL('lcl_fac_adres_nawblock', 'Adresgegevens', 'Address details')
FAC_LCL('lcl_fac_adres_postblock', 'Postadres', 'Mailing address')
FAC_LCL('lcl_fac_adres_visitblock', 'Bezoekadres', 'Visiting address')
FAC_LCL('lcl_adres_frame_algemeen', 'Adresgegevens', 'Address details')
FAC_LCL('lcl_res_frame_subres', 'Sub reserveringen', 'Sub reservations')
FAC_LCL('lcl_fac_del_txt_adres', 'Weet u zeker dat u dit adres wilt verwijderen?', 'Are you sure you want to delete this address?')
FAC_LCL('lcl_prs_companies_title', 'Bedrijven', 'Companies')
FAC_LCL('lcl_prs_companies_title_int', 'Bedrijven', 'Companies')
@@ -4449,6 +4451,8 @@ FAC_LCL('lcl_mobile_scanqr', 'Scan QR', 'Scan QR')
FAC_LCL('lcl_pda_opdr_opm_required', 'U dient een afhandeling in te vullen', 'You need to add a remark')
FAC_LCL('lcl_pda_mld_call_confirm', 'De melding is geregistreerd, bedankt voor uw medewerking.', 'The call is registered, thank you for your cooperation.')
FAC_LCL('lcl_pda_mld_call_thanks', 'Hartelijk dank voor uw melding betreffende {1}.'||CHR(10)||'Deze is geregistreerd onder nummer {0}.', 'Thank you for your call regarding {1}.'||CHR(10)||'This is registered under number {0}.')
FAC_LCL('lcl_pda_mld_call_thanks_1', 'Hartelijk dank voor uw melding.'||CHR(10)||'Deze is geregistreerd onder nummer {0}.', 'Thank you for your call.'||CHR(10)||'This is registered under number {0}.')
FAC_LCL('lcl_pda_mld_call_process', 'Deze melding verder behandelen?' ,'Process this call?')
FAC_LCL('lcl_pda_res_gereserveerd', 'ad hoc reservering', 'Ad hoc reservation')
FAC_LCL('lcl_pda_res_geresopmerk', 'Ter plaatse gereserveerd', 'Reserved on the spot')
FAC_LCL('lcl_pda_res_ruimtereserveer', 'Reserveer tot {0}', 'Reserve until {0}')
@@ -5025,12 +5029,10 @@ FAC_LCL('lcl_mld_kenmerk_readonly', 'Alleen lezen', 'Read-only')
FAC_LCL('lcl_mld_kenmerk_count', 'Gevuld', 'Filled')
FAC_LCL('lcl_mld_kenmerktype_fail1', 'Bij kenmerksoort ''{0}'' kan geen {1} worden ingevuld.', '{1} cannot be filled for property type ''{0}''')
FAC_LCL('mld_kenmerk_wissen', 'Wissen bij', 'Clear at')
FAC_LCL('mld_kenmerk_wissenLOV',
'0;Niet;1;Kopie/Vervolgen;2;Doorsturen;3;Kopie/Vervolgen en Doorsturen',
'0;No;1;Copy/Continuation;2;Forward;3;Copy/Continuation and Forward')
FAC_LCL('opd_kenmerk_wissenLOV',
'0;Niet;1;Kopie',
'0;No;1;Copy')
FAC_LCL('mld_kenmerk_wissen_copy_on', 'Kopie/Vervolgen', 'Copy/Continuation')
FAC_LCL('mld_kenmerk_wissen_fwd_on', 'Doorsturen', 'Forward')
FAC_LCL('mld_kenmerk_wissen_opdr_on', 'Meenemen naar opdracht', 'Transfer to order')
FAC_LCL('opd_kenmerk_wissen_copy_on', 'Kopie', 'Copy')
FAC_LCL('lcl_mld_fix_sla', 'Tijden', 'Dates')
FAC_LCL('lcl_mld_fix_sla_hint', 'Corrigeer de registratie- of afmelddatum tbv de SLA-metingen', 'Correct registration or closing dates for SLA-measurement')
FAC_LCL('lcl_mld_addtofaq', 'Toevoegen aan de kennisbank', 'Add to the knowledge base')
@@ -5470,8 +5472,8 @@ FAC_LCL('lcl_usrrap_graphoptions', 'Grafiekparameters', 'Graph parameters')
FAC_LCL('lcl_usrrap_lastrefresh', 'Kolommen ververst op', 'Columns last refreshed')
FAC_LCL('lcl_usrrap_parameters', 'Parameterlijst', 'Parameter list')
FAC_LCL('lcl_usrrap_graphtype', 'Standaardpresentatie', 'Default presentation')
FAC_LCL('lcl_usrrap_graphtypeLOV', '0;Lijst;1;Staafgrafiek;3;Taartgrafiek;4;Lijngrafiek;2;Dashboard;5;Blokgrafiek;6;Kaart'
, '0;List;1;Bar chart;3;Pie chart;4;Line chart;2;Dashboard;5;Block chart;6;Map')
FAC_LCL('lcl_usrrap_graphtypeLOV', '0;Lijst;1;Staafgrafiek;3;Taartgrafiek;4;Lijngrafiek;2;Dashboard;5;Blokgrafiek;6;Kaart;7;Kalender'
, '0;List;1;Bar chart;3;Pie chart;4;Line chart;2;Dashboard;5;Block chart;6;Map;7;Calendar')
FAC_LCL('lcl_usrrap_styling', 'Stylingsopties', 'Styling options')
FAC_LCL('lcl_usrrap_stylingLOV', '0;Tabel/Grafiek (standaard);16;Mobiel;1;Via stylesheet;2;Via procedure;3;Via procedure en stylesheet;8;Via tabelizer;32;UDR Template'
@@ -5512,7 +5514,7 @@ FAC_LCL('lcl_scf_show_expired', 'Vervallen records', 'Expired records')
FAC_LCL('lcl_scf_confirm_delete', 'Wilt u {0} ''{1}'' verwijderen?', 'Do you want to delete {0} ''{1}''?')
FAC_LCL('lcl_scf_is_deleted', '{0} is verwijderd', '{0} has been deleted')
FAC_LCL('lcl_scf_are_deleted', '{0} {1} zijn verwijderd', '{0} {1} have been deleted')
FAC_LCL('lcl_scf_add_required', 'Zorg dat U hier ook eerst {0} toevoegt', 'Make sure to add {0} here as well')
FAC_LCL('lcl_scf_add_required', 'Er dient nog een {0} te worden toegevoegd', 'Make sure to add {0} here as well')
FAC_LCL('lcl_scf_graph', 'Grafiek', 'Graph')
FAC_LCL('lcl_scf_pivot', 'Draaitabel', 'Pivot')
@@ -6200,8 +6202,8 @@ FAC_LCL('mgt_srtdisc_kk_fobo_notshow', 'FOBO kostenplaats niet tonen', 'FOBO don
FAC_LCL('mgt_all', 'Alles', 'All')
FAC_LCL('mgt_graphtypeLOV',
'1;Staafgrafiek;2;Dashboard;3;Taartgrafiek;4;Lijngrafiek;5;Blokgrafiek;6;Map',
'1;Bar chart;2;Dashboard;3;Pie chart;4;Line chart;5;Block chart;6;Map')
'1;Staafgrafiek;2;Dashboard;3;Taartgrafiek;4;Lijngrafiek;5;Blokgrafiek;6;Map;7;Kalender',
'1;Bar chart;2;Dashboard;3;Pie chart;4;Line chart;5;Block chart;6;Map;7;Calendar')
COMMIT;
@@ -6592,6 +6594,9 @@ FAC_LCL('res_activiteit_intervals', 'Vaste reserveringsintervallen (JSON*)', '
FAC_LCL('res_activiteit_cvab_mode', 'Bezorgmode', 'Delivery mode')
FAC_LCL('res_activiteit_cvab_modeLOV', ';Onbekend;0;Afhalen;1;Bezorgen;2;Afhalen, niet wijzigbaar;3;Bezorgen, niet wijzigbaar',
';Unknown;0;Pick up;1;Deliver;2;Pick up, not editable;3;Deliver, not editable')
FAC_LCL('res_activiteit_ismaster', 'Is hoofd activiteit', 'Is master activity')
FAC_LCL('res_activiteit_master_key', 'Hoofd activiteit', 'Master activity')
FAC_LCL('lcl_res_children_outsidetime', 'Er zijn subreservingen van {0} t/m {1}','Sub reservations from {0} to {1} still exist')
FAC_LCL('res_srtactiviteit_key', 'Activiteitsoort', 'Activity type')
FAC_LCL('res_activiteit_limiet', 'Limiet dagen', 'Limit days')
FAC_LCL('res_activiteit_limiet_fe', 'Limiet dagen FE', 'Limit days FE')

View File

@@ -8574,29 +8574,30 @@ AS
PROCEDURE create_res_activiteit_node (p_key IN NUMBER)
AS
v_omschrijving res_activiteit.res_activiteit_omschrijving%TYPE;
v_duur res_activiteit.res_activiteit_duur%TYPE;
v_srtactiviteit_key res_activiteit.res_srtactiviteit_key%TYPE;
v_image res_activiteit.res_activiteit_image%TYPE;
BEGIN
createopentag ('res_activiteit');
SELECT lcl.x ('res_activiteit_omschrijving',
res_activiteit_key,
res_activiteit_omschrijving)
res_activiteit_omschrijving,
res_activiteit_duur,
res_srtactiviteit_key,
res_activiteit_image
INTO v_omschrijving, v_duur, v_srtactiviteit_key, v_image
FROM res_activiteit
WHERE res_activiteit_key = p_key;
FOR rec IN (SELECT lcl.x ('res_activiteit_omschrijving',
res_activiteit_key,
res_activiteit_omschrijving)
res_activiteit_omschrijving,
res_activiteit_duur,
res_srtactiviteit_key,
res_activiteit_image,
res_activiteit_ismaster,
res_activiteit_master_key
FROM res_activiteit
WHERE res_activiteit_key = p_key)
LOOP
createxmltagvalue ('key', p_key);
createxmltagvalue ('omschrijving', rec.res_activiteit_omschrijving);
createxmltagvalue ('duur', rec.res_activiteit_duur);
createxmltagvalue ('image', rec.res_activiteit_image);
createxmltagvalue ('ismaster', rec.res_activiteit_ismaster);
createxmltagvalue ('master', rec.res_activiteit_master_key);
create_res_srtactiviteit_node (rec.res_srtactiviteit_key);
END LOOP;
createxmltagvalue ('key', p_key);
createxmltagvalue ('omschrijving', v_omschrijving);
createxmltagvalue ('duur', v_duur);
createxmltagvalue ('image', v_image);
create_res_srtactiviteit_node (v_srtactiviteit_key);
createclosetag ('res_activiteit');
END;
@@ -8626,6 +8627,7 @@ AS
v_host_key res_rsv_ruimte.res_rsv_ruimte_host_key%TYPE;
v_telefoon res_rsv_ruimte.res_rsv_ruimte_telefoon%TYPE;
v_alg_ruimte_key res_rsv_ruimte.alg_ruimte_key%TYPE;
v_parent_key res_rsv_ruimte.res_rsv_ruimte_parent_key%TYPE;
v_volgnr res_rsv_ruimte.res_rsv_ruimte_volgnr%TYPE;
v_kosten_klant res_rsv_ruimte.res_rsv_ruimte_kosten_klant%TYPE;
v_status_bo_omschr res_status_bo.res_status_bo_omschrijving%TYPE;
@@ -8706,6 +8708,7 @@ AS
res_rsv_ruimte_host_key,
res_rsv_ruimte_telefoon,
alg_ruimte_key,
res_rsv_ruimte_parent_key,
res_rsv_ruimte_volgnr,
sf.res_status_fo_omschrijving,
sb.res_status_bo_omschrijving,
@@ -8741,6 +8744,7 @@ AS
v_host_key,
v_telefoon,
v_alg_ruimte_key,
v_parent_key,
v_volgnr,
v_status_fo_omschr,
v_status_bo_omschr,
@@ -8832,6 +8836,22 @@ AS
LOOP
create_mld_melding_node (rec4.mld_melding_key, NULL, TRUE); -- de opdrachtinfo is ook gewenst
END LOOP;
IF (v_parent_key IS NOT NULL)
THEN
createopentag ('masterreservering');
create_res_rsv_ruimte_node(v_parent_key, TRUE);
createclosetag ('masterreservering');
END IF;
createopentag ('subreservering');
FOR rec IN (SELECT res_rsv_ruimte_key
FROM res_rsv_ruimte
WHERE res_rsv_ruimte_parent_key = p_key)
LOOP
create_res_rsv_ruimte_node(rec.res_rsv_ruimte_key, TRUE);
END LOOP;
createclosetag ('subreservering');
END IF;
createclosetag ('rsv_ruimte');

View File

@@ -31,6 +31,7 @@ create index res_i_res_rsv_ruimte13 on res_rsv_ruimte (res_rsv_ruimte_tot, res_r
create index res_i_res_rsv_ruimte14 on res_rsv_ruimte (res_rsv_ruimte_kto_verstuurd);
create index res_i_res_rsv_ruimte15 on res_rsv_ruimte (res_rsv_ruimte_externnr);
create index res_i_res_rsv_ruimte16 on res_rsv_ruimte (mld_opdr_key);
create index res_i_res_rsv_ruimte17 on res_rsv_ruimte (res_rsv_ruimte_parent_key);
create index res_i_res_rsv_deel2 on res_rsv_deel(res_deel_key);
create index res_i_res_rsv_deel3 on res_rsv_deel(bez_bezoekers_key);

View File

@@ -466,6 +466,12 @@ CREATE_TABLE(res_activiteit, 0)
NUMBER(3)
, res_activiteit_limiet_fe /* Optional overrule of Setting res_fe_reservering_limiet (days) */
NUMBER(3)
, res_activiteit_ismaster
NUMBER (1)
DEFAULT 0 NOT NULL
, res_activiteit_master_key
NUMBER (10)
CONSTRAINT res_r_res_activiteit_key2 REFERENCES res_activiteit(res_activiteit_key)
, res_activiteit_image
VARCHAR2(255)
, CONSTRAINT res_u_res_activiteit_upper UNIQUE(res_activiteit_upper, res_activiteit_verwijder, res_srtactiviteit_key)
@@ -573,6 +579,9 @@ CREATE_TABLE(res_rsv_ruimte, 0)
, mld_opdr_key
NUMBER(10)
CONSTRAINT res_r_mld_opdr1 REFERENCES mld_opdr(mld_opdr_key)
, res_rsv_ruimte_parent_key
NUMBER (10)
CONSTRAINT res_c_res_rsv_ruimte_key3 REFERENCES res_rsv_ruimte(res_rsv_ruimte_key) ON DELETE SET NULL
, res_rsv_ruimte_aanmaak
DATE
DEFAULT SYSDATE

View File

@@ -239,6 +239,7 @@ CREATE TABLE bez_actie_groep
NUMBER(1) DEFAULT 0 NOT NULL
, bez_actie_groep_verwijder
DATE
, CONSTRAINT BEZ_U_BEZ_ACTIE_GROEP UNIQUE(bez_actie_groep_omschrijving, bez_actie_groep_verwijder)
);
CREATE OR REPLACE TRIGGER bez_t_bez_actie_groep_B_I
@@ -257,7 +258,7 @@ ALTER TABLE bez_actie
REFERENCES bez_actie_groep(bez_actie_groep_key);
ALTER TABLE bez_actie
ADD CONSTRAINT BEZ_U_BEZ_ACTIE UNIQUE(bez_actie_groep_key, bez_actie_omschrijving);
ADD CONSTRAINT BEZ_U_BEZ_ACTIE UNIQUE(bez_actie_groep_key, bez_actie_omschrijving, bez_actie_verwijder);
-- standaard worden alle huidige acties aan default gekoppeld.
UPDATE bez_actie
@@ -374,6 +375,25 @@ CREATE VIEW ctr_v_monthly_recurring_tasks AS SELECT * FROM DUAL;
DEF_RAPPORT('WEB_CTRUSE', 5, 'ctr_v_monthly_recurring_tasks', 'Periodieke taken: Jaaroverzicht', 'Overzicht van de stand van zaken van afgelopen jaar t/m volgend jaar',
'Overview recurring tasks per year', 'Overview of the actual state from previous year until next year');
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#74564
ALTER TABLE res_activiteit
ADD res_activiteit_ismaster
NUMBER (1)
DEFAULT 0 NOT NULL;
ALTER TABLE res_activiteit
ADD res_activiteit_master_key
NUMBER (10)
CONSTRAINT res_r_res_activiteit_key2 REFERENCES res_activiteit(res_activiteit_key);
ALTER TABLE res_rsv_ruimte
ADD res_rsv_ruimte_parent_key
NUMBER (10)
CONSTRAINT res_c_res_rsv_ruimte_key3 REFERENCES res_rsv_ruimte(res_rsv_ruimte_key) ON DELETE SET NULL;
create index res_i_res_rsv_ruimte17 on res_rsv_ruimte (res_rsv_ruimte_parent_key);
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#00000
REGISTERONCE('$Id$')