/// <summary>
        /// 获得人员档案数据集
        /// </summary>
        /// <returns>返回人员档案集合</returns>
        HR_PersonnelArchive GetPersonnelArchiveData()
        {
            HR_PersonnelArchive personnel = new HR_PersonnelArchive();

            personnel.WorkID            = txtWorkID.Text;
            personnel.Name              = txtName.Text;
            personnel.Sex               = cmbSex.Text;
            personnel.JoinDate          = dtpJoinDate.Value;
            personnel.Birthday          = dtpBirthday.Value;
            personnel.Nationality       = txtNationality.Text;
            personnel.Race              = txtRace.Text;
            personnel.Birthplace        = txtBirthplace.Text;
            personnel.Party             = txtParty.Text;
            personnel.ID_Card           = txtCard.Text;
            personnel.College           = txtCollege.Text;
            personnel.EducatedDegree    = cmbEducatedDegree.Text;
            personnel.EducatedMajor     = txtEducatedMajor.Text;
            personnel.FamilyAddress     = txtFamilyAddress.Text;
            personnel.Phone             = txtPhone.Text;
            personnel.Speciality        = txtSpeciality.Text;
            personnel.MobilePhone       = txtMobilePhone.Text;
            personnel.Hobby             = txtHobby.Text;
            personnel.QQ                = txtQQ.Text;
            personnel.Email             = txtEmail.Text;
            personnel.JobNature         = txtJobNature.Text;
            personnel.LengthOfSchooling = cmbLengthOfSchooling.Text;
            personnel.MaritalStatus     = cmbMaritalStatus.Text;
            personnel.IsRelation        = cbIsRelation.Checked;
            personnel.Relation          = txtRelation.Text;
            personnel.RelationName      = txtRelationName.Text;

            if (dtpBecomeDate.Checked)
            {
                personnel.BecomeRegularEmployeeDate = dtpBecomeDate.Value;
                //m_flag = true;
            }

            if (dtpTakeJobDate.Checked)
            {
                personnel.TakeJobDate = dtpTakeJobDate.Value;
            }

            personnel.ArchivePosition = txtArchivePosition.Text;
            personnel.PersonnelStatus = m_personnerServer.GetStatusByName(cmbStatus.Text);
            personnel.Dept            = m_departmentServer.GetDeptCode(cmbDept.Text);
            personnel.WorkPost        = m_PostServer.GetOperatingPostByPostName(cmbWorkPost.Text).岗位编号;
            personnel.JobTitleID      = m_JobServer.GetJobTitleByJobName(cmbJobTitle.Text);

            if (dtpDimissionDate.Checked)
            {
                personnel.DimissionDate   = dtpDimissionDate.Value;
                personnel.PersonnelStatus = m_personnerServer.GetStatusByName("离职");
            }

            personnel.IsCore     = cbCore.Checked;
            personnel.JobLevelID = m_JobServer.GetJobTitleByJobName(cmbLevel.Text);

            if (txtGraduationYear.Text.Trim() == "")
            {
                personnel.GraduationYear = 0;
            }
            else
            {
                personnel.GraduationYear = Convert.ToInt32(txtGraduationYear.Text);
            }

            if (picbPhoto.Image != null)
            {
                personnel.Photo = GetPicToBinary(picbPhoto.Image);
            }

            if (m_picbyte != null)
            {
                personnel.Annex     = m_picbyte;
                personnel.AnnexName = m_pathName;
            }

            if (txtResume.Text.Trim() != "")
            {
                personnel.ResumeID = Convert.ToInt32(txtResume.Text);
            }

            personnel.Recorder   = BasicInfo.LoginID;
            personnel.RecordTime = ServerTime.Time;
            personnel.Remark     = txtRemark.Text;
            personnel.PY         = UniversalFunction.GetPYWBCode(txtName.Text, "PY");
            personnel.WB         = UniversalFunction.GetPYWBCode(txtName.Text, "WB");

            return(personnel);
        }