private void txtResume_DoubleClick(object sender, EventArgs e) { FormPersonnelResume frm = new FormPersonnelResume(txtResume, "编号"); frm.ShowDialog(); DataTable dt = m_resumeServer.GetResume(frm.UserCode); if (dt.Rows.Count == 1) { txtName.Text = dt.Rows[0]["姓名"].ToString(); txtNationality.Text = dt.Rows[0]["国籍"].ToString(); txtParty.Text = dt.Rows[0]["政治面貌"].ToString(); txtFamilyAddress.Text = dt.Rows[0]["家庭住址"].ToString(); txtCollege.Text = dt.Rows[0]["毕业院校"].ToString(); txtEducatedDegree.Text = dt.Rows[0]["学历"].ToString(); txtEducatedMajor.Text = dt.Rows[0]["专业"].ToString(); txtCard.Text = dt.Rows[0]["身份证"].ToString(); txtBirthplace.Text = dt.Rows[0]["籍贯"].ToString(); txtRace.Text = dt.Rows[0]["民族"].ToString(); cmbSex.Text = dt.Rows[0]["性别"].ToString(); dtpBirthday.Value = Convert.ToDateTime(dt.Rows[0]["出生日期"].ToString()); txtPostcode.Text = dt.Rows[0]["邮编"].ToString(); cmbMaritalStatus.Text = dt.Rows[0]["婚姻状况"].ToString(); txtMobilePhone.Text = dt.Rows[0]["手机"].ToString(); txtResume.Text = frm.UserCode; if (dt.Rows[0]["照片"].ToString() != "") { picbPhoto.Image = GetPicture(dt.Rows[0]["照片"] as byte[]); } if (dt.Rows[0]["附件"].ToString() != "") { m_picbyte = dt.Rows[0]["附件"] as byte[]; m_pathName = dt.Rows[0]["附件名"].ToString(); lblAnnexName.Text = m_pathName; } else { llbLoadAnnex.Visible = false; lblAnnexName.Visible = false; } } else { MessageDialog.ShowPromptMessage("简历信息有误,请手动输入"); } }
private void txtResume_DoubleClick(object sender, EventArgs e) { FormPersonnelResume frm = new FormPersonnelResume(txtResume, "编号"); frm.ShowDialog(); HR_Resume resumeInfo = m_resumeServer.GetResumelInfo(Convert.ToInt32(frm.UserCode)); if (resumeInfo != null) { txtName.Text = resumeInfo.Name; txtNationality.Text = resumeInfo.Nationality; txtParty.Text = resumeInfo.Party; txtFamilyAddress.Text = resumeInfo.FamilyAddress; txtCollege.Text = resumeInfo.College; cmbEducatedDegree.Text = resumeInfo.EducatedDegree; txtEducatedMajor.Text = resumeInfo.EducatedMajor; txtCard.Text = resumeInfo.ID_Card; txtBirthplace.Text = resumeInfo.Birthplace; txtRace.Text = resumeInfo.Race; cmbSex.Text = resumeInfo.Sex; dtpBirthday.Value = Convert.ToDateTime(resumeInfo.Birthday); cmbMaritalStatus.Text = resumeInfo.MaritalStatus; txtMobilePhone.Text = resumeInfo.Phone; txtResume.Text = frm.UserCode; txtPhone.Text = resumeInfo.EmergencyPhone; txtWorkHistory.Text = resumeInfo.WorkHistory; txtEducatedHistory.Text = resumeInfo.EducatedHistory; txtFamilyMember.Text = resumeInfo.FamilyMember; llbLoadAnnex.Visible = false; lblAnnexName.Visible = false; } else { MessageDialog.ShowPromptMessage("简历信息有误,请手动输入"); } #region 人才库 //HR_TrainEmploye trainEmploye = m_trainEmployeServer.GetInfoByID(Convert.ToInt32(frm.UserCode), out m_error); //if (trainEmploye != null) //{ // txtName.Text = trainEmploye.Name; // txtNationality.Text = trainEmploye.Nationality; // txtParty.Text = trainEmploye.Party; // txtFamilyAddress.Text = trainEmploye.Address; // txtCollege.Text = trainEmploye.College; // cmbEducatedDegree.Text = trainEmploye.EducatedDegree; // txtEducatedMajor.Text = trainEmploye.EducatedMajor; // txtCard.Text = trainEmploye.ID_Card; // txtBirthplace.Text = trainEmploye.Birthplace; // txtRace.Text = trainEmploye.Race; // cmbSex.Text = trainEmploye.Sex; // dtpBirthday.Value = Convert.ToDateTime(trainEmploye.Birthday); // cmbMaritalStatus.Text = trainEmploye.MaritalStatus; // txtMobilePhone.Text = trainEmploye.Phone; // txtResume.Text = frm.UserCode; // txtPhone.Text = trainEmploye.EmergencyPhone; // DataTable dt = m_trainEmployeServer.GetWorkHistory(Convert.ToInt32(frm.UserCode)); // if (dt != null && dt.Rows.Count > 0) // { // txtWorkHistory.Text = ""; // for (int i = 0; i < dt.Rows.Count; i++) // { // txtWorkHistory.Text += dt.Rows[i]["工作开始时间"].ToString() + "--" + dt.Rows[i]["截止时间"].ToString() + " " + // dt.Rows[i]["公司名称"].ToString() + " " + dt.Rows[i]["工作岗位"].ToString() + " " + dt.Rows[i]["月酬"].ToString() + "\r\n"; // } // } // dt = m_trainEmployeServer.GetEducatedHistory(Convert.ToInt32(frm.UserCode)); // if (dt != null && dt.Rows.Count > 0) // { // txtEducatedHistory.Text = ""; // for (int i = 0; i < dt.Rows.Count; i++) // { // txtEducatedHistory.Text += dt.Rows[i]["学习开始时间"].ToString() + "--" + dt.Rows[i]["学习截止时间"].ToString() + " " + // dt.Rows[i]["学校"].ToString() + " " + dt.Rows[i]["专业"].ToString() + " " + dt.Rows[i]["学历"].ToString() + "\r\n"; // } // } // dt = m_trainEmployeServer.GetFamilyMember(Convert.ToInt32(frm.UserCode)); // if (dt != null && dt.Rows.Count > 0) // { // txtFamilyMember.Text = ""; // for (int i = 0; i < dt.Rows.Count; i++) // { // txtFamilyMember.Text += dt.Rows[i]["称谓"].ToString() + " " + dt.Rows[i]["姓名"].ToString() // + " " + dt.Rows[i]["单位"].ToString() + "\r\n"; // } // } // llbLoadAnnex.Visible = false; // lblAnnexName.Visible = false; //} //else //{ // MessageDialog.ShowPromptMessage("简历信息有误,请手动输入"); //} #endregion }