public void BindData() { try { UserInfo user = bllUser.Find(Convert.ToInt32(Session["UserInfoID"]), true); T_UserName.Text = user.UserName; if (user.Sex == true) { rbtnBoy.Checked = true; } else { rbtnGril.Checked = true; } DropDownListNation.SelectedValue = user.Nation; T_Hometown.Text = user.Hometown; DatePickerBirth.SelectedDate = user.Birth; T_JobTitle.Text = user.JobTitle; DropDownListAgencyP.SelectedValue = bllAgency.FindAgenName(user.AgencyID); T_Telenum.Text = user.TeleNum; T_HomeTetlum.Text = user.HomeNum; T_Officenum.Text = user.OfficeNum; T_DocumentsNum.Text = user.DocumentsNum; DropDownListDocumentsType.SelectedValue = user.DocumentsType; DropDownListPoliticalStatus.SelectedValue = user.PoliticalStatus; ////NewUser.Profile = null; DropDownListEducation.SelectedValue = user.Education; DropDownListDegree.SelectedValue = user.Degree; DropDownListStaffType.SelectedValue = user.StaffType; T_Specilty.Text = user.Specialty; //图片加载 BLHelper.BLLAttachment att = new BLHelper.BLLAttachment(); Image_show.ImageUrl = att.FindPath(user.PhotoID); if (user.Marriage == true) { ISMarriage.Checked = true; } else { NotMarriage.Checked = true; } T_Fax.Text = user.Fax; T_HomeAddress.Text = user.HomeAddress; T_PostalCode.Text = user.PostalCode; T_QQnum.Text = user.qqNum; T_Remark.Text = user.Remark; T_UnitName.Text = user.UnitName; //T_StaffType.Text = user.StaffType; //T_UserInfoBH.Text = user.UserInfoBH; T_LoginName.Text = user.LoginName; T_Email.Text = user.Email; T_Telenum.Text = user.TeleNum; DropDownListAdmin.SelectedValue = user.AdministrativeLevelName; T_Domicile.Text = user.Domicile; DropDownListSubjectSortP.SelectedValue = user.SubjectSortName; DatePickerJobTitleTime.SelectedDate = user.JobTitleTime; TextAreaProfile.Text = user.Profile; DatePickerPoliticalStatusTime.SelectedDate = user.PoliticalStatusTime; if (user.IsDocdorTeacher == true) { IsDoctorTeacher.Checked = true; } else { NotDoctorTeacher.Checked = true; } if (user.IsMasteTeacher == true) { IsMasterTeacher.Checked = true; } else { NotMasterTeacher.Checked = true; } DatePickerMasterTeacherTime.SelectedDate = user.MasterTeacherTime; DatePickerDoctorTeacherTime.SelectedDate = user.DoctorTeacherTime; DropDownListSecrecyLevel.SelectedIndex = Convert.ToInt32(user.SecrecyLevel) - 1; T_Reserch.Text = user.ResearchDirection; LastSchool.Text = user.LastSchool; DatePickerEnterSchoolTime.SelectedDate = user.EnterSchoolTime; //入校时间; DropDownListStudySource.SelectedValue = user.StudySource; //学缘 } catch (Exception ex) { publicmethod.SaveError(ex, this.Request); } }