This commit is contained in:
Pipiaka 2024-12-23 07:19:18 +04:00
parent 5b2d2b883c
commit 58680c1f80
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ namespace Accounting_Time_It_Company.Forms
textBoxName.Text = employee.Name;
maskedTextBoxPhone.Text = employee.Phone.ToString();
comboBoxPost.SelectedValue = employee.PostId;
labelAllowance.Text = employee.Allowance.ToString();
numericUpDownAllowance.Text = employee.Allowance.ToString();
_employeeId = value;
}
catch (Exception ex)

View File

@ -54,7 +54,7 @@ public class PostRepositories : IPostRepositories
LevelPost=@LevelPost,
Wage=@Wage
WHERE Id=@id";
connection.Execute(queryUpdate, post);
connection.Execute(queryUpdate, new { id = post.Id, NamePost = post.NamePost.ToString(), post.LevelPost, post.Wage });
}
catch (Exception ex)
{