ы
This commit is contained in:
parent
5b2d2b883c
commit
58680c1f80
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user