⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 student3.cs

📁 一个研究生管理系统 具体的情况自己看了
💻 CS
字号:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using PersistenceLayer;
using BusinessEntity;

/// <summary>
/// Student3 的摘要说明
/// </summary>
namespace Student
{
    public partial class Student
    {	//
		// TODO: 在此处添加构造函数逻辑
		//
        public static DataTable GetGradCourseArrange(string StuID)
        {
            //根据学生的学号,查找到该生,然后根据学生的类别:Type,和学生的年级Grad,
            //从CourseArrange表中获得学生的公共课表
            //字段为:
            //此表应该为研究生公共课程的课表,根据学生的身份决定学生
            /*
             *  研究生课程编号	PostgraduateID
                研究生课程名称	PostgraduateCourseName
                学生类别	StuType
                英文名称	EnglishName
                年级	Grade
                学时	AcademicHours
                上课地点	ClassAddress
                上课时间	ClassDate
                上课周次	ClassWeeks
                上课教师	Teacher
                职称	Post
                学年	AcademicYear
                学期	Term
                备注	Remark

             * */
            /*
            RetrieveCriteria rc=new RetrieveCriteria(typeof(StudentInfoEntity));
            Condition cd = rc.GetNewCondition();
            cd.AddEqualTo(StudentInfoEntity._StuID, StuID);
            StudentInfoEntity sinfoEntity = (StudentInfoEntity)rc.AsEntity();
            RetrieveCriteria rc1=new RetrieveCriteria(typeof(CourseArrangeEntity));
            Condition cd1 = rc1.GetNewCondition();
            cd1.AddEqualTo("StuType", sinfoEntity.Type);
            DataTable dt=rc1.AsDataTable();
            return dt;
             * */
            return null;
        }
        public static DataTable GetReStudyCourseCurrentTerm(string StuID)
        {
            //返回当学期学生的有效补修课表
            //补修课程号 课程名称 教师姓名 上课地点 上课时间  上课周次 
            //对应的字段分别为:
            //注意在数据库中的RestStudyList表中又加了一个字段Enable,必须返回Enable=1的元组
            //ReStudyCourseID,CourseName,Teacher,ClassAddress,ClassDate,ClassWeeks
            return null;

        }
        /*
        public static DataTable GetSelectValidCourseInfo(string )
        {
            //返回所有被检索到的合法的元组;ReStudyCourseID

        }
        public static DataTable GetSelectValidCourseInfo()
        {
            //返回所有被检索到的合法的元组;

        }
        public static DataTable GetSelectValidCourseInfo()
        {
            //返回所有被检索到的合法的元组;

        }
        public static DataTable GetSelectValidCourseInfo()
        {
            //返回所有被检索到的合法的元组;

        }
        public static DataTable GetSelectValidCourseInfo()
        {
            //返回所有被检索到的合法的元组;

        }
        public static DataTable GetSelectValidCourseInfo()
        {
            //返回所有被检索到的合法的元组;

        }
         * */
        public static string GetStudentPassWord(String StuID)
        {
            //返回学号为:StuID的学生的密码;
            //如果没有找到返回NULL;
            StudentInfoEntity sinfoEntiyt = new StudentInfoEntity();
            sinfoEntiyt.StuID = StuID;
            sinfoEntiyt.Retrieve();
            if (sinfoEntiyt.IsPersistent)
            {
                return sinfoEntiyt.PassWord;
            }
            else
            {
                return null;
            }

        }
        public static  String GetTeacherPassWord(String SpvID)
        {
            //返回导师ID为:SpvID的导师的密码;
            //如果没有找到返回NULL;

            SpvInfoEntity spvinfoEntity = new SpvInfoEntity();
            spvinfoEntity.SpvID = SpvID;
            spvinfoEntity.Retrieve();
            if (spvinfoEntity.IsPersistent)
            {
                return spvinfoEntity.PassWord;
            }
            else
            {
                return null;
            }
        }
        public static string GetExamineePassWord(String ExamineeID)
        {
            //返回考生ID为:ExamineeID的考生的密码;
            //如果没有找到返回NULL;
            ExamineeInfoEntity examineeinfoEntity=new ExamineeInfoEntity();
            examineeinfoEntity.ExamineeID=ExamineeID;
            examineeinfoEntity.Retrieve();
            if(examineeinfoEntity.IsPersistent)
            {
                return examineeinfoEntity.PassWord;

            }
            else{
                return null;
            }

        }
        
        public static string GetStuName(string StuID)
        {
            StudentInfoEntity sinfoEntiyt = new StudentInfoEntity();
            sinfoEntiyt.StuID = StuID;
            sinfoEntiyt.Retrieve();
            if (sinfoEntiyt.IsPersistent)
            {
                return sinfoEntiyt.StuName;
            }
            else
            {
                return null;
            }

        }
        public static string GetSpvName(string SpvID)
        {
            SpvInfoEntity spvinfoEntity = new SpvInfoEntity();
            spvinfoEntity.SpvID = SpvID;
            spvinfoEntity.Retrieve();
            if (spvinfoEntity.IsPersistent)
            {
                return spvinfoEntity.SpvName;
            }
            else
            {
                return null;
            }
        }
        public static string GetExamineeName(string ExamineeID)
        {
            ExamineeInfoEntity examineeinfoEntity = new ExamineeInfoEntity();
            examineeinfoEntity.ExamineeID = ExamineeID;
            examineeinfoEntity.Retrieve();
            if (examineeinfoEntity.IsPersistent)
            {
                return examineeinfoEntity.ExamineeName;
            }
            else
            {
                return null;
            }
        }

        
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -