first commit
This commit is contained in:
305
MessagesMap/ReportMessage1.aspx
Normal file
305
MessagesMap/ReportMessage1.aspx
Normal file
@@ -0,0 +1,305 @@
|
||||
|
||||
<%@ Page Title="TALAS" Language="C#" MasterPageFile="~/Standard.Master" AutoEventWireup="true" CodeBehind="ReportMessage1.aspx.cs" Inherits="TALAS_V5.MessagesMap.Report1" %>
|
||||
<%@ 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> > 
|
||||
</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="Historische Meldungen"></dx:ASPxLabel>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="textTitle">
|
||||
<dx:ASPxLabel CssClass="textTitle" ID="ASPxLabelLocationTitle" runat="server" Text="Historische Meldungen"></dx:ASPxLabel>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<br />
|
||||
<table style="font-family:'Segoe UI';">
|
||||
<tr>
|
||||
<td>
|
||||
Von:
|
||||
</td>
|
||||
<td style="padding-left:6px; padding-top:4px;">
|
||||
<dx:ASPxDateEdit ID="ASPxDateEdit1" runat="server" Theme="TALAS5Standard" Width="90px"></dx:ASPxDateEdit>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Bis:
|
||||
</td>
|
||||
<td style="padding-left:6px; padding-top:4px;">
|
||||
<dx:ASPxDateEdit ID="ASPxDateEdit2" runat="server" Theme="TALAS5Standard" Width="90px"></dx:ASPxDateEdit>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
System:
|
||||
</td>
|
||||
<td style="padding-left:6px; padding-top:4px;">
|
||||
<dx:ASPxComboBox ID="ASPxComboBox1" runat="server" DataSourceID="ObjectDataSourceSystems" Theme="TALAS5Standard" TextField="Name" ValueField="ID" ValueType="System.Int32"></dx:ASPxComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Meldungsgruppe:
|
||||
</td>
|
||||
<td style="padding-left:6px; padding-top:4px;">
|
||||
<dx:ASPxComboBox ID="ASPxComboBox2" runat="server" DataSourceID="ObjectDataSourceMessageGroup" 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 />
|
||||
|
||||
<dx:ASPxGridView ID="ASPxGvMessages" ClientInstanceName="gridMessages" ClientIDMode="Static" runat="server" DataSourceID="ObjectDataSourceMessages" 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>
|
||||
<Default Font-Names="Arial">
|
||||
</Default>
|
||||
<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_Meldungshistorie">
|
||||
</SettingsExport>
|
||||
|
||||
|
||||
<Columns>
|
||||
<dx:GridViewDataTextColumn Caption="Zeitstempel" FieldName="Timestamp" VisibleIndex="0" Width="110px" SortIndex="0" SortOrder="Descending">
|
||||
<PropertiesTextEdit DisplayFormatString="dd.MM.yyyy HH:mm:ss">
|
||||
</PropertiesTextEdit>
|
||||
<Settings AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
<dx:GridViewDataTextColumn Caption="Zustand" CellStyle-HorizontalAlign="Center" FieldName="MessagePrioName" VisibleIndex="2" Width="80px">
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
<CellStyle HorizontalAlign="Center"></CellStyle>
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="System" FieldName="System" VisibleIndex="6" >
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
<dx:GridViewDataTextColumn Caption="Gerät" FieldName="Device" VisibleIndex="7" >
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
<dx:GridViewDataTextColumn Caption="Datenpunktname" FieldName="Name" VisibleIndex="10" >
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
<dx:GridViewDataTextColumn Caption="Meldungsgruppe" FieldName="MessageGroup" VisibleIndex="11" >
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
<dx:GridViewDataTextColumn Caption="Meldung" FieldName="Message" Visible="true" VisibleIndex="8">
|
||||
<Settings AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
<dx:GridViewDataTextColumn Caption="Wert" FieldName="Value" Visible="true" VisibleIndex="9">
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="TempMessageColor" FieldName="MessagePrioColor" Visible="false" VisibleIndex="20">
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Typ" FieldName="Typ" Visible="true" VisibleIndex="14">
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Sachgebiet" FieldName="District" Visible="true" VisibleIndex="3">
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Standort" FieldName="Area" Visible="true" VisibleIndex="4">
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Bereich" FieldName="Location" Visible="true" VisibleIndex="5">
|
||||
<Settings AllowAutoFilter="True" AllowGroup="True" AllowHeaderFilter="True" AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Kommentar Datenpunkt" FieldName="CommentDP" Visible="true" VisibleIndex="12">
|
||||
<Settings AllowSort="True" />
|
||||
</dx:GridViewDataTextColumn>
|
||||
|
||||
<dx:GridViewDataTextColumn Caption="Kommentar Meldung" FieldName="CommentMessage" Visible="true" VisibleIndex="13">
|
||||
<Settings AllowSort="True" />
|
||||
</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="ObjectDataSourceMessages" runat="server" SelectMethod="GetHistoryMessages" TypeName="TalasLibary.MessagesClass" >
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ASPxDateEdit1" Name="from" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="ASPxDateEdit2" Name="until" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="ASPxComboBox1" DefaultValue="0" Name="system" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="ASPxComboBox2" DefaultValue="0" Name="messageGroup" PropertyName="Value" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
<asp:ObjectDataSource ID="ObjectDataSourceMessageGroup" runat="server" SelectMethod="GetMessageGroups" TypeName="TalasLibary.ReportsClass" >
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
<asp:ObjectDataSource ID="ObjectDataSourceSystems" runat="server" SelectMethod="GetSystems" 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>
|
||||
Reference in New Issue
Block a user