Zbiór zmian 668
- Data:
- 2009-06-01 13:06:45 (17 years ago)
- Lokalizacja:
- branches/ReklamaReorganizacja/BazaReklam
- Pliki:
-
- 3 zmodyfikowane
-
OrderDetails.Designer.cs (zmodyfikowane) (5 diffs)
-
OrderDetails.cs (zmodyfikowane) (3 diffs)
-
OrderDetails.resx (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/ReklamaReorganizacja/BazaReklam/OrderDetails.Designer.cs
r649 r668 70 70 System.Windows.Forms.Label label14; 71 71 System.Windows.Forms.Label label15; 72 System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle 1= new System.Windows.Forms.DataGridViewCellStyle();73 System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle 2= new System.Windows.Forms.DataGridViewCellStyle();74 System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle 3= 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(); 75 75 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OrderDetails)); 76 76 this.rEKLAMADataSet = new Baza_Reklam.REKLAMADataSet(); … … 928 928 this.ukazeSieDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; 929 929 this.ukazeSieDataGridView.BackgroundColor = System.Drawing.Color.White; 930 dataGridViewCellStyle 1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;931 dataGridViewCellStyle 1.BackColor = System.Drawing.SystemColors.Control;932 dataGridViewCellStyle 1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));933 dataGridViewCellStyle 1.ForeColor = System.Drawing.SystemColors.WindowText;934 dataGridViewCellStyle 1.SelectionBackColor = System.Drawing.SystemColors.Highlight;935 dataGridViewCellStyle 1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;936 dataGridViewCellStyle 1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;937 this.ukazeSieDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle 1;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; 938 938 this.ukazeSieDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 939 939 this.ukazeSieDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { … … 959 959 // 960 960 this.nrWydaniaDataGridViewTextBoxColumn.DataPropertyName = "Nr Wydania"; 961 dataGridViewCellStyle 2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;962 this.nrWydaniaDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle 2;961 dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 962 this.nrWydaniaDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5; 963 963 this.nrWydaniaDataGridViewTextBoxColumn.FillWeight = 149.2386F; 964 964 this.nrWydaniaDataGridViewTextBoxColumn.HeaderText = "Nr wyd."; … … 981 981 this.netto.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 982 982 this.netto.DataPropertyName = "netto"; 983 dataGridViewCellStyle 3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;984 dataGridViewCellStyle 3.Format = "C";985 this.netto.DefaultCellStyle = dataGridViewCellStyle 3;983 dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 984 dataGridViewCellStyle6.Format = "C"; 985 this.netto.DefaultCellStyle = dataGridViewCellStyle6; 986 986 this.netto.HeaderText = "Wartoæ"; 987 987 this.netto.Name = "netto"; … … 1131 1131 // 1132 1132 this.lblKolor.AutoSize = true; 1133 this.lblKolor.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.rEKLAMABindingSource, "KOLOR", true));1134 1133 this.lblKolor.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 1135 1134 this.lblKolor.ForeColor = System.Drawing.Color.Blue; 1136 1135 this.lblKolor.Location = new System.Drawing.Point(6, 37); 1137 1136 this.lblKolor.Name = "lblKolor"; 1138 this.lblKolor.Size = new System.Drawing.Size(3 7, 13);1137 this.lblKolor.Size = new System.Drawing.Size(35, 13); 1139 1138 this.lblKolor.TabIndex = 17; 1140 this.lblKolor.Text = " FULL";1139 this.lblKolor.Text = "kolor"; 1141 1140 // 1142 1141 // txtVertical -
branches/ReklamaReorganizacja/BazaReklam/OrderDetails.cs
r667 r668 322 322 Reklama.GRZBIET = SelectedSection.Id; 323 323 Reklama.AdLocationId = SelectedAdLocation.Id; 324 Reklama.KOLOR = lblKolor.Text; 324 325 325 326 if (SelectedNavigationColumn != null && SelectedNavigationColumn.Id > 0) … … 1662 1663 } 1663 1664 1665 RecalculateAdSize(); 1666 1664 1667 //is module in full color 1665 1668 if (SelectedModule.Name == "AWEB") … … 1677 1680 Debug.WriteLine(string.Format("Event: {0}", "txtHorizontal_TextChanged")); 1678 1681 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 = 1682 1729 ReCaluculateModuleAmount(txtHorizontal.Text, txtVertical.Text).ToString(); 1683 1730 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(); 1712 1738 } 1713 1739 } -
branches/ReklamaReorganizacja/BazaReklam/OrderDetails.resx
r646 r668 253 253 <value>17, 54</value> 254 254 </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> 255 258 <metadata name="lISTA_TYPOW_REKLAMYTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 256 259 <value>17, 91</value> … … 273 276 <metadata name="uKAZE_SIE_W_NRTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 274 277 <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> 275 281 </metadata> 276 282 <metadata name="aGENCIBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> … … 345 351 <value>True</value> 346 352 </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> 347 359 <metadata name="rEKLAMAReklamaInfoDodBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 348 360 <value>863, 91</value>
