AAIT#24873 -- Infobord bezoekers

svn path=/Website/trunk/; revision=16069
This commit is contained in:
Arthur Egberink
2012-11-22 13:33:07 +00:00
parent 7dbd17f3f1
commit 1b28398a2c
6 changed files with 170 additions and 3 deletions

View File

@@ -0,0 +1,72 @@
<%@ language = "JavaScript" %>
<% /*
$Revision$
$Id$
File: infobord.asp
Description: A deeplink call to display information on the infobord
Parameters:
gebouw gebouw: the code of the building. Optional parameter
Context:
Example: http://aait.facilitor.nl/cust/aait/infobord/infobord.asp?gebouw=LHW&refreshrate=300
Note:
*/ %>
<%
Response.Expires = 0;
%>
<!-- #include file="../../../appl/Shared/common.inc" -->
<html>
<head>
<%
// specific params needed to find the reservation which has to be deleted
var refreshrate = getQParamInt("refreshrate", -1);
var gebouw = getQParam("gebouw", "leeg");
// find the key of the building
var alg_gebouw_key = -1;
sql = "SELECT alg_gebouw_key"
+ " FROM alg_v_aanweziggebouw g"
+ " WHERE alg_gebouw_upper = UPPER(" + safe.quoted_sql(gebouw) + ")";
oRs = Oracle.Execute(sql);
if (!oRs.eof)
{
alg_gebouw_key = oRs(0).value;
}
// find the key of the usr_report
var fac_usrrap_key = -1;
sql = "SELECT fac_usrrap_key"
+ " FROM fac_usrrap ur"
+ " WHERE UPPER(fac_usrrap_view_name) = 'AAIT_V_RAP_BEZOEKERS'";
oRs = Oracle.Execute(sql);
if (!oRs.eof)
{
fac_usrrap_key = oRs(0).value;
}
var params = "";
if (gebouw != "leeg")
params += "&fclt_f_colname1=alg_gebouw_key&fclt_f_colvalue1=" + alg_gebouw_key;
%>
</head>
<body leftmargin="0" topmargin="0" onLoad="Loaded();">
<script language="javascript">
function Loaded()
{
<% if (fac_usrrap_key == -1 || (alg_gebouw_key == -1 && gebouw != "leeg"))
{ %>
alert ("rapport of gebouw kan niet gevonden worden");
<% }
else
{ %>
var s = "appl/fac/fac_usrrap_infobord.asp?rap_key=<%=fac_usrrap_key%><%=params%>&refreshrate=<%=refreshrate%>";
window.location.href = s;
<% } %>
}
</script>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -499,7 +499,7 @@
<br/>Postbus 80009<br/>
5600 JZ&#xA0;&#xA0;Eindhoven<br/>
E-mail: helpdesk@aa-fm.com<br/>
<br/>s.v.p. gereedmelding via de servicedesk per e-mail</td>
<br/>S.v.p. gereedmelden via Facilitor, wanneer u geen toegang heeft kan dit per mail naar de Servicedesk.</td>
</tr>
</table>
</xsl:template>
@@ -1200,7 +1200,7 @@ Naam geautoriseerd persoon:<br/><br/></td>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">Ingevulde werkbon a.u.b. retourneren naar <a href="ITHelpdesk@aa-fm.com">ITHelpdesk@aa-fm.com</a><br/>
<td colspan="2" style="text-align:center">Mits u <u>geen</u> toegang heeft tot Facilitor kunt u de ingevulde opdracht retourneren naar <a href="ITHelpdesk@aa-fm.com">ITHelpdesk@aa-fm.com</a><br/>
Voor nadere informatie kunt u contact opnemen met de Servicedesk: Tel nr: 00 31 (0)40 233 2860</td>
</tr>
<tr>
@@ -1687,6 +1687,97 @@ function startAutoRefreshTim() {
</body>
</html>
</xsl:if>
<xsl:if test="@view='aait_v_rap_bezoekers' or @view='AAIT_V_RAP_BEZOEKERS'">
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans:300normal,300italic,200italic"/>
<style>
.title {
font-family: 'Open Sans', serif;
font-style: italic;
font-weight: 300;
font-size: 20pt;
}
th {
font-family: 'Open Sans', serif;
font-style: normal;
font-weight: 300;
font-size: 22pt;
background-color:#FFFFFF;
border-bottom-style: solid;
border-bottom-width:2px;
border-bottom-color:#000000;
text-align: left;
}
td .normal {
font-family: 'Open Sans', serif;
font-style: normal;
font-weight: 300;
font-size: 22pt;
height: 100px;
}
</style>
<script language="javascript">var count=1;
function startAutoRefreshTim() {
// verwijder scrollbar
parent.document.body.style.overflow="hidden";
return;
}</script>
</head>
<xsl:variable name="bezoekers">
<xsl:for-each select="rapport_data/data_row">
<xsl:sort select="TIJD_VAN"/>
<xsl:sort select="ITEM_KEY"/>
<xsl:if test="OFFSET &gt; -60 and OFFSET &lt; 30 and BEZOEK_STATUS='expected' and BEZOEKER != ''">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<body topmargin="5" leftmargin="5" onLoad="startAutoRefreshTim();parent.Activate();">
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td colspan="2" class="title" style="background-image:url('../../cust/aait/infobord/vis_head_back.png'); background-repeat: repeat-x;">
<img src="../../cust/aait/infobord/vis_logo.png"/>Verwelkomt
</td>
</tr>
<tr height="100%">
<td VALIGN="top" style="background-image:url('../../cust/aait/infobord/vis_left_back.png'); background-repeat: repeat-y" height="100%">
<img src="../../cust/aait/infobord/vis_left.png"/>
</td>
<td width="100%" valign="top" style="padding: 40px 40px; ">
<table width="100%">
<tr><td colspan="3" class="title"></td></tr>
<tr>
<th>De heer/mevrouw</th>
<th>Aankomsttijd</th>
<th>Uw gastheer/vrouw</th>
</tr>
<xsl:for-each select="msxml:node-set($bezoekers)/data_row">
<tr>
<td class="normal"><xsl:value-of select="BEZOEKER"/><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;<i><xsl:value-of select="BEDRIJF"/></i>
</td>
<td class="normal"><xsl:value-of select="TIJD_VAN"/>
</td>
<td class="normal"><xsl:value-of select="GASTHEER"/>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
<input type="hidden" name="timeID2" value="-1"/>
</body>
</html>
</xsl:if>
<xsl:if test="@view='aait_v_rap_factuur_goedkeuring' or @view='AAIT_V_RAP_FACTUUR_GOEDKEURING'">
<html>
<head>
@@ -1924,4 +2015,8 @@ function startAutoRefreshTim() {
</html>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\..\Branch522\TEMP\AAITrapport541.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->