<%@ Page Language="c#" Codebehind="HarmRealizujZbiorczoPracownicyWybierz.aspx.cs" AutoEventWireup="True" Inherits="KOLKaP_WEB.KOLKaP.HarmRealizujZbiorczoPracownicyWybierz" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>HarmRealizujZbiorczoPracownicyWybierz</title>
  
  <meta content="C#" name="CODE_LANGUAGE" />
  <meta content="JavaScript" name="vs_defaultClientScript" />
  
  <link href="../Web.css?2" type="text/css" rel="stylesheet" />
  <style type="text/css">
    .DataGridFixedHeader { POSITION: relative; ; TOP: expression(this.offsetParent.scrollTop) }
  </style>
</head>
<body class="Body" oncontextmenu="return false" style="margin-left:0; margin-right:0">
  <script type="text/javascript">
    window.onload = function() {
      if (document.getElementById('ceZObowiazujacaUmowaDla').checked)
        document.getElementById('ddlJednostka').disabled = false;
      else
        document.getElementById('ddlJednostka').disabled = true;
        
      document.getElementById('ceZObowiazujacaUmowaDla').onclick = function() {
        if(this.checked) 
          document.getElementById('ddlJednostka').disabled = false;
        else if(!this.checked) 
          document.getElementById('ddlJednostka').disabled = true;
      }
      
      if (document.getElementById('ceZakonczone').checked)
        document.getElementById('ddlJednostkaZakonczone').disabled = false;
      else
        document.getElementById('ddlJednostkaZakonczone').disabled = true;
      
      document.getElementById('ceZakonczone').onclick = function() {
        if(this.checked) 
          document.getElementById('ddlJednostkaZakonczone').disabled = false;
        else if(!this.checked) 
          document.getElementById('ddlJednostkaZakonczone').disabled = true;
      }
    }
  </script>
  <form id="Form2" method="post" runat="server">
    <table class="Body" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr>
        <td colspan="5">
          <asp:Label ID="lblOpis" runat="server" Font-Bold="True" Font-Size="Medium"></asp:Label>
        </td>
      </tr>
      <tr>
        <td colspan="5">
          <asp:Label ID="lblError" runat="server"></asp:Label>
        </td>
      </tr>
      <tr>
        <td valign="bottom" style="width:20%">
          <small>Nazwisko</small><asp:TextBox ID="tbNazwisko" runat="server" Width="100%"></asp:TextBox>
        </td>
        <td valign="bottom" style="width:20%">
          <small>Imię</small>
          <asp:TextBox ID="tbImie" runat="server" Width="100%"></asp:TextBox>
        </td>
        <td valign="bottom" style="width:20%">
          <small><asp:Label ID="lblPesel" runat="server">Pesel</asp:Label></small><asp:TextBox ID="tbPesel" runat="server" Width="100%"></asp:TextBox>
        </td>
        <td valign="bottom" style="width:20%">
          <small><asp:Label ID="lblNrKartoteki" runat="server">Nr kartoteki</asp:Label></small>
          <asp:TextBox ID="tbNrKartoteki" runat="server" Width="100%"></asp:TextBox>
        </td>
        <td valign="bottom" style="width:20%">
          <asp:Button ID="btnOdswiez" runat="server" Width="90px" Text="Odśwież" CssClass="Button"
            OnClick="btnOdswiez_Click"></asp:Button>
        </td>
      </tr>
      <tr>
        <td valign="bottom" style="width:20%">
          <asp:CheckBox ID="ceZObowiazujacaUmowaDla" runat="server" Checked="True" Text="Z obowiązującą umową dla">
          </asp:CheckBox>
        </td>
        <td valign="bottom" style="width:20%" colspan="2">
          <asp:Label ID="lblJednostka" runat="server">
							<small>Jednostka</small></asp:Label><asp:DropDownList ID="ddlJednostka" runat="server"
                Width="100%" Enabled="False">
              </asp:DropDownList>
        </td>
        <td valign="bottom" style="width:20%">
          <asp:CheckBox ID="ceBezUmowy" runat="server" Text="Bez umowy"></asp:CheckBox>
        </td>
        <td valign="bottom" style="width:20%"></td>
        <td style="width:20%"></td>
      </tr>
      <tr>
        <td valign="bottom" style="width:20%">
          <asp:CheckBox ID="ceZakonczone" runat="server" Text="Z zakończoną umową dla"></asp:CheckBox>
        </td>
        <td valign="bottom" style="width:20%" colspan="2">
          <asp:Label ID="lblJednostaZakonczone" runat="server"><small>Jednostka</small></asp:Label>
				  <asp:DropDownList ID="ddlJednostkaZakonczone" runat="server" Width="100%" Enabled="False">
          </asp:DropDownList>
        </td>
        <td valign="bottom" style="width:20%"><asp:CheckBox ID="cbWyeksportowane" runat="server" Text="Wyeksportowane" Visible="False"></asp:CheckBox>
        </td>
        <td valign="bottom" style="width:20%">
          <asp:Button ID="btnWybierz" runat="server" Width="90px" CssClass="Button" Text="Wybierz"
            OnClick="btnWybierz_Click"></asp:Button><asp:Button ID="btnPowrot" runat="server"
              Width="90px" CssClass="Button" Text="Powrót" OnClick="btnPowrot_Click"></asp:Button>
        </td>
        <td style="width:20%"></td>
      </tr>
    </table>
    <br />
    <table cellspacing="0" cellpadding="0" width="100%" style="height:100%" border="0">
      <tbody>
        <tr style="height:15px">
          <td valign="bottom" style="width:50%; background-color:#DCDCDC; height: 15px;">
            <asp:Label ID="lblPracownicy" runat="server" BackColor="Gainsboro" Font-Size="11px"
              Width="100%" Font-Names="Tahoma,Arial,Helvetica" Visible="False"></asp:Label>
          </td>
          <td valign="bottom" style="width:50%; background-color:#DCDCDC; height: 15px;" align="right"><asp:Button ID="btnZaznacz" runat="server"
              Width="130px" CssClass="Button" Text="Zaznacz wszystkie" Height="20px" OnClick="btnZaznacz_Click" Visible="False"></asp:Button><asp:Button ID="btnOdwrocZaznaczenie" runat="server"
              Width="130px" CssClass="Button" Text="Odwróć zaznaczenie" Height="20px" OnClick="btnOdwrocZaznaczenie_Click" Visible="False"></asp:Button>
          </td>
        </tr>
        <tr>
          <td colspan="2" valign="top">
            <asp:DataGrid ID="dgPracownicy" runat="server" Width="100%" CssClass="aspGrid" AutoGenerateColumns="False"
              DataSource="<%# dvPracownicy %>" PageSize="15" AllowSorting="True">
              <AlternatingItemStyle CssClass="TableItemAlt"></AlternatingItemStyle>
              <ItemStyle CssClass="TableItem"></ItemStyle>
              <HeaderStyle HorizontalAlign="Center" ForeColor="White" CssClass="TableHeader" VerticalAlign="Top">
              </HeaderStyle>
              <Columns>
                <asp:TemplateColumn HeaderText="Wybierz">
                  <HeaderStyle Width="10px"></HeaderStyle>
                  <ItemStyle HorizontalAlign="Center"></ItemStyle>
                  <ItemTemplate>
                    <asp:CheckBox runat="server" ID="ceWybierzPracownika" />
                  </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn Visible="False" DataField="ID_PRACOWNIKA" SortExpression="ID_PRACOWNIKA"
                  HeaderText="ID_PRACOWNIKA"></asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="ID_KTH_ALT" SortExpression="ID_KTH_ALT"
                  HeaderText="ID_KTH_ALT"></asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="DATA_URODZENIA" SortExpression="DATA_URODZENIA"
                  HeaderText="DATA_URODZENIA"></asp:BoundColumn>
                <asp:BoundColumn DataField="NAZWISKO" SortExpression="NAZWISKO" HeaderText="Nazwisko">
                </asp:BoundColumn>
                <asp:BoundColumn DataField="IMIE" SortExpression="IMIE" HeaderText="Imie"></asp:BoundColumn>
                <asp:BoundColumn DataField="JEDNOSTKA" SortExpression="JEDNOSTKA" HeaderText="Jednostka">
                </asp:BoundColumn>
                <asp:BoundColumn DataField="STANOWISKO" SortExpression="STANOWISKO" HeaderText="Stanowisko">
                </asp:BoundColumn>
                <asp:BoundColumn DataField="DATA_ROZP_WSP" SortExpression="DATA_ROZP_WSP" HeaderText="Rozpoczęcie wsp&#243;łpracy" DataFormatString="{0:yyyy-MM-dd}">
                </asp:BoundColumn>
                <asp:BoundColumn DataField="DATA_DO" SortExpression="DATA_DO" HeaderText="Zatrudniony do" DataFormatString="{0:yyyy-MM-dd}">
                </asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="PESEL" SortExpression="PESEL" HeaderText="PESEL"></asp:BoundColumn>
                <asp:BoundColumn DataField="NAZWA_SKR" SortExpression="NAZWA_SKR" HeaderText="Nazwa skr.">
                </asp:BoundColumn>
                <asp:BoundColumn DataField="NR_KARTOTEKI" SortExpression="NR_KARTOTEKI" HeaderText="Nr kartoteki">
                </asp:BoundColumn>
                <asp:BoundColumn DataField="ID_KONTRAHENTA" SortExpression="ID_KONTRAHENTA" HeaderText="Id kontrahenta">
                </asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="NIP" SortExpression="NIP" HeaderText="NIP">
                </asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="NAZWISKO_IMIE" SortExpression="NAZWISKO_IMIE"
                  HeaderText="NAZWISKO_IMIE"></asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="PRACOWNIK" SortExpression="PRACOWNIK"
                  HeaderText="PRACOWNIK"></asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="WSPOLPRACOWNIK" SortExpression="WSPOLPRACOWNIK"
                  HeaderText="WSPOLPRACOWNIK"></asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="ID_MPZ" SortExpression="ID_MPZ" HeaderText="ID_MPZ">
                </asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="ID_UMOWY" SortExpression="ID_UMOWY" HeaderText="ID_UMOWY">
                </asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="AKTUALNA" SortExpression="AKTUALNA" HeaderText="AKTUALNA">
                </asp:BoundColumn>
              </Columns>
              <PagerStyle BackColor="LightGray" CssClass="Pager"></PagerStyle>
            </asp:DataGrid>
          </td>
        </tr>
      </tbody>
    </table>
  </form>
</body>
</html>
