83 lines
5.6 KiB
Plaintext
83 lines
5.6 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_approvazioneODL.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_approvazioneODL" %>
|
|
|
|
<div style="text-align: center; margin: auto; vertical-align: middle; min-width: 800px; width: 100%; background: #DCDCDC;">
|
|
<asp:GridView ID="grView" 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%" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
|
<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 trovato
|
|
</EmptyDataTemplate>
|
|
<Columns>
|
|
<asp:TemplateField ShowHeader="False">
|
|
<HeaderTemplate>
|
|
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click"><i class="fa fa-refresh fa-2x"></i></asp:LinkButton>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="lnkAppr" runat="server" CausesValidation="False" CommandArgument="Approva" CommandName="Select" ToolTip="Approva" ForeColor="Green" OnCommand="lbt_Command"><i class="fa fa-thumbs-o-up fa-2x"></i></asp:LinkButton>
|
|
<asp:LinkButton ID="lnkReject" runat="server" CausesValidation="False" CommandArgument="Rifiuta" CommandName="Select" ToolTip="Rifiuta" ForeColor="Red" OnCommand="lbt_Command"><i class="fa fa-thumbs-o-down fa-2x"></i></asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="IdxODL" HeaderText="ODL" InsertVisible="False" ReadOnly="True" SortExpression="IdxODL" />
|
|
<asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
|
|
<asp:TemplateField HeaderText="Articolo" SortExpression="CodArticolo">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblCod" runat="server" Text='<%# Bind("CodArticolo") %>'></asp:Label>
|
|
<div style="color: #696969; font-size: 0.9em;">
|
|
<asp:Label ID="lblDesc" runat="server" Text='<%# Bind("DescArticolo") %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="NumPezzi" HeaderText="NumPezzi" SortExpression="NumPezzi" />
|
|
<asp:TemplateField HeaderText="TC Attrezzato" SortExpression="TCRichAttr">
|
|
<ItemTemplate>
|
|
<div style="color: #DD3333; font-size: 1.1em;">
|
|
<asp:Label ID="lblTCRichMS" runat="server" Text='<%# minSec(Eval("TCRichAttr", "{0:N3}")) %>' />
|
|
<br />
|
|
<asp:Label ID="lblTCRichMC" runat="server" Text='<%# Bind("TCRichAttr", "{0:N2} min.cent") %>' Font-Size="0.6em" ForeColor="#696969" />
|
|
</div>
|
|
<div style="color: #696969; font-size: 0.9em;">
|
|
<asp:Label ID="lblNote" runat="server" Text='<%# Bind("Note") %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />--%>
|
|
<asp:TemplateField HeaderText="TC Assegnato" SortExpression="TCAssegnato">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblTCAssMS" runat="server" Text='<%# minSec(Eval("TCAssegnato", "{0:N3}")) %>' />
|
|
<br />
|
|
<asp:Label ID="lblTCAssMC" runat="server" Text='<%# Bind("TCAssegnato", "{0:N2} min.cent") %>' Font-Size="0.6em" ForeColor="#696969" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="DataInizio" SortExpression="DataInizio" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblInizio" runat="server" Text='<%# Bind("DataInizio","{0:dd/MM/yyyy}</br>{0:HH:mm}") %>' />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="DataFine" SortExpression="DataFine" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblFine" runat="server" Text='<%# Bind("DataFine","{0:dd/MM/yyyy}</br>{0:HH:mm}") %>' />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource ID="odsTempi" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getNeedAppr" TypeName="MapoDb.DS_ProdTempiTableAdapters.ODLTableAdapter"></asp:ObjectDataSource>
|
|
<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>
|