101 lines
7.4 KiB
Plaintext
101 lines
7.4 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="status.aspx.cs" Inherits="MP_IO.status" %>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<title>MP-IO</title>
|
|
</head>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<div style="font-size: 8pt; font-family: Arial, 'DejaVu Sans', 'Liberation Sans', Freesans, sans-serif">
|
|
<div style="float: left;">
|
|
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="ods" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="grView_SelectedIndexChanged" DataKeyNames="idxMacchina" AllowPaging="true" PageSize="10">
|
|
<AlternatingRowStyle BackColor="White" />
|
|
<EditRowStyle BackColor="#2461BF" />
|
|
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
|
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
|
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
|
|
<RowStyle BackColor="#EFF3FB" />
|
|
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
|
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
|
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
|
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
|
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Macchina" SortExpression="Nome">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="lnkluptime" runat="server" CausesValidation="False" CommandName="Select">
|
|
<div style="float: left;">
|
|
<asp:Image ID="imgMacchina" runat="server" Width="80px" ImageUrl='<%# ImgUrl(Eval("url")) %>' />
|
|
</div>
|
|
<div style="float: left;">
|
|
<div style="width: 300px; float: left;">
|
|
<div style="float: left;">
|
|
<b>
|
|
<asp:Label ID="lblNome" runat="server" Text='<%# Eval("Nome") %>' Font-Size="1.2em" ForeColor="Black" /></b>
|
|
<asp:Label ID="lblCodMacchina" runat="server" Text='<%# Eval("IdxMacchina"," [{0}]") %>' ForeColor="Black" />
|
|
<asp:Label ID="lbllocazione" runat="server" Text='<%# Eval("locazione") %>' ForeColor="Black" />
|
|
<br />
|
|
<asp:Label ID="lblDescrizione" runat="server" Text='<%# Eval("Descrizione") %>' ForeColor="Black" />
|
|
<br />
|
|
<asp:Label ID="lblIPv4" runat="server" Text='<%# Eval("IPv4") %>' ForeColor="Blue" Font-Bold="true" />
|
|
<br />
|
|
SM Ingr:
|
|
<asp:Label ID="lblidxFamigliaIngresso" runat="server" Text='<%# Eval("idxFamigliaIngresso") %>' ForeColor="Green" Font-Bold="true" />
|
|
</div>
|
|
</div>
|
|
<div style="width: 120px; float: left;">
|
|
<asp:Label ID="lbluptime" runat="server" Text='<%# Eval("uptime","uptime: <b>{0}</b>") %>' />
|
|
<br />
|
|
<asp:Label ID="lblReboot" runat="server" Text='<%# Eval("lastReboot","{0}<br/>(last reboot)")%>' />
|
|
</div>
|
|
<div style="clear: both; float: right; color: #333;">
|
|
periodo attività:
|
|
<asp:Label ID="lblDataOraStart" runat="server" Text='<%# Eval("DataOraStart") %>' ToolTip="inizio rilevazione" />
|
|
-->
|
|
<asp:Label ID="lbllastEvent" runat="server" Text='<%# Eval("lastEvent") %>' ToolTip="ultima rilevazione" />
|
|
</div>
|
|
</div>
|
|
|
|
</asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.stp_statusCorrenteTableAdapter"></asp:ObjectDataSource>
|
|
</div>
|
|
<div style="float: left;">
|
|
<asp:GridView ID="grViewReboot" runat="server" AutoGenerateColumns="False" DataKeyNames="idxReboot" DataSourceID="odsReboot" CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="true" PageSize="30">
|
|
<AlternatingRowStyle BackColor="White" />
|
|
<Columns>
|
|
<asp:BoundField DataField="IdxMacchina" HeaderText="Macchina" SortExpression="IdxMacchina" />
|
|
<asp:BoundField DataField="IPv4" HeaderText="IPv4" SortExpression="IPv4" />
|
|
<asp:BoundField DataField="Agent" HeaderText="Agent" SortExpression="Agent" />
|
|
<asp:BoundField DataField="DataOraBoot" HeaderText="ReBoot" SortExpression="DataOraBoot" />
|
|
<asp:BoundField DataField="macAddr" HeaderText="mac addr" SortExpression="macAddr" />
|
|
</Columns>
|
|
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
|
|
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
|
|
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
|
|
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
|
|
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
|
|
<SortedAscendingCellStyle BackColor="#FDF5AC" />
|
|
<SortedAscendingHeaderStyle BackColor="#4D0000" />
|
|
<SortedDescendingCellStyle BackColor="#FCF6C0" />
|
|
<SortedDescendingHeaderStyle BackColor="#820000" />
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource ID="odsReboot" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdxMacchina" TypeName="MapoDb.DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter" DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
|
|
<SelectParameters>
|
|
<asp:SessionParameter DefaultValue="0" Name="IdxMacchina" SessionField="idxMacchina" Type="String" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
</div>
|
|
<div style="clear:both; float: right;">
|
|
<asp:Label runat="server" ID="lblVers" Text="..." Font-Size="8pt" />
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html>
|