Correction modification absences
Une seule absence est maintenant modifiée lors d'une modification.
This commit is contained in:
parent
abe5d4ce1f
commit
28b4ef39bb
10 changed files with 3 additions and 1 deletions
|
|
@ -71,6 +71,7 @@ namespace projet.View
|
|||
textBoxDateDebut.Clear();
|
||||
textBoxDateFin.Clear();
|
||||
comboBoxMotif.SelectedIndex = -1; // Réinitialiser la sélection du motif
|
||||
RemplirComboBoxAbsence();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
1
Mediatek86/View/ModifierAbsence.Designer.cs
generated
1
Mediatek86/View/ModifierAbsence.Designer.cs
generated
|
|
@ -108,6 +108,7 @@
|
|||
//
|
||||
// textBoxDateDebut
|
||||
//
|
||||
this.textBoxDateDebut.Enabled = false;
|
||||
this.textBoxDateDebut.Font = new System.Drawing.Font("Segoe UI", 10F);
|
||||
this.textBoxDateDebut.Location = new System.Drawing.Point(231, 267);
|
||||
this.textBoxDateDebut.Name = "textBoxDateDebut";
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -122,7 +122,7 @@ namespace projet.dal
|
|||
{
|
||||
if (access.Manager != null)
|
||||
{
|
||||
string req = "UPDATE absence SET dateFin = @dateFin, idMotif = @idMotif WHERE idPersonnel = @idPersonnel AND dateDebut = @dateDebut;";
|
||||
string req = "UPDATE absence SET dateFin = @dateFin WHERE idPersonnel = @idPersonnel AND dateDebut = @dateDebut AND idMotif = @idMotif;";
|
||||
var parameters = new Dictionary<string, object>
|
||||
{
|
||||
{ "@idPersonnel", personne.IdPersonnel },
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue