/// <summary> /// 根据专业ID查询对应详细信息 /// </summary> /// <param name="zyid"></param> private void GetSpecial(int zyid) { TbSpeciality special = TbSpecialityManager.GetSpecialByID(zyid); string message = special.ZyID + "|" + special.ZyName + "|" + special.Remark; Response.Write(message); }
public void GetSubject(int KmID) { TbSubject subject = TbSubjectManager.GetSubjectByID(KmID); TbSpeciality speciality = TbSpecialityManager.GetSpecialByID(subject.ZyID); string message = subject.KmID + "," + subject.KmName + "," + speciality.ZyName + "," + subject.Remark; Response.Write(message); }
/// <summary> /// 根据教师编号LsID查询对应的详细信息 /// </summary> /// <param name="LsID"></param> private void GetTeacher(int YhID) { TbTeacher teacher = TbTeacherManager.GetTeacherInfoByLsID(YhID); TbUser user = TbUserManager.GetUserInfoByYhID(YhID); string role = ""; if (user.Zt == 1) { role = "管理员"; } else { role = "教师"; } TbSpeciality speciality = TbSpecialityManager.GetSpecialByID(teacher.ZyID); string message = teacher.YhID + "|" + teacher.LsName + "|" + user.YhName + "|" + user.YhPwd + "|" + role + "|" + speciality.ZyName + "|" + teacher.Remark; Response.Write(message); }