101 lines
6.8 KiB
Plaintext
101 lines
6.8 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_storicoTC.ascx.cs" Inherits="MP_ADM.WebUserControls.mod_storicoTC" %>
|
|
|
|
<div style="text-align: center; margin: auto; vertical-align: middle; min-width: 800px; width: 100%; background: #DCDCDC;">
|
|
<div>
|
|
<div style="width: 50%; min-width: 350px; float: left; text-align: center; margin: auto; vertical-align: middle;">
|
|
Articolo
|
|
<br />
|
|
<asp:DropDownList ID="ddlArticolo" runat="server" DataTextField="label" DataValueField="value"
|
|
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 style="width: 50%; min-width: 350px; float: right; text-align: center; margin: auto; vertical-align: middle;">
|
|
Impianto
|
|
<br />
|
|
<asp:DropDownList ID="ddlMacchine" runat="server" DataTextField="label" DataValueField="value"
|
|
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 style="text-align: center; margin: auto; vertical-align: middle;">
|
|
<asp:GridView ID="grViewTempi" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="IdxODL" DataSourceID="odsTempi" ForeColor="Black" GridLines="None" Width="100%">
|
|
<AlternatingRowStyle BackColor="PaleGoldenrod" />
|
|
<FooterStyle BackColor="Tan" />
|
|
<HeaderStyle BackColor="Tan" Font-Bold="True" />
|
|
<PagerStyle CssClass="active GridPager" />
|
|
<PagerSettings Mode="NumericFirstLast" />
|
|
<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:TemplateField HeaderText="Articolo" SortExpression="CodArticolo">
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label5" runat="server" Text='<%# Eval("CodArticolo") %>' />
|
|
<div style="color: #696969; font-size: 0.75em;">
|
|
<asp:Label ID="Label4" runat="server" Text='<%# Eval("DescArticolo") %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField DataField="IdxODL" HeaderText="IdxODL" InsertVisible="False" ReadOnly="True" SortExpression="IdxODL" />--%>
|
|
<asp:BoundField DataField="CommessaAs400" HeaderText="CommessaAs400" SortExpression="CommessaAs400" />
|
|
<asp:TemplateField HeaderText="TCiclo" SortExpression="TCAssegnato">
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label1" runat="server" Text='<%# Eval("TCAssegnato", "{0:N2}") %>' />
|
|
<div style="color: #696969; font-size: 0.85em;">
|
|
<asp:Label ID="Label4" runat="server" Text='<%# Eval("TCRichAttr", "{0:N2} (attr.)") %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Note" SortExpression="Note">
|
|
<ItemTemplate>
|
|
<div style="font-size: 0.75em;">
|
|
<asp:Label ID="Label7" runat="server" Text='<%# Eval("Note") %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Periodo" SortExpression="DataInizio" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<div style="color: #696969; font-size: 0.75em; white-space: nowrap;">
|
|
<asp:Label ID="Label2" runat="server" Text='<%# Eval("DataInizio","{0:dd/MM/yy HH:mm}...") %>' />
|
|
<br />
|
|
<asp:Label ID="Label3" runat="server" Text='<%# Eval("DataFine","...{0:dd/MM/yy HH:mm}") %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Impianto" SortExpression="Nome">
|
|
<ItemTemplate>
|
|
<div style="white-space: nowrap; font-size: 0.9em;">
|
|
<asp:Label ID="Label6" runat="server" Text='<%# Eval("Nome") %>' />
|
|
<div style="color: #696969; font-size: 0.9em;">
|
|
<asp:Label ID="Label4" runat="server" Text='<%# Eval("NumPezzi", "{0:N0} pz") %>' />
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource ID="odsTempi" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByMacchinaArticolo" TypeName="MapoDb.DS_ProdTempiTableAdapters.ODLTableAdapter">
|
|
<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" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
<div style="text-align: center; margin: auto; vertical-align: middle; padding: 4px 2px; height: 1.5em;">
|
|
<div style="float: right;">
|
|
mostra:
|
|
<asp:TextBox runat="server" ID="txtPageSize" Text="10" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
|
</div>
|
|
</div>
|
|
</div> |