示例#1
0
        protected void SendInvitations(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Biztosan elküldi a meghívókat? \n\n", "HR Cloud", MessageBoxButton.YesNo);

            switch (result)
            {
            case MessageBoxResult.Yes:
                EmailTemplate            et         = new EmailTemplate();
                Email                    email      = new Email();
                List <ModelErtesitendok> szemelyek  = Interview.Data_InterjuErtesitendokKapcsolt();
                List <string>            resztvevok = new List <string>();

                foreach (var item in szemelyek)
                {
                    resztvevok.Add(item.name);
                }
                //foreach (var item in szemelyek)
                //{
                //    new Email().Send(item.email, et.Belsos_Meghivo_Email(item.name, interview.projekt_megnevezes, interview.date_start + " - " + interview.time_start, interview.helyszin, interview.jelolt_megnevezes));
                //}
                new Email().Send(interview.jelolt_email, et.Jelolt_Meghivo_Email(interview.jelolt_megnevezes, interview.projekt_megnevezes, interview.date_start + " - " + interview.time_start, resztvevok));

                new Appointments().CreateMeeting(new AppointmentModel().TransformData(interview));
                new Interview().madeSent(interview.id);

                break;

            case MessageBoxResult.No:
                break;
            }
        }
示例#2
0
        protected void addColleagueToInterview(object sender, RoutedEventArgs e)
        {
            Button            btn   = sender as Button;
            ModelErtesitendok items = btn.DataContext as ModelErtesitendok;

            Interview.Insert(items.id);
            choose_editlist.ItemsSource       = Interview.Data_ProjektErtesitendokKapcsolt();
            ertesitendok_editlist.ItemsSource = Interview.Data_InterjuErtesitendokKapcsolt();
        }
示例#3
0
        protected void removeColleague(object sender, RoutedEventArgs e)
        {
            if (Session.UserData.kategoria >= 1)
            {
                MenuItem          menu  = sender as MenuItem;
                ModelErtesitendok items = menu.DataContext as ModelErtesitendok;

                Interview.DeleteInvited(items.id);
                choose_editlist.ItemsSource       = Interview.Data_ProjektErtesitendokKapcsolt();
                ertesitendok_editlist.ItemsSource = Interview.Data_InterjuErtesitendokKapcsolt();
            }
        }
示例#4
0
        protected void interviewLoader()
        {
            ModelFullProject         li   = project.data;
            List <ModelKompetenciak> li_k = Interview.Data_Kompetencia();

            foreach (var item in li_k)
            {
                if (item.id == li.kepesseg1)
                {
                    kompetencia1.Text = item.kompetencia_megnevezes;
                }
                if (item.id == li.kepesseg2)
                {
                    kompetencia2.Text = item.kompetencia_megnevezes;
                }
                if (item.id == li.kepesseg3)
                {
                    kompetencia3.Text = item.kompetencia_megnevezes;
                }
                if (item.id == li.kepesseg4)
                {
                    kompetencia4.Text = item.kompetencia_megnevezes;
                }
                if (item.id == li.kepesseg5)
                {
                    kompetencia5.Text = item.kompetencia_megnevezes;
                }
            }

            interju_jelolt_tbl.Text  = interview.jelolt_megnevezes;
            interju_projekt_tbl.Text = interview.projekt_megnevezes;
            interju_cim_tbl.Text     = interview.interju_cim;
            interju_helye_tbl.Text   = interview.helyszin;
            interju_idopont_tbl.Text = interview.date_start + "   " + interview.time_start + " - " + interview.time_end;
            interju_liras_tbl.Text   = interview.interju_leiras;

            choose_editlist.ItemsSource       = Interview.Data_ProjektErtesitendokKapcsolt();
            ertesitendok_editlist.ItemsSource = Interview.Data_InterjuErtesitendokKapcsolt();

            if (Interview.HasTest())
            {
                Panel.SetZIndex(kompetencia_border, 1);
                locked_title.Visibility = Visibility.Visible;
                //teszt_nyitas_btn.Visibility = Visibility.Visible;   //teszt megtekintéshez
            }
        }
示例#5
0
 protected void resztvevoSaveClick(object sender, RoutedEventArgs e)
 {
     ertesitendok_editlist.ItemsSource = Interview.Data_InterjuErtesitendokKapcsolt();
 }