FSN#34109 onderscheid maken voor de oude api_reservablerooms.asp die je gebruikt als je ruimtes wilt gaan reserveren en api_res_ruimte.asp voor als je reserveerbare ruimtes wilt gaan beheren.
svn path=/Website/branches/v2015.2/; revision=26666
This commit is contained in:
28
APPL/API2/api_res_ruimte.asp
Normal file
28
APPL/API2/api_res_ruimte.asp
Normal file
@@ -0,0 +1,28 @@
|
||||
<%@ language = "JavaScript" %>
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: api_res_ruimte.asp
|
||||
|
||||
Description: RES_RUIMTE API
|
||||
Parameters:
|
||||
Context: Door een remote systeem (geen persoon) om info uit FACILITOR te halen aan te roepen
|
||||
|
||||
Notes: api_reservablerooms.asp is om ruimtes te gaan reserveren
|
||||
Dit bestand (api_res_ruimte) is om reserveerbare ruimtes te beheren (meta dus)
|
||||
TODO: Ooit al dan niet integreren? Denk het niet.
|
||||
*/
|
||||
DOCTYPE_Disable = true;
|
||||
ANONYMOUS_Allowed = 1; // Eigenlijk niet waar. We regelen echter alles zelf
|
||||
THIS_FILE = "appl/api/api_res_ruimte.asp";
|
||||
|
||||
%>
|
||||
<!-- #include file="../Shared/common.inc" -->
|
||||
<!-- #include file="./api2_rest.inc" -->
|
||||
<!-- #include file="../Shared/json2.js" -->
|
||||
<!-- #include file="../res/res.inc"-->
|
||||
<!-- #include file="./model_res_ruimte.inc" -->
|
||||
<%
|
||||
api2_rest.process(model_res_ruimte);
|
||||
%>
|
||||
@@ -20,7 +20,7 @@
|
||||
<!-- #include file="./api2_rest.inc" -->
|
||||
<!-- #include file="../Shared/json2.js" -->
|
||||
<!-- #include file="../res/res.inc"-->
|
||||
<!-- #include file="./model_res_ruimte.inc" -->
|
||||
<!-- #include file="./model_reservablerooms.inc" -->
|
||||
<%
|
||||
api2_rest.process(model_res_ruimte);
|
||||
api2_rest.process(model_reservablerooms);
|
||||
%>
|
||||
@@ -4,11 +4,13 @@
|
||||
|
||||
File: model_reservablerooms.inc
|
||||
|
||||
Description: Bezoekers model.
|
||||
Description: Reservereerbare ruimtes model.
|
||||
Parameters:
|
||||
Context:
|
||||
|
||||
Notes: // TODO: Koppelzalen?
|
||||
Notes: let op: dit bestand wordt gebruikt om ruimtes echt te gaan reserveren.
|
||||
Het bestand model_res_ruimte is om reserveerbare ruimtes te beheren. Dat is wat heel anders.
|
||||
// TODO: Koppelzalen?
|
||||
// TODO: getQParamISODate moet niet hier maar in api_
|
||||
|
||||
http://uwva.5iwork/Branch541/api2/reservablerooms.json?apikey=APIPFO&pretty=1&location=71&include=occupations&freefrom=2014-05-06T11:00:00Z&freeto=2014-05-06T13:00:00Z
|
||||
@@ -16,6 +18,7 @@
|
||||
|
||||
%>
|
||||
<!-- #include file="../Shared/discxalg3d.inc"-->
|
||||
<!-- #include file="../Shared/flexfiles.inc"-->
|
||||
<!-- #include file="model_reservableequipment.inc"-->
|
||||
<!-- #include file="model_res_ruimte_opstelling.inc"-->
|
||||
|
||||
@@ -120,7 +123,7 @@ model_reservablerooms =
|
||||
return "res_deel_key IN (" + sql + ")"
|
||||
}
|
||||
},
|
||||
"configurations": { model: model_res_ruimte_opstelling,
|
||||
"configurations": { model: new model_res_ruimte_opstelling(),
|
||||
joinfield: "res_ruimte_key"
|
||||
},
|
||||
"occupations": { // prefunc om alles tegelijk op te halen
|
||||
|
||||
Reference in New Issue
Block a user