<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_PostTT.ascx.cs" Inherits="GMW.WebUserControls.mod_PostTT" %>
<div class="row">
    <div class="col-sm-3 col-lg-2">
        <div class="card bg-success small">
            <div class="card-header">
                <b><%: traduci("Origine") %></b> (AL)
            </div>
            <div class="card-body bg-light text-dark">
                <div class="bg-primary text-light">
                    <asp:Label runat="server" ID="lblAL" />
                </div>
                <asp:GridView ID="grViewSource" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                    DataKeyNames="UDC" DataSourceID="odsSource" Width="100%">
                    <RowStyle CssClass="ctrRowStyle" />
                    <AlternatingRowStyle CssClass="ctrAltRowStyle" />
                    <EditRowStyle CssClass="ctrEditRowStyle" />
                    <SelectedRowStyle CssClass="ctrSelRowStyle" />
                    <FooterStyle CssClass="ctrFooter" />
                    <PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
                    <EmptyDataRowStyle CssClass="ctrRowStyle" />
                    <EmptyDataTemplate>
                        <asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
                            <ItemTemplate>
                                <asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Qta" SortExpression="Qta" ItemStyle-HorizontalAlign="Right">
                            <ItemTemplate>
                                <span style="padding: 0px 4px;">
                                    <b>
                                        <asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta","{0:#}") %>' /></b>
                                </span>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:ObjectDataSource ID="odsSource" runat="server" OldValuesParameterFormatString="{0}"
                    SelectMethod="getByAL" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="lblAL" DefaultValue="AL0000" Name="AL" PropertyName="Text" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </div>
        </div>

    </div>
    <div class="col-sm-6 col-lg-8">
        <div id="divBarcode" runat="server">
            <div>
                <div>
                    <asp:Label runat="server" ID="lblBarcode" AssociatedControlID="txtBarcode"><%: traduci("lblBarcode") %></asp:Label>
                </div>
                <asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="100%" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
            </div>
        </div>
        <div id="divNote" runat="server">
            <div>
                <%: traduci("Note") %>
            </div>
            <div>
                <asp:TextBox runat="server" ID="txtNote" Height="120px" Width="100%" Font-Size="24pt" TextMode="MultiLine" TabIndex="5" />
            </div>
        </div>
        <div id="divStampa" runat="server">
            <asp:LinkButton runat="server" ID="lbtStampaAL" Width="100%" CssClass="btn btn-warning btn-lg" OnClick="lbtStampaAL_Click" TabIndex="5"><i aria-hidden='true' class='fa fa-print fa-2x'></i> <%: traduci("lbtStampaAL") %></asp:LinkButton>
        </div>
    </div>
    <div class="col-sm-3 col-lg-2">
        <div id="divNumTratt" runat="server" class="card bg-primary text-light small">
            <div class="card-header">
                <b><%: traduci("NumTrattamento") %></b>
            </div>
            <div class="card-body bg-light text-dark">
                <asp:TextBox runat="server" ID="txtAnno" Width="100%" Font-Size="28pt" Style="text-align: center" TabIndex="1" placeholder="Anno" />
                <asp:TextBox runat="server" ID="txtNumTratt" Width="100%" Font-Size="28pt" Style="text-align: center" TabIndex="2" placeholder="Num" AutoPostBack="true" OnTextChanged="txtNumTratt_TextChanged" />
            </div>
        </div>
        <div id="divDurezza" runat="server" class="card bg-primary text-light small">
            <div class="card-header">
                <b><%: traduci("Durezza") %></b>(AL)
            </div>
            <div class="card-body bg-light text-dark">
                <div class="btn-group" style="width: 100%;">
                    <label id="lblDurezza" runat="server" class="btn btn-danger" style="width: 100%;">
                        <asp:CheckBox runat="server" ID="chkDurezza" AutoPostBack="true" TabIndex="3" OnCheckedChanged="chkDurezza_CheckedChanged" Text="KO" Width="100%" />
                    </label>
                </div>
            </div>
        </div>
         <div id="divPunzone" runat="server" class="card bg-primary text-light small">
            <div class="card-header">
                <b><%: traduci("CodPunzone") %></b>
            </div>
            <div class="card-body bg-light text-dark">
                <div class="btn-group" style="width: 100%;">
                    <asp:TextBox runat="server" ID="txtPunzone" TabIndex="4" />
                </div>
            </div>
        </div>
    </div>
</div>
