Zbiór zmian 628
- Data:
- 2009-05-04 10:38:50 (17 years ago)
- Lokalizacja:
- branches/ReklamaReorganizacja
- Pliki:
-
- 13 zmodyfikowane
-
BazaReklam/Baza Reklam.csproj (zmodyfikowane) (3 diffs)
-
BazaReklam/Baza Reklam.csproj.user (zmodyfikowane) (1 diff)
-
BazaReklam/Classes/ConnString.cs (zmodyfikowane) (1 diff)
-
BazaReklam/Classes/EmailSender.cs (zmodyfikowane) (2 diffs)
-
BazaReklam/Classes/Logger.cs (zmodyfikowane) (2 diffs)
-
BazaReklam/Docs/versioninfo.html (zmodyfikowane) (1 diff)
-
BazaReklam/FormBadVer.cs (zmodyfikowane) (3 diffs)
-
BazaReklam/Logowanie.cs (zmodyfikowane) (1 diff)
-
BazaReklam/Properties/AssemblyInfo.cs (zmodyfikowane) (1 diff)
-
BazaReklam/Raporty/fakturaKorekta.rdlc (zmodyfikowane) (10 diffs)
-
BazaReklam/Raporty/fakturaReversed2.rdlc (zmodyfikowane) (1 diff)
-
BazaReklam/Raporty/fakturaReversed2_1page.rdlc (zmodyfikowane) (1 diff)
-
BazaReklamSetup/BazaReklamSetup.vdproj (zmodyfikowane) (1 diff)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/ReklamaReorganizacja/BazaReklam/Baza Reklam.csproj
r619 r628 11 11 <AssemblyName>Baza Reklam</AssemblyName> 12 12 <ApplicationIcon>cab.ico</ApplicationIcon> 13 <ManifestCertificateThumbprint>056FE3A26AB338C7EF38953FC5E38316E34F40A8</ManifestCertificateThumbprint> 14 <ManifestKeyFile>Baza Reklam_TemporaryKey.pfx</ManifestKeyFile> 15 <GenerateManifests>true</GenerateManifests> 16 <SignManifests>true</SignManifests> 17 <IsWebBootstrapper>true</IsWebBootstrapper> 18 <PublishUrl>C:\temp\BazaReklam\Update\test\</PublishUrl> 19 <Install>true</Install> 20 <InstallFrom>Web</InstallFrom> 21 <UpdateEnabled>true</UpdateEnabled> 22 <UpdateMode>Foreground</UpdateMode> 23 <UpdateInterval>7</UpdateInterval> 24 <UpdateIntervalUnits>Days</UpdateIntervalUnits> 25 <UpdatePeriodically>false</UpdatePeriodically> 26 <UpdateRequired>false</UpdateRequired> 27 <MapFileExtensions>true</MapFileExtensions> 28 <InstallUrl>http://www.infocity.pl/baza_reklam/update/test/</InstallUrl> 29 <SupportUrl>http://www.infocity.pl/baza_reklam/instrukcja.htm</SupportUrl> 30 <TargetCulture>pl-PL</TargetCulture> 31 <ProductName>Baza Reklam</ProductName> 32 <PublisherName>AACT</PublisherName> 33 <WebPage>index.htm</WebPage> 34 <OpenBrowserOnPublish>false</OpenBrowserOnPublish> 35 <ApplicationVersion>1.0.0.%2a</ApplicationVersion> 36 <BootstrapperEnabled>false</BootstrapperEnabled> 13 37 </PropertyGroup> 14 38 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 646 670 </EmbeddedResource> 647 671 <Content Include="Docs\doc.txt" /> 672 <None Include="Baza Reklam_TemporaryKey.pfx" /> 648 673 <None Include="Docs\Zmiany.htm" /> 649 674 <None Include="Properties\DataSources\InvoiceProvider.datasource" /> … … 657 682 <Content Include="Resources\businessman_preferences.png" /> 658 683 <Content Include="Resources\folder.png" /> 684 </ItemGroup> 685 <ItemGroup> 686 <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> 687 <Visible>False</Visible> 688 <ProductName>.NET Framework 2.0</ProductName> 689 <Install>true</Install> 690 </BootstrapperPackage> 691 </ItemGroup> 692 <ItemGroup> 693 <PublishFile Include="Microsoft.ReportViewer.Common"> 694 <Visible>False</Visible> 695 <Group> 696 </Group> 697 <TargetPath> 698 </TargetPath> 699 <PublishState>Include</PublishState> 700 <FileType>Assembly</FileType> 701 </PublishFile> 702 <PublishFile Include="Microsoft.ReportViewer.ProcessingObjectModel"> 703 <Visible>False</Visible> 704 <Group> 705 </Group> 706 <TargetPath> 707 </TargetPath> 708 <PublishState>Include</PublishState> 709 <FileType>Assembly</FileType> 710 </PublishFile> 711 <PublishFile Include="Microsoft.ReportViewer.WinForms"> 712 <Visible>False</Visible> 713 <Group> 714 </Group> 715 <TargetPath> 716 </TargetPath> 717 <PublishState>Include</PublishState> 718 <FileType>Assembly</FileType> 719 </PublishFile> 659 720 </ItemGroup> 660 721 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
branches/ReklamaReorganizacja/BazaReklam/Baza Reklam.csproj.user
r171 r628 2 2 <PropertyGroup> 3 3 <ProjectView>ProjectFiles</ProjectView> 4 <PublishUrlHistory>http://localhost/Baza Reklam/</PublishUrlHistory> 5 <InstallUrlHistory> 6 </InstallUrlHistory> 7 <SupportUrlHistory> 8 </SupportUrlHistory> 4 <PublishUrlHistory>C:\temp\BazaReklam\Update\test\|http://localhost/Baza Reklam/</PublishUrlHistory> 5 <InstallUrlHistory>http://www.infocity.pl/baza_reklam/update/test/</InstallUrlHistory> 6 <SupportUrlHistory>http://www.infocity.pl/baza_reklam/instrukcja.htm</SupportUrlHistory> 9 7 <UpdateUrlHistory> 10 8 </UpdateUrlHistory> 11 9 <BootstrapperUrlHistory> 12 10 </BootstrapperUrlHistory> 13 <ApplicationRevision> 0</ApplicationRevision>11 <ApplicationRevision>1</ApplicationRevision> 14 12 <FallbackCulture>en-US</FallbackCulture> 15 13 <VerifyUploadedFiles>true</VerifyUploadedFiles> -
branches/ReklamaReorganizacja/BazaReklam/Classes/ConnString.cs
r539 r628 45 45 } 46 46 } 47 48 public static string GetDataSource() 49 { 50 SqlConnection sqlConnection = null; 51 try 52 { 53 sqlConnection = new SqlConnection(getConnString().Value); 54 return sqlConnection.DataSource; 55 } 56 catch 57 { 58 return string.Empty; 59 } 60 finally 61 { 62 if (sqlConnection != null) sqlConnection.Dispose(); 63 } 64 } 47 65 } 48 66 } -
branches/ReklamaReorganizacja/BazaReklam/Classes/EmailSender.cs
r554 r628 8 8 public class EmailSender 9 9 { 10 public static void SendNotification(Exception loggingException, Exception exception, string userName, DateTime dateTime)10 public static void SendNotification(Exception loggingException, string exceptionMessage, string exceptionDetails, string userName, DateTime dateTime) 11 11 { 12 12 try … … 20 20 sb.AppendLine("Data i czas: " + dateTime); 21 21 sb.AppendLine("U¿ytkownik: " + userName); 22 sb.AppendLine("Exception.Message: " + exception .Message);23 sb.AppendLine(exception .ToString());22 sb.AppendLine("Exception.Message: " + exceptionMessage); 23 sb.AppendLine(exceptionDetails); 24 24 sb.AppendLine("***"); 25 25 sb.AppendLine("Logging.Exception.Message: " + loggingException.Message); -
branches/ReklamaReorganizacja/BazaReklam/Classes/Logger.cs
r593 r628 9 9 public static void LogException(Exception exception, string userName, DateTime dateTime) 10 10 { 11 LogException(exception.Message, exception.ToString(), userName, dateTime); 12 } 13 14 public static void LogException(string errorMessage, string errorDetails, string userName, DateTime dateTime) 15 { 11 16 SqlConnection conn = null; 12 17 SqlCommand cmd = null; … … 17 22 cmd = new SqlCommand("dbo.sp_LogException", conn); 18 23 cmd.CommandType = CommandType.StoredProcedure; 19 cmd.Parameters.AddWithValue("@errorMessage", e xception.Message);24 cmd.Parameters.AddWithValue("@errorMessage", errorMessage); 20 25 cmd.Parameters.AddWithValue("@userName", userName); 21 26 cmd.Parameters.AddWithValue("@dateTime", dateTime); 22 cmd.Parameters.AddWithValue("@errorDetails", e xception.ToString());27 cmd.Parameters.AddWithValue("@errorDetails", errorDetails); 23 28 cmd.ExecuteNonQuery(); 24 29 } 25 30 catch (Exception ex) 26 31 { 27 EmailSender.SendNotification(ex, e xception, userName, dateTime);32 EmailSender.SendNotification(ex, errorMessage, errorDetails, userName, dateTime); 28 33 } 29 34 finally -
branches/ReklamaReorganizacja/BazaReklam/Docs/versioninfo.html
r625 r628 6 6 <body> 7 7 <h1>Baza reklam - Informacje o wersji</h1> 8 <div> 9 <a id="1.1.10" /> 10 <h2>Wersja 1.1.10 (2009-04-30)</h2> 11 <p>Opis zmian wprowadzonych do wersji 1.1.10</p> 12 <ul> 13 <li>Zgłoszenie #167: Dodano korekty dla błędnie ponumerowanych faktur KIO oraz poprawiono wydruk korekty</li> 14 </ul> 15 </div> 8 16 <div> 9 17 <a id="1.1.8" /> -
branches/ReklamaReorganizacja/BazaReklam/FormBadVer.cs
r613 r628 1 1 using System; 2 2 using System.ComponentModel; 3 using System.IO; 3 4 using System.Windows.Forms; 4 5 using System.Net; … … 28 29 { 29 30 button1.Enabled = false; 30 31 string updater = Environment.CurrentDirectory + "\\BazaReklam.Updater.exe";32 31 33 if (System.IO.File.Exists(updater)) 32 string updater = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "BazaReklam.Updater.exe"; 33 34 if (File.Exists(updater)) 34 35 StartUpdater(); 35 36 else 36 webClient.DownloadFileAsync(new Uri(_updaterUrl), Environment.CurrentDirectory + "\\BazaReklam.Updater.exe");37 webClient.DownloadFileAsync(new Uri(_updaterUrl), Environment.CurrentDirectory + Path.DirectorySeparatorChar + "BazaReklam.Updater.exe"); 37 38 } 38 39 … … 53 54 private void StartUpdater() 54 55 { 55 string updater = Environment.CurrentDirectory + "\\BazaReklam.Updater.exe"; 56 Cursor = Cursors.Default; 57 button1.Cursor = Cursors.Default; 58 Close(); 59 Process.Start(updater, string.Format(" \"{0}\" {1}", "Baza Reklam", _zipUrl)); 56 string updater = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "BazaReklam.Updater.exe"; 57 try 58 { 59 Cursor = Cursors.Default; 60 button1.Cursor = Cursors.Default; 61 62 ProcessStartInfo processStartInfo = new ProcessStartInfo(updater); 63 processStartInfo.Arguments = string.Format(" \"{0}\" {1}", "Baza Reklam", _zipUrl); 64 65 Close(); 66 67 Process.Start(processStartInfo); 68 } 69 catch (Exception exception) 70 { 71 Logger.LogException(exception.Message, exception + "\n" + updater, "[aktualizacja]", DateTime.Now); 72 MessageBox.Show("B³¹d aktualizacji oprogramowania: " + exception.Message, "Aktualizacja oprogramowania", MessageBoxButtons.OK, MessageBoxIcon.Error); 73 } 60 74 } 61 75 } -
branches/ReklamaReorganizacja/BazaReklam/Logowanie.cs
r618 r628 240 240 cmd = new SqlCommand("SELECT ver FROM dbo.app WHERE [name]='BazaReklam'"); 241 241 cmd.Connection = 242 new SqlConnection( 243 "Data Source=sql.ct.com.pl;Initial Catalog=Applications;Persist Security Info=True;User=updater;Password=UpdateSolution;Application Name=BazaReklam_v" + Application.ProductVersion + ";");242 new SqlConnection("Data Source=" + ConnString.GetDataSource() + ";Initial Catalog=Applications;Persist Security Info=True;User=updater;Password=UpdateSolution;Application Name=BazaReklam_v" + Application.ProductVersion + ";"); 243 244 244 245 245 cmd.Connection.Open(); -
branches/ReklamaReorganizacja/BazaReklam/Properties/AssemblyInfo.cs
r625 r628 30 30 // 31 31 [assembly: AssemblyVersion("1.0.0.0")] 32 [assembly: AssemblyFileVersion("1.1. 8")]32 [assembly: AssemblyFileVersion("1.1.10")] -
branches/ReklamaReorganizacja/BazaReklam/Raporty/fakturaKorekta.rdlc
r539 r628 1787 1787 <ZIndex>4</ZIndex> 1788 1788 <CanGrow>true</CanGrow> 1789 <Value>=Abs(Sum(Fields! BRUTTO.Value, "FakturaDetails2") - Sum(Fields!BRUTTO.Value, "FakturaDetailsKorekty"))</Value>1789 <Value>=Abs(Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetails2") - Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetailsKorekty"))</Value> 1790 1790 </Textbox> 1791 1791 </ReportItems> … … 1914 1914 </Style> 1915 1915 <CanGrow>true</CanGrow> 1916 <Value>=Code.Slownie(Abs(Sum(Fields! BRUTTO.Value, "FakturaDetails2") - Sum(Fields!BRUTTO.Value, "FakturaDetailsKorekty")))</Value>1916 <Value>=Code.Slownie(Abs(Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetails2") - Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetailsKorekty")))</Value> 1917 1917 </Textbox> 1918 1918 </ReportItems> … … 3550 3550 </Style> 3551 3551 <CanGrow>true</CanGrow> 3552 <Value>=Sum(Fields! BRUTTO.Value)</Value>3552 <Value>=Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))</Value> 3553 3553 </Textbox> 3554 3554 </ReportItems> … … 4223 4223 <ZIndex>16</ZIndex> 4224 4224 <CanGrow>true</CanGrow> 4225 <Value>=Sum(Fields! BRUTTO.Value,"FakturaDetailsKorekty")</Value>4225 <Value>=Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetailsKorekty")</Value> 4226 4226 </Textbox> 4227 4227 </ReportItems> … … 4309 4309 <ZIndex>4</ZIndex> 4310 4310 <CanGrow>true</CanGrow> 4311 <Value>=iif(Sum(Fields!S_VAT.Value)<>0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields! BRUTTO.Value))</Value>4311 <Value>=iif(Sum(Fields!S_VAT.Value)<>0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value)))</Value> 4312 4312 </Textbox> 4313 4313 </ReportItems> … … 4434 4434 </Style> 4435 4435 <CanGrow>true</CanGrow> 4436 <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value)<>0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields! BRUTTO.Value)))</Value>4436 <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value)<>0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))))</Value> 4437 4437 </Textbox> 4438 4438 </ReportItems> … … 4682 4682 </Style> 4683 4683 <CanGrow>true</CanGrow> 4684 <Value>=Sum(Fields! BRUTTO.Value)</Value>4684 <Value>=Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))</Value> 4685 4685 </Textbox> 4686 4686 </ReportItems> … … 5368 5368 <ZIndex>16</ZIndex> 5369 5369 <CanGrow>true</CanGrow> 5370 <Value>=Sum(Fields! BRUTTO.Value)</Value>5370 <Value>=Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))</Value> 5371 5371 </Textbox> 5372 5372 </ReportItems> … … 5458 5458 <ZIndex>4</ZIndex> 5459 5459 <CanGrow>true</CanGrow> 5460 <Value>=iif(Sum(Fields!S_VAT.Value)<>0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields! BRUTTO.Value))</Value>5460 <Value>=iif(Sum(Fields!S_VAT.Value)<>0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value)))</Value> 5461 5461 </Textbox> 5462 5462 </ReportItems> … … 5588 5588 </Style> 5589 5589 <CanGrow>true</CanGrow> 5590 <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value)<>0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields! BRUTTO.Value)))</Value>5590 <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value)<>0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))))</Value> 5591 5591 </Textbox> 5592 5592 </ReportItems> -
branches/ReklamaReorganizacja/BazaReklam/Raporty/fakturaReversed2.rdlc
r539 r628 1705 1705 </Style> 1706 1706 <CanGrow>true</CanGrow> 1707 <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value, "FakturaDetails2")<>0,Sum(Fields!NETTO.Value, "FakturaDetails2")*1.22,Sum(Fields! BRUTTO.Value, "FakturaDetails2")))</Value>1707 <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value, "FakturaDetails2")<>0,Sum(Fields!NETTO.Value, "FakturaDetails2")*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetails2")))</Value> 1708 1708 </Textbox> 1709 1709 </ReportItems> -
branches/ReklamaReorganizacja/BazaReklam/Raporty/fakturaReversed2_1page.rdlc
r539 r628 1744 1744 </Style> 1745 1745 <CanGrow>true</CanGrow> 1746 <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value, "FakturaDetails2")<>0,Sum(Fields!NETTO.Value, "FakturaDetails2")*1.22,Sum(Fields! BRUTTO.Value, "FakturaDetails2")))</Value>1746 <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value, "FakturaDetails2")<>0,Sum(Fields!NETTO.Value, "FakturaDetails2")*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetails2")))</Value> 1747 1747 </Textbox> 1748 1748 </ReportItems> -
branches/ReklamaReorganizacja/BazaReklamSetup/BazaReklamSetup.vdproj
r625 r628 725 725 "Name" = "8:Microsoft Visual Studio" 726 726 "ProductName" = "8:Baza Reklam" 727 "ProductCode" = "8:{B9EB2B5B-CFFC-4B79-881F-6FA0E7D5043C}" "PackageCode" = "8:{7AE251DC-6A55-48EE-96D8-760FD74317E4}" "UpgradeCode" = "8:{4E2DBBA4-3139-4790-8DDB-7AADFC963A7D}" 727 "ProductCode" = "8:{FA4C0434-CC8C-4564-B722-58F3DC1E3E26}" 728 "PackageCode" = "8:{D7791233-87BA-4BB5-97AE-E785CEDE9FB5}" 729 "UpgradeCode" = "8:{4E2DBBA4-3139-4790-8DDB-7AADFC963A7D}" 728 730 "RestartWWWService" = "11:FALSE" 729 731 "RemovePreviousVersions" = "11:TRUE" 730 732 "DetectNewerInstalledVersion" = "11:TRUE" 731 733 "InstallAllUsers" = "11:TRUE" 732 "ProductVersion" = "8:1.1. 8"734 "ProductVersion" = "8:1.1.10" 733 735 "Manufacturer" = "8:AACT" 734 736 "ARPHELPTELEPHONE" = "8:"
