71 lines
2.5 KiB
Plaintext
71 lines
2.5 KiB
Plaintext
<%@language="javascript"%>
|
|
<% /*
|
|
$Revision: 1 $
|
|
$Modtime: 19-10-09 18:18 $
|
|
|
|
File: prs_dienstloc_list.asp
|
|
Status: x%
|
|
Description: Lijst van geleverde diensten door bedrijf berijf_key en/of op locatie locatie_key
|
|
Parameters: locatie_key (optioneel)
|
|
bedrijf_key (optioneel)
|
|
Context: Submit van prs_dienstloc_search.asp
|
|
Note:
|
|
|
|
*/ %>
|
|
<!-- #include file="../../cust/install.inc" -->
|
|
<!-- #include file="../Shared/iface.inc" -->
|
|
<!-- #include file="../Shared/resultset_table_v2.inc" -->
|
|
<%
|
|
var bedrijf_key = getQParamInt("bedrijf_key", -1);
|
|
var locatie_key = getQParamInt("locatie_key", -1);
|
|
|
|
FCLTHeader.Requires({plugins:["jQuery"],
|
|
js: ["expand_frame.js", "FCLTMgr.js"]})
|
|
%>
|
|
<html>
|
|
<head>
|
|
<% FCLTHeader.Generate(); %>
|
|
</head>
|
|
|
|
<body id="listbody">
|
|
<%
|
|
var autfunction = 'WEB_RELMAN';
|
|
var authparams = user.checkAutorisation(autfunction);
|
|
|
|
var sql = "SELECT"
|
|
+ " b.prs_bedrijf_key"
|
|
+ ", prs_bedrijf_naam"
|
|
+ ", prs_dienst_omschrijving"
|
|
+ ", alg_locatie_omschrijving"
|
|
+ ", prs_bedrijfdienstlocatie_key"
|
|
+ " FROM alg_v_aanweziglocatie l, prs_dienst d, prs_bedrijfdienstlocatie dl, prs_bedrijf b"
|
|
+ " WHERE dl.ALG_LOCATIE_KEY = l.ALG_LOCATIE_KEY(+)"
|
|
+ " AND d.PRS_DIENST_KEY = dl.PRS_DIENST_KEY"
|
|
+ " AND dl.PRS_BEDRIJF_KEY = b.PRS_BEDRIJF_KEY"
|
|
+ (bedrijf_key != -1 ? " AND b.prs_bedrijf_key = " + bedrijf_key : "")
|
|
+ (locatie_key != -1 ? " AND l.alg_locatie_key = " + locatie_key : "")
|
|
+ " ORDER BY b.prs_bedrijf_naam_upper, prs_dienst_omschrijving, alg_locatie_upper";
|
|
|
|
|
|
var rst = new ResultsetTable({ sql: sql,
|
|
ID: "contacttable",
|
|
title: lcl_prs_companies_dienst_title,
|
|
keyColumn: "prs_bedrijfdienstlocatie_key"
|
|
});
|
|
|
|
if (bedrijf_key == -1)
|
|
rst.addColumn(new Column({caption: lcl_prs_companies_name, content: "prs_bedrijf_naam"}));
|
|
|
|
rst.addColumn(new Column({caption: lcl_prs_companies_dienst, content: "prs_dienst_omschrijving"}));
|
|
|
|
if (locatie_key == -1)
|
|
rst.addColumn(new Column({caption: lcl_location, content: "alg_locatie_omschrijving"}));
|
|
|
|
// todo: .withHandlerPage("prsdienst.asp"+(intern?"?intern=1":""));
|
|
|
|
rst.processResultset();
|
|
|
|
%>
|
|
</body>
|
|
</html>
|