<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_sanpos_controlloLiquidi.ascx.cs" Inherits="GMW.WebUserControls.mod_sanpos_controlloLiquidi" %>
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>--%>

<%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" style="padding-top: 2px; padding-bottom: 2px;">
  <div class="col-sm-4 col-lg-3">
    <div id="divNumTratt" runat="server" class="card bg-warning small">
      <div class="card-header">
        <b><%: traduci("Trattamenti") %></b>
      </div>
      <div class="card-body bg-light text-dark">
        <div class="row">
          <div class="col-sm-9">
            <div class="bg-primary text-light">
              <%: traduci("lblNumTratt") %>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-9">
            <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" />
            <asp:ListBox ID="lbTrattamenti" runat="server" Height="160px" Width="100%" Font-Size="20pt" TabIndex="10" />
            <div class="bg-primary text-light">
              <%: traduci("lblAnnoTratt") %>
            </div>
            <asp:TextBox runat="server" ID="txtAnno" Height="56px" Width="100%" Font-Size="32pt" TabIndex="9" Style="text-align: center" />
          </div>
          <div class="col-sm-3 text-center">
            <div>
              <asp:Button runat="server" CssClass="btn btn-default" ID="btnAdd" Height="56px" Width="40px" Font-Size="20pt" Text="+" OnClick="btnAdd_Click" TabIndex="7" />
            </div>
            <div>
              <asp:Button runat="server" CssClass="btn btn-default" ID="btnSvuota" Height="56px" Width="40px" Font-Size="20pt" Text="-" OnClick="btnSvuota_Click" TabIndex="8" />
            </div>
          </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>
      <div id="divBarcode" runat="server">
        <div>
          <div>
            <asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
          </div>
          <asp:TextBox runat="server" ID="txtBarcode" Height="1.2em" Width="100%" Font-Size="3em" 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="4em" Width="100%" Font-Size="2em" TextMode="MultiLine" TabIndex="2" />
        </div>
        <div>
          <asp:Button runat="server" ID="btnEmptyNote" Height="3em" Width="100%" OnClick="btnEmptyNote_Click" TabIndex="3" />
        </div>
      </div>
    </div>
  </div>
  <div class="col-sm-4 col-lg-3">
    <div id="divQta" runat="server" class="card bg-primary text-light small">
      <div class="card-header">
        <b><%: traduci("lbtGeneraUDC") %></b>
      </div>
      <div class="card-body bg-light text-dark">
        <div class="row">
          <div class="col-sm-12">
            <div class="bg-primary text-light">
              <%: traduci("lblQuantita") %>
            </div>
            <asp:TextBox runat="server" ID="txtQta" Height="56px" Width="100%" Font-Size="32pt" Style="text-align: center" TabIndex="4" />
          </div>
        </div>
      </div>
    </div>
    <div id="divImballi" runat="server" class="card bg-primary text-light small">
      <div class="card-header">
        <b><%: traduci("CodImballo") %></b>
      </div>
      <div class="card-body bg-light text-dark">
        <asp:Label runat="server" ID="lblPart" />
        <asp:DropDownList runat="server" ID="ddlImballi" DataSourceID="odsImballi" DataTextField="value" DataValueField="value" OnDataBound="ddlImballi_DataBound" Font-Size="2em"></asp:DropDownList>
        <asp:ObjectDataSource runat="server" ID="odsImballi" OldValuesParameterFormatString="original_{0}" SelectMethod="getByPart" TypeName="GMW_data.DS_UtilityTableAdapters.v_selImballiTableAdapter">
          <SelectParameters>
            <asp:ControlParameter ControlID="lblPart" DefaultValue="" PropertyName="Text" Name="Particolare" />
          </SelectParameters>
        </asp:ObjectDataSource>
      </div>
    </div>
    <div class="row">
      <div class="col-sm-12">
        <asp:Button runat="server" ID="btnStampa" CssClass="btn btn-warning" Height="120px" Width="100%" Font-Size="20pt" OnClick="btnStampa_Click" TabIndex="5" />
      </div>
    </div>
  </div>
</div>
