Zbiór zmian 607
- Data:
- 2009-04-24 11:33:43 (17 years ago)
- Lokalizacja:
- trunk
- Pliki:
-
- 8 zmodyfikowane
- 1 przeniesione
-
BazaReklam.sln (zmodyfikowane) (1 diff)
-
BazaReklam/Classes/Helpers/PdfHelper.cs (zmodyfikowane) (4 diffs)
-
BazaReklam/ClientsForm.cs (zmodyfikowane) (2 diffs)
-
BazaReklam/ListaReklamNaWydanieForm.cs (zmodyfikowane) (2 diffs)
-
BazaReklam/OrdersForm.cs (zmodyfikowane) (2 diffs)
-
BazaReklam/ProductionForm.cs (zmodyfikowane) (1 diff)
-
BazaReklam/app.config (zmodyfikowane) (1 diff)
-
Updater/BazaReklam.Updater.csproj (przeniesione) (przeniesione from trunk/Updater/Updater.csproj) (1 diff)
-
Updater/Properties/AssemblyInfo.cs (zmodyfikowane) (1 diff)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/BazaReklam.sln
r597 r607 10 10 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExportToCDN", "TruckExpoCDN\ExportToCDN.csproj", "{E06D8F95-3C3F-4369-A60C-9DFF6703E8A0}" 11 11 EndProject 12 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = " Updater", "Updater\Updater.csproj", "{D79A9AD4-2E15-4A9B-98C9-467B25D47FEA}"12 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BazaReklam.Updater", "Updater\BazaReklam.Updater.csproj", "{D79A9AD4-2E15-4A9B-98C9-467B25D47FEA}" 13 13 EndProject 14 14 Global -
trunk/BazaReklam/Classes/Helpers/PdfHelper.cs
r591 r607 3 3 using System.Globalization; 4 4 using System.IO; 5 using System.Windows.Forms; 5 6 6 7 namespace Baza_Reklam.Classes.Helpers … … 23 24 public bool DisplayPdf() 24 25 { 26 throw new System.Net.WebException("test"); 27 28 25 29 string url = ConfigurationHelper.GetSettingByKey("Application.Pdf.Date") ?? 26 30 "http://truck.pl/ogloszenia/_getFile.asp?pdfdate,{0},,"; … … 33 37 if (!DateTime.TryParse(pdfDate, null, DateTimeStyles.None, out pdfDateTime)) 34 38 { 35 //MessageBox.Show("Nie znaleziono pliku PDF dla wybranej reklamy");36 39 _errorMessage = "Nie znaleziono pliku PDF dla wybranej reklamy"; 37 40 return false; … … 84 87 } 85 88 } 89 90 public static void HandleWebException(Exception exception) 91 { 92 string errorMsg = string.Format("{0}\n\n{1}\n{2}", 93 "Problem z serwerem który dostarcza pliki PDF", 94 "Szczegó³y wyj¹tku:", 95 exception); 96 MessageBox.Show(errorMsg, "Baza Reklam - Podgl¹d PDF", MessageBoxButtons.OK, MessageBoxIcon.Warning); 97 Logger.LogException(exception, User.Instance().Login, DateTime.Now); 98 } 86 99 } 87 100 } -
trunk/BazaReklam/ClientsForm.cs
r597 r607 7 7 using System.IO; 8 8 using System.Text.RegularExpressions; 9 using Baza_Reklam.Classes; 9 10 using Baza_Reklam.Classes.Helpers; 10 11 using Baza_Reklam.Classes.Interfaces; … … 1217 1218 if (!pdfHelper.DisplayPdf()) 1218 1219 MessageBox.Show(pdfHelper.ErrorMessage); 1220 } 1221 catch (System.Net.WebException exception) 1222 { 1223 PdfHelper.HandleWebException(exception); 1219 1224 } 1220 1225 finally -
trunk/BazaReklam/ListaReklamNaWydanieForm.cs
r591 r607 5 5 using System.Drawing; 6 6 using System.Windows.Forms; 7 using Baza_Reklam.Classes; 7 8 using Baza_Reklam.Classes.Helpers; 8 9 using Baza_Reklam.Classes.Interfaces; … … 350 351 MessageBox.Show(pdfHelper.ErrorMessage); 351 352 } 353 catch (System.Net.WebException exception) 354 { 355 PdfHelper.HandleWebException(exception); 356 } 352 357 finally 353 358 { -
trunk/BazaReklam/OrdersForm.cs
r591 r607 4 4 using System.Data.SqlClient; 5 5 using System.Windows.Forms; 6 using Baza_Reklam.Classes; 6 7 using Baza_Reklam.Classes.Helpers; 7 8 using Baza_Reklam.Classes.Interfaces; … … 1204 1205 if (!pdfHelper.DisplayPdf()) 1205 1206 MessageBox.Show(pdfHelper.ErrorMessage); 1207 } 1208 catch (System.Net.WebException exception) 1209 { 1210 PdfHelper.HandleWebException(exception); 1206 1211 } 1207 1212 finally -
trunk/BazaReklam/ProductionForm.cs
r597 r607 907 907 MessageBox.Show(pdfHelper.ErrorMessage); 908 908 } 909 catch (System.Net.WebException exception) 910 { 911 PdfHelper.HandleWebException(exception); 912 } 909 913 finally 910 914 { -
trunk/BazaReklam/app.config
r604 r607 8 8 <connectionStrings> 9 9 <clear /> 10 <add name="BAZA_REKLAM_TEST" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True" 11 providerName="System.Data.SqlClient" /> 10 12 <add name="BAZA_REKLAM" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM;Persist Security Info=True" 11 13 providerName="System.Data.SqlClient" /> -
trunk/Updater/BazaReklam.Updater.csproj
r597 r607 9 9 <AppDesignerFolder>Properties</AppDesignerFolder> 10 10 <RootNamespace>Updater</RootNamespace> 11 <AssemblyName> Updater</AssemblyName>11 <AssemblyName>BazaReklam.Updater</AssemblyName> 12 12 <ApplicationIcon>29.ico</ApplicationIcon> 13 13 </PropertyGroup> -
trunk/Updater/Properties/AssemblyInfo.cs
r597 r607 6 6 // set of attributes. Change these attribute values to modify the information 7 7 // associated with an assembly. 8 [assembly: AssemblyTitle(" ctUpdater")]9 [assembly: AssemblyDescription(" ")]8 [assembly: AssemblyTitle("BazaReklam.Updater")] 9 [assembly: AssemblyDescription("Automatically updates BazaReklam application")] 10 10 [assembly: AssemblyConfiguration("")] 11 [assembly: AssemblyCompany(" Commercial Travellers")]12 [assembly: AssemblyProduct(" ctUpdater")]11 [assembly: AssemblyCompany("AACT")] 12 [assembly: AssemblyProduct("BazaReklam.Updater")] 13 13 [assembly: AssemblyCopyright("Copyright © Commercial Travellers 2009")] 14 14 [assembly: AssemblyTrademark("")]
