Zbiór zmian 667 dla branches

Pokaż
Ignoruj:
Data:
2009-06-01 10:37:00 (17 years ago)
Autor:
marek
Opis:

re #161

Lokalizacja:
branches/ReklamaReorganizacja/BazaReklam
Pliki:
3 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/ReklamaReorganizacja/BazaReklam/Classes/Helpers/AdHelper.cs

    r658 r667  
    1010    } 
    1111 
    12     //public struct ModuleCount 
    13     //{ 
    14     //    public int Horizontal; 
    15     //    public int Vertical; 
    16     //} 
    17  
    18  
    1912    public class AdHelper 
    2013    { 
    21         ////TODO: get the initial ad size, margin size and max width height from db 
    22         //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 6 
    32         //            horizontal = Convert.ToInt32((reklama.SZER + 3) / 48); 
    33         //            vertical = Convert.ToInt32((reklama.WYS + 3) / 53.33); 
    34         //        } 
    35         //        else 
    36         //        { 
    37         //            //max 8 x 8 
    38         //            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 4 
    45         //        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  
    5514        //TODO: get the initial ad size, margin size and max width height from db 
    5615        public static AdSize GetAdSize(int horizontal, int vertical, Module module) 
     
    6019            if (!EnableModuleCount(module)) 
    6120            { 
    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); 
    6423                return adSize; 
    6524            } 
  • branches/ReklamaReorganizacja/BazaReklam/OrderDetails.cs

    r658 r667  
    16051605            //set the module size 
    16061606            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(); 
    16081608 
    16091609            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(); 
    16111611 
    16121612            bool readOnly = !AdHelper.EnableModuleCount(SelectedModule); 
  • branches/ReklamaReorganizacja/BazaReklam/app.config

    r665 r667  
    88  <connectionStrings> 
    99    <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" 
    1111      providerName="System.Data.SqlClient" /> 
    1212  </connectionStrings>