Files
nodeMap/MessagesMap/ReportKue1.aspx
2024-04-27 15:47:36 +02:00

302 lines
12 KiB
Plaintext

<%@ Page Title="TALAS" Language="C#" MasterPageFile="~/Standard.Master" AutoEventWireup="true" CodeBehind="ReportKue1.aspx.cs" Inherits="TALAS_V5.MessagesMap.ReportKue1" %>
<%@ 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();
}
}
</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>&nbsp>&nbsp
</td>
<td class="naviTab">
<dx:ASPxLabel CssClass="textHeader" ID="ASPxLabelReport1" runat="server" Text="Berichte"></dx:ASPxLabel>&nbsp>&nbsp
</td>
<td class="naviTab">
<dx:ASPxLabel CssClass="textHeader" ID="ASPxLabelReport2" runat="server" Text="Aktueller Stand Kabelüberwachungen"></dx:ASPxLabel>
</td>
</tr>
</table>
<div class="textTitle">
<dx:ASPxLabel CssClass="textTitle" ID="ASPxLabelLocationTitle" runat="server" Text="Aktueller Stand Kabelüberwachungen"></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;">
&nbsp;</td>
<td style="padding-left:6px;">
&nbsp;</td>
</tr>
</table>
<br />
<dx:ASPxGridView ID="ASPxGvMessages" ClientInstanceName="gridMessages" ClientIDMode="Static" runat="server" DataSourceID="ObjectDataSourceKue" OnHtmlRowCreated="ASPxGvMessages_HtmlRowCreated" Theme="TALAS5Standard" AutoGenerateColumns="False" EnablePagingGestures="False" Width="99%" >
<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>
<Header Font-Bold="True" Font-Names="Arial">
</Header>
<Cell Font-Names="Arial">
</Cell>
</StylesExport>
<SettingsPager PageSize="500" Mode="ShowAllRecords">
</SettingsPager>
<Settings ShowFilterBar="Auto" ShowFilterRowMenu="True" ShowFooter="True" ShowGroupPanel="True" UseFixedTableLayout="True" VerticalScrollableHeight="480" VerticalScrollBarMode="Auto" VerticalScrollBarStyle="Virtual" />
<SettingsResizing ColumnResizeMode="NextColumn" />
<SettingsPopup>
<HeaderFilter MinHeight="140px"></HeaderFilter>
</SettingsPopup>
<SettingsSearchPanel Visible="True" />
<SettingsExport EnableClientSideExportAPI="True" ExcelExportMode="WYSIWYG" Landscape="true" FileName="TALAS_Kabelmesswerte">
</SettingsExport>
<Columns>
<dx:GridViewDataTextColumn Caption="Sachgebiet" FieldName="District" VisibleIndex="1" >
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Gerät" FieldName="Shortname" VisibleIndex="3" >
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Modul" FieldName="Typ" Width="100px" VisibleIndex="4" >
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Kabelüberwachung" FieldName="Name" VisibleIndex="5" >
<Settings AllowSort="True" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Slot" FieldName="Slot" VisibleIndex="6" Width="30px" >
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Messwert" FieldName="Iso" VisibleIndex="7" Width="70px" >
<PropertiesTextEdit DisplayFormatString="F1">
</PropertiesTextEdit>
<Settings AllowSort="True" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Einheit" FieldName="Unit" VisibleIndex="8" Width="50px" >
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Grenzwert" FieldName="Grenz" VisibleIndex="9" Width="80px" >
<PropertiesTextEdit DisplayFormatString="F1">
</PropertiesTextEdit>
<Settings AllowSort="True" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Grenzsollwert" FieldName="Soll" VisibleIndex="10" Width="80px" >
<PropertiesTextEdit DisplayFormatString="F1">
</PropertiesTextEdit>
<Settings AllowSort="True" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Einheit Grenzw." FieldName="UnitLimit" VisibleIndex="11" Width="96px" >
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Schleife [kOhm]" FieldName="Schleife" VisibleIndex="12" Width="90px" >
<PropertiesTextEdit DisplayFormatString="F2">
</PropertiesTextEdit>
<Settings AllowSort="True" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Meldung aktiv" CellStyle-HorizontalAlign="Center" ToolTip="Wenn nicht aktiv werden keine Alarme übermittelt!" FieldName="Active" VisibleIndex="13" Width="100px" >
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
<CellStyle HorizontalAlign="Center"></CellStyle>
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="TDR aktiv" FieldName="Tdr" CellStyle-HorizontalAlign="Center" VisibleIndex="13" Width="80px" >
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
<CellStyle HorizontalAlign="Center"></CellStyle>
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="KVz aktiv" CellStyle-HorizontalAlign="Center" FieldName="Kvz" VisibleIndex="14" Width="80px" >
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
<CellStyle HorizontalAlign="Center"></CellStyle>
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Version" CellStyle-HorizontalAlign="Center" Width="70px" FieldName="Version" VisibleIndex="15" >
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
<CellStyle HorizontalAlign="Center"></CellStyle>
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Meldungen" FieldName="Messages" VisibleIndex="16" >
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="Bemerkung" FieldName="Description" Width="80px" VisibleIndex="17" >
</dx:GridViewDataTextColumn>
</Columns>
<Styles>
<Cell Font-Size="8pt">
<Paddings Padding="0px" PaddingLeft="4px" PaddingRight="2px" />
</Cell>
<CommandColumn Border-BorderStyle="None">
<Paddings PaddingBottom="0px" PaddingTop="0px" />
</CommandColumn>
</Styles>
</dx:ASPxGridView>
<asp:ObjectDataSource ID="ObjectDataSourceKue" runat="server" SelectMethod="GetKueActual" TypeName="TalasLibary.ReportsClass" >
<SelectParameters>
<asp:ControlParameter ControlID="ASPxComboBox1" DefaultValue="0" Name="district" PropertyName="Value" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="ObjectDataSourceSB" runat="server" SelectMethod="GetLayer1" TypeName="TalasLibary.ReportsClass" >
</asp:ObjectDataSource>
<dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="ASPxGvMessages" Landscape="True">
<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">
</PageHeader>
</dx:ASPxGridViewExporter>
<div>
</div>
</asp:Content>