Index: branches/Abonament/RaportySQL/ZmianyEmisji.rdl
===================================================================
--- branches/Abonament/RaportySQL/ZmianyEmisji.rdl (revision 130)
+++ branches/Abonament/RaportySQL/ZmianyEmisji.rdl (revision 769)
@@ -72,5 +72,5 @@
         <Field Name="netto">
           <DataField>netto</DataField>
-          <rd:TypeName>System.Double</rd:TypeName>
+          <rd:TypeName>System.Decimal</rd:TypeName>
         </Field>
         <Field Name="DATA_W">
@@ -82,5 +82,5 @@
         <DataSourceName>BAZA_REKLAM</DataSourceName>
         <CommandText>SELECT     idFaktury, NrFaktury, reklamaId, [id reklamy], idZamowienia, nrWyd, dataZmiany, netto, DATA_W
-FROM         VIEW_RAPORT_ZMIAN_EMISJI
+FROM         dbo.VIEW_RAPORT_ZMIAN_EMISJI
 WHERE     (dataZmiany &gt;= @od) AND (dataZmiany &lt;= @do)
 ORDER BY dataZmiany</CommandText>
@@ -97,5 +97,5 @@
   </DataSets>
   <Code />
-  <Width>19cm</Width>
+  <Width>17.27645cm</Width>
   <Body>
     <ColumnSpacing>1cm</ColumnSpacing>
@@ -104,5 +104,4 @@
         <DataSetName>Zmiany</DataSetName>
         <Top>0.5cm</Top>
-        <Width>18.77645cm</Width>
         <Details>
           <TableRows>
@@ -508,8 +507,11 @@
         <TableColumns>
           <TableColumn>
-            <Width>0.75cm</Width>
-          </TableColumn>
-          <TableColumn>
-            <Width>4.25cm</Width>
+            <Width>1cm</Width>
+          </TableColumn>
+          <TableColumn>
+            <Width>3.75cm</Width>
+          </TableColumn>
+          <TableColumn>
+            <Width>2.77646cm</Width>
           </TableColumn>
           <TableColumn>
@@ -517,8 +519,5 @@
           </TableColumn>
           <TableColumn>
-            <Width>2.75cm</Width>
-          </TableColumn>
-          <TableColumn>
-            <Width>2.02645cm</Width>
+            <Width>1.5cm</Width>
           </TableColumn>
           <TableColumn>
@@ -526,5 +525,5 @@
           </TableColumn>
           <TableColumn>
-            <Width>3.75cm</Width>
+            <Width>3cm</Width>
           </TableColumn>
         </TableColumns>
Index: branches/Abonament/BazaReklamSetup/BazaReklamSetup.vdproj
===================================================================
--- branches/Abonament/BazaReklamSetup/BazaReklamSetup.vdproj (revision 763)
+++ branches/Abonament/BazaReklamSetup/BazaReklamSetup.vdproj (revision 769)
@@ -656,6 +656,6 @@
         "Name" = "8:Microsoft Visual Studio"
         "ProductName" = "8:Baza Reklam"
-        "ProductCode" = "8:{6D59D318-A28A-4635-9D6F-1EBFDD3FDA32}"
-        "PackageCode" = "8:{B8039EEE-AE21-4E96-ACC4-9A59E89D2E0F}"
+        "ProductCode" = "8:{F0CEF34A-E815-4D04-8A8E-28047479257F}"
+        "PackageCode" = "8:{22ABD221-8699-47FA-96A6-F0FC1D3952C9}"
         "UpgradeCode" = "8:{4E2DBBA4-3139-4790-8DDB-7AADFC963A7D}"
         "RestartWWWService" = "11:FALSE"
@@ -663,5 +663,5 @@
         "DetectNewerInstalledVersion" = "11:TRUE"
         "InstallAllUsers" = "11:TRUE"
-        "ProductVersion" = "8:1.1.22"
+        "ProductVersion" = "8:1.1.23"
         "Manufacturer" = "8:AACT"
         "ARPHELPTELEPHONE" = "8:"
Index: branches/Abonament/SQL/StoredProcedures/sp_AddUpdateIssueChange.txt
===================================================================
--- branches/Abonament/SQL/StoredProcedures/sp_AddUpdateIssueChange.txt (revision 769)
+++ branches/Abonament/SQL/StoredProcedures/sp_AddUpdateIssueChange.txt (revision 769)
@@ -0,0 +1,53 @@
+
+SET ANSI_NULLS ON
+GO
+SET QUOTED_IDENTIFIER ON
+GO
+
+-- =============================================
+-- Author:		marek
+-- Create date: 22/07/2009
+-- Description:	Dodaje lub uaktualnia rekord zmiany emisji w tabeli ZmianyEmisji
+-- =============================================
+ALTER PROCEDURE [dbo].[sp_AddUpdateIssueChange]
+	-- Add the parameters for the stored procedure here
+	@issueId DECIMAL(18,0),
+	@currentIssueNumer INT,
+	@newIssueNumber INT
+AS
+BEGIN
+	-- SET NOCOUNT ON added to prevent extra result sets from
+	-- interfering with SELECT statements.
+	SET NOCOUNT ON;
+
+    -- Insert statements for procedure here
+	DECLARE @rows INT
+
+	SELECT @rows = COUNT(Id) FROM zmianyEmisji WHERE idEmisji=@issueId AND YEAR(dataZmiany)=YEAR(GETDATE()) AND MONTH(dataZmiany)=MONTH(GETDATE())
+
+	IF @rows>0
+		BEGIN
+			UPDATE zmianyEmisji 
+			SET nastNrWyd=@newIssueNumber, dataZmiany=GETDATE()
+			WHERE idEmisji=@issueId AND YEAR(dataZmiany)=YEAR(GETDATE()) AND MONTH(dataZmiany)=MONTH(GETDATE())
+
+			--sprawdz czy nowy numer emisji nie jest taki sam jak stary numer, jesli tak to usun zmiane emisji
+			DECLARE @issueNumber INT
+			SELECT @issueNumber=popNrWyd FROM zmianyEmisji WHERE idEmisji=@issueId AND YEAR(dataZmiany)=YEAR(GETDATE()) AND MONTH(dataZmiany)=MONTH(GETDATE())
+			IF @issueNumber=@newIssueNumber
+				DELETE FROM zmianyEmisji WHERE idEmisji=@issueId AND YEAR(dataZmiany)=YEAR(GETDATE()) AND MONTH(dataZmiany)=MONTH(GETDATE())
+		END
+	ELSE 
+		BEGIN
+			INSERT INTO zmianyEmisji(idEmisji, popNrWyd, nastNrWyd, dataZmiany)
+			VALUES(@issueId, @currentIssueNumer, @newIssueNumber, GETDATE())
+		END
+
+END
+GO
+
+SET ANSI_NULLS OFF
+GO
+SET QUOTED_IDENTIFIER OFF
+GO
+
Index: branches/Abonament/SQL/Views/VIEW_RAPORT_ZMIAN_EMISJI.txt
===================================================================
--- branches/Abonament/SQL/Views/VIEW_RAPORT_ZMIAN_EMISJI.txt (revision 754)
+++ branches/Abonament/SQL/Views/VIEW_RAPORT_ZMIAN_EMISJI.txt (revision 769)
@@ -32,10 +32,10 @@
 FROM dbo.zmianyEmisji ZE 
 LEFT JOIN dbo.[UKA¯E SIÊ W NR] U ON ZE.idEmisji = U.id 
-WHERE ZE.popNrWyd > 0
+WHERE U.idFaktury IS NOT NULL
 UNION 
 select U.idFaktury,U.reklamaId, ZE.idEmisji, ZE.nastNrWyd, ZE.dataZmiany, + U.netto, 0 as Korekta 
 FROM dbo.zmianyEmisji ZE 
 LEFT JOIN dbo.[UKA¯E SIÊ W NR] U ON ZE.idEmisji = U.id 
-WHERE ZE.nastNrWyd > 0
+WHERE U.idFaktury IS NOT NULL
 --UNION 
 --SELECT idFaktury, reklamaId, ID, [Nr Wydania], dataAnulowania, -netto, 1 as Korekta 
Index: branches/Abonament/BazaReklam/OrderDetails.cs
===================================================================
--- branches/Abonament/BazaReklam/OrderDetails.cs (revision 754)
+++ branches/Abonament/BazaReklam/OrderDetails.cs (revision 769)
@@ -1285,7 +1285,7 @@
                     if (emisjaRow.zafakturowana)
                     {
-                        zmienToolStripMenuItem.Visible = true;
+                        zmienToolStripMenuItem.Visible = emisjaRow.status == 0;
                         usunToolStripMenuItem.Visible = false;
-                        anulujToolStripMenuItem.Visible = true;
+                        anulujToolStripMenuItem.Visible = emisjaRow.status == 0;
 
                         e.ContextMenuStrip = emisjeContextMenuStrip;
@@ -1369,9 +1369,9 @@
                                                             emisja.Nr_Wydania);
 
-            if (kalendarz.ShowDialog() == DialogResult.OK)
+            if (kalendarz.ShowDialog() == DialogResult.OK && kalendarz.NowaEmisja.HasValue)
             {
                 short staraEmisja = emisja.Nr_Wydania;
 
-                emisja.Nr_Wydania = kalendarz.NowaEmisja;
+                emisja.Nr_Wydania = kalendarz.NowaEmisja.Value;
                 emisja.EndEdit();
                 rEKLAMADataSet.UKAZE_SIE_W_NR.EndInit();
@@ -1379,8 +1379,5 @@
 
                 if (emisja.zafakturowana && (staraEmisja != kalendarz.NowaEmisja))
-                    rEKLAMADataSet.zmianyEmisji.AddzmianyEmisjiRow(emisja,
-                                                                   staraEmisja,
-                                                                   kalendarz.NowaEmisja,
-                                                                   DateTime.Now);
+                    ReklamaHelper.AddUpdateIssueChange((double)emisja.ID, staraEmisja, kalendarz.NowaEmisja.Value);
             }
         }
Index: branches/Abonament/BazaReklam/ZamowieniaForm.cs
===================================================================
--- branches/Abonament/BazaReklam/ZamowieniaForm.cs (revision 760)
+++ branches/Abonament/BazaReklam/ZamowieniaForm.cs (revision 769)
@@ -1243,5 +1243,5 @@
                 usunKorekte(faktura);
             else
-                usunFakture(faktura);
+                UsunFakture(faktura);
 
             Cursor = Cursors.Default;
@@ -1306,5 +1306,5 @@
         }
 
-        private void usunFakture(REKLAMADataSet.FAKTURYRow faktura)
+        private void UsunFakture(REKLAMADataSet.FAKTURYRow faktura)
         {
             int idFakt = faktura.ID_FAKTURY;
@@ -1427,6 +1427,6 @@
                 DataRow[] rows = rEKLAMADataSet.FAKTURY.Select("id_faktury=" + id);
                 if (rows.Length > 0)
-                    usunFakture((REKLAMADataSet.FAKTURYRow)rows[0]);
-
+                    UsunFakture((REKLAMADataSet.FAKTURYRow) rows[0]);
+                
                 RestoreConnections();
                 Cursor = Cursors.Default;
Index: branches/Abonament/BazaReklam/Docs/versioninfo.html
===================================================================
--- branches/Abonament/BazaReklam/Docs/versioninfo.html (revision 763)
+++ branches/Abonament/BazaReklam/Docs/versioninfo.html (revision 769)
@@ -6,4 +6,12 @@
 <body>
    <h1>Baza reklam - Informacje o wersji</h1>
+   <div>
+        <a id="1.1.23" />
+        <h2>Wersja 1.1.23 (2009-07-22)</h2>
+        <p>Opis zmian wprowadzonych do wersji 1.1.23</p>
+        <ul>
+            <li>Zgłoszenie #185: poprawiono błąd występujący podczas zmiany numeru emisji - czasem jako nr wydania pojawiały się zera</li>
+        </ul>
+   </div>
    <div>
         <a id="1.1.22" />
Index: branches/Abonament/BazaReklam/Baza Reklam.csproj
===================================================================
--- branches/Abonament/BazaReklam/Baza Reklam.csproj (revision 763)
+++ branches/Abonament/BazaReklam/Baza Reklam.csproj (revision 769)
@@ -33,5 +33,5 @@
     <WebPage>index.htm</WebPage>
     <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
-    <ApplicationVersion>1.1.22.0</ApplicationVersion>
+    <ApplicationVersion>1.1.23.0</ApplicationVersion>
     <BootstrapperEnabled>false</BootstrapperEnabled>
   </PropertyGroup>
Index: branches/Abonament/BazaReklam/Classes/Helpers/ReklamaHelper.cs
===================================================================
--- branches/Abonament/BazaReklam/Classes/Helpers/ReklamaHelper.cs (revision 754)
+++ branches/Abonament/BazaReklam/Classes/Helpers/ReklamaHelper.cs (revision 769)
@@ -68,4 +68,34 @@
 
         }
+
+        public static void AddUpdateIssueChange(double issueId, int currentIssueNumer, int newIssueNumber)
+        {
+            SqlConnection conn = null;
+            SqlCommand cmd = null;
+
+            try
+            {
+                conn = new SqlConnection(ConnString.getConnString().Value);
+                conn.Open();
+                cmd = new SqlCommand("sp_AddUpdateIssueChange", conn);
+                cmd.CommandType = CommandType.StoredProcedure;
+                cmd.Parameters.AddWithValue("@issueId", issueId);
+                cmd.Parameters.AddWithValue("@currentIssueNumer", currentIssueNumer);
+                cmd.Parameters.AddWithValue("@newIssueNumber", newIssueNumber);
+                cmd.ExecuteNonQuery();
+            }
+            finally
+            {
+                if (cmd != null)
+                    cmd.Dispose();
+
+                if (conn != null && conn.State == ConnectionState.Open)
+                {
+                    conn.Close();
+                    conn.Dispose();
+                }
+            }
+
+        }
     }
 }
Index: branches/Abonament/BazaReklam/KalendarzEmisji.cs
===================================================================
--- branches/Abonament/BazaReklam/KalendarzEmisji.cs (revision 754)
+++ branches/Abonament/BazaReklam/KalendarzEmisji.cs (revision 769)
@@ -9,19 +9,4 @@
     public partial class KalendarzEmisji : Form
     {
-        //emisja, która ukazala sie w gazecie
-        public readonly string WYDANA = "wydana";
-        //emisja, ktora sie dopiero ukaze
-        public readonly string NIEWYDANA = "niewydana";
-        //emisja zafakturowana
-        public readonly string ZAFAKTUROWANA = "zafakturowana";
-        //emisja zafakturowana i wydana
-        public readonly string ZAFAKTUROWANA_WYDANA = "zafakturowana_wydana";
-        //emisja siê nie ukazala, ale jest w miesiacu, ktory jest juz zafakturowany
-        public readonly string MS_ZAFAKTUROWANY_NIEWYDANA = "zafakturowana_wydana";
-        //emisja do zmiany
-        public readonly string DO_ZMIANY = "do_zmiany";
-        //emisja do zmiany
-        public readonly string NOWA = "nowa";
-
         string tytul;
 
@@ -37,5 +22,5 @@
 
         readonly short emisjaDoZmiany;
-        short nowaEmisja;
+        short? nowaEmisja;
 
         int iloscEmisji;
@@ -47,5 +32,5 @@
         #region properties
 
-        public short NowaEmisja
+        public short? NowaEmisja
         {
             get { return nowaEmisja; }
@@ -117,6 +102,4 @@
             nRDataGridView.CellValueChanged += nRDataGridView_CellValueChanged;
             nRDataGridView.CellContentClick += nRDataGridView_CellContentClicked;
-
-           // nRBindingSource.ResetBindings(false);
         }
 
@@ -155,49 +138,66 @@
         private void zmienButton_Click(object sender, EventArgs e)
         {
-            foreach (REKLAMADataSet.UKAZE_SIE_W_NRRow r in emisje)
-            {
-                if (r.RowState != DataRowState.Deleted)
-                {
-                    if (r.Nr_Wydania == emisjaDoZmiany)
-                    {
-                        r.Nr_Wydania = nowaEmisja;
-                        r.EndEdit();
-                        break;
-                    }
-                }
-            }
+            //foreach (REKLAMADataSet.UKAZE_SIE_W_NRRow r in emisje)
+            //{
+            //    if (r.RowState != DataRowState.Deleted)
+            //    {
+            //        if (r.Nr_Wydania == emisjaDoZmiany && nowaEmisja.HasValue)
+            //        {
+            //            r.Nr_Wydania = nowaEmisja.Value;
+            //            r.EndEdit();
+            //            break;
+            //        }
+            //    }
+            //}
+            nowaEmisja = GetNewIssueNumber();
+
+        }
+
+        private short? GetNewIssueNumber()
+        {
+            short? newIssueNumer = null;
+            bool? isIssueChecked;
+
+            foreach (DataGridViewRow row in nRDataGridView.Rows)
+            {
+                if (row.ReadOnly || (row.DefaultCellStyle.BackColor != Color.White && row.DefaultCellStyle.BackColor != Color.LightYellow)) continue;
+
+                isIssueChecked = (bool?)row.Cells[3].Value;
+                if (!isIssueChecked.HasValue || !isIssueChecked.Value) continue;
+
+                newIssueNumer = (short)row.Cells[0].Value;
+                break;
+            }
+
+            return newIssueNumer;
         }
 
         private void nRDataGridView_CellContentClicked(object sender, DataGridViewCellEventArgs e)
         {
-            if (e.RowIndex >= 0)
-            {
-                if (!nRDataGridView.Rows[e.RowIndex].ReadOnly)
-                {
-                    if (e.ColumnIndex == 3)
-                    {
-                        if (nRDataGridView.Rows[e.RowIndex].DefaultCellStyle.BackColor == Color.White)
-                        {
-                            if (emisjaDoZmiany != 0 && index != -1)
-                            {
-                                nRDataGridView.Rows[index].Cells[3].Value = false;
-                                nRDataGridView.Rows[index].DefaultCellStyle.BackColor = Color.White;
-                            }
-
-                            nowaEmisja = (short)nRDataGridView.Rows[e.RowIndex].Cells[0].Value;
-                            index = e.RowIndex;
-
-                            nRDataGridView.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.LightYellow;
-                        }
-                        else
-                        {
-                            nowaEmisja = (short)nRDataGridView.Rows[e.RowIndex].Cells[0].Value;
-                            index = e.RowIndex;
-
-                            nRDataGridView.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.White;
-                        }
-
-                    }
-                }
+            if (e.RowIndex < 0) return;
+
+            if (nRDataGridView.Rows[e.RowIndex].ReadOnly) return;
+
+            if (e.ColumnIndex != 3) return;
+
+            if (nRDataGridView.Rows[e.RowIndex].DefaultCellStyle.BackColor == Color.White)
+            {
+                if (emisjaDoZmiany != 0 && index != -1)
+                {
+                    nRDataGridView.Rows[index].Cells[3].Value = false;
+                    nRDataGridView.Rows[index].DefaultCellStyle.BackColor = Color.White;
+                }
+
+                nowaEmisja = (short) nRDataGridView.Rows[e.RowIndex].Cells[0].Value;
+                index = e.RowIndex;
+
+                nRDataGridView.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.LightYellow;
+            }
+            else
+            {
+                nowaEmisja = (short) nRDataGridView.Rows[e.RowIndex].Cells[0].Value;
+                index = e.RowIndex;
+
+                nRDataGridView.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.White;
             }
             nRDataGridView.EndEdit();
@@ -206,81 +206,74 @@
         private void nRDataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
         {
-            if (e.ColumnIndex == 3)
-            {
-                if (((bool)nRDataGridView[e.ColumnIndex, e.RowIndex].Value))
-                {
-                    iloscEmisji++;
-                }
-                else
-                {
-                    iloscEmisji--;
-                }
-
-                label2.Text = iloscEmisji.ToString();
-            }
+            if (e.ColumnIndex != 3) return;
+
+            if (((bool) nRDataGridView[e.ColumnIndex, e.RowIndex].Value))
+                iloscEmisji++;
+            else
+                iloscEmisji--;
+
+            label2.Text = iloscEmisji.ToString();
         }
 
         private void nRDataGridView_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
         {
-            if (e.ListChangedType == ListChangedType.Reset)
-            {
-                foreach (DataGridViewRow row in nRDataGridView.Rows)
-                {
-                    row.DefaultCellStyle.BackColor = Color.White;
-
-                    row.Cells[2].Value = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.DayNames
-                        [(int)Convert.ToDateTime(row.Cells[1].Value).DayOfWeek];
-
-                    DataRow[] table = emisje.Select("[Nr Wydania]=" + row.Cells[0].Value);
-
-                    if (table != null && table.Length > 0)
+            if (e.ListChangedType != ListChangedType.Reset) return;
+
+            foreach (DataGridViewRow row in nRDataGridView.Rows)
+            {
+                row.DefaultCellStyle.BackColor = Color.White;
+
+                row.Cells[2].Value = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.DayNames
+                    [(int) Convert.ToDateTime(row.Cells[1].Value).DayOfWeek];
+
+                DataRow[] table = emisje.Select("[Nr Wydania]=" + row.Cells[0].Value);
+
+                if (table != null && table.Length > 0)
+                {
+                    row.ReadOnly = true;
+                    row.Cells[3].Value = true;
+                    row.DefaultCellStyle.BackColor = Color.WhiteSmoke;
+
+                    REKLAMADataSet.UKAZE_SIE_W_NRRow em =
+                        (REKLAMADataSet.UKAZE_SIE_W_NRRow) table[0];
+
+                    if (Convert.ToDateTime(row.Cells[1].Value) < DateTime.Today)
+                    {
+                        row.DefaultCellStyle.BackColor = Color.MintCream;
+                    }
+                    else
+                    {
+                        if (em.zafakturowana)
+                        {
+                            row.DefaultCellStyle.BackColor = Color.LightGray;
+                        }
+
+                        //anulowana
+                        if (em.status == 2)
+                        {
+                            row.DefaultCellStyle.ForeColor = Color.Red;
+                        }
+
+                        if (emisjaDoZmiany == (short) row.Cells[0].Value)
+                        {
+                            row.DefaultCellStyle.BackColor = Color.MistyRose;
+                        }
+                    }
+                }
+                else if (emisjaDoZmiany == 0)
+                {
+                    //emisja nie zosta³a wczeniej wybrana, ale jej misi¹c ju¿
+                    // jest zafakturowany
+                    DateTime dataWydania = (DateTime) row.Cells[1].Value;
+                    if (dataWydania.Year <= dataOstatatniejZafakturowanejEmisji.Year
+                        &&
+                        dataWydania.Month <= dataOstatatniejZafakturowanejEmisji.Month)
                     {
                         row.ReadOnly = true;
-                        row.Cells[3].Value = true;
-                        row.DefaultCellStyle.BackColor = Color.WhiteSmoke;
-
-                        REKLAMADataSet.UKAZE_SIE_W_NRRow em =
-                            (REKLAMADataSet.UKAZE_SIE_W_NRRow)table[0];
-
-                        if (Convert.ToDateTime(row.Cells[1].Value) < DateTime.Today)
-                        {
-                            row.DefaultCellStyle.BackColor = Color.MintCream;
-                        }
-                        else
-                        {
-                            if (em.zafakturowana)
-                            {
-                                row.DefaultCellStyle.BackColor = Color.LightGray;
-                            }
-
-                            //anulowana
-                            if (em.status == 2)
-                            {
-                                row.DefaultCellStyle.ForeColor = Color.Red;
-                            }
-
-                            if (emisjaDoZmiany == (short)row.Cells[0].Value)
-                            {
-                                row.DefaultCellStyle.BackColor = Color.MistyRose;
-                            }
-                        }
-                    }
-                    else if (emisjaDoZmiany == 0)
-                    {
-                        //emisja nie zosta³a wczeniej wybrana, ale jej misi¹c ju¿
-                        // jest zafakturowany
-                        DateTime dataWydania = (DateTime)row.Cells[1].Value;
-                        if (dataWydania.Year <= dataOstatatniejZafakturowanejEmisji.Year
-                            &&
-                            dataWydania.Month <= dataOstatatniejZafakturowanejEmisji.Month)
-                        {
-                            row.ReadOnly = true;
-                            row.DefaultCellStyle.BackColor = Color.LightGray;
-                        }
-                    }
-                }
-            }
-        }
-
+                        row.DefaultCellStyle.BackColor = Color.LightGray;
+                    }
+                }
+            }
+        }
     }
 }
Index: branches/Abonament/BazaReklam/Properties/AssemblyInfo.cs
===================================================================
--- branches/Abonament/BazaReklam/Properties/AssemblyInfo.cs (revision 763)
+++ branches/Abonament/BazaReklam/Properties/AssemblyInfo.cs (revision 769)
@@ -30,3 +30,3 @@
 //
 [assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.1.22")]
+[assembly: AssemblyFileVersion("1.1.23")]
