420 lines
19 KiB
Plaintext
420 lines
19 KiB
Plaintext
|
|
<%@ Page Title="TALAS" Language="C#" MasterPageFile="~/Standard.Master" AutoEventWireup="true" CodeBehind="ReportKlima.aspx.cs" Inherits="TALAS_V5.MessagesMap.ReportKlima" %>
|
|
<%@ Register assembly="DevExpress.Web.v19.2, Version=19.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web" tagprefix="dx" %>
|
|
|
|
<asp:Content ID="NaviContent" ContentPlaceHolderID="NaviContent" runat="server">
|
|
<dx:ASPxMenu ID="ASPxMenuBaseData" runat="server" Theme="TALAS5Standard" Width="100%" HorizontalAlign="Left" ItemAutoWidth="False" EnableTheming="True" >
|
|
<ClientSideEvents ItemClick="function(s, e) {
|
|
OnNaviClick(s,e)
|
|
}" />
|
|
</dx:ASPxMenu>
|
|
|
|
<dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" ClientIDMode="Static" ClientInstanceName="ASPxLoadingPanel1" runat="server"></dx:ASPxLoadingPanel>
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
<script type="text/javascript">
|
|
|
|
function OnNaviClick(sender, e)
|
|
{
|
|
if (e.item.name == 'Aktueller Stand Kabelüberwachungen')
|
|
{
|
|
ASPxLoadingPanel1.SetText("Lade Kabelüberwachungsbericht...");
|
|
ASPxLoadingPanel1.Show();
|
|
}
|
|
else if (e.item.name == 'Meldungshistorie')
|
|
{
|
|
ASPxLoadingPanel1.SetText("Lade historische Meldungen...");
|
|
ASPxLoadingPanel1.Show();
|
|
}
|
|
else if (e.item.name == 'Meldungsstammdaten')
|
|
{
|
|
ASPxLoadingPanel1.SetText("Erstelle Meldungstammdaten...");
|
|
ASPxLoadingPanel1.Show();
|
|
}
|
|
else
|
|
{
|
|
ASPxLoadingPanel1.Show();
|
|
}
|
|
}
|
|
|
|
function grid_CustomButtonClick(s, e)
|
|
{
|
|
visibleIndex = e.visibleIndex;
|
|
if (e.buttonID == 'Detail' || e.buttonID == 'DetailHum') {
|
|
ASPxLoadingPanel.SetText("Detailseite wird geladen...");
|
|
ASPxLoadingPanel.Show();
|
|
s.GetRowValues(visibleIndex, 'LinkData', GoModul);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
function GoModul(linkData) {
|
|
location.href = linkData+"&back=20";
|
|
}
|
|
|
|
</script>
|
|
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Create four equal columns that floats next to each other */
|
|
.column1 {
|
|
float: left;
|
|
width: 50%;
|
|
padding: 4px;
|
|
}
|
|
|
|
.column2 {
|
|
float: left;
|
|
width: 50%;
|
|
padding: 4px;
|
|
}
|
|
|
|
/* Clear floats after the columns */
|
|
.row:after {
|
|
content: "";
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
|
|
/* On screens that are 600px wide or less, make the columns stack on top of each other instead of next to each other */
|
|
@media screen and (max-width: 1400px) {
|
|
.column1 {
|
|
width: 99%;
|
|
}
|
|
.column2 {
|
|
width: 99%;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
<link rel="stylesheet" href="../Navi.css" type="text/css" media="screen" />
|
|
<table class="naviTab">
|
|
<tr>
|
|
<td class="naviTab">
|
|
<a href="Messages.aspx" class="navi">Meldungen</a> > 
|
|
</td>
|
|
<td class="naviTab">
|
|
<dx:ASPxLabel CssClass="textHeader" ID="ASPxLabelReport1" runat="server" Text="Berichte"></dx:ASPxLabel> > 
|
|
</td>
|
|
<td class="naviTab">
|
|
<dx:ASPxLabel CssClass="textHeader" ID="ASPxLabelReport2" runat="server" Text="Klimadaten"></dx:ASPxLabel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div class="textTitle">
|
|
<dx:ASPxLabel CssClass="textTitle" ID="ASPxLabelLocationTitle" runat="server" Text="Klimadaten"></dx:ASPxLabel>
|
|
</div>
|
|
|
|
<br />
|
|
<table style="font-family:'Segoe UI';">
|
|
<tr>
|
|
<td>
|
|
Sachgebiet:
|
|
</td>
|
|
<td style="padding-left:6px; padding-top:4px;">
|
|
<dx:ASPxComboBox ID="ASPxComboBox1" runat="server" DataSourceID="ObjectDataSourceSB" Theme="TALAS5Standard" TextField="Name" ValueField="ID" ValueType="System.Int32"></dx:ASPxComboBox>
|
|
</td>
|
|
<td style="padding-left:6px;">
|
|
<dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aktualisieren" Theme="TALAS5Standard" OnClick="ASPxButton1_Click"></dx:ASPxButton>
|
|
</td>
|
|
<td style="padding-left:6px;">
|
|
</td>
|
|
<td style="padding-left:6px;">
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<br />
|
|
<b>Temperaturen:</b><br />
|
|
<dx:ASPxGridView ID="ASPxGvKlima" ClientInstanceName="gridKlima" ClientIDMode="Static" runat="server" DataSourceID="ObjectDataSourceKlima" OnHtmlRowCreated="ASPxGvKlima_HtmlRowCreated" Theme="TALAS5Standard" AutoGenerateColumns="False" EnablePagingGestures="False" Width="99%" SettingsPager-PageSize="1000" SettingsPager-Mode="EndlessPaging" SettingsPager-Visible="False">
|
|
<Toolbars>
|
|
<dx:GridViewToolbar Position="Bottom" ItemAlign="Right">
|
|
<SettingsAdaptivity Enabled="true" EnableCollapseRootItemsToIcons="true" />
|
|
<Items>
|
|
<dx:GridViewToolbarItem Command="ExportToPdf" />
|
|
<dx:GridViewToolbarItem Command="ExportToXlsx" />
|
|
<dx:GridViewToolbarItem Command="ExportToDocx" />
|
|
<dx:GridViewToolbarItem Command="ExportToCsv" />
|
|
</Items>
|
|
</dx:GridViewToolbar>
|
|
</Toolbars>
|
|
<StylesExport>
|
|
<Default Font-Names="Arial">
|
|
</Default>
|
|
<Header Font-Bold="True" Font-Names="Arial">
|
|
</Header>
|
|
<Cell Font-Names="Arial">
|
|
</Cell>
|
|
<Title Font-Bold="True" Font-Names="Arial" Font-Size="12pt"></Title>
|
|
</StylesExport>
|
|
<SettingsPager PageSize="500" Mode="ShowAllRecords">
|
|
</SettingsPager>
|
|
<Settings ShowFilterBar="Auto" ShowFilterRowMenu="True" ShowFooter="False" ShowGroupPanel="True" />
|
|
<SettingsResizing ColumnResizeMode="NextColumn" />
|
|
<SettingsPopup>
|
|
<HeaderFilter MinHeight="140px"></HeaderFilter>
|
|
</SettingsPopup>
|
|
<SettingsSearchPanel Visible="True" />
|
|
<SettingsExport EnableClientSideExportAPI="True" ExcelExportMode="WYSIWYG" Landscape="true" FileName="TALAS_Klimabericht_Temperaturen" PaperName="Temperaturen">
|
|
</SettingsExport>
|
|
|
|
<ClientSideEvents CustomButtonClick="function(s,e) {
|
|
grid_CustomButtonClick(s, e)
|
|
}">
|
|
</ClientSideEvents>
|
|
|
|
<Columns>
|
|
|
|
<dx:GridViewDataTextColumn Caption="Sachgebiet" FieldName="Gebiet" VisibleIndex="0" >
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Standort" FieldName="Standort" VisibleIndex="1" >
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Bereich" FieldName="Bereich" VisibleIndex="2" >
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Sensor" FieldName="Sensor" VisibleIndex="3" >
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Temperatur" CellStyle-Paddings-PaddingRight="4" FieldName="Wert" VisibleIndex="5" Width="70px" >
|
|
<PropertiesTextEdit DisplayFormatString="{0:F2} °C">
|
|
<Style Font-Bold="True">
|
|
</Style>
|
|
</PropertiesTextEdit>
|
|
<Settings AllowSort="True" />
|
|
|
|
<CellStyle>
|
|
<Paddings PaddingRight="4px"></Paddings>
|
|
</CellStyle>
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Alarme" FieldName="Alarms" VisibleIndex="8" >
|
|
<PropertiesTextEdit EncodeHtml="False">
|
|
</PropertiesTextEdit>
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Link" Visible="false" FieldName="LinkData" VisibleIndex="9" >
|
|
<PropertiesTextEdit EncodeHtml="False">
|
|
</PropertiesTextEdit>
|
|
</dx:GridViewDataTextColumn>
|
|
|
|
<dx:GridViewCommandColumn Caption="Aktionen" ShowDeleteButton="False" ShowEditButton="True" VisibleIndex="22" ButtonRenderMode="Image" ButtonType="Image" Width="96px">
|
|
<CustomButtons>
|
|
|
|
<dx:GridViewCommandColumnCustomButton ID="Detail">
|
|
<Image ToolTip="Zur Detailsseite" IconID="scheduling_timelineview_16x16gray">
|
|
</Image>
|
|
</dx:GridViewCommandColumnCustomButton>
|
|
|
|
</CustomButtons>
|
|
<HeaderStyle HorizontalAlign="Center" />
|
|
</dx:GridViewCommandColumn>
|
|
|
|
<dx:GridViewDataDateColumn Caption="Letzte Wertänderung" FieldName="lastActual" VisibleIndex="21" Width="120px" ToolTip="Wenn die letzte Wertänderung länger als ein ganzer Tag her ist wird das Feld rot eingefärbt.">
|
|
<PropertiesDateEdit DisplayFormatString="dd.MM.yy HH:mm:ss 'Uhr'">
|
|
</PropertiesDateEdit>
|
|
</dx:GridViewDataDateColumn>
|
|
|
|
</Columns>
|
|
|
|
|
|
<FormatConditions>
|
|
|
|
|
|
<dx:GridViewFormatConditionHighlight Expression="[lastActual] < LocalDateTimeYesterday()" FieldName="lastActual" ShowInColumn="Letzte Wertänderung">
|
|
</dx:GridViewFormatConditionHighlight>
|
|
|
|
|
|
</FormatConditions>
|
|
|
|
|
|
|
|
<Styles>
|
|
<Cell Font-Size="8pt">
|
|
<Paddings Padding="4px" PaddingLeft="4px" PaddingRight="2px" />
|
|
</Cell>
|
|
</Styles>
|
|
</dx:ASPxGridView>
|
|
|
|
<asp:ObjectDataSource ID="ObjectDataSourceKlima" runat="server" SelectMethod="GetKlima" TypeName="TalasLibary.ReportsClass" >
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="ASPxComboBox1" DefaultValue="0" Name="filterDistrict" PropertyName="Value" Type="Int32" />
|
|
<asp:Parameter DefaultValue="False" Name="wet" Type="Boolean" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
|
|
<asp:ObjectDataSource ID="ObjectDataSourceSB" runat="server" SelectMethod="GetLayer1" TypeName="TalasLibary.ReportsClass" >
|
|
</asp:ObjectDataSource>
|
|
|
|
<dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="ASPxGvKlima" Landscape="True" FileName="Klimabericht_Temperaturen" PaperName="Temperaturen" ReportHeader="TALAS V5 Temperaturen">
|
|
<Styles>
|
|
<Preview Font-Names="Arial" Font-Size="12px">
|
|
</Preview>
|
|
<Title Font-Names="Arial" Font-Size="12px"></Title>
|
|
<Header Font-Names="Arial" Font-Size="8px">
|
|
</Header>
|
|
<Cell Font-Names="Arial" Font-Size="8px">
|
|
</Cell>
|
|
</Styles>
|
|
<PageHeader Center="TALAS V5 Klimabericht: Temperaturen">
|
|
</PageHeader>
|
|
</dx:ASPxGridViewExporter>
|
|
|
|
|
|
|
|
<br />
|
|
<b>Feuchtigkeit:</b>
|
|
<dx:ASPxGridView ID="ASPxGvHumidity" ClientInstanceName="gridHumidity" ClientIDMode="Static" runat="server" DataSourceID="ObjectDataSourceHumidity" OnHtmlRowCreated="ASPxGvHumidity_HtmlRowCreated" Theme="TALAS5Standard" AutoGenerateColumns="False" EnablePagingGestures="False" Width="99%" SettingsPager-PageSize="1000" SettingsPager-Mode="EndlessPaging" SettingsPager-Visible="False">
|
|
<Toolbars>
|
|
<dx:GridViewToolbar Position="Bottom" ItemAlign="Right">
|
|
<SettingsAdaptivity Enabled="true" EnableCollapseRootItemsToIcons="true" />
|
|
<Items>
|
|
<dx:GridViewToolbarItem Command="ExportToPdf" />
|
|
<dx:GridViewToolbarItem Command="ExportToXlsx" />
|
|
<dx:GridViewToolbarItem Command="ExportToDocx" />
|
|
<dx:GridViewToolbarItem Command="ExportToCsv" />
|
|
</Items>
|
|
</dx:GridViewToolbar>
|
|
</Toolbars>
|
|
<StylesExport>
|
|
<Default Font-Names="Arial">
|
|
</Default>
|
|
<Header Font-Bold="True" Font-Names="Arial">
|
|
</Header>
|
|
<Cell Font-Names="Arial">
|
|
</Cell>
|
|
<Title Font-Bold="True" Font-Names="Arial" Font-Size="12pt"></Title>
|
|
</StylesExport>
|
|
<SettingsPager PageSize="500" Mode="ShowAllRecords">
|
|
</SettingsPager>
|
|
<Settings ShowFilterBar="Auto" ShowFilterRowMenu="True" ShowFooter="False" ShowGroupPanel="True" />
|
|
<SettingsResizing ColumnResizeMode="NextColumn" />
|
|
<SettingsPopup>
|
|
<HeaderFilter MinHeight="140px"></HeaderFilter>
|
|
</SettingsPopup>
|
|
<SettingsSearchPanel Visible="True" />
|
|
<SettingsExport EnableClientSideExportAPI="True" ExcelExportMode="WYSIWYG" Landscape="true" FileName="TALAS_Klimabericht_Feuchte" PaperName="Feuchte">
|
|
</SettingsExport>
|
|
|
|
<ClientSideEvents CustomButtonClick="function(s,e) {
|
|
grid_CustomButtonClick(s, e)
|
|
}">
|
|
</ClientSideEvents>
|
|
|
|
<Columns>
|
|
|
|
<dx:GridViewDataTextColumn Caption="Sachgebiet" FieldName="Gebiet" VisibleIndex="0" >
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Standort" FieldName="Standort" VisibleIndex="1" >
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Bereich" FieldName="Bereich" VisibleIndex="2" >
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Sensor" FieldName="Sensor" VisibleIndex="3" >
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Feuchtigkeit" CellStyle-Paddings-PaddingRight="4" FieldName="Wert" VisibleIndex="5" Width="70px" >
|
|
<PropertiesTextEdit DisplayFormatString="{0:F2} %">
|
|
<Style Font-Bold="True">
|
|
</Style>
|
|
</PropertiesTextEdit>
|
|
<Settings AllowSort="True" />
|
|
|
|
<CellStyle>
|
|
<Paddings PaddingRight="4px"></Paddings>
|
|
</CellStyle>
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Alarme" FieldName="Alarms" VisibleIndex="8" >
|
|
<PropertiesTextEdit EncodeHtml="False">
|
|
</PropertiesTextEdit>
|
|
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
|
</dx:GridViewDataTextColumn>
|
|
<dx:GridViewDataTextColumn Caption="Link" Visible="false" FieldName="LinkData" VisibleIndex="9" >
|
|
<PropertiesTextEdit EncodeHtml="False">
|
|
</PropertiesTextEdit>
|
|
</dx:GridViewDataTextColumn>
|
|
|
|
<dx:GridViewCommandColumn Caption="Aktionen" ShowDeleteButton="False" ShowEditButton="True" VisibleIndex="22" ButtonRenderMode="Image" ButtonType="Image" Width="96px">
|
|
<CustomButtons>
|
|
|
|
<dx:GridViewCommandColumnCustomButton ID="DetailHum">
|
|
<Image ToolTip="Zur Detailsseite" IconID="scheduling_timelineview_16x16gray">
|
|
</Image>
|
|
</dx:GridViewCommandColumnCustomButton>
|
|
|
|
</CustomButtons>
|
|
<HeaderStyle HorizontalAlign="Center" />
|
|
</dx:GridViewCommandColumn>
|
|
|
|
<dx:GridViewDataDateColumn Caption="Letzte Wertänderung" FieldName="lastActual" VisibleIndex="21" Width="120px" ToolTip="Wenn die letzte Wertänderung länger als ein ganzer Tag her ist wird das Feld rot eingefärbt.">
|
|
<PropertiesDateEdit DisplayFormatString="dd.MM.yy HH:mm:ss 'Uhr'">
|
|
</PropertiesDateEdit>
|
|
</dx:GridViewDataDateColumn>
|
|
|
|
</Columns>
|
|
|
|
|
|
<FormatConditions>
|
|
|
|
|
|
<dx:GridViewFormatConditionHighlight Expression="[lastActual] < LocalDateTimeYesterday()" FieldName="lastActual" ShowInColumn="Letzte Wertänderung">
|
|
</dx:GridViewFormatConditionHighlight>
|
|
|
|
|
|
</FormatConditions>
|
|
|
|
|
|
|
|
<Styles>
|
|
<Cell Font-Size="8pt">
|
|
<Paddings Padding="4px" PaddingLeft="4px" PaddingRight="2px" />
|
|
</Cell>
|
|
</Styles>
|
|
</dx:ASPxGridView>
|
|
|
|
<asp:ObjectDataSource ID="ObjectDataSourceHumidity" runat="server" SelectMethod="GetKlima" TypeName="TalasLibary.ReportsClass" >
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="ASPxComboBox1" DefaultValue="0" Name="filterDistrict" PropertyName="Value" Type="Int32" />
|
|
<asp:Parameter DefaultValue="True" Name="wet" Type="Boolean" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
|
|
<dx:ASPxGridViewExporter ID="ASPxGridViewExporter2" runat="server" GridViewID="ASPxGvHumidity" Landscape="True" FileName="Klimabericht_Feuchtigkeit" PaperName="Feuchte" ReportHeader="TALAS V5 Feuchtigkeiten">
|
|
<Styles>
|
|
<Preview Font-Names="Arial" Font-Size="12px">
|
|
</Preview>
|
|
<Title Font-Names="Arial" Font-Size="12px"></Title>
|
|
<Header Font-Names="Arial" Font-Size="8px">
|
|
</Header>
|
|
<Cell Font-Names="Arial" Font-Size="8px">
|
|
</Cell>
|
|
</Styles>
|
|
<PageHeader Center="TALAS V5 Klimabericht: Feuchtigkeit">
|
|
</PageHeader>
|
|
</dx:ASPxGridViewExporter>
|
|
|
|
|
|
|
|
|
|
|
|
<dx:aspxloadingpanel ID="ASPxLoadingPanel" ClientIDMode="Static" ClientInstanceName="ASPxLoadingPanel" runat="server" Theme="TALAS5Standard" xmlns:dx="devexpress.web">
|
|
</dx:aspxloadingpanel>
|
|
|
|
<div>
|
|
|
|
</div>
|
|
</asp:Content> |