<%@ Page Title="" Language="C#" MasterPageFile="~/VEtterem.Master" AutoEventWireup="true"
    CodeBehind="ServedOrders.aspx.cs" Inherits="VEtterem.Pultos.TeljesitettOrders" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHMain" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <asp:Panel ID="PanelSO" runat="server" CssClass="panel">
        <asp:GridView ID="RendelesekGridView" runat="server" AllowPaging="True" DataSourceID="KeszSqlDataSource"
            PageSize="20" AutoGenerateColumns="False" DataKeyNames="RendelesID,UgyfelID"
            OnSelectedIndexChanged="RendelesekGridView_SelectedIndexChanged" CssClass="gw">
            <RowStyle CssClass="gwRStyle" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="RID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RendelesID") %>'
                            Visible="false" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="FELADVA" HeaderText="Feladva" ReadOnly="True" SortExpression="FELADVA" />
                <asp:BoundField DataField="TELJESITVE" HeaderText="Teljesítve" ReadOnly="True" SortExpression="TELJESITVE" />
                <asp:BoundField DataField="TELJESNEV" HeaderText="Teljes név" ReadOnly="True" SortExpression="TELJESNEV" />
                <asp:BoundField DataField="CIM" HeaderText="Cím" ReadOnly="True" SortExpression="CIM" />
                <asp:BoundField DataField="RENDELESID" HeaderText="RENDELESID" ReadOnly="True" SortExpression="RENDELESID"
                    Visible="False" />
                <asp:BoundField DataField="UGYFELID" HeaderText="UGYFELID" SortExpression="UGYFELID"
                    Visible="False" />
                <asp:CommandField ShowSelectButton="True" SelectText="Részletek" />
            </Columns>
            <FooterStyle CssClass="gwFooter" />
            <HeaderStyle CssClass="gwHeader" />
            <AlternatingRowStyle CssClass="gwAltRStyle" />
        </asp:GridView>
    </asp:Panel>
    <asp:SqlDataSource ID="KeszSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:VCS %>"
        ProviderName="<%$ ConnectionStrings:VCS.ProviderName %>" SelectCommand="SELECT RENDELES.FELADVA, UGYFEL.TELJESNEV, UGYFEL.CIM, RENDELES.RENDELESID, UGYFEL.UGYFELID, RENDELES.TELJESITVE FROM UGYFEL INNER JOIN RENDELES ON UGYFEL.UGYFELID = RENDELES.UGYFEL WHERE (RENDELES.TELJESITVE IS NOT NULL) ORDER BY RENDELES.TELJESITVE DESC">
    </asp:SqlDataSource>
</asp:Content>
