Zbiór zmian 667 dla branches/ReklamaReorganizacja
- Data:
- 2009-06-01 10:37:00 (17 years ago)
- Lokalizacja:
- branches/ReklamaReorganizacja/BazaReklam
- Pliki:
-
- 3 zmodyfikowane
-
Classes/Helpers/AdHelper.cs (zmodyfikowane) (2 diffs)
-
OrderDetails.cs (zmodyfikowane) (1 diff)
-
app.config (zmodyfikowane) (1 diff)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/ReklamaReorganizacja/BazaReklam/Classes/Helpers/AdHelper.cs
r658 r667 10 10 } 11 11 12 //public struct ModuleCount13 //{14 // public int Horizontal;15 // public int Vertical;16 //}17 18 19 12 public class AdHelper 20 13 { 21 ////TODO: get the initial ad size, margin size and max width height from db22 //public static ModuleCount GetModuleCount(Module module, REKLAMADataSet.REKLAMARow reklama)23 //{24 // int horizontal = 0;25 // int vertical = 0;26 27 // if (module.Section.Title.ShortName == "AMT")28 // {29 // if (module.Section.Name.ToUpper() == "ZOOM")30 // {31 // //max 5 x 632 // horizontal = Convert.ToInt32((reklama.SZER + 3) / 48);33 // vertical = Convert.ToInt32((reklama.WYS + 3) / 53.33);34 // }35 // else36 // {37 // //max 8 x 838 // horizontal = Convert.ToInt32((reklama.SZER + 3) / 30);39 // vertical = Convert.ToInt32((reklama.WYS + 3) / 40);40 // }41 // }42 // else if (module.Section.Title.ShortName == "GS")43 // {44 // //max 3 x 445 // horizontal = Convert.ToInt32((reklama.SZER + 3) / 70);46 // vertical = Convert.ToInt32((reklama.WYS + 3) / 68);47 // }48 49 // ModuleCount moduleCount = new ModuleCount();50 // moduleCount.Horizontal = horizontal;51 // moduleCount.Vertical = vertical;52 // return moduleCount;53 //}54 55 14 //TODO: get the initial ad size, margin size and max width height from db 56 15 public static AdSize GetAdSize(int horizontal, int vertical, Module module) … … 60 19 if (!EnableModuleCount(module)) 61 20 { 62 adSize.Width = Convert.ToInt32(module.Width * 10);63 adSize.Height = Convert.ToInt32(module.Height * 10);21 adSize.Width = Convert.ToInt32(module.Width); 22 adSize.Height = Convert.ToInt32(module.Height); 64 23 return adSize; 65 24 } -
branches/ReklamaReorganizacja/BazaReklam/OrderDetails.cs
r658 r667 1605 1605 //set the module size 1606 1606 sZERTextBox.Visible = SelectedModule.Width.HasValue; 1607 sZERTextBox.Text = SelectedModule.Width.HasValue ? (SelectedModule.Width.Value * 10).ToString("#0") : 1.ToString();1607 sZERTextBox.Text = SelectedModule.Width.HasValue ? (SelectedModule.Width.Value).ToString("#0") : 1.ToString(); 1608 1608 1609 1609 wYSTextBox.Visible = SelectedModule.Height.HasValue; 1610 wYSTextBox.Text = SelectedModule.Height.HasValue ? (SelectedModule.Height.Value * 10).ToString("#0") : 1.ToString();1610 wYSTextBox.Text = SelectedModule.Height.HasValue ? (SelectedModule.Height.Value).ToString("#0") : 1.ToString(); 1611 1611 1612 1612 bool readOnly = !AdHelper.EnableModuleCount(SelectedModule); -
branches/ReklamaReorganizacja/BazaReklam/app.config
r665 r667 8 8 <connectionStrings> 9 9 <clear /> 10 <add name="BAZA_REKLAM " connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM;Persist Security Info=True"10 <add name="BAZA_REKLAM_TEST" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True" 11 11 providerName="System.Data.SqlClient" /> 12 12 </connectionStrings>
