예제 #1
0
        public string AddExperimentChooseStu(string id, string time)
        {
            string exid = Request["exid"];
            string json = new StudentOperation().AddExperimentChooseStu(id, exid, time);

            return("{\"back\":\"" + json + "\"}");
        }
예제 #2
0
        public string DelExtimeChooseStu(string id)
        {
            string exid = Request["exid"];
            string json = new StudentOperation().DelExtimeChooseStu(id, exid);

            return("{\"back\":\"" + json + "\"}");
        }
예제 #3
0
        public static bool Check(string username, string passwd, out long id)
        {
            passwd = Md5.GetMd5Word(passwd, username);
            List <Student> students = new StudentOperation().Search(u => u.student_number == username && u.student_password == passwd);

            if (students.Count == 1)
            {
                id = students[0].student_id;
                return(true);
            }
            id = 0;
            return(false);
        }