79 lines
5.0 KiB
Plaintext
79 lines
5.0 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_fermate.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_fermate" %>
|
|
<div class="small textCondens">
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<asp:Label runat="server" ID="lblNumGG" Text="Ultimi gg" AssociatedControlID="ddlPrevDays" />
|
|
<asp:DropDownList ID="ddlPrevDays" runat="server" AutoPostBack="true" CssClass="form-control form-control-sm bg-secondary text-light" OnSelectedIndexChanged="ddlPrevDays_SelectedIndexChanged">
|
|
<asp:ListItem Text="1" Value="1" />
|
|
<asp:ListItem Text="2" Value="2" />
|
|
<asp:ListItem Text="3" Value="3" />
|
|
<asp:ListItem Text="4" Value="4" />
|
|
<asp:ListItem Text="5" Value="5" />
|
|
<asp:ListItem Text="6" Value="6" />
|
|
<asp:ListItem Text="7" Value="7" />
|
|
<asp:ListItem Text="8" Value="8" />
|
|
<asp:ListItem Text="9" Value="9" />
|
|
<asp:ListItem Text="10" Value="10" />
|
|
<asp:ListItem Text="15" Value="15" />
|
|
<asp:ListItem Text="20" Value="20" />
|
|
<asp:ListItem Text="30" Value="30" />
|
|
<asp:ListItem Text="60" Value="60" />
|
|
<asp:ListItem Text="90" Value="90" />
|
|
<asp:ListItem Text="180" Value="180" />
|
|
<asp:ListItem Text="360" Value="360" />
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-6">
|
|
<asp:Label runat="server" ID="lblDurataMin" Text="Durata min" AssociatedControlID="ddlDurataMin" />
|
|
<asp:DropDownList ID="ddlDurataMin" runat="server" AutoPostBack="true" CssClass="form-control form-control-sm bg-secondary text-light" OnSelectedIndexChanged="ddlDurataMin_SelectedIndexChanged">
|
|
<asp:ListItem Text="5'" Value="5" />
|
|
<asp:ListItem Text="10'" Value="10" />
|
|
<asp:ListItem Text="15'" Value="15" />
|
|
<asp:ListItem Text="20'" Value="20" />
|
|
<asp:ListItem Text="30'" Value="30" />
|
|
<asp:ListItem Text="1h" Value="60" />
|
|
<asp:ListItem Text="2h" Value="120" />
|
|
<asp:ListItem Text="4h" Value="240" />
|
|
<asp:ListItem Text="8h" Value="480" />
|
|
<asp:ListItem Text="1gg" Value="1440" />
|
|
<asp:ListItem Text="2gg" Value="2880" />
|
|
</asp:DropDownList>
|
|
</div>
|
|
<asp:Repeater ID="repComm" runat="server" DataSourceID="odsFerm">
|
|
<ItemTemplate>
|
|
<div class="col-12 col-sm-6 col-lg-4 text-truncate">
|
|
<div class="my-1 ">
|
|
<asp:LinkButton runat="server" ID="btnEdit" CommandArgument='<%# Eval("InizioStato") %>' OnClick="btnEdit_Click">
|
|
<div class="card text-white dichBlock rCAll w-100">
|
|
<div class='card-title p-2 mb-0 rCTop <%# Eval("Semaforo") %>'>
|
|
<b style="font-size: 1.3em;">
|
|
<asp:Label ID="lblStato" runat="server" Text='<%# Eval("Stato", "<b>{0}</b>") %>' />
|
|
</b>
|
|
<div class="text-end ml-auto" style="font-size: 1.1em;">
|
|
<asp:Label runat="server" ID="lblCodArticolo" Text='<%# Eval("CodArticolo") %>' />
|
|
</div>
|
|
</div>
|
|
<div class="card-text p-0 d-flex align-items-end rCBot" style="font-size: 0.8em;">
|
|
<div class="labelBottom text-start p-1">
|
|
<asp:Label ID="lblInizioStato" runat="server" Text='<%# Eval("InizioStato", "{0:dd.MM.yy HH:mm}") %>' />
|
|
</div>
|
|
<div class="labelBottom text-end p-1">
|
|
<asp:Label ID="lblDurataMinuti" runat="server" Text='<%# durataEvento(Eval("DurataMinuti")) %>' />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:Repeater>
|
|
<asp:ObjectDataSource ID="odsFerm" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.FermiNonQualTableAdapter">
|
|
<SelectParameters>
|
|
<asp:SessionParameter DefaultValue="0" Name="IdxMacchina" SessionField="idxMacchina" Type="String" />
|
|
<asp:ControlParameter ControlID="ddlPrevDays" DefaultValue="3" Name="gg" PropertyName="SelectedValue" Type="Int32" />
|
|
<asp:ControlParameter ControlID="ddlDurataMin" DefaultValue="10" Name="durataMin" PropertyName="SelectedValue" Type="Double" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
</div>
|