/// <summary> /// Author Date Comment /// BONGVX Hien thi thong tin ung vien /// </summary> private void displayCandidate() { List <Candidate> lstCan = new CandidatesBLL(mAccount).getElements(); gridControlCandidates.DataSource = lstCan; this.Dock = DockStyle.Fill; }
/// <summary> /// Author Date Comment /// BONGVX search theo tuyen dung /// </summary> private void lookUpEditRecruiment_EditValueChanged(object sender, EventArgs e) { int idRec; int.TryParse("" + lookUpEditRecruiment.EditValue, out idRec); List <Candidate> ListCan = new CandidatesBLL(mAccount).GetElementByIDRecruitment(idRec); gridControlCandidates.DataSource = ListCan; this.Dock = DockStyle.Fill; }
void DisplayCandidateNow(int id) { Candidate oCan = new CandidatesBLL(mAccount).getElementById(id); txtDiaChi.Text = "" + oCan.Address; txtGhiChu.Text = "" + oCan.Notes; txtHoTen.Text = "" + oCan.FullName; txtImagePath.Text = "" + oCan.ImagePath; txtLinkTaiLieu.Text = "" + oCan.DocumentPath; txtMoTa.Text = "" + oCan.Description; txtNamKinhNghiem.Text = "" + oCan.YearsExperience; dateEditDateSent.Text = "" + oCan.DateSent; dateEditNgaySinh.Text = "" + oCan.DateBirthday; lookUpEditChucVu.EditValue = oCan.JobTitleId; lookUpEditUngTuyen.EditValue = oCan.RecruitmentId; }
//private void lookUpEditChucVu_TextChanged(object sender, EventArgs e) //{ // displayCandidate(); //} //private void lookUpEditRecruiment_TextChanged(object sender, EventArgs e) //{ // displayCandidate(); //} /// <summary> /// Author Date Comment /// BONGVX Hien thi ho so ung vien /// </summary> private void gridViewCandidates_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { if (e.Column == colHoSo) { int idCandidate = 0; string value = "" + gridViewCandidates.GetFocusedRowCellValue("Id"); int.TryParse(value, out idCandidate); if (idCandidate > 0) { Candidate oCan = new CandidatesBLL(mAccount).getElementById(idCandidate); MessageBox.Show( "Họ tên: " + oCan.FullName + "\n" + "Tuổi: " + (DateTime.Now.Year - oCan.DateBirthday.Value.Year) + "\n" + "Chức vụ: " + oCan.JobTitle + "\n" + "------------------------------\n" + "Mô tả: " + oCan.Description, "Hồ Sơ"); } } }