Index: /trunk/BazaReklamSetup/BazaReklamSetup.vdproj
===================================================================
--- /trunk/BazaReklamSetup/BazaReklamSetup.vdproj (revision 834)
+++ /trunk/BazaReklamSetup/BazaReklamSetup.vdproj (revision 862)
@@ -656,6 +656,6 @@
         "Name" = "8:Microsoft Visual Studio"
         "ProductName" = "8:Baza Reklam"
-        "ProductCode" = "8:{1CFF966D-8387-4AFE-9F80-D8E5082FBA7A}"
-        "PackageCode" = "8:{B1AEB694-BA8A-4D58-9DEF-D159BCFCFF68}"
+        "ProductCode" = "8:{27C7FF33-D0F7-453C-AC4E-03F23CCDF24B}"
+        "PackageCode" = "8:{B76A3CEE-151D-4004-ABA2-AC1A9989F523}"
         "UpgradeCode" = "8:{4E2DBBA4-3139-4790-8DDB-7AADFC963A7D}"
         "RestartWWWService" = "11:FALSE"
@@ -663,5 +663,5 @@
         "DetectNewerInstalledVersion" = "11:TRUE"
         "InstallAllUsers" = "11:TRUE"
-        "ProductVersion" = "8:1.1.31"
+        "ProductVersion" = "8:1.1.33"
         "Manufacturer" = "8:AACT"
         "ARPHELPTELEPHONE" = "8:"
Index: /trunk/BazaReklam/OrderDetails.cs
===================================================================
--- /trunk/BazaReklam/OrderDetails.cs (revision 829)
+++ /trunk/BazaReklam/OrderDetails.cs (revision 862)
@@ -836,4 +836,5 @@
         public void DodajNoweZamowienie(int custId, string kodKlienta)
         {
+            tYTULComboBox.Enabled = true;
             nowyRekord = true;
             bylyZmiany = false;
Index: /trunk/BazaReklam/Docs/versioninfo.html
===================================================================
--- /trunk/BazaReklam/Docs/versioninfo.html (revision 834)
+++ /trunk/BazaReklam/Docs/versioninfo.html (revision 862)
@@ -6,4 +6,14 @@
 <body>
    <h1>Baza reklam - Informacje o wersji</h1>
+   <div>
+        <a id="1.1.33" />
+        <h2>Wersja 1.1.33 (2009-10-22)</h2>
+        <p>Opis zmian wprowadzonych do wersji 1.1.33</p>
+        <ul>
+            <li>Poprawiono dane zleceniobierocy na zamówieniach dla Auto Shoppera</li>
+            <li>Poprawiono problem z nieaktywnym polem wybory tytułu w oknie reklama</li>
+            <li>Dodano podpis wystawcy na fakturach dla Poznania i Katowic</li>
+        </ul>
+   </div>
    <div>
         <a id="1.1.31" />
Index: /trunk/BazaReklam/Baza Reklam.csproj
===================================================================
--- /trunk/BazaReklam/Baza Reklam.csproj (revision 834)
+++ /trunk/BazaReklam/Baza Reklam.csproj (revision 862)
@@ -33,5 +33,5 @@
     <WebPage>index.htm</WebPage>
     <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
-    <ApplicationVersion>1.1.31.0</ApplicationVersion>
+    <ApplicationVersion>1.1.33.0</ApplicationVersion>
     <BootstrapperEnabled>false</BootstrapperEnabled>
   </PropertyGroup>
@@ -754,36 +754,36 @@
     <PublishFile Include="ADODB">
       <Visible>False</Visible>
+      <PublishState>Exclude</PublishState>
       <Group>
       </Group>
       <TargetPath>
       </TargetPath>
-      <PublishState>Exclude</PublishState>
       <FileType>Assembly</FileType>
     </PublishFile>
     <PublishFile Include="Microsoft.ReportViewer.Common">
       <Visible>False</Visible>
+      <PublishState>Include</PublishState>
       <Group>
       </Group>
       <TargetPath>
       </TargetPath>
-      <PublishState>Include</PublishState>
       <FileType>Assembly</FileType>
     </PublishFile>
     <PublishFile Include="Microsoft.ReportViewer.ProcessingObjectModel">
       <Visible>False</Visible>
+      <PublishState>Include</PublishState>
       <Group>
       </Group>
       <TargetPath>
       </TargetPath>
-      <PublishState>Include</PublishState>
       <FileType>Assembly</FileType>
     </PublishFile>
     <PublishFile Include="Microsoft.ReportViewer.WinForms">
       <Visible>False</Visible>
+      <PublishState>Include</PublishState>
       <Group>
       </Group>
       <TargetPath>
       </TargetPath>
-      <PublishState>Include</PublishState>
       <FileType>Assembly</FileType>
     </PublishFile>
Index: /trunk/BazaReklam/Properties/AssemblyInfo.cs
===================================================================
--- /trunk/BazaReklam/Properties/AssemblyInfo.cs (revision 834)
+++ /trunk/BazaReklam/Properties/AssemblyInfo.cs (revision 862)
@@ -30,3 +30,3 @@
 //
 [assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.1.31")]
+[assembly: AssemblyFileVersion("1.1.33")]
Index: /trunk/BazaReklam/OrderViewer.cs
===================================================================
--- /trunk/BazaReklam/OrderViewer.cs (revision 732)
+++ /trunk/BazaReklam/OrderViewer.cs (revision 862)
@@ -13,9 +13,13 @@
 using System.Reflection;
 
+using Baza_Reklam.Classes.Helpers;
+using Baza_Reklam.Classes.Interfaces;
+using Baza_Reklam.Classes.Model;
+using Baza_Reklam.Classes.Repositories;
+
 namespace Baza_Reklam
 {
     public partial class OrderViewer : Form
     {
-        private readonly InvoiceProviderTableAdapter invoiceProviderTableAdapter;
         private int reklamaId;
         DataSet ds;
@@ -62,7 +66,4 @@
         public OrderViewer(int idZamowienia, int a)
         {
-            invoiceProviderTableAdapter = new InvoiceProviderTableAdapter();
-            invoiceProviderTableAdapter.ClearBeforeFill = true;
-
             InitializeComponent();
             reklamaId = idZamowienia;
@@ -71,5 +72,4 @@
 
             zamowienie2TableAdapter.Connection.ConnectionString = ConnString.getConnString().Value;
-            invoiceProviderTableAdapter.Connection.ConnectionString = ConnString.getConnString().Value;
 
             reportViewer1.LocalReport.ReportEmbeddedResource = "Baza_Reklam.Raporty.zamowienie2.rdlc";
@@ -82,8 +82,11 @@
             reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("zamowienie2", dt));
 
-            int invoiceProviderId = (int) invoiceProviderTableAdapter.GetDataByIdZamowienia(idZamowienia).Rows[0]["Id"];
-            
+            TitleRepository repository = new TitleRepository(ConnString.getConnString().Value);
+            List<Title> _titles = repository.FindAllActive();
+
+            Title title = _titles.Find(delegate(Title t) { return t.ShortName == dt.Rows[0]["TYTU£"].ToString(); });
+
             reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Baza_Reklam_InvoiceProvider", 
-                                                                           InvoiceProviderFactory.GetInvoiceProvidersById(invoiceProviderId)));
+                                                                           InvoiceProviderFactory.GetInvoiceProvidersById(title.InvoiceProvider)));
 
             jezykComboBox.SelectedIndex = 0;
