Esempio n. 1
0
 protected void saveButton_Click(object sender, EventArgs e)
 {
     try
     {
         BLayer  myBlayer  = new BLayer();
         Pliromi myPliromi = new Pliromi();
         myPliromi.PayDay       = Convert.ToDateTime(priromiDate.Text);
         myPliromi.pmid         = Convert.ToInt32(RadioButtonListMisthodType.SelectedValue);// na val0 an o allos den epilexei bathmo na epilegei automata ton bathmo strti
         myPliromi.Poso         = Convert.ToDecimal(posoPliromis.Text);
         myPliromi.Paid         = Convert.ToBoolean(1);
         myPliromi.Pliromi_opid = Convert.ToInt32(aa.Text);
         myBlayer.add_Pliromi(myPliromi);
         Response.Redirect("anafora_pliromis.aspx");
     }
     catch (Exception ex)
     {
         error.Visible = true;
         error.Text    = ex.Message.ToString();
     }
 }