<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_detTrattamenti.ascx.cs" Inherits="GMW.WebUserControls.mod_detTrattamenti" %>
<div class="card bg-success small">
    <div class="card-header">
        <b>
            <asp:Label runat="server" ID="lbltratt"><%: traduci("Tratt2UDC") %></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="Trattamento" DataSourceID="ods" 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:TemplateField HeaderText="Trattamento" SortExpression="Trattamento">
                    <ItemTemplate>
                        <b>
                            <asp:Label ID="Label0" runat="server" Text='<%# Bind("Trattamento") %>' /></b>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="DataTrattEnd" SortExpression="DataTrattEnd">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("DataTrattEnd","{0:dd/MM/yy HH:mm}") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delib. Durezza" SortExpression="Durezza">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("DataDur","{0:dd/MM/yy HH:mm}") %>' ToolTip='<%# Eval("CodSoggettoDur") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delib. Pr.Mecc" SortExpression="ProveMecc">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("DataPM","{0:dd/MM/yy HH:mm}") %>' ToolTip='<%# Eval("CodSoggettoPM") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CheckBoxField DataField="HasDtx" HeaderText="Dtx" SortExpression="HasDtx" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByUDC" TypeName="GMW_data.DS_magazzinoTableAdapters.ElencoTrattamentiTableAdapter">
            <SelectParameters>
                <asp:SessionParameter Name="UDC" Type="String" SessionField="UDC_sel" DefaultValue="U" />
            </SelectParameters>
        </asp:ObjectDataSource>

    </div>
</div>
