亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? modifystudentinfo.java

?? servlet做控制層示例
?? JAVA
字號:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ModifyStudentInfo.java

package com.saintbo.servlet.student;

import com.saintbo.entity.student.TblStudent;
import com.saintbo.javabean.sys.SysResource;
import com.saintbo.javabean.sys.UserInfo;
import com.saintbo.servlet.MyExtendedServlet;
import com.saintbo.session.student.StudentSessionLocal;
import com.saintbo.session.student.StudentSessionLocalHome;
import com.saintbo.util.upload.RequestHashtable;
import com.saintbo.util.upload.UploadRequest;
import java.io.IOException;
import java.io.PrintStream;
import java.text.DateFormat;
import javax.naming.InitialContext;
import javax.servlet.*;
import javax.servlet.http.HttpSession;

public class ModifyStudentInfo extends MyExtendedServlet
{

    public ModifyStudentInfo()
    {
    }

    public void handle()
        throws IOException, ServletException
    {
        UserInfo userInfo = (UserInfo)session.getAttribute("USERINFO");
        int userAuthority = super.checkAuthority(userInfo, 1, 0);
        if(userAuthority != 1)
            return;
        reqInfo = UploadRequest.upload(req);
        TblStudent student = null;
        String studentID = "";
        if(userInfo.getUserType().equals(new Integer(1)))
            studentID = userInfo.getUserID();
        else
        if(userInfo.getUserType().equals(new Integer(3)))
            studentID = (String)reqInfo.get("StudentID");
        String name = (String)reqInfo.get("Name");
        String gender = (String)reqInfo.get("Gender");
        String strBirthday = (String)reqInfo.get("Birthday");
        String political = (String)reqInfo.get("Political");
        String nationality = (String)reqInfo.get("Nationality");
        String birthPlace = (String)reqInfo.get("BirthPlace");
        String comeFrom = (String)reqInfo.get("ComeFrom");
        String admitID = (String)reqInfo.get("AdmitID");
        String collegeID = (String)reqInfo.get("CollegeID");
        String deptID = (String)reqInfo.get("DeptID");
        String specType = (String)reqInfo.get("SpecType");
        String specID = (String)reqInfo.get("SpecialtyID");
        String specDir = (String)reqInfo.get("SpecDirection");
        String classID = (String)reqInfo.get("ClassID");
        String grade = (String)reqInfo.get("Grade");
        String studentType = (String)reqInfo.get("StudentType");
        String status = (String)reqInfo.get("Status");
        String strAdmitDate = (String)reqInfo.get("AdmitDate");
        String eduSystem = (String)reqInfo.get("EduSystem");
        Integer limit = new Integer((String)reqInfo.get("Litmit"));
        String graduateFrom = (String)reqInfo.get("GraduateFrom");
        String room = (String)reqInfo.get("Room");
        String email = (String)reqInfo.get("Email");
        String phone = (String)reqInfo.get("Phone");
        String identityID = (String)reqInfo.get("IdentityID");
        String gatIdentityID = (String)reqInfo.get("GATIdentityID");
        String health = (String)reqInfo.get("Health");
        String degreeStatus = (String)reqInfo.get("DegreeStatus");
        String comments = (String)reqInfo.get("Comments");
        boolean result = false;
        String errorMessage = "";
        if(studentID != null && !studentID.trim().equals(""))
            try
            {
                InitialContext jndiContext = new InitialContext();
                StudentSessionLocalHome home = (StudentSessionLocalHome)jndiContext.lookup("StudentSessionLocal");
                StudentSessionLocal local = home.create();
                student = local.getStudentByStudentID(studentID);
                if(student != null)
                {
                    if(SysResource.getSysParamValByParamID(new Integer(100)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(100))))
                        student.setName(name);
                    if(SysResource.getSysParamValByParamID(new Integer(101)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(101))))
                        student.setGender(gender);
                    if(SysResource.getSysParamValByParamID(new Integer(102)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(102))))
                    {
                        java.util.Date birthday = DateFormat.getDateInstance().parse(strBirthday);
                        student.setBirthday(birthday);
                    }
                    if(SysResource.getSysParamValByParamID(new Integer(103)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(103))))
                        student.setPolitical(political);
                    if(SysResource.getSysParamValByParamID(new Integer(104)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(104))))
                        student.setNationality(nationality);
                    if(SysResource.getSysParamValByParamID(new Integer(105)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(105))))
                        student.setBirthPlace(birthPlace);
                    if(SysResource.getSysParamValByParamID(new Integer(106)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(106))))
                        student.setComeFrom(comeFrom);
                    if(SysResource.getSysParamValByParamID(new Integer(107)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(107))))
                        student.setAdimtID(admitID);
                    if(SysResource.getSysParamValByParamID(new Integer(108)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(108))))
                        student.setCollegeID(collegeID);
                    if(SysResource.getSysParamValByParamID(new Integer(109)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(109))))
                        student.setDeptID(deptID);
                    if(SysResource.getSysParamValByParamID(new Integer(110)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(110))))
                        student.setSpecType(specType);
                    if(SysResource.getSysParamValByParamID(new Integer(111)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(111))))
                        student.setSpecialtyID(specID);
                    if(SysResource.getSysParamValByParamID(new Integer(112)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(112))))
                        student.setSpecDirection(specDir);
                    if(SysResource.getSysParamValByParamID(new Integer(113)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(113))))
                        student.setClassID(classID);
                    if(SysResource.getSysParamValByParamID(new Integer(114)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(114))))
                        student.setGrade(grade);
                    if(SysResource.getSysParamValByParamID(new Integer(115)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(115))))
                        student.setStudentType(studentType);
                    if(SysResource.getSysParamValByParamID(new Integer(116)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(116))))
                        student.setStatus(status);
                    if(SysResource.getSysParamValByParamID(new Integer(117)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(117))))
                    {
                        java.util.Date admitDate = DateFormat.getDateInstance().parse(strAdmitDate);
                        student.setAdmitDate(admitDate);
                    }
                    if(SysResource.getSysParamValByParamID(new Integer(118)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(118))))
                        student.setEduSystem(eduSystem);
                    if(SysResource.getSysParamValByParamID(new Integer(119)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(119))))
                        student.setLimit(limit);
                    if(SysResource.getSysParamValByParamID(new Integer(120)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(120))))
                        student.setGraduateFrom(graduateFrom);
                    if(SysResource.getSysParamValByParamID(new Integer(121)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(121))))
                        student.setRoom(room);
                    if(SysResource.getSysParamValByParamID(new Integer(122)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(122))))
                        student.setEmail(email);
                    if(SysResource.getSysParamValByParamID(new Integer(123)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(123))))
                        student.setPhone(phone);
                    if(SysResource.getSysParamValByParamID(new Integer(124)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(124))))
                        student.setIdentityID(identityID);
                    if(SysResource.getSysParamValByParamID(new Integer(125)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(125))))
                        student.setGatIdentityID(gatIdentityID);
                    if(SysResource.getSysParamValByParamID(new Integer(126)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(126))))
                        student.setHealth(health);
                    if(SysResource.getSysParamValByParamID(new Integer(127)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(127))))
                        student.setDegreeStatus(degreeStatus);
                    if(SysResource.getSysParamValByParamID(new Integer(129)) != null && "1".equals(SysResource.getSysParamValByParamID(new Integer(129))))
                        student.setComments(comments);
                    result = true;
                } else
                {
                    errorMessage = "在數據庫中找不到學號為' " + studentID + "' 的學生.";
                }
                local.remove();
                jndiContext.close();
            }
            catch(Exception e)
            {
                errorMessage = "當修改學生基本信息時出現錯誤.";
                System.out.println(errorMessage);
                e.printStackTrace();
            }
        else
            errorMessage = "傳進來的學生學號不能為空.";
        if(result)
        {
            getServletContext().getRequestDispatcher("/student/studentdetail.jsp?StudentID=" + studentID).forward(req, res);
        } else
        {
            session.setAttribute("ERRORMESSAGE", errorMessage);
            getServletContext().getRequestDispatcher("/error/error.jsp").forward(req, res);
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区日韩| 精品成人免费观看| 91社区在线播放| 成人黄色免费短视频| 国产成人免费av在线| 激情伊人五月天久久综合| 麻豆国产精品视频| 久久99精品国产麻豆婷婷| 麻豆视频观看网址久久| 精品制服美女丁香| 国产一区视频网站| 粉嫩一区二区三区性色av| av日韩在线网站| 色女孩综合影院| 在线观看不卡视频| 欧美日韩在线播放一区| 精一区二区三区| 国产高清不卡二三区| 波多野结衣中文字幕一区| 99久久精品国产导航| 欧美亚洲尤物久久| 欧美一二区视频| 国产日韩三级在线| 亚洲欧美一区二区视频| 亚洲综合久久av| 毛片av一区二区三区| 高清久久久久久| 91成人看片片| 欧美一区二区三区电影| 久久精品水蜜桃av综合天堂| 亚洲视频综合在线| 亚洲午夜电影网| 久草中文综合在线| 99久久久免费精品国产一区二区| 在线观看视频一区二区欧美日韩| 91精品在线一区二区| 国产视频一区不卡| 亚洲综合激情小说| 黄页网站大全一区二区| 色又黄又爽网站www久久| 88在线观看91蜜桃国自产| 久久人人97超碰com| 怡红院av一区二区三区| 毛片一区二区三区| 一本大道av伊人久久综合| 91精品国产综合久久精品麻豆| 久久日韩粉嫩一区二区三区| 亚洲一区二区三区免费视频| 极品少妇xxxx精品少妇偷拍| 91在线一区二区| 99久久精品99国产精品| 色天使色偷偷av一区二区| 2019国产精品| 亚洲福利国产精品| 成人性视频网站| 日韩一级成人av| 亚洲欧美日韩中文播放 | 奇米精品一区二区三区在线观看一| 国产精品自拍av| 欧美亚洲综合在线| 国产欧美日韩在线视频| 日韩高清不卡一区| 99精品久久99久久久久| 精品国产91久久久久久久妲己| 亚洲精品成人天堂一二三| 国产精品一区二区在线观看网站| 欧美色图一区二区三区| 欧美国产一区二区| 久久99久久久欧美国产| 欧美视频完全免费看| 国产精品色眯眯| 韩国三级在线一区| 欧美日韩国产片| 亚洲人成小说网站色在线| 久久99精品久久久久久国产越南| 欧美中文字幕一区二区三区亚洲| 国产欧美日韩综合| 国产自产v一区二区三区c| 91精品国产黑色紧身裤美女| 亚洲欧美一区二区不卡| 成人中文字幕在线| 久久综合av免费| 亚洲成人av福利| 7777女厕盗摄久久久| 日韩一级黄色大片| 丝袜美腿亚洲色图| 欧美专区日韩专区| 亚洲在线视频免费观看| 91一区一区三区| 国产精品乱人伦| 国产成+人+日韩+欧美+亚洲| 久久在线观看免费| 老司机精品视频一区二区三区| 欧美喷潮久久久xxxxx| 一区二区三区欧美| 色94色欧美sute亚洲13| 综合久久给合久久狠狠狠97色| 国产91露脸合集magnet| 精品少妇一区二区三区| 麻豆久久久久久| 精品欧美一区二区久久| 免费看日韩精品| 欧美电影免费观看高清完整版在| 免费高清在线视频一区·| 欧美三级蜜桃2在线观看| 亚洲曰韩产成在线| 欧美性感一类影片在线播放| 亚洲综合视频网| 欧美最新大片在线看| 亚洲国产毛片aaaaa无费看| 在线视频亚洲一区| 亚洲黄色小视频| 欧美亚洲国产一区二区三区va| 亚洲综合成人在线| 欧美日本乱大交xxxxx| 亚洲高清久久久| 91精品在线麻豆| 蜜桃久久久久久| 久久久美女毛片| 成人一区二区三区视频在线观看| 国产成人在线视频播放| 中文字幕的久久| 一本久久精品一区二区| 亚洲国产婷婷综合在线精品| 91麻豆精品国产91久久久久久 | 久久精品99国产精品日本| 精品1区2区在线观看| 福利91精品一区二区三区| 亚洲六月丁香色婷婷综合久久 | 国产激情一区二区三区四区| 国产精品视频免费| 一本到高清视频免费精品| 亚洲国产精品一区二区www在线| 欧美美女一区二区在线观看| 久久不见久久见免费视频7| 国产午夜亚洲精品不卡| 色婷婷狠狠综合| 蜜臀精品久久久久久蜜臀| 国产欧美一区二区精品忘忧草| 99久久精品情趣| 亚洲aⅴ怡春院| 国产亚洲欧美一级| 日本韩国欧美在线| 久久99久国产精品黄毛片色诱| 国产精品天天摸av网| 欧美色图第一页| 久久99这里只有精品| 一区免费观看视频| 日韩丝袜情趣美女图片| 成人精品一区二区三区中文字幕| 亚洲第一成年网| 国产欧美综合色| 欧美日本乱大交xxxxx| 成人黄色免费短视频| 日韩电影网1区2区| 中文字幕一区二区三| 日韩欧美一区在线| 91视频免费观看| 国内不卡的二区三区中文字幕| 玉米视频成人免费看| 久久综合久久99| 欧美日韩黄色一区二区| 成人动漫视频在线| 麻豆精品一区二区三区| 国产成人一区二区精品非洲| 精品视频在线免费看| 亚洲激情图片一区| 欧美日韩第一区日日骚| 国产精品一区二区无线| 一区二区三区在线视频免费| 精品成人在线观看| 成人看片黄a免费看在线| 久久99国内精品| 亚洲一区二区三区三| 国产精品情趣视频| 精品sm捆绑视频| 69av一区二区三区| 色天使色偷偷av一区二区| 成人午夜av电影| 国产三级久久久| 日韩精品一区二区三区在线播放| 欧美成人免费网站| 久久色中文字幕| 欧美日韩激情在线| 欧美绝品在线观看成人午夜影视| 日本成人在线视频网站| 欧美三级日韩三级| 91尤物视频在线观看| 国产电影一区二区三区| 精品一区在线看| 日韩精品乱码av一区二区| 亚洲夂夂婷婷色拍ww47| 亚洲欧美激情视频在线观看一区二区三区| 久久婷婷色综合| 精品国产在天天线2019| 88在线观看91蜜桃国自产| 欧美久久久久中文字幕| 欧美色精品天天在线观看视频| 欧美在线视频你懂得| 日本高清不卡在线观看|