Zbiór zmian 628

Pokaż
Ignoruj:
Data:
2009-05-04 10:38:50 (17 years ago)
Autor:
marek
Opis:

re #165 - merged with latest trunk

Lokalizacja:
branches/ReklamaReorganizacja
Pliki:
13 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/ReklamaReorganizacja/BazaReklam/Baza Reklam.csproj

    r619 r628  
    1111    <AssemblyName>Baza Reklam</AssemblyName> 
    1212    <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> 
    1337  </PropertyGroup> 
    1438  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
     
    646670    </EmbeddedResource> 
    647671    <Content Include="Docs\doc.txt" /> 
     672    <None Include="Baza Reklam_TemporaryKey.pfx" /> 
    648673    <None Include="Docs\Zmiany.htm" /> 
    649674    <None Include="Properties\DataSources\InvoiceProvider.datasource" /> 
     
    657682    <Content Include="Resources\businessman_preferences.png" /> 
    658683    <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> 
    659720  </ItemGroup> 
    660721  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
  • branches/ReklamaReorganizacja/BazaReklam/Baza Reklam.csproj.user

    r171 r628  
    22  <PropertyGroup> 
    33    <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> 
    97    <UpdateUrlHistory> 
    108    </UpdateUrlHistory> 
    119    <BootstrapperUrlHistory> 
    1210    </BootstrapperUrlHistory> 
    13     <ApplicationRevision>0</ApplicationRevision> 
     11    <ApplicationRevision>1</ApplicationRevision> 
    1412    <FallbackCulture>en-US</FallbackCulture> 
    1513    <VerifyUploadedFiles>true</VerifyUploadedFiles> 
  • branches/ReklamaReorganizacja/BazaReklam/Classes/ConnString.cs

    r539 r628  
    4545            } 
    4646        } 
     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        } 
    4765    } 
    4866} 
  • branches/ReklamaReorganizacja/BazaReklam/Classes/EmailSender.cs

    r554 r628  
    88    public class EmailSender 
    99    { 
    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) 
    1111        { 
    1212            try 
     
    2020                sb.AppendLine("Data i czas: " + dateTime); 
    2121                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); 
    2424                sb.AppendLine("***"); 
    2525                sb.AppendLine("Logging.Exception.Message: " + loggingException.Message); 
  • branches/ReklamaReorganizacja/BazaReklam/Classes/Logger.cs

    r593 r628  
    99        public static void LogException(Exception exception, string userName, DateTime dateTime) 
    1010        { 
     11            LogException(exception.Message, exception.ToString(), userName, dateTime); 
     12        } 
     13 
     14        public static void LogException(string errorMessage, string errorDetails, string userName, DateTime dateTime) 
     15        { 
    1116            SqlConnection conn = null; 
    1217            SqlCommand cmd = null; 
     
    1722                cmd = new SqlCommand("dbo.sp_LogException", conn); 
    1823                cmd.CommandType = CommandType.StoredProcedure; 
    19                 cmd.Parameters.AddWithValue("@errorMessage", exception.Message); 
     24                cmd.Parameters.AddWithValue("@errorMessage", errorMessage); 
    2025                cmd.Parameters.AddWithValue("@userName", userName); 
    2126                cmd.Parameters.AddWithValue("@dateTime", dateTime); 
    22                 cmd.Parameters.AddWithValue("@errorDetails", exception.ToString()); 
     27                cmd.Parameters.AddWithValue("@errorDetails", errorDetails); 
    2328                cmd.ExecuteNonQuery(); 
    2429            } 
    2530            catch (Exception ex) 
    2631            { 
    27                 EmailSender.SendNotification(ex, exception, userName, dateTime); 
     32                EmailSender.SendNotification(ex, errorMessage, errorDetails, userName, dateTime); 
    2833            } 
    2934            finally 
  • branches/ReklamaReorganizacja/BazaReklam/Docs/versioninfo.html

    r625 r628  
    66<body> 
    77   <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> 
    816   <div> 
    917        <a id="1.1.8" /> 
  • branches/ReklamaReorganizacja/BazaReklam/FormBadVer.cs

    r613 r628  
    11using System; 
    22using System.ComponentModel; 
     3using System.IO; 
    34using System.Windows.Forms; 
    45using System.Net; 
     
    2829        { 
    2930            button1.Enabled = false; 
    30              
    31             string updater = Environment.CurrentDirectory + "\\BazaReklam.Updater.exe"; 
    3231 
    33             if (System.IO.File.Exists(updater)) 
     32            string updater = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "BazaReklam.Updater.exe"; 
     33 
     34            if (File.Exists(updater)) 
    3435                StartUpdater(); 
    3536            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"); 
    3738        } 
    3839 
     
    5354        private void StartUpdater() 
    5455        { 
    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            } 
    6074        } 
    6175    } 
  • branches/ReklamaReorganizacja/BazaReklam/Logowanie.cs

    r618 r628  
    240240                cmd = new SqlCommand("SELECT ver FROM dbo.app WHERE [name]='BazaReklam'"); 
    241241                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                 
    244244 
    245245                cmd.Connection.Open(); 
  • branches/ReklamaReorganizacja/BazaReklam/Properties/AssemblyInfo.cs

    r625 r628  
    3030// 
    3131[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  
    17871787                      <ZIndex>4</ZIndex> 
    17881788                      <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> 
    17901790                    </Textbox> 
    17911791                  </ReportItems> 
     
    19141914                      </Style> 
    19151915                      <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> 
    19171917                    </Textbox> 
    19181918                  </ReportItems> 
     
    35503550                              </Style> 
    35513551                              <CanGrow>true</CanGrow> 
    3552                               <Value>=Sum(Fields!BRUTTO.Value)</Value> 
     3552                              <Value>=Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))</Value> 
    35533553                            </Textbox> 
    35543554                          </ReportItems> 
     
    42234223                          <ZIndex>16</ZIndex> 
    42244224                          <CanGrow>true</CanGrow> 
    4225                           <Value>=Sum(Fields!BRUTTO.Value,"FakturaDetailsKorekty")</Value> 
     4225                          <Value>=Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetailsKorekty")</Value> 
    42264226                        </Textbox> 
    42274227                      </ReportItems> 
     
    43094309                          <ZIndex>4</ZIndex> 
    43104310                          <CanGrow>true</CanGrow> 
    4311                           <Value>=iif(Sum(Fields!S_VAT.Value)&lt;&gt;0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!BRUTTO.Value))</Value> 
     4311                          <Value>=iif(Sum(Fields!S_VAT.Value)&lt;&gt;0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value)))</Value> 
    43124312                        </Textbox> 
    43134313                      </ReportItems> 
     
    44344434                          </Style> 
    44354435                          <CanGrow>true</CanGrow> 
    4436                           <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value)&lt;&gt;0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!BRUTTO.Value)))</Value> 
     4436                          <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value)&lt;&gt;0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))))</Value> 
    44374437                        </Textbox> 
    44384438                      </ReportItems> 
     
    46824682                              </Style> 
    46834683                              <CanGrow>true</CanGrow> 
    4684                               <Value>=Sum(Fields!BRUTTO.Value)</Value> 
     4684                              <Value>=Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))</Value> 
    46854685                            </Textbox> 
    46864686                          </ReportItems> 
     
    53685368                          <ZIndex>16</ZIndex> 
    53695369                          <CanGrow>true</CanGrow> 
    5370                           <Value>=Sum(Fields!BRUTTO.Value)</Value> 
     5370                          <Value>=Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))</Value> 
    53715371                        </Textbox> 
    53725372                      </ReportItems> 
     
    54585458                          <ZIndex>4</ZIndex> 
    54595459                          <CanGrow>true</CanGrow> 
    5460                           <Value>=iif(Sum(Fields!S_VAT.Value)&lt;&gt;0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!BRUTTO.Value))</Value> 
     5460                          <Value>=iif(Sum(Fields!S_VAT.Value)&lt;&gt;0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value)))</Value> 
    54615461                        </Textbox> 
    54625462                      </ReportItems> 
     
    55885588                          </Style> 
    55895589                          <CanGrow>true</CanGrow> 
    5590                           <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value)&lt;&gt;0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!BRUTTO.Value)))</Value> 
     5590                          <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value)&lt;&gt;0,Sum(Fields!NETTO.Value)*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value))))</Value> 
    55915591                        </Textbox> 
    55925592                      </ReportItems> 
  • branches/ReklamaReorganizacja/BazaReklam/Raporty/fakturaReversed2.rdlc

    r539 r628  
    17051705                          </Style> 
    17061706                          <CanGrow>true</CanGrow> 
    1707                           <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value, "FakturaDetails2")&lt;&gt;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")&lt;&gt;0,Sum(Fields!NETTO.Value, "FakturaDetails2")*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetails2")))</Value> 
    17081708                        </Textbox> 
    17091709                      </ReportItems> 
  • branches/ReklamaReorganizacja/BazaReklam/Raporty/fakturaReversed2_1page.rdlc

    r539 r628  
    17441744                          </Style> 
    17451745                          <CanGrow>true</CanGrow> 
    1746                           <Value>=Code.Slownie(iif(Sum(Fields!S_VAT.Value, "FakturaDetails2")&lt;&gt;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")&lt;&gt;0,Sum(Fields!NETTO.Value, "FakturaDetails2")*1.22,Sum(Fields!NETTO.Value * (1 + Fields!S_VAT.Value), "FakturaDetails2")))</Value> 
    17471747                        </Textbox> 
    17481748                      </ReportItems> 
  • branches/ReklamaReorganizacja/BazaReklamSetup/BazaReklamSetup.vdproj

    r625 r628  
    725725        "Name" = "8:Microsoft Visual Studio" 
    726726        "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}" 
    728730        "RestartWWWService" = "11:FALSE" 
    729731        "RemovePreviousVersions" = "11:TRUE" 
    730732        "DetectNewerInstalledVersion" = "11:TRUE" 
    731733        "InstallAllUsers" = "11:TRUE" 
    732         "ProductVersion" = "8:1.1.8" 
     734        "ProductVersion" = "8:1.1.10" 
    733735        "Manufacturer" = "8:AACT" 
    734736        "ARPHELPTELEPHONE" = "8:"