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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>KOLKaP - Kadry Płace</title>
    <meta http-equiv="pragma" content="no-cache" />
    <link href="../Web.css?2" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="../jquery/themes/ui-lightness/jquery-ui-1.9.2.custom.min.css" />

    <script src="../jquery/jquery-1.8.3.min.js" type="text/javascript"></script>

    <script src="../jquery/ui/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript" src="../Skrypty.js"></script>

    <script language="javascript" type="text/javascript">
        $(function () {

            $("#btnDodaj").button({ icons: { primary: 'ui-icon-plusthick' } });
            $("#btnPopraw").button({ icons: { primary: 'ui-icon-pencil' } });
            $("#btnUsun").button({ icons: { primary: 'ui-icon-minusthick' } });
            $("#btnOdswiezSkladniki").button({ icons: { primary: 'ui-icon-refresh' } });
        });
    </script>

</head>
<body class="Table" oncontextmenu="return false">
    <form id="frmKOLKaPSpecyfikacjeSkladniki" method="post" runat="server">
        <table class="Table" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr valign="top">
                <td valign="bottom" colspan="2" style="height: 20">
                    <span style="font-size: 16; font-weight: bold">
                        <asp:Label ID="lbTitle" runat="server">Składniki specyfikacji</asp:Label>
                        <asp:TextBox ID="tbIdSpecyfikacji" runat="server" Visible="False" Height="8px" Width="104px"></asp:TextBox>
                    </span>
                </td>
            </tr>
            <tr>
                <td valign="middle" style="height: 30">
                    <div>
                        <div style="float: left;">
                            <asp:LinkButton ID="btnDodaj" runat="server" CssClass="aspButton" Text="Dodaj" OnClick="btnDodaj_Click"
                                Style="display: none;"></asp:LinkButton>
                        </div>
                        <div style="float: left;">
                            <asp:LinkButton ID="btnPopraw" runat="server" CssClass="aspButton" Text="Edytuj"
                                OnClick="btnPopraw_Click" Style="display: none;"></asp:LinkButton>
                        </div>
                        <div style="float: left;">
                            <asp:LinkButton ID="btnUsun" runat="server" CssClass="aspButton" Text="Usuń" OnClick="btnUsun_Click"
                                Style="display: none;"></asp:LinkButton>
                        </div>
                        <div style="float: left;">
                            <asp:LinkButton ID="btnOdswiezSkladniki" runat="server" CssClass="aspButton" Text="Odśwież składniki umowy"
                                OnClick="btnOdswiezSkladniki_Click" Style="display: none; width: 200px;"></asp:LinkButton>
                        </div>
                    </div>
                </td>
                <td align="right" style="height: 41">
                    <h5>
                        <asp:Label ID="lblKwotaNettoNazwa" runat="server">Kwota netto:</asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label
                            ID="lblKwota" runat="server">Label</asp:Label>
                    </h5>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:DataGrid ID="dgSkladniki" runat="server" Width="100%" AllowPaging="True" AutoGenerateColumns="False"
                        Font-Names="Verdana" Font-Size="XX-Small" ForeColor="Black" GridLines="None" CellPadding="3"
                        BackColor="White" BorderWidth="2px" CellSpacing="1" BorderStyle="Ridge" BorderColor="White"
                        AllowSorting="True" DataSource="<%# dvSpecyfikacje %>">
                        <SelectedItemStyle BackColor="Gray"></SelectedItemStyle>
                        <AlternatingItemStyle BackColor="WhiteSmoke"></AlternatingItemStyle>
                        <ItemStyle BackColor="Gainsboro"></ItemStyle>
                        <HeaderStyle HorizontalAlign="Center" ForeColor="White" CssClass="TableHeader"></HeaderStyle>
                        <FooterStyle Font-Size="XX-Small" Font-Bold="True" ForeColor="White" VerticalAlign="Middle"
                            BackColor="Navy"></FooterStyle>
                        <Columns>
                            <asp:BoundColumn Visible="False" DataField="ID_SKLADNIKA"></asp:BoundColumn>
                            <asp:BoundColumn Visible="False" DataField="ID_SKLADNIKA_SLOWNIK"></asp:BoundColumn>
                            <asp:ButtonColumn CommandName="Select">
                                <HeaderStyle Width="0px" />
                            </asp:ButtonColumn>
                            <asp:BoundColumn DataField="NAZWA_SKLADNIKA" SortExpression="NAZWA_SKLADNIKA" HeaderText="Składnik umowy"></asp:BoundColumn>
                            <asp:BoundColumn DataField="OPIS" SortExpression="OPIS" HeaderText="Opis"></asp:BoundColumn>
                            <asp:BoundColumn DataField="KWOTA" SortExpression="KWOTA" HeaderText="Kwota netto"
                                DataFormatString="{0:C}">
                                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                            </asp:BoundColumn>
                        </Columns>
                        <PagerStyle Font-Size="X-Small" Font-Bold="True" HorizontalAlign="Left" ForeColor="Black"
                            Position="Top" BackColor="Gainsboro" Mode="NumericPages"></PagerStyle>
                    </asp:DataGrid></td>
            </tr>
            <tr>
                <td colspan="2" style="height: 20">
                    <asp:Label ID="lbError" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
