//根据StudentID查找所属部门 public string FindAgency(int StudentID) { try { Student student = bllStudent.FindStudents(StudentID); return(BLLAgency.FindByid(Convert.ToInt16(student.AgencyID)).AgencyName); } catch (Exception ex) { publicmethod.SaveError(ex, this.Request); return(""); } }