1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
class PerformcongeAction implements ActionListener{
public void actionPerformed(ActionEvent e) {
String nom = Tnom.getText().toString();
String prenom = Tnom.getText().toString();
String lacause = TCause.getText().toString();
String debuter = Tdebut.getText().toString();
String finir = Tfin.getText().toString();
SimpleDateFormat dat = new SimpleDateFormat("yyyy/MM/dd");
Date ladatedebut=null;
Date ladatefin=null ;
try {
ladatedebut = dat.parse(debuter);
} catch (ParseException ex) {
}
try {
ladatefin = dat.parse(finir);
} catch (ParseException ex1) {
}
demande_conge C = new demande_conge(lacause,ladatedebut,ladatefin);
Outils.ajout_conge ajoutC = new ajout_conge(C);
}
} |
Partager