Esempio n. 1
0
        protected void addPerson(object sender, RoutedEventArgs e)
        {
            Button btn = sender as Button;

            if (selectedTabCode == 1)
            {
                SubJelolt items = btn.DataContext as SubJelolt;
                pControl.addJeloltInsert(items.id, pControl.ProjektID);
                projekt_kapcsolodo_list.ItemsSource = pControl.Data_JeloltForCheckbox(Ember_Search_tbx.Text);
                kapcs_jeloltek_listBox.ItemsSource  = pControl.Data_JeloltKapcs();
            }
            if (selectedTabCode == 2)
            {
                ertesitendok_struct items = btn.DataContext as ertesitendok_struct;
                pControl.addErtesitendokInsert(items.id);
                projekt_kapcsolodo_list.ItemsSource   = pControl.Data_ErtesitendokCheckbox(Ember_Search_tbx.Text);
                kapcs_ertesitendo_listBox.ItemsSource = pControl.Data_ErtesitendokKapcs();
            }
            if (selectedTabCode == 3)
            {
                hr_struct items = btn.DataContext as hr_struct;
                pControl.addHrInsert(items.id);
                projekt_kapcsolodo_list.ItemsSource = pControl.Data_HrCheckbox(Ember_Search_tbx.Text);
                kapcs_hr_listBox.ItemsSource        = pControl.Data_HrProject();
            }
        }
Esempio n. 2
0
        protected void ertesitendoDeleteClick(object sender, RoutedEventArgs e)
        {
            Button delete             = sender as Button;
            ertesitendok_struct items = delete.DataContext as ertesitendok_struct;

            pControl.ertesitendokKapcsDelete(items.id);
            kapcs_ertesitendo_listBox.ItemsSource = pControl.Data_ErtesitendokKapcs();
        }
Esempio n. 3
0
        protected void addColleagueToInterview(object sender, RoutedEventArgs e)
        {
            Button btn = sender as Button;
            ertesitendok_struct items = btn.DataContext as ertesitendok_struct;

            paControl.insertInterviewInvited(items.id);
            choose_editlist.ItemsSource       = paControl.Data_ProjektErtesitendokKapcsolt();
            ertesitendok_editlist.ItemsSource = paControl.Data_InterjuErtesitendokKapcsolt();
        }
Esempio n. 4
0
        protected void removeColleague(object sender, RoutedEventArgs e)
        {
            if (session.UserData[0].kategoria == 1)
            {
                MenuItem            menu  = sender as MenuItem;
                ertesitendok_struct items = menu.DataContext as ertesitendok_struct;

                paControl.deleteInterviewInvited(items.id);
                choose_editlist.ItemsSource       = paControl.Data_ProjektErtesitendokKapcsolt();
                ertesitendok_editlist.ItemsSource = paControl.Data_InterjuErtesitendokKapcsolt();
            }
        }