|
@@ -29,13 +29,34 @@ namespace PP_Ven_MosS.Pages
|
|
|
User user = new User();
|
|
|
public Profile(User ID_User)
|
|
|
{
|
|
|
+
|
|
|
InitializeComponent();
|
|
|
DataContext = ID_User;
|
|
|
buffer = ID_User;
|
|
|
changeuser = ID_User;
|
|
|
user = ID_User;
|
|
|
+ List<User> usr = Classes.Database.entities.User.ToList();
|
|
|
+
|
|
|
+ User userr = new User()
|
|
|
+ {
|
|
|
+ Surname = txtSurn.Text,
|
|
|
+ Name = txtName.Text,
|
|
|
+ Patronymic = txtPatron.Text,
|
|
|
+ Post = txtPost.Text,
|
|
|
+ Phone_number = txtPhone.Text,
|
|
|
+ Login = txtLog.Text,
|
|
|
+ //Count_complete_app = txtApp.Text,
|
|
|
+ //Count_complete_event = txtEvent.Text,
|
|
|
+ };
|
|
|
+ if (UserRole.userrole == 2)
|
|
|
+ {
|
|
|
+ GBApp.Visibility = Visibility.Visible;
|
|
|
+ GBEvent.Visibility = Visibility.Visible;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
private void Save_Click(object sender, RoutedEventArgs e)
|
|
|
{
|
|
|
List<User> code = Classes.Database.entities.User.ToList();
|
|
@@ -69,3 +90,5 @@ namespace PP_Ven_MosS.Pages
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|