Example #1
0
 protected void anadromikaCalculate_Click(object sender, EventArgs e)
 {
     if (logosAnadromikon.SelectedIndex == 0)
     {
         BLayer  myBlayer  = new BLayer();
         Oplitis myOplitis = new Oplitis();
         myOplitis.id      = Convert.ToInt32(aa.Text);
         anadromika.Text   = myBlayer.anadromikaCalcLogoKatigorias(myOplitis).ToString();
         posoPliromis.Text = anadromika.Text;
         DateTime mydatetime = new DateTime();
         mydatetime       = DateTime.Now;
         priromiDate.Text = mydatetime.Day.ToString() + "/" + mydatetime.Month.ToString() + "/" + mydatetime.Year.ToString();
     }
     else if (logosAnadromikon.SelectedIndex == 1)
     {
         BLayer  myBlayer  = new BLayer();
         Oplitis myOplitis = new Oplitis();
         myOplitis.id = Convert.ToInt32(aa.Text);
         decimal poso = myBlayer.anadromikaCalcLogoApousias(myOplitis);
         anadromika.Text   = poso.ToString();
         posoPliromis.Text = anadromika.Text;
         DateTime mydatetime = new DateTime();
         mydatetime       = DateTime.Now;
         priromiDate.Text = mydatetime.Day.ToString() + "/" + mydatetime.Month.ToString() + "/" + mydatetime.Year.ToString();
     }
 }