Zbiór zmian 668

Pokaż
Ignoruj:
Data:
2009-06-01 13:06:45 (17 years ago)
Autor:
marek
Opis:

re #161

Lokalizacja:
branches/ReklamaReorganizacja/BazaReklam
Pliki:
3 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/ReklamaReorganizacja/BazaReklam/OrderDetails.Designer.cs

    r649 r668  
    7070            System.Windows.Forms.Label label14; 
    7171            System.Windows.Forms.Label label15; 
    72             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); 
    73             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); 
    74             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); 
     72            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); 
     73            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); 
     74            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); 
    7575            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OrderDetails)); 
    7676            this.rEKLAMADataSet = new Baza_Reklam.REKLAMADataSet(); 
     
    928928            this.ukazeSieDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; 
    929929            this.ukazeSieDataGridView.BackgroundColor = System.Drawing.Color.White; 
    930             dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    931             dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; 
    932             dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    933             dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; 
    934             dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; 
    935             dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; 
    936             dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; 
    937             this.ukazeSieDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; 
     930            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     931            dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; 
     932            dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
     933            dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; 
     934            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; 
     935            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; 
     936            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; 
     937            this.ukazeSieDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; 
    938938            this.ukazeSieDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 
    939939            this.ukazeSieDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { 
     
    959959            //  
    960960            this.nrWydaniaDataGridViewTextBoxColumn.DataPropertyName = "Nr Wydania"; 
    961             dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    962             this.nrWydaniaDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2; 
     961            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     962            this.nrWydaniaDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5; 
    963963            this.nrWydaniaDataGridViewTextBoxColumn.FillWeight = 149.2386F; 
    964964            this.nrWydaniaDataGridViewTextBoxColumn.HeaderText = "Nr wyd."; 
     
    981981            this.netto.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    982982            this.netto.DataPropertyName = "netto"; 
    983             dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    984             dataGridViewCellStyle3.Format = "C"; 
    985             this.netto.DefaultCellStyle = dataGridViewCellStyle3; 
     983            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     984            dataGridViewCellStyle6.Format = "C"; 
     985            this.netto.DefaultCellStyle = dataGridViewCellStyle6; 
    986986            this.netto.HeaderText = "Wartoœæ"; 
    987987            this.netto.Name = "netto"; 
     
    11311131            //  
    11321132            this.lblKolor.AutoSize = true; 
    1133             this.lblKolor.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.rEKLAMABindingSource, "KOLOR", true)); 
    11341133            this.lblKolor.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    11351134            this.lblKolor.ForeColor = System.Drawing.Color.Blue; 
    11361135            this.lblKolor.Location = new System.Drawing.Point(6, 37); 
    11371136            this.lblKolor.Name = "lblKolor"; 
    1138             this.lblKolor.Size = new System.Drawing.Size(37, 13); 
     1137            this.lblKolor.Size = new System.Drawing.Size(35, 13); 
    11391138            this.lblKolor.TabIndex = 17; 
    1140             this.lblKolor.Text = "FULL"; 
     1139            this.lblKolor.Text = "kolor"; 
    11411140            //  
    11421141            // txtVertical 
  • branches/ReklamaReorganizacja/BazaReklam/OrderDetails.cs

    r667 r668  
    322322            Reklama.GRZBIET = SelectedSection.Id; 
    323323            Reklama.AdLocationId = SelectedAdLocation.Id; 
     324            Reklama.KOLOR = lblKolor.Text; 
    324325 
    325326            if (SelectedNavigationColumn != null && SelectedNavigationColumn.Id > 0) 
     
    16621663            } 
    16631664 
     1665            RecalculateAdSize(); 
     1666 
    16641667            //is module in full color 
    16651668            if (SelectedModule.Name == "AWEB") 
     
    16771680            Debug.WriteLine(string.Format("Event: {0}", "txtHorizontal_TextChanged")); 
    16781681 
    1679             if (Validate() && SelectedModule!=null) 
    1680             { 
    1681                 txtTotalModuleAmount.Text = 
     1682            if (Validate()) 
     1683            { 
     1684                RecalculateAdSize(); 
     1685 
     1686                //txtTotalModuleAmount.Text = 
     1687                //    ReCaluculateModuleAmount(txtHorizontal.Text, txtVertical.Text).ToString(); 
     1688 
     1689                //int horizontal, vertical; 
     1690                //if (int.TryParse(txtHorizontal.Text, out horizontal) && int.TryParse(txtVertical.Text, out vertical)) 
     1691                //{ 
     1692                //    AdSize adSize = AdHelper.GetAdSize(horizontal, vertical, SelectedModule); 
     1693 
     1694                //    sZERTextBox.Text = adSize.Width.ToString(); 
     1695                //    wYSTextBox.Text = adSize.Height.ToString(); 
     1696                //} 
     1697            } 
     1698        } 
     1699 
     1700        private void txtVertical_TextChanged(object sender, EventArgs e) 
     1701        { 
     1702            Debug.WriteLine(string.Format("Event: {0}", "txtVertical_TextChanged")); 
     1703 
     1704            if (Validate()) 
     1705            { 
     1706 
     1707                RecalculateAdSize(); 
     1708                 
     1709                //txtTotalModuleAmount.Text = 
     1710                //    ReCaluculateModuleAmount(txtHorizontal.Text, txtVertical.Text).ToString(); 
     1711 
     1712                //int horizontal, vertical; 
     1713                //if (int.TryParse(txtHorizontal.Text, out horizontal) && int.TryParse(txtVertical.Text, out vertical)) 
     1714                //{ 
     1715                //    AdSize adSize = AdHelper.GetAdSize(horizontal, vertical, SelectedModule); 
     1716 
     1717                //    sZERTextBox.Text = adSize.Width.ToString(); 
     1718                //    wYSTextBox.Text = adSize.Height.ToString(); 
     1719                //} 
     1720            } 
     1721        } 
     1722 
     1723        private void RecalculateAdSize() 
     1724        { 
     1725            if (SelectedModule == null) return; 
     1726 
     1727 
     1728            txtTotalModuleAmount.Text = 
    16821729                    ReCaluculateModuleAmount(txtHorizontal.Text, txtVertical.Text).ToString(); 
    16831730 
    1684                 int horizontal, vertical; 
    1685                 if (int.TryParse(txtHorizontal.Text, out horizontal) && int.TryParse(txtVertical.Text, out vertical)) 
    1686                 { 
    1687                     AdSize adSize = AdHelper.GetAdSize(horizontal, vertical, SelectedModule); 
    1688  
    1689                     sZERTextBox.Text = adSize.Width.ToString(); 
    1690                     wYSTextBox.Text = adSize.Height.ToString(); 
    1691                 } 
    1692             } 
    1693         } 
    1694  
    1695         private void txtVertical_TextChanged(object sender, EventArgs e) 
    1696         { 
    1697             Debug.WriteLine(string.Format("Event: {0}", "txtVertical_TextChanged")); 
    1698  
    1699             if (Validate() && SelectedModule != null) 
    1700             { 
    1701                 txtTotalModuleAmount.Text = 
    1702                     ReCaluculateModuleAmount(txtHorizontal.Text, txtVertical.Text).ToString(); 
    1703  
    1704                 int horizontal, vertical; 
    1705                 if (int.TryParse(txtHorizontal.Text, out horizontal) && int.TryParse(txtVertical.Text, out vertical)) 
    1706                 { 
    1707                     AdSize adSize = AdHelper.GetAdSize(horizontal, vertical, SelectedModule); 
    1708  
    1709                     sZERTextBox.Text = adSize.Width.ToString(); 
    1710                     wYSTextBox.Text = adSize.Height.ToString(); 
    1711                 } 
     1731            int horizontal, vertical; 
     1732            if (int.TryParse(txtHorizontal.Text, out horizontal) && int.TryParse(txtVertical.Text, out vertical)) 
     1733            { 
     1734                AdSize adSize = AdHelper.GetAdSize(horizontal, vertical, SelectedModule); 
     1735 
     1736                sZERTextBox.Text = adSize.Width.ToString(); 
     1737                wYSTextBox.Text = adSize.Height.ToString(); 
    17121738            } 
    17131739        } 
  • branches/ReklamaReorganizacja/BazaReklam/OrderDetails.resx

    r646 r668  
    253253    <value>17, 54</value> 
    254254  </metadata> 
     255  <metadata name="lISTATYPOWREKLAMYBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
     256    <value>17, 54</value> 
     257  </metadata> 
    255258  <metadata name="lISTA_TYPOW_REKLAMYTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    256259    <value>17, 91</value> 
     
    273276  <metadata name="uKAZE_SIE_W_NRTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    274277    <value>443, 91</value> 
     278  </metadata> 
     279  <metadata name="aGENCIBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
     280    <value>1113, 91</value> 
    275281  </metadata> 
    276282  <metadata name="aGENCIBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
     
    345351    <value>True</value> 
    346352  </metadata> 
     353  <metadata name="NR_WYDANIA.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     354    <value>True</value> 
     355  </metadata> 
     356  <metadata name="rEKLAMAReklamaInfoDodBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
     357    <value>863, 91</value> 
     358  </metadata> 
    347359  <metadata name="rEKLAMAReklamaInfoDodBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    348360    <value>863, 91</value>