Beispiel #1
0
        public IActionResult GetCandidates([FromBody] TName name)
        {
            var Candidate = (from t in db.Technologies
                             join s in db.Skills
                             on t.Tid equals s.Tid
                             join a in db.Applicant
                             on s.Uid equals a.Uid
                             join l in db.Location
                             on a.Location equals l.Id
                             select new
            {
                uid = a.Uid,
                uName = a.Name,
                suName = a.SerName,
                portfolio = a.Portfolio,
                Location = l.Lname,
                Age = a.Age,
                Pos = a.Position,
                Spec = a.Spec,
                exp = s.Experience,

                tName = t.Name,
                tGroup = t.Category,
                tId = t.Tid
            }
                             ).ToArray();

            return(Json(Candidate));
        }
        private void Accept_Click(object sender, RoutedEventArgs e)
        {
            if (AreSetImg == false)
            {
                impath = @"" + Environment.CurrentDirectory.ToString() + "\\YourSet.png";
            }
            Setting st = new Setting("0.0.0.0", "0000", "aaaa", System.Drawing.Image.FromFile(impath));

            if (TIP.GetLineLength(0) == 0 | TPort.GetLineLength(0) == 0 | TName.GetLineLength(0) == 0)
            {
                MessageBox.Show("Всі поля мусять бути заповнені!");
            }
            else
            {
                if (!st.IsIP(TIP.Text))
                {
                    MessageBox.Show("Невірний формат ІР адреси!");
                }
                else if (!st.IsPort(TPort.Text))
                {
                    MessageBox.Show("Введено неіснуючий номер порту!");
                }
                else
                {
                    st = new Setting(TIP.Text, TPort.Text, TName.Text, System.Drawing.Image.FromFile(impath));
                    st.SaveSetting();
                    this.Close();
                    if (ButtonClicked != null)
                    {
                        ButtonClicked(this, e);
                    }
                }
            }
        }
Beispiel #3
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (pictureBox1.Image != null && TName.Text != "" && Price.Text != "" && Speed.Text != "" && Producer.Text != "" && Country.Text != "")
     {
         ListViewItem item = new ListViewItem(TName.Text);
         item.SubItems.Add(Price.Text);
         item.SubItems.Add(Speed.Text);
         item.SubItems.Add(Producer.Text);
         item.SubItems.Add(Country.Text);
         item.ImageIndex = imgPos;
         lv.Items.Add(item);
         pictureBox1.Image = null;
         TName.Clear();
         Price.Clear();
         Speed.Clear();
         Country.Clear();
         Producer.Clear();
     }
     else
     {
         MessageBox.Show("Заповніть всі поля");
     }
 }
 public StateBuilder AllTransition(TName targetStateName)
 {
     _parentBuilder._allTransitions.Add(_state.Name, targetStateName);
     return(this);
 }
 public StateBuilder Transition(TTrig triggerValue, TName stateName)
 {
     _parentBuilder._transitions.Add((_state.Name, triggerValue),
                                     stateName);
     return(this);
 }
 public StateBuilder(TBuilder parentBuilder, TName name)
 {
     _state         = new State <TTrig, TName>(name);
     _parentBuilder = parentBuilder;
     _parentBuilder._createdStates.Add(name, _state);
 }
Beispiel #7
0
        public IActionResult GetTechnologies([FromBody] TName name)
        {
            var technologies = db.Technologies.ToList();

            return(Json(technologies));
        }
 public KeyStruct(KeyStruct kStr)
 {
     Id   = kStr.Id;
     Name = kStr.Name;
 }
 public KeyStruct(TId id, TName name)
 {
     Id   = id;
     Name = name;
 }
 public CompositeKey(TId id, TName name)
 {
     Id   = id;
     Name = name;
 }