- Data:
- 2009-07-16 16:01:48 (17 years ago)
- Lokalizacja:
- trunk
- Pliki:
-
- 1 dodane
- 10 zmodyfikowane
-
BazaReklam/Baza Reklam.csproj (zmodyfikowane) (1 diff)
-
BazaReklam/Classes/Helpers/ReklamaHelper.cs (zmodyfikowane) (2 diffs)
-
BazaReklam/Docs/versioninfo.html (zmodyfikowane) (1 diff)
-
BazaReklam/OrderDetails.Designer.cs (zmodyfikowane) (4 diffs)
-
BazaReklam/OrderDetails.cs (zmodyfikowane) (3 diffs)
-
BazaReklam/OrderDetails.resx (zmodyfikowane) (1 diff)
-
BazaReklam/Properties/AssemblyInfo.cs (zmodyfikowane) (1 diff)
-
BazaReklam/REKLAMADataSet.xss (zmodyfikowane) (1 diff)
-
BazaReklamSetup/BazaReklamSetup.vdproj (zmodyfikowane) (2 diffs)
-
SQL/StoredProcedures/sp_DeleteReklamaStrona.txt (zmodyfikowane) (2 diffs)
-
SQL/StoredProcedures/sp_GetDatyEmisjiByReklama.txt (dodane)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/BazaReklam/Baza Reklam.csproj
r742 r750 33 33 <WebPage>index.htm</WebPage> 34 34 <OpenBrowserOnPublish>false</OpenBrowserOnPublish> 35 <ApplicationVersion>1.1.2 0.0</ApplicationVersion>35 <ApplicationVersion>1.1.21.0</ApplicationVersion> 36 36 <BootstrapperEnabled>false</BootstrapperEnabled> 37 37 </PropertyGroup> -
trunk/BazaReklam/Classes/Helpers/ReklamaHelper.cs
r602 r750 1 using System; 2 using System.Collections.Generic; 3 using System.Data; 4 using System.Data.SqlClient; 5 1 6 namespace Baza_Reklam.Classes.Helpers 2 7 { … … 21 26 return (reklama.IsidZamowieniaNull() && reklama.TYTU£.ToUpper() == "EXPO"); 22 27 } 28 29 public static Dictionary<int, DateTime> GetDatyEmisji(int reklamaId) 30 { 31 Dictionary<int, DateTime> datyEmisji = new Dictionary<int, DateTime>(); 32 33 const string query = "sp_GetDatyEmisjiByReklama"; 34 35 SqlConnection conn = null; 36 SqlCommand cmd = null; 37 SqlDataReader reader = null; 38 try 39 { 40 conn = new SqlConnection(ConnString.getConnString().Value); 41 conn.Open(); 42 cmd = new SqlCommand(query, conn); 43 cmd.CommandType = CommandType.StoredProcedure; 44 cmd.Parameters.AddWithValue("@reklama", reklamaId); 45 reader = cmd.ExecuteReader(); 46 if (reader != null) 47 { 48 while (reader.Read()) 49 datyEmisji.Add(reader.GetInt32(0), reader.GetDateTime(1)); 50 } 51 } 52 finally 53 { 54 if (reader != null) 55 { 56 reader.Close(); 57 reader.Dispose(); 58 } 59 if (cmd != null) cmd.Dispose(); 60 if (conn != null) 61 { 62 conn.Close(); 63 conn.Dispose(); 64 } 65 66 } 67 return datyEmisji; 68 69 } 23 70 } 24 71 } -
trunk/BazaReklam/Docs/versioninfo.html
r742 r750 6 6 <body> 7 7 <h1>Baza reklam - Informacje o wersji</h1> 8 <div> 9 <a id="1.1.21" /> 10 <h2>Wersja 1.1.21 (2009-07-16)</h2> 11 <p>Opis zmian wprowadzonych do wersji 1.1.21</p> 12 <ul> 13 <li>Poprawiono import numerów stron z XTG</li> 14 <li>Poprawiono błąd występujący po naciśnięciu przycisku "Pokaż szczegóły" - okno Klienci, zakładka Reklamy</li> 15 <li>Wprowadzono blokadę zmian dla emisji z poprzedniego miesiąca lub starszych</li> 16 </ul> 17 </div> 8 18 <div> 9 19 <a id="1.1.20" /> -
trunk/BazaReklam/OrderDetails.Designer.cs
r732 r750 109 109 this.zafakturowana = new System.Windows.Forms.DataGridViewCheckBoxColumn(); 110 110 this.netto = new System.Windows.Forms.DataGridViewTextBoxColumn(); 111 this.reklamaIdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 111 112 this.rEKLAMAUKAZESIEWNRBindingSource = new System.Windows.Forms.BindingSource(this.components); 112 113 this.uKAZE_SIE_W_NRTableAdapter = new Baza_Reklam.REKLAMADataSetTableAdapters.UKAZE_SIE_W_NRTableAdapter(); … … 940 941 this.nrWydaniaDataGridViewTextBoxColumn, 941 942 this.zafakturowana, 942 this.netto}); 943 this.netto, 944 this.reklamaIdColumn}); 943 945 this.ukazeSieDataGridView.DataSource = this.rEKLAMAUKAZESIEWNRBindingSource; 944 946 this.ukazeSieDataGridView.Location = new System.Drawing.Point(435, 9); … … 988 990 this.netto.ReadOnly = true; 989 991 this.netto.Width = 70; 992 // 993 // reklamaIdColumn 994 // 995 this.reklamaIdColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 996 this.reklamaIdColumn.DataPropertyName = "ReklamaId"; 997 this.reklamaIdColumn.HeaderText = "ReklamaId"; 998 this.reklamaIdColumn.Name = "ReklamaId"; 999 this.reklamaIdColumn.ReadOnly = true; 1000 this.reklamaIdColumn.Visible = false; 990 1001 // 991 1002 // rEKLAMAUKAZESIEWNRBindingSource … … 1998 2009 private System.Windows.Forms.DataGridViewCheckBoxColumn zafakturowana; 1999 2010 private System.Windows.Forms.DataGridViewTextBoxColumn netto; 2011 private System.Windows.Forms.DataGridViewTextBoxColumn reklamaIdColumn; 2000 2012 private System.Windows.Forms.ContextMenuStrip advertSiteContext; 2001 2013 private System.Windows.Forms.ToolStripMenuItem deleteItem; -
trunk/BazaReklam/OrderDetails.cs
r738 r750 489 489 private void BlokowanieZrealizowanychEmisji() 490 490 { 491 //TODO: Dodac kolumne DataEmisji do tabeli "Uka¿e siê w nr" 492 493 Dictionary<int, DateTime> datyEmisji = null; 494 if (ukazeSieDataGridView.Rows.Count > 0) 495 datyEmisji = ReklamaHelper.GetDatyEmisji(Convert.ToInt32(ukazeSieDataGridView.Rows[0].Cells["ReklamaId"].Value)); 496 497 DateTime firstDayOfCurrentMonth = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); 498 491 499 // ukazeSieDataGridView.Enabled = true; 492 500 foreach (DataGridViewRow r in ukazeSieDataGridView.Rows) 493 501 { 494 502 REKLAMADataSet.UKAZE_SIE_W_NRRow em = 495 (REKLAMADataSet.UKAZE_SIE_W_NRRow)((DataRowView)r.DataBoundItem).Row; 503 (REKLAMADataSet.UKAZE_SIE_W_NRRow) ((DataRowView) r.DataBoundItem).Row; 504 505 if (datyEmisji != null && datyEmisji.ContainsKey(em.Nr_Wydania)) 506 { 507 if (datyEmisji[em.Nr_Wydania] < firstDayOfCurrentMonth) 508 { 509 r.ReadOnly = true; 510 r.DefaultCellStyle.BackColor = Color.MintCream; 511 } 512 } 496 513 497 514 //anulowana … … 501 518 r.DefaultCellStyle.ForeColor = Color.Red; 502 519 } 520 521 if (r.ReadOnly && r.DefaultCellStyle.BackColor == Color.MintCream) continue; 503 522 504 523 foreach (DataGridViewRow s in ukazaloSieDataGridView.Rows) … … 513 532 } 514 533 } 515 516 534 517 535 public void ZablokujGroupBoxa(GroupBox g) -
trunk/BazaReklam/OrderDetails.resx
r732 r750 262 262 <value>1120, 54</value> 263 263 </metadata> 264 <metadata name="zafakturowana.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">265 <value>True</value>266 </metadata>267 <metadata name="netto.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">268 <value>True</value>269 </metadata>270 264 <metadata name="rEKLAMAUKAZESIEWNRBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 271 265 <value>293, 17</value> -
trunk/BazaReklam/Properties/AssemblyInfo.cs
r742 r750 30 30 // 31 31 [assembly: AssemblyVersion("1.0.0.0")] 32 [assembly: AssemblyFileVersion("1.1.2 0")]32 [assembly: AssemblyFileVersion("1.1.21")] -
trunk/BazaReklam/REKLAMADataSet.xss
r740 r750 5 5 the code is regenerated. 6 6 </autogenerated>--> 7 <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-417" ViewPortY=" 1301" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">7 <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-417" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> 8 8 <Shapes> 9 9 <Shape ID="DesignTable:REKLAMA" ZOrder="4" X="-162" Y="35" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="24" SplitterPosition="228" /> -
trunk/BazaReklamSetup/BazaReklamSetup.vdproj
r742 r750 656 656 "Name" = "8:Microsoft Visual Studio" 657 657 "ProductName" = "8:Baza Reklam" 658 "ProductCode" = "8:{ 92418653-499A-4412-B578-50F9AA80E3ED}"659 "PackageCode" = "8:{ 608D51C7-24CC-4BE6-92D3-D979215C9766}"658 "ProductCode" = "8:{FAD7A55E-7CB0-4F44-BAFE-A90AEC02A154}" 659 "PackageCode" = "8:{C88386E1-DFFD-4241-8E1D-E3BFF0B5C808}" 660 660 "UpgradeCode" = "8:{4E2DBBA4-3139-4790-8DDB-7AADFC963A7D}" 661 661 "RestartWWWService" = "11:FALSE" … … 663 663 "DetectNewerInstalledVersion" = "11:TRUE" 664 664 "InstallAllUsers" = "11:TRUE" 665 "ProductVersion" = "8:1.1.2 0"665 "ProductVersion" = "8:1.1.21" 666 666 "Manufacturer" = "8:AACT" 667 667 "ARPHELPTELEPHONE" = "8:" -
trunk/SQL/StoredProcedures/sp_DeleteReklamaStrona.txt
r745 r750 7 7 ALTER PROCEDURE [dbo].[sp_DeleteReklamaStrona] 8 8 @tytul varchar(10), 9 @nrWyd aniaint9 @nrWyd int 10 10 AS 11 11 DELETE FROM dbo.REKLAMA_STRONA 12 WHERE Nr_Wydania=@nrWyd ania12 WHERE Nr_Wydania=@nrWyd 13 13 AND ReklamaId IN 14 14 ( … … 22 22 WHERE 23 23 (R.[ZATWIERDZONO DO DRUKU] = 1) 24 AND (U.[Nr Wydania] = @nrWyd ania)24 AND (U.[Nr Wydania] = @nrWyd) 25 25 AND (U.status <> 2) 26 26 AND (T.Symb = @tytul)
