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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>Zakres obowiązków</title>
    
    <meta content="C#" name="CODE_LANGUAGE" />
    <meta content="JavaScript" name="vs_defaultClientScript" />
    
    <link href="../Web.css?2" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <div>
            <asp:Button ID="btnPowrot" runat="server" CssClass="aspButton" Width="105px" Height="22px"
                BorderStyle="None"  Text="Stanowisko"
                OnClick="btnPowrot_Click"></asp:Button><asp:Button ID="Button1" runat="server" CssClass="aspButton"
                    Width="105px" Height="22px" BorderStyle="None" 
                    Text="Obowiązki"></asp:Button>
        </div>
        <table style="background-color: #c7c7c7; width:100%">
            <tr>
                <td style="height: 20px">
                    <asp:Button ID="btnDodaj" runat="server" Width="110px" CssClass="aspButton" Text="Dodaj"
                        OnClick="btnDodaj_Click"></asp:Button><asp:Button ID="btnEdytuj" runat="server" Width="110px"
                            CssClass="aspButton" Text="Edytuj" Enabled="False" OnClick="btnEdytuj_Click"></asp:Button><asp:Button
                                ID="btnUsun" runat="server" Width="110px" CssClass="aspButton" Text="Usuń" Enabled="False"
                                OnClick="btnUsun_Click"></asp:Button></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblError" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:DataGrid ID="dgAkStanowiskaObowiazki" runat="server" Width="100%" CssClass="aspGrid"
                        AllowSorting="True" AutoGenerateColumns="False" DataSource="<%# dvObowiazki %>"
                        AllowPaging="True">
                        <AlternatingItemStyle CssClass="TableItemAlt"></AlternatingItemStyle>
                        <ItemStyle CssClass="TableItem"></ItemStyle>
                        <HeaderStyle HorizontalAlign="Center" ForeColor="White" CssClass="TableHeader"></HeaderStyle>
                        <Columns>
                            <asp:ButtonColumn CommandName="Select">
                                <HeaderStyle Width="0px" />
                            </asp:ButtonColumn>
                            <asp:BoundColumn Visible="False" DataField="ID_OBOWIAZKU" SortExpression="ID_OBOWIAZKU">
                            </asp:BoundColumn>
                            <asp:BoundColumn Visible="False" DataField="ID_WNIOSKU" SortExpression="ID_WNIOSKU"
                                HeaderText="ID_WNIOSKU"></asp:BoundColumn>
                            <asp:BoundColumn DataField="NAZWA" SortExpression="NAZWA" HeaderText="Nazwa">
                                <HeaderStyle Width="20%"></HeaderStyle>
                            </asp:BoundColumn>
                            <asp:BoundColumn Visible="False" DataField="TRESC" SortExpression="TRESC" HeaderText="Treść">
                                <HeaderStyle Width="80%"></HeaderStyle>
                                <ItemStyle Wrap="False"></ItemStyle>
                            </asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="Treść">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TRESC") %>'
                                        Width="100%" TextMode="MultiLine" Height="100%" ReadOnly="True">
                                    </asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                        <PagerStyle HorizontalAlign="Left" Position="Top" BackColor="LightGray" CssClass="Pager"
                            Mode="NumericPages"></PagerStyle>
                    </asp:DataGrid></td>
            </tr>
        </table>
    </form>
</body>
</html>
