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

<% 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-2 col-lg-1">
        &nbsp;
    </div>
    <div class="col-sm-8 col-lg-10">
        <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="divSblocca" runat="server">
            <div style="padding: 4px 0px;">
                <asp:LinkButton runat="server" ID="lbtSbloccaUDC" Width="100%" CssClass="btn btn-warning btn-lg" TabIndex="4" OnClick="SbloccaUDC_Click"><i aria-hidden='true' class='fa fa-external-link fa-2x'></i> <%: traduci("btnSbloccoUDC") %></asp:LinkButton>
            </div>
        </div>
        <div>
            Elenco UDC sbloccabili
            <div style="text-align: center; margin: auto;">
                <asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="UDC" DataSourceID="odsUdcSBloccabili" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="UDC" HeaderText="UDC" ReadOnly="True" SortExpression="UDC" />
                        <asp:BoundField DataField="Particolare" HeaderText="Particolare" SortExpression="Particolare" />
                        <asp:BoundField DataField="DescParticolare" HeaderText="Descr." SortExpression="DescParticolare" />
                        <asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" />
                        <asp:BoundField DataField="DescStato" HeaderText="Stato" SortExpression="DescStato" />
                        <asp:BoundField DataField="ModDate" HeaderText="Mod" SortExpression="ModDate" />
                        <asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F8FAFA" />
                    <SortedAscendingHeaderStyle BackColor="#246B61" />
                    <SortedDescendingCellStyle BackColor="#D4DFE1" />
                    <SortedDescendingHeaderStyle BackColor="#15524A" />
                </asp:GridView>
                <asp:ObjectDataSource ID="odsUdcSBloccabili" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCodBlocco" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter" FilterExpression="idxPosizione = {0}">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="hfCodBlocco" DefaultValue="W00" Name="CodBlocco" Type="String" PropertyName="Value" />
                    </SelectParameters>
                    <FilterParameters>
                        <asp:ControlParameter ControlID="hfIdxPosizione" DefaultValue="0" Name="IdxPosizione" Type="Int32" PropertyName="Value" />
                    </FilterParameters>
                </asp:ObjectDataSource>
                <asp:HiddenField runat="server" ID="hfCodBlocco" />
                <asp:HiddenField runat="server" ID="hfIdxPosizione" />
                <asp:HiddenField runat="server" ID="hfIdxPosizioneChildOk" />
                <asp:HiddenField runat="server" ID="hfFlusso" />
                <asp:HiddenField runat="server" ID="hfStatoUdc" />
                <asp:HiddenField runat="server" ID="hfEvento" />
                <br />
            </div>
        </div>
    </div>
    <div class="col-sm-2 col-lg-1">
        &nbsp;
    </div>
</div>

