Zbiór zmian 750

Pokaż
Ignoruj:
Data:
2009-07-16 16:01:48 (17 years ago)
Autor:
marek
Opis:

re v.1.1.21

Lokalizacja:
trunk
Pliki:
1 dodane
10 zmodyfikowane

Legenda:

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

    r742 r750  
    3333    <WebPage>index.htm</WebPage> 
    3434    <OpenBrowserOnPublish>false</OpenBrowserOnPublish> 
    35     <ApplicationVersion>1.1.20.0</ApplicationVersion> 
     35    <ApplicationVersion>1.1.21.0</ApplicationVersion> 
    3636    <BootstrapperEnabled>false</BootstrapperEnabled> 
    3737  </PropertyGroup> 
  • trunk/BazaReklam/Classes/Helpers/ReklamaHelper.cs

    r602 r750  
     1using System; 
     2using System.Collections.Generic; 
     3using System.Data; 
     4using System.Data.SqlClient; 
     5 
    16namespace Baza_Reklam.Classes.Helpers 
    27{ 
     
    2126            return (reklama.IsidZamowieniaNull() && reklama.TYTU£.ToUpper() == "EXPO"); 
    2227        } 
     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        } 
    2370    } 
    2471} 
  • trunk/BazaReklam/Docs/versioninfo.html

    r742 r750  
    66<body> 
    77   <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> 
    818   <div> 
    919        <a id="1.1.20" /> 
  • trunk/BazaReklam/OrderDetails.Designer.cs

    r732 r750  
    109109            this.zafakturowana = new System.Windows.Forms.DataGridViewCheckBoxColumn(); 
    110110            this.netto = new System.Windows.Forms.DataGridViewTextBoxColumn(); 
     111            this.reklamaIdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 
    111112            this.rEKLAMAUKAZESIEWNRBindingSource = new System.Windows.Forms.BindingSource(this.components); 
    112113            this.uKAZE_SIE_W_NRTableAdapter = new Baza_Reklam.REKLAMADataSetTableAdapters.UKAZE_SIE_W_NRTableAdapter(); 
     
    940941            this.nrWydaniaDataGridViewTextBoxColumn, 
    941942            this.zafakturowana, 
    942             this.netto}); 
     943            this.netto, 
     944            this.reklamaIdColumn}); 
    943945            this.ukazeSieDataGridView.DataSource = this.rEKLAMAUKAZESIEWNRBindingSource; 
    944946            this.ukazeSieDataGridView.Location = new System.Drawing.Point(435, 9); 
     
    988990            this.netto.ReadOnly = true; 
    989991            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; 
    9901001            //  
    9911002            // rEKLAMAUKAZESIEWNRBindingSource 
     
    19982009        private System.Windows.Forms.DataGridViewCheckBoxColumn zafakturowana; 
    19992010        private System.Windows.Forms.DataGridViewTextBoxColumn netto; 
     2011        private System.Windows.Forms.DataGridViewTextBoxColumn reklamaIdColumn; 
    20002012        private System.Windows.Forms.ContextMenuStrip advertSiteContext; 
    20012013        private System.Windows.Forms.ToolStripMenuItem deleteItem; 
  • trunk/BazaReklam/OrderDetails.cs

    r738 r750  
    489489        private void BlokowanieZrealizowanychEmisji() 
    490490        { 
     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             
    491499            //  ukazeSieDataGridView.Enabled = true;  
    492500            foreach (DataGridViewRow r in ukazeSieDataGridView.Rows) 
    493501            { 
    494502                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                } 
    496513 
    497514                //anulowana 
     
    501518                    r.DefaultCellStyle.ForeColor = Color.Red; 
    502519                } 
     520 
     521                if (r.ReadOnly && r.DefaultCellStyle.BackColor == Color.MintCream) continue; 
    503522 
    504523                foreach (DataGridViewRow s in ukazaloSieDataGridView.Rows) 
     
    513532            } 
    514533        } 
    515  
    516534 
    517535        public void ZablokujGroupBoxa(GroupBox g) 
  • trunk/BazaReklam/OrderDetails.resx

    r732 r750  
    262262    <value>1120, 54</value> 
    263263  </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> 
    270264  <metadata name="rEKLAMAUKAZESIEWNRBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    271265    <value>293, 17</value> 
  • trunk/BazaReklam/Properties/AssemblyInfo.cs

    r742 r750  
    3030// 
    3131[assembly: AssemblyVersion("1.0.0.0")] 
    32 [assembly: AssemblyFileVersion("1.1.20")] 
     32[assembly: AssemblyFileVersion("1.1.21")] 
  • trunk/BazaReklam/REKLAMADataSet.xss

    r740 r750  
    55     the code is regenerated. 
    66</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"> 
    88  <Shapes> 
    99    <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  
    656656        "Name" = "8:Microsoft Visual Studio" 
    657657        "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}" 
    660660        "UpgradeCode" = "8:{4E2DBBA4-3139-4790-8DDB-7AADFC963A7D}" 
    661661        "RestartWWWService" = "11:FALSE" 
     
    663663        "DetectNewerInstalledVersion" = "11:TRUE" 
    664664        "InstallAllUsers" = "11:TRUE" 
    665         "ProductVersion" = "8:1.1.20" 
     665        "ProductVersion" = "8:1.1.21" 
    666666        "Manufacturer" = "8:AACT" 
    667667        "ARPHELPTELEPHONE" = "8:" 
  • trunk/SQL/StoredProcedures/sp_DeleteReklamaStrona.txt

    r745 r750  
    77ALTER PROCEDURE [dbo].[sp_DeleteReklamaStrona] 
    88        @tytul varchar(10), 
    9         @nrWydania int 
     9        @nrWyd int 
    1010AS 
    1111DELETE FROM dbo.REKLAMA_STRONA  
    12 WHERE Nr_Wydania=@nrWydania 
     12WHERE Nr_Wydania=@nrWyd 
    1313AND ReklamaId IN  
    1414( 
     
    2222        WHERE  
    2323        (R.[ZATWIERDZONO DO DRUKU] = 1)  
    24         AND (U.[Nr Wydania] = @nrWydania)  
     24        AND (U.[Nr Wydania] = @nrWyd)  
    2525        AND (U.status <> 2)  
    2626        AND (T.Symb = @tytul)