<%@ Page Language="c#" Codebehind="AdmWspUmowyCP.aspx.cs" AutoEventWireup="True"
    Inherits="KOLKaP_WEB.KOLKaP.AdmWspUmowyCP" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>AdmWspUmowyCP</title>
    
    <meta name="CODE_LANGUAGE" content="C#" />
    <meta name="vs_defaultClientScript" content="JavaScript" />
    <link rel="stylesheet" href="../jquery/themes/ui-lightness/jquery-ui-1.11.2.min.css" />
    <script src="../jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../jquery/ui/jquery-ui-1.11.2.min.js" type="text/javascript"></script>
    <script src="../jquery/jquery.blockUI.js" type="text/javascript"></script>
    
    <link href="../Web.css?2" type="text/css" rel="stylesheet" />
</head>
<body class="TableLRT0" oncontextmenu="return false">
    <form id="Form1" method="post" runat="server">
        <table class="Table" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
                <tr>
                    <td>
                    </td>
                    <td align="right">
                        <asp:Button ID="btnPowrot" runat="server" Text="Powrót" CssClass="Button" Width="90px"
                            OnClick="btnPowrot_Click"></asp:Button></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblError" runat="server"></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:DataGrid ID="dgUmowy" runat="server" CssClass="aspGrid" Width="100%" DataSource="<%# dvUmowy %>"
                            AutoGenerateColumns="False" AllowSorting="True" OnItemCommand="dgUmowy_ItemCommand1" OnSortCommand="dgUmowy_SortCommand1" OnItemCreated="dgUmowy_ItemCreated">
                            <SelectedItemStyle CssClass="TableItemSelected"></SelectedItemStyle>
                            <AlternatingItemStyle CssClass="TableItemAlt"></AlternatingItemStyle>
                            <ItemStyle CssClass="TableItem"></ItemStyle>
                            <HeaderStyle ForeColor="White" CssClass="TableHeader"></HeaderStyle>
                            <Columns>
                                <asp:ButtonColumn Text="Wybierz" ButtonType="PushButton" CommandName="Select"></asp:ButtonColumn>
                                <asp:BoundColumn Visible="False" DataField="ID_UMOWY" SortExpression="ID_UMOWY" HeaderText="ID_UMOWY">
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="NAZWISKO" SortExpression="NAZWISKO" HeaderText="Nazwisko">
                                    <HeaderStyle Width="15%"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="IMIE" SortExpression="IMIE" HeaderText="Imię">
                                    <HeaderStyle Width="15%"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="NAZWA_SKR" SortExpression="NAZWA_SKR" HeaderText="Nazwa skr.">
                                    <HeaderStyle Width="15%"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="PESEL" SortExpression="PESEL" HeaderText="PESEL">
                                    <HeaderStyle Width="10%"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="NIP" SortExpression="NIP" HeaderText="NIP">
                                    <HeaderStyle Width="10%"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="NUMER" SortExpression="NUMER" HeaderText="Nazwa">
                                    <HeaderStyle Width="5%"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="DATA_OD" SortExpression="DATA_OD" HeaderText="Od" DataFormatString="{0:yyyy-MM-dd}">
                                    <HeaderStyle Width="10%"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="DATA_DO" SortExpression="DATA_DO" HeaderText="Do" DataFormatString="{0:yyyy-MM-dd}">
                                    <HeaderStyle Width="10%"></HeaderStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="NAZWA_UMOWY" SortExpression="NAZWA_UMOWY" HeaderText="Rodzaj umowy">
                                    <HeaderStyle Width="10%"></HeaderStyle>
                                </asp:BoundColumn>
                            </Columns>
                            <PagerStyle BackColor="LightGray" CssClass="Pager"></PagerStyle>
                        </asp:DataGrid></td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
