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


<div class="text-center">
  <h1><%: traduci("TitleDeliberaNc") %></h1>
  <div id="divSelAzione" runat="server" class="btn-group" style="width: 80%;">
    <asp:LinkButton runat="server" OnClick="lbtMode_Click" CommandArgument="sim" ID="lbtDelSimp" Width="33%"><i class="fa fa-check-circle-o fa-2x"></i> <%: traduci("lbtDelSimp") %></asp:LinkButton>
    <asp:LinkButton runat="server" OnClick="lbtMode_Click" CommandArgument="con" ID="lbtDelContr" Width="34%"><i class="fa fa-check-circle fa-2x"></i> <%: traduci("lbtDelContr") %></asp:LinkButton>
    <asp:LinkButton runat="server" OnClick="lbtMode_Click" CommandArgument="rem" ID="lbtRemDel" Width="33%"><i class="fa fa-circle-o fa-2x"></i> <%: traduci("lbtRemDel") %></asp:LinkButton>
  </div>
</div>
<div class="row text-center">
  <div class="col-sm-3 col-lg-2">
  </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 class="bg-warning">
        <asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="idxAttr" DataSourceID="ods" AllowPaging="True" CssClass="table table-striped table-bordered table-condensed">
          <PagerStyle CssClass="bg-info" />
          <SelectedRowStyle CssClass="info" />
          <EmptyDataTemplate>
            <asp:Label runat="server" ID="lblNoRecord" Text="Nessun record trovato" />
          </EmptyDataTemplate>
          <Columns>
            <asp:BoundField DataField="UDC" HeaderText="UDC" SortExpression="UDC" />
            <asp:BoundField DataField="CodAttr" HeaderText="Cod" SortExpression="CodAttr" />
            <asp:BoundField DataField="ValAttr" HeaderText="Val" SortExpression="ValAttr" />
            <asp:BoundField DataField="DateAttr" HeaderText="Data" SortExpression="DateAttr" />
            <asp:BoundField DataField="CodSoggetto" HeaderText="Soggetto" SortExpression="CodSoggetto" />
          </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getLastNC" TypeName="GMW_data.DS_magazzinoTableAdapters.Attr2UDCTableAdapter">
          <SelectParameters>
            <asp:Parameter DefaultValue="100" Name="maxNum" Type="Int32" />
          </SelectParameters>
        </asp:ObjectDataSource>
      </div>
    </div>
  </div>
  <div class="col-sm-3 col-lg-2">
  </div>
</div>

