first commit
This commit is contained in:
460
MessagesMap/ReportKlimaautomatik.aspx
Normal file
460
MessagesMap/ReportKlimaautomatik.aspx
Normal file
@@ -0,0 +1,460 @@
|
||||
|
||||
<%@ Page Title="TALAS" Language="C#" MasterPageFile="~/Standard.Master" AutoEventWireup="true" CodeBehind="ReportKlimaautomatik.aspx.cs" Inherits="TALAS_V5.MessagesMap.ReportKlimaautomatik" %>
|
||||
<%@ 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">
|
||||
<asp:ScriptManager ID="scrMan2" runat="server" EnablePageMethods="true" />
|
||||
|
||||
<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') {
|
||||
ASPxLoadingPanel.SetText("Detailseite wird geladen...");
|
||||
ASPxLoadingPanel.Show();
|
||||
s.GetRowValues(visibleIndex, 'LinkData', GoModul);
|
||||
}
|
||||
|
||||
if (e.buttonID == 'Fan') {
|
||||
s.GetRowValues(visibleIndex, 'IdLD', SetFan);
|
||||
}
|
||||
|
||||
if (e.buttonID == 'Heater') {
|
||||
s.GetRowValues(visibleIndex, 'IdLD', SetHeater);
|
||||
}
|
||||
|
||||
if (e.buttonID == 'Auto') {
|
||||
s.GetRowValues(visibleIndex, 'IdLD', SetAuto);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function GoModul(linkData) {
|
||||
location.href = linkData+"&back=40";
|
||||
}
|
||||
|
||||
|
||||
function SetFan(idLD) {
|
||||
PageMethods.SetFan(idLD, OnSucsessFan, OnFailure);
|
||||
}
|
||||
|
||||
function SetHeater(idLD) {
|
||||
PageMethods.SetHeater(idLD, OnSucsessHeater, OnFailure);
|
||||
}
|
||||
|
||||
function SetAuto(idLD) {
|
||||
PageMethods.SetAuto(idLD, OnSucsessAuto, OnFailure);
|
||||
}
|
||||
|
||||
|
||||
function OnSucsessFan(result) {
|
||||
if (result == 1) {
|
||||
alert("Der Lüfter wird sofort ausgeschaltet.")
|
||||
}
|
||||
else if (result == 2) {
|
||||
alert("Der Lüfter wird sofort eingeschaltet.")
|
||||
|
||||
}
|
||||
else if (result == 3) {
|
||||
alert("Kein Zugriff")
|
||||
}
|
||||
else
|
||||
alert("Der Schaltbefehl konnte nicht ausgeführt werden!");
|
||||
}
|
||||
|
||||
function OnSucsessHeater(result) {
|
||||
if (result == 1) {
|
||||
alert("Die Heizung wird sofort ausgeschaltet.")
|
||||
}
|
||||
else if (result == 2) {
|
||||
alert("Die Heizung wird sofort eingeschaltet.")
|
||||
|
||||
}
|
||||
else if (result == 3) {
|
||||
alert("Kein Zugriff")
|
||||
}
|
||||
else
|
||||
alert("Der Schaltbefehl konnte nicht ausgeführt werden!");
|
||||
}
|
||||
|
||||
|
||||
function OnSucsessAuto(result) {
|
||||
if (result == 1) {
|
||||
alert("Die Automatik wird sofort ausgeschaltet.")
|
||||
}
|
||||
else if (result == 2) {
|
||||
alert("Die Automatik wird sofort eingeschaltet.")
|
||||
|
||||
}
|
||||
else if (result == 3) {
|
||||
alert("Kein Zugriff")
|
||||
}
|
||||
else
|
||||
alert("Der Schaltbefehl konnte nicht ausgeführt werden!");
|
||||
}
|
||||
|
||||
|
||||
function OnFailure(error) {
|
||||
alert("Der Schaltbefehl konnte nicht ausgeführt werden!");
|
||||
}
|
||||
|
||||
</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 />
|
||||
<b>Meldestationen mit Klimasteuerungen:</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" OnCustomCallback="ASPxGvKlima_CustomCallback">
|
||||
<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="Gebiet" 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="Gerät" FieldName="Device" VisibleIndex="3" >
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Raumtemperatur" CellStyle-Paddings-PaddingRight="4" FieldName="TempIst" VisibleIndex="4" Width="100px" >
|
||||
<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="rel. Feuchtigkeit" CellStyle-Paddings-PaddingRight="4" FieldName="HumIst" VisibleIndex="5" Width="100px" >
|
||||
<PropertiesTextEdit DisplayFormatString="{0:F2} %">
|
||||
<Style Font-Bold="True">
|
||||
</Style>
|
||||
</PropertiesTextEdit>
|
||||
<Settings AllowSort="True" />
|
||||
<CellStyle>
|
||||
<Paddings PaddingRight="4px"></Paddings>
|
||||
</CellStyle>
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Heizungsautomatik" Name="colAuto" PropertiesTextEdit-ClientInstanceName="auto1" CellStyle-Paddings-PaddingRight="4" CellStyle-HorizontalAlign="Center" FieldName="Automatik" VisibleIndex="6" Width="140px" >
|
||||
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
|
||||
<CellStyle HorizontalAlign="Center">
|
||||
<Paddings PaddingRight="4px"></Paddings>
|
||||
</CellStyle>
|
||||
|
||||
<Columns>
|
||||
<dx:GridViewCommandColumn Caption="Betrieb" ShowInCustomizationForm="True" VisibleIndex="0" ButtonRenderMode="Image" ButtonType="Image">
|
||||
<CustomButtons>
|
||||
<dx:GridViewCommandColumnCustomButton ID="Auto">
|
||||
<Image ToolTip="Heizungsautomatik ein-/ausschalten" Url="~/IconsFlat/automatic.png">
|
||||
</Image>
|
||||
</dx:GridViewCommandColumnCustomButton>
|
||||
</CustomButtons>
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
</dx:GridViewCommandColumn>
|
||||
</Columns>
|
||||
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Solltemperatur" CellStyle-Paddings-PaddingRight="4" FieldName="TempSoll" VisibleIndex="7" Width="100px" >
|
||||
<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="max. Temperatur" CellStyle-Paddings-PaddingRight="4" FieldName="TempMax" VisibleIndex="8" Width="100px" >
|
||||
<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="Heizung" CellStyle-Paddings-PaddingRight="4" CellStyle-HorizontalAlign="Center" FieldName="Heater" VisibleIndex="9" Width="100px" >
|
||||
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
|
||||
<CellStyle HorizontalAlign="Center">
|
||||
<Paddings PaddingRight="4px"></Paddings>
|
||||
</CellStyle>
|
||||
<Columns>
|
||||
<dx:GridViewCommandColumn VisibleIndex="0" Caption="Betrieb" Name="Betrieb" ButtonRenderMode="Image" ButtonType="Image">
|
||||
<CustomButtons>
|
||||
<dx:GridViewCommandColumnCustomButton ID="Heater" >
|
||||
<Image Height="32px" Url="~/IconsFlat/heater.png" Width="32px" ToolTip="Heizung manuell ein-/ausschalten">
|
||||
</Image>
|
||||
</dx:GridViewCommandColumnCustomButton>
|
||||
</CustomButtons>
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
</dx:GridViewCommandColumn>
|
||||
</Columns>
|
||||
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Lüfter" CellStyle-Paddings-PaddingRight="4" CellStyle-HorizontalAlign="Center" FieldName="Fan" VisibleIndex="10" Width="100px" >
|
||||
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
|
||||
<CellStyle HorizontalAlign="Center">
|
||||
<Paddings PaddingRight="4px"></Paddings>
|
||||
</CellStyle>
|
||||
<Columns>
|
||||
<dx:GridViewCommandColumn VisibleIndex="0" Caption="Betrieb" ButtonRenderMode="Image" ButtonType="Image">
|
||||
<CustomButtons>
|
||||
<dx:GridViewCommandColumnCustomButton ID="Fan">
|
||||
<Image Height="32px" Url="~/IconsFlat/fan.png" Width="32px" ToolTip="Lüfter manuell ein-/ausschalten">
|
||||
</Image>
|
||||
</dx:GridViewCommandColumnCustomButton>
|
||||
</CustomButtons>
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
</dx:GridViewCommandColumn>
|
||||
</Columns>
|
||||
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Link" FieldName="LinkData" Visible="false" VisibleIndex="18" >
|
||||
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewCommandColumn Caption="Geräteseite" ShowDeleteButton="False" ShowEditButton="True" VisibleIndex="19" ButtonRenderMode="Image" ButtonType="Image" Width="96px">
|
||||
<CustomButtons>
|
||||
|
||||
<dx:GridViewCommandColumnCustomButton ID="Detail">
|
||||
<Image ToolTip="Zur Geräteseite" Url="~/IconsFlat/devicesite.png">
|
||||
</Image>
|
||||
</dx:GridViewCommandColumnCustomButton>
|
||||
|
||||
|
||||
|
||||
</CustomButtons>
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
<CellStyle HorizontalAlign="Center">
|
||||
</CellStyle>
|
||||
</dx:GridViewCommandColumn>
|
||||
|
||||
<dx:GridViewDataDateColumn Caption="Letzte Wertänderung" FieldName="lastActual" CellStyle-HorizontalAlign="Center" VisibleIndex="18" Width="120px" ToolTip="Wenn die letzte Wertänderung der Temperatur 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>
|
||||
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="IdLD" FieldName="IdLD" VisibleIndex="40" >
|
||||
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
</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="GetKlimaAutomatik" TypeName="TalasLibary.ReportsClass" >
|
||||
<SelectParameters>
|
||||
|
||||
</SelectParameters>
|
||||
</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>
|
||||
|
||||
|
||||
|
||||
|
||||
<dx:ASPxTimer ID="ASPxTimer1" runat="server" Interval="5000" ClientIDMode="Static"
|
||||
ClientInstanceName="Timer1" >
|
||||
|
||||
<ClientSideEvents Tick="function(s, e) {
|
||||
gridKlima.PerformCallback();
|
||||
}" />
|
||||
</dx:ASPxTimer>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dx:aspxloadingpanel ID="ASPxLoadingPanel" ClientIDMode="Static" ClientInstanceName="ASPxLoadingPanel" runat="server" Theme="TALAS5Standard" xmlns:dx="devexpress.web">
|
||||
</dx:aspxloadingpanel>
|
||||
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user