<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_kitReqRunning.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_kitReqRunning" %>
<%@ Register Src="~/WebUserControls/cmp_KR_cart.ascx" TagPrefix="uc1" TagName="cmp_KR_cart" %>



<h3><%: traduci("RunningKitReq") %></h3>
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="PackListID" DataSourceID="odsKit" Width="100%" CssClass="table table-success table-striped table-sm" OnSelectedIndexChanged="grView_SelectedIndexChanged">
    <HeaderStyle CssClass="default" />
    <PagerStyle CssClass="active GridPager" />
    <PagerSettings Mode="NumericFirstLast" />
    <SelectedRowStyle CssClass="table-info" />
    <EmptyDataTemplate>
        <%# traduci("NoKitReqRunning") %>
    </EmptyDataTemplate>
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <HeaderTemplate>
                <div class="text-center">
                    <asp:LinkButton ID="lbtReset" runat="server" OnClick="lbtReset_Click" CssClass="btn btn-sm btn-primary" Visible="true" ToolTip="Reset"><i class="fa fa-refresh"></i></asp:LinkButton>
                </div>
            </HeaderTemplate>
            <ItemTemplate>
                <div class="text-center">
                    <asp:LinkButton ID="lbtSelect" runat="server" CausesValidation="False" CommandName="Select" CssClass="btn btn-sm btn-info"><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
                </div>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="PackListID" HeaderText="#" ReadOnly="True" SortExpression="PackListID" />
        <asp:BoundField DataField="StatusDesc" HeaderText="StatusDesc" ReadOnly="True" SortExpression="StatusDesc" />
        <asp:BoundField DataField="BatchName" HeaderText="Name" SortExpression="Name" ItemStyle-CssClass="text-right">
            <ItemStyle CssClass="text-right"></ItemStyle>
        </asp:BoundField>
        <asp:BoundField DataField="ImportDate" HeaderText="Import Date" SortExpression="ImportDate" />
        <asp:BoundField DataField="NumKit" HeaderText="Kit #" SortExpression="NumKit" />
        <asp:BoundField DataField="NumParts" HeaderText="Parts n#" SortExpression="NumParts" />
        <asp:BoundField DataField="TotQty" HeaderText="Tot Qty #" SortExpression="TotQty" />
    </Columns>
</asp:GridView>

<asp:ObjectDataSource ID="odsKit" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getRunning" TypeName="AppData.DS_AppTableAdapters.PackListTableAdapter"></asp:ObjectDataSource>
<uc1:cmp_KR_cart runat="server" ID="cmp_KR_cart" />
