<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_detAttr.ascx.cs" Inherits="GMW.WebUserControls.mod_detAttr" %>
<div class="card bg-success small">
    <div class="card-header">
        <b>
            <asp:Label runat="server" ID="Label2"><%: traduci("Attr2UDC") %></asp:Label></b>
    </div>
    <div class="card-body bg-light text-dark" style="background-color: #f1f1fa;">
        <asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="idxAttr" DataSourceID="ods" EnableModelValidation="True" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
             <EmptyDataTemplate>
        <%: traduci("noRecord") %>
    </EmptyDataTemplate>
            <Columns>
                <asp:BoundField DataField="CodAttr" HeaderText="Attr." ReadOnly="True" SortExpression="CodAttr" />
                <asp:BoundField DataField="ValAttr" HeaderText="Val." SortExpression="ValAttr" />
                <asp:BoundField DataField="DateAttr" HeaderText="Data" SortExpression="DateAttr" DataFormatString="{0:yy/MM/dd HH:mm}" />
                <%--<asp:BoundField DataField="CodSoggetto" HeaderText="Oper." SortExpression="CodSoggetto" />--%>
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByUdc" TypeName="GMW_data.DS_magazzinoTableAdapters.Attr2UDCTableAdapter">
            <SelectParameters>
                <asp:SessionParameter Name="UDC" Type="String" SessionField="UDC_sel" DefaultValue="UUU" />
            </SelectParameters>
        </asp:ObjectDataSource>

    </div>
</div>
