<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_trattamenti.ascx.cs" Inherits="GMW.WebUserControls.mod_trattamenti" %>

<% if (false)
   { %>
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
<% } %>

<div class="row">
    <div class="col-sm-4 col-lg-3">
        <div class="card bg-primary text-light small">
            <div class="card-header">
                <b><%: traduci("Trattamenti") %></b>
            </div>
            <div class="card-body bg-light text-dark">
                <div class="row">
                    <div class="col-9 text-left">
                        <div>
                            <asp:Label runat="server" ID="lblAnnoTratt" Text="" AssociatedControlID="txtAnno" />
                        </div>
                        <asp:TextBox runat="server" ID="txtAnno" Height="56px" Width="100%" Font-Size="32pt" TabIndex="9" Style="text-align: center">2016</asp:TextBox>
                    </div>
                    <div class="col-3">
                    </div>
                    <div class="col-12 text-left">
                        <div>
                            <asp:Label runat="server" ID="lblNumTratt" />
                        </div>
                    </div>
                    <div class="col-9 text-left">
                        <asp:TextBox runat="server" ID="txtTratt" Height="56px" Width="100%" Font-Size="32pt" TabIndex="6" />
                        <asp:RegularExpressionValidator ID="revNumTratt" runat="server" ErrorMessage="!!! [1...999999] !!!" ValidationExpression="\d{1,6}" ControlToValidate="txtTratt" Display="Dynamic" />
                    </div>
                    <div class="col-3 text-left">
                        <asp:Button runat="server" ID="btnAdd" Height="56px" Width="100%" Font-Size="20pt" Text="+" OnClick="btnAdd_Click" TabIndex="7" />
                    </div>
                    <div class="col-9 text-left">
                        <asp:ListBox ID="lbTrattamenti" runat="server" Height="140px" Width="100%" Font-Size="20pt" TabIndex="10" />
                    </div>
                    <div class="col-3 text-left">
                        <asp:Button runat="server" ID="btnSvuota" Height="56px" Width="100%" Font-Size="20pt" Text="-" OnClick="btnSvuota_Click" TabIndex="8" />
                    </div>
                </div>
            </div>
        </div>
        <div class="card bg-primary text-light small">
            <div class="card-header">
                <b><%: traduci("UDC") %></b>
            </div>
            <div class="card-body bg-light text-dark">
                <div class="row">
                    <div class="col-9">
                        <asp:ListBox ID="lbUdc" runat="server" Height="40px" Width="100%" Font-Size="18pt" TabIndex="10" />
                    </div>
                    <div class="col-3">
                        <asp:Button runat="server" ID="btnSvuotaUDC" Height="40px" Width="100%" Font-Size="20pt" Text="-" OnClick="btnSvuotaUDC_Click" TabIndex="8" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-sm-4 col-lg-6">
        <div>
            <asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="3em" Text="" />
        </div>
        <div>
            <asp:Label runat="server" ID="lblDescrAttivo" Font-Size="2em" Text="" ToolTip="particolare" />
            <br />
            <asp:Label runat="server" ID="lblDisegno" Font-Size="1.8em" Text="" ForeColor="#FFFFFF" Font-Bold="true" ToolTip="disegno" />
        </div>
        <div>
            <asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
            <br />
            <asp:TextBox runat="server" ID="txtBarcode" Height="1.2em" Width="100%" Font-Size="3em" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
        </div>
        <div id="divNote" runat="server">
            <div>
                <%: traduci("Note") %>
            </div>
            <div>
                <asp:TextBox runat="server" ID="txtNote" Height="4em" Width="100%" Font-Size="2em" TextMode="MultiLine" TabIndex="2" />
                <asp:Button runat="server" ID="btnEmptyNote" Height="3em" Width="100%" OnClick="btnEmptyNote_Click" TabIndex="3" CssClass="btn btn-default" />
            </div>
            <div style="padding: 4px 0px;">
                <asp:LinkButton runat="server" ID="lbtStampaUDC" Width="100%" CssClass="btn btn-warning btn-lg" TabIndex="4" OnClick="btnStampa_Click"><i aria-hidden='true' class='fa fa-print fa-2x'></i> <%: traduci("btnStampaUdc") %></asp:LinkButton>
            </div>
        </div>
    </div>
    <div class="col-sm-4 col-lg-3">
        <div class="card bg-primary text-light small">
            <div class="card-header">
                <b><%: traduci("Qta") %></b>
            </div>
            <div class="card-body bg-light text-dark">
                <asp:TextBox runat="server" ID="txtQta" Height="1.2em" Width="100%" Font-Size="3em" Style="text-align: center" TabIndex="6" AutoPostBack="True" OnTextChanged="txtQta_TextChanged" />
            </div>
        </div>
    </div>
</div>
