Exemple #1
0
 private void tsmiCandidateSearch_Click(object sender, EventArgs e)
 {
     FrmCandidateSearchSemple frcss = new FrmCandidateSearchSemple();
     frcss.MdiParent = this;
     frcss.Show();
     frcss.BringToFront();
 }
Exemple #2
0
 private void btnCandidateInsert_Click(object sender, EventArgs e)
 {
     FrmCandidateSearchSemple fcss = new FrmCandidateSearchSemple(true);
     fcss.ShowDialog();
     humanresourcesDataSet.candidateRow can = fcss.retrunobj as humanresourcesDataSet.candidateRow;
     if (can != null)
     {
         if (clist.Where(r => r.Candidate_id == can.Candidate_id).Count() == 0)
         {
             this.dataGridView1.DataSource = null;
             humanresourcesDataSet.recommendedRow newr = this.humanresourcesDataSet1.recommended.NewrecommendedRow();
             newr.Order_id = order_id;
             newr.Candidate_id = can.Candidate_id;
             newr.Recommended_State_ID = 1;
             newr.Recommended_Order = this.clist.Count + 1;
             newr.Users_ID = ((MDIFrmParent)MdiParent).LoginUser.User_id;
             newr.Recommended_Time = DateTime.Now;
             clist.Add(newr);
             this.dataGridView1.DataSource = clist;
             this.dataGridView1.ClearSelection();
             this.dataGridView1.Rows[this.dataGridView1.Rows.Count - 1].Selected = true;
             FrmState_remark fsr = new FrmState_remark(1, this.dataGridView1.SelectedRows[0]);
             fsr.lblState.Text =this.dataGridView1.SelectedRows[0].Cells["recommended_state"].Value.ToString();
             //fsr.Location= new Point(this.Location.X+ (this.Width - fsr.Width)/2,this.Location.Y);
             fsr.ShowDialog();
             newr.Advantages = fsr.ms1;
             newr.Inferior = fsr.ms2;
             this.humanresourcesDataSet1.recommended.AddrecommendedRow(newr);
         }
         else
         {
             MessageBox.Show("已有此候选人!");
         }
     }
 }