Files
Samuele E. Locatelli 0d4435a0bb Rinominato progetto TAB
2018-05-03 14:55:02 +02:00

87 lines
6.2 KiB
Plaintext

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_RepProd_GG.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_RepProd_GG" %>
<div data-theme="c">
<div class="ui-grid-a">
<div class="ui-block-a" style="text-align: center; margin: auto; vertical-align: middle;">
Articolo
<br />
<asp:DropDownList ID="ddlArticolo" runat="server" DataTextField="label" DataValueField="value" ForeColor="Black"
AutoCompleteMode="SuggestAppend" DropDownStyle="DropDownList" AutoPostBack="True"
DataSourceID="odsArticoli" CssClass="WindowsStyle" MaxLength="0" Style="display: inline;" OnSelectedIndexChanged="ddlArticolo_SelectedIndexChanged" />
<asp:ObjectDataSource ID="odsArticoli" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.v_selArticoliTableAdapter"></asp:ObjectDataSource>
</div>
<%--<div class="ui-block-b" style="text-align: center; margin: auto; vertical-align: middle;">
<h3>Storico Tempi Ciclo</h3>
</div>--%>
<div class="ui-block-b" style="text-align: center; margin: auto; vertical-align: middle;">
Impianto
<br />
<asp:DropDownList ID="ddlMacchine" runat="server" DataTextField="label" DataValueField="value" ForeColor="Black"
AutoCompleteMode="SuggestAppend" DropDownStyle="DropDownList" AutoPostBack="True"
DataSourceID="odsMacchine" CssClass="WindowsStyle" MaxLength="0" Style="display: inline;" OnSelectedIndexChanged="ddlMacchine_SelectedIndexChanged" />
<asp:ObjectDataSource ID="odsMacchine" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.v_selMacchineTableAdapter"></asp:ObjectDataSource>
</div>
</div>
<div class="ui-grid-solo" style="text-align: center; margin: auto; vertical-align: middle;">
<asp:GridView ID="grView" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ods" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" AllowPaging="True" ForeColor="Black" GridLines="None" Width="100%">
<AlternatingRowStyle BackColor="PaleGoldenrod" />
<FooterStyle BackColor="Tan" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<SortedAscendingCellStyle BackColor="#FAFAE7" />
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
<SortedDescendingCellStyle BackColor="#E1DB9C" />
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
<EmptyDataRowStyle BackColor="Tan" Font-Bold="True" />
<EmptyDataTemplate>
Nessun record storico trovato
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="CodArticolo" HeaderText="Articolo" SortExpression="CodArticolo" />
<asp:TemplateField HeaderText="Data" SortExpression="Data">
<ItemTemplate>
<asp:Label ID="lblData" runat="server" Text='<%# Eval("Data", "{0:ddd dd/MM/yyyy}") %>' />
<br />
<asp:Label ID="lblIdxODL" runat="server" Text='<%# Eval("IdxODL","ODL: {0}") %>' Font-Size="0.8em" ForeColor="#696969" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TCiclo" SortExpression="TCAssegnato">
<ItemTemplate>
<asp:Label ID="lblTCAssMS" runat="server" Text='<%# SteamWare.TempiCiclo.minSec(Eval("TCAssegnato", "{0:N3}")) %>' />
<br />
<asp:Label ID="lblTCAssMC" runat="server" Text='<%# Bind("TCAssegnato", "{0:N2} min.cent") %>' Font-Size="0.8em" ForeColor="#696969" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Confermati" SortExpression="pzConf">
<ItemTemplate>
<asp:Label ID="lblpzConf" runat="server" Text='<%# Eval("pzConf") %>' />
<div style="color: #636363; font-size: 0.8em;">
<asp:Label ID="lblpzProd" runat="server" Text='<%# Eval("pzProd","({0} prod)") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Nome" HeaderText="Impianto" SortExpression="Nome" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_ProdTempiTableAdapters.ResProdDett_splitGGTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="ddlMacchine" DefaultValue="0" Name="IdxMacchina" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="ddlArticolo" DefaultValue="0" Name="CodArticolo" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="hfDataFrom" Name="dataFrom" PropertyName="Value" Type="DateTime" />
<asp:ControlParameter ControlID="hfDataTo" Name="dataTo" PropertyName="Value" Type="DateTime" />
<asp:ControlParameter ControlID="hfClosed" Name="OdlClosed" PropertyName="Value" Type="Boolean" />
<asp:ControlParameter ControlID="hfOpen" Name="OdlOpen" PropertyName="Value" Type="Boolean" />
<asp:ControlParameter ControlID="hfNew" Name="OdlNew" PropertyName="Value" Type="Boolean" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfDataFrom" />
<asp:HiddenField runat="server" ID="hfDataTo" />
<asp:HiddenField runat="server" ID="hfClosed" Value="true" />
<asp:HiddenField runat="server" ID="hfOpen" Value="true" />
<asp:HiddenField runat="server" ID="hfNew" Value="true" />
</div>
</div>