protected List<JeloltExtendedList> getFormData() { DateTime localDate = DateTime.Now; List<JeloltExtendedList> items = new List<JeloltExtendedList>(); neme_struct nemeComboBoxItem = (neme_cbx as ComboBox).SelectedItem as neme_struct; nyelv_struct nyelvComboBoxItem = (nyelv_cbx as ComboBox).SelectedItem as nyelv_struct; nyelv_struct nyelv2ComboBoxItem = (nyelv2_cbx as ComboBox).SelectedItem as nyelv_struct; ertesulesek ertesulesComboBoxItem = (ertesules_cbx as ComboBox).SelectedItem as ertesulesek; munkakor_struct munkakorComboBoxItem = (munkakor_cbx as ComboBox).SelectedItem as munkakor_struct; munkakor_struct munkakor2ComboBoxItem = (munkakor2_cbx as ComboBox).SelectedItem as munkakor_struct; munkakor_struct munkakor3ComboBoxItem = (munkakor3_cbx as ComboBox).SelectedItem as munkakor_struct; vegzettseg_struct vegzettsegComboBoxItem = (vegzettseg_cbx as ComboBox).SelectedItem as vegzettseg_struct; items.Add(new JeloltExtendedList { id = 0, nev = nev_tbx.Text, email = email_tbx.Text, telefon = telefon_tbx.Text, lakhely = lakhely_tbx.Text, ertesult = ertesulesComboBoxItem.id.ToString(), szuldatum = Convert.ToInt32(eletkor_tbx.Text), neme = nemeComboBoxItem.id.ToString(), tapasztalat_ev = Convert.ToInt32(tapasztalat_tbx.Text), munkakor = munkakorComboBoxItem.id.ToString(), munkakor2 = munkakor2ComboBoxItem.id.ToString(), munkakor3 = munkakor3ComboBoxItem.id.ToString(), vegz_terulet = vegzettsegComboBoxItem.id.ToString(), nyelvtudas = nyelvComboBoxItem.id.ToString(), nyelvtudas2 = nyelv2ComboBoxItem.id.ToString(), reg_date = localDate.ToString("yyyy.MM.dd."), }); return items; }
protected void MenuItem_Click_2(object sender, RoutedEventArgs e) { MessageBoxResult result = MessageBox.Show("Biztosan törölni szeretnéd? \n", "HR Cloud", MessageBoxButton.YesNoCancel); switch (result) { case MessageBoxResult.Yes: MenuItem menuItem = sender as MenuItem; munkakor_struct items = menuItem.DataContext as munkakor_struct; if (items.munkakor != "Összes") { sControl.settingDelete(items.id, "munkakor"); } listLoader(); break; case MessageBoxResult.No: break; case MessageBoxResult.Cancel: break; } }
protected List <ProjectInsertListItems> getData() { vegzettseg_struct vegzettsegComboBox = (vegzettseg_cbx as ComboBox).SelectedItem as vegzettseg_struct; munkakor_struct munkakorComboBox = (munkakor_cbx as ComboBox).SelectedItem as munkakor_struct; nyelv_struct nyelvComboBox = (nyelv_cbx as ComboBox).SelectedItem as nyelv_struct; kompetenciak kepzettseg1ComboBox = (k1_cbx as ComboBox).SelectedItem as kompetenciak; kompetenciak kepzettseg2ComboBox = (k2_cbx as ComboBox).SelectedItem as kompetenciak; kompetenciak kepzettseg3ComboBox = (k3_cbx as ComboBox).SelectedItem as kompetenciak; kompetenciak kepzettseg4ComboBox = (k4_cbx as ComboBox).SelectedItem as kompetenciak; kompetenciak kepzettseg5ComboBox = (k5_cbx as ComboBox).SelectedItem as kompetenciak; pc_struct pcComboBox = (pc_cbx as ComboBox).SelectedItem as pc_struct; DateTime localDate = DateTime.Now; List <ProjectInsertListItems> items = new List <ProjectInsertListItems>(); items.Add(new ProjectInsertListItems { id = 0, hr_id = session.UserData[0].id, megnevezes_projekt = nev_tbx.Text, pc = pcComboBox.id, vegzettseg = vegzettsegComboBox.id, tapasztalat_ev = Convert.ToInt32(tapasztalat_tbx.Text), statusz = 1, fel_datum = localDate.ToString("yyyy.MM.dd."), le_datum = "-", nyelvtudas = nyelvComboBox.id, munkakor = munkakorComboBox.id, szuldatum = 0, ber = Convert.ToInt32(ber_tbx.Text), kepesseg1 = Convert.ToInt32(kepzettseg1ComboBox.id), kepesseg2 = Convert.ToInt32(kepzettseg2ComboBox.id), kepesseg3 = Convert.ToInt32(kepzettseg3ComboBox.id), kepesseg4 = Convert.ToInt32(kepzettseg4ComboBox.id), kepesseg5 = Convert.ToInt32(kepzettseg5ComboBox.id) }); return(items); }
protected List <string> searchValues() { List <string> list = new List <string>(); munkakor_struct munkakor_item = (munkakor_srccbx as ComboBox).SelectedItem as munkakor_struct; vegzettseg_struct vegzettseg_item = (vegzettseg_srccbx as ComboBox).SelectedItem as vegzettseg_struct; neme_struct nemek_item = (nemek_srccbx as ComboBox).SelectedItem as neme_struct; string munkakorStr = ""; string vegzettsegStr = ""; string nemekStr = ""; if (munkakor_srccbx.SelectedIndex != -1) { munkakorStr = munkakor_item.id.ToString(); } if (vegzettseg_srccbx.SelectedIndex != -1) { vegzettsegStr = vegzettseg_item.id.ToString(); } if (nemek_srccbx.SelectedIndex != -1) { nemekStr = nemek_item.id.ToString(); } string tapasztalat = tapsztalat_srcinp.Text; if (tapsztalat_srcinp.Text == "") { tapasztalat = ""; } string interjuk = interju_srcinp.Text; if (interju_srcinp.Text == "") { interjuk = ""; } string szabad = ""; if (szabad_check.IsChecked == true) { szabad = "1"; } string sorrend = " ASC"; list.Add(nev_srcinp.Text); list.Add(lakhely_srcinp.Text); list.Add(email_srcinp.Text); list.Add(eletkor_srcinp.Text); list.Add(tapasztalat); list.Add(regdate_srcinp.Text); list.Add(interjuk); list.Add(nemekStr); list.Add(munkakorStr); list.Add(vegzettsegStr); list.Add(cimke_srcinp.Text); list.Add(szabad); list.Add(HeaderSelected); list.Add(sorrend); return(list); }