<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_execCella.ascx.cs"
    Inherits="GMW_Term.WebUserControls.mod_execCella" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div id="contenuto" style="text-align: center;">
    <div id="InputTitle">
        <asp:Label ID="lblTitle" runat="server" Text="Celle magazzino" /></div>
    <div id="Div1">
        <asp:Button ID="btnLoginPage" runat="server" OnClick="btnLoginPage_Click" Width="100px"
            Font-Size="Smaller" />
        <asp:Button ID="btnButtonsHome" runat="server" OnClick="btnButtonsHome_Click" Width="100px"
            Font-Size="Smaller" />
    </div>
    <div id="smallGrid">
        <asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
            OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
            Width="100%" DataKeyNames="UDC" DataSourceID="ods" OnRowUpdating="grView_RowUpdating">
            <RowStyle CssClass="ctrRowStyle" />
            <AlternatingRowStyle CssClass="ctrAltRowStyle" />
            <EditRowStyle CssClass="ctrEditRowStyle" />
            <SelectedRowStyle CssClass="ctrSelRowStyle" />
            <FooterStyle CssClass="ctrFooter" />
            <PagerStyle CssClass="ctrHeaderPagerWide" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
            <EmptyDataRowStyle CssClass="ctrRowStyle" />
            <EmptyDataTemplate>
                <asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
            </EmptyDataTemplate>
            <Columns>
                <%--<asp:TemplateField HeaderText="Tipo" SortExpression="Tipo">
                    <ItemTemplate>
                        <asp:ImageButton runat="server" ID="imgCodTipo" ImageUrl='<%# pathImgTipo(Eval("Tipo")) %>'
                            CausesValidation="False" CommandArgument='<%# Eval("Tipo") %>' OnClick="imgAzioneLista_Click"
                            CommandName="Update" ToolTip='<%# tooltipTipo(Eval("Tipo")) %>' />
                    </ItemTemplate>
                </asp:TemplateField>--%>
                <asp:TemplateField HeaderText="IdxBlocco" SortExpression="IdxBlocco">
                    <ItemTemplate>
                        <b>
                            <asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
                        </b>
                        <div style="font-size: x-small;">
                            <asp:Label ID="lblCodCella" runat="server" Text='<%# Eval("CodCella") %>' />
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="label" SortExpression="label">
                    <ItemTemplate>
                        <b>
                            <asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
                        </b>&nbsp;-&nbsp;
                        <asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta") %>' />
                        <div style="font-size: x-small;">
                            <asp:Label ID="lblDescStato" runat="server" Text='<%# Eval("DescStato") %>' />-
                            <asp:Label ID="lblEsponente" runat="server" Text='<%# Eval("Esponente") %>' />
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
        <asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
        <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="getUdcDetailByIdxCella" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
            <SelectParameters>
                <asp:SessionParameter Name="IdxCella" SessionField="IdxCella_sel" Type="Int32" DefaultValue="0" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
</div>
