• 大小: 20.46MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-03
  • 语言: 其他
  • 标签: java  

资源简介

大三实训课所写项目,基于Servlet编写,有最基础的增删改查功能,以及登录验证,验证码,cookies等,适合新手练习学习参考,代码简单易懂

资源截图

代码片段和文件信息

package dao;

import user.employee;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class addemployee {
    public boolean add(employee user) throws SQLException {
        connect con =new connect();
        Statement s1=con.getcon();
        if(user.getDepart().equals(“技术部“)){
            user.setDepart_id(2);
        }else if(user.getDepart().equals(“开发部“)){
            user.setDepart_id(3);
        }else if(user.getDepart().equals(“销售部“)){
            user.setDepart_id(1);
        }
        if(user.getPosition().equals(“设计师“)){
            user.setPos_id(1);
        }else if(user.getPosition().equals(“程序员“)){
            user.setPos_id(2);
        }else if(user.getPosition().equals(“销售员“)){
            user.setPos_id(3);
        }
        String str=“INSERT INTO talents (namedepart_idpos_idsexualbirthdayedu_backgroundunemploy_datebody_heightbody_weightstatus)  VALUES (‘“+user.getName()+“‘‘“+user.getDepart_id()+“‘‘“+user.getPos_id()+“‘‘“+user.getSexual()+“‘‘“+user.getBirthday()+“‘‘“+user.getEdu_background()+“‘‘“+user.getUnemploy_date()+“‘‘“+user.getBody_height()+“‘‘“+user.getBody_weight()+“‘‘“+user.getstatus()+“‘)“;

            int b1=s1.executeUpdate(str);
            if(b1>0){
                return true;
            }else{
                return false;
            }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        489  2018-06-12 09:56  hr\.idea\artifacts\hr_war_exploded.xml

     文件        279  2018-06-12 09:56  hr\.idea\misc.xml

     文件        244  2018-06-12 09:56  hr\.idea\modules.xml

     文件       8792  2018-06-12 09:56  hr\.idea\uiDesigner.xml

     文件      72086  2018-06-15 11:53  hr\.idea\workspace.xml

     文件       1275  2018-06-12 09:55  hr\hr.iml

     文件       7869  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\assets\img\backtop.png

     文件      30720  2018-06-15 10:42  hr\out\artifacts\hr_war_exploded\chart.jsp

     文件      44417  2018-06-15 08:46  hr\out\artifacts\hr_war_exploded\department.jsp

     文件      40513  2018-06-15 08:08  hr\out\artifacts\hr_war_exploded\department_form.jsp

     文件      45336  2018-06-15 08:46  hr\out\artifacts\hr_war_exploded\employee_tranform.jsp

     文件      46577  2018-06-15 08:12  hr\out\artifacts\hr_war_exploded\form.jsp

     文件       1884  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\index.jsp

     文件      26413  2018-06-14 21:14  hr\out\artifacts\hr_war_exploded\Main.jsp

     文件      46365  2018-06-15 08:46  hr\out\artifacts\hr_war_exploded\person.jsp

     文件      43546  2018-06-15 08:46  hr\out\artifacts\hr_war_exploded\positions.jsp

     文件      39826  2018-06-15 08:12  hr\out\artifacts\hr_war_exploded\positions_form.jsp

     文件     197513  2018-06-15 02:49  hr\out\artifacts\hr_war_exploded\static\css\bootstrap.css

     文件       2025  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\component.css

     文件        136  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\custom-landing.css

     文件        136  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\custom.css

     文件        587  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\demo.css

     文件      72418  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\icons.css

     文件      55838  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\landing.css

     文件      73696  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\main.css

     文件       1825  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\normalize.css

     文件     188319  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\plugins.css

     文件       1738  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\sprflat-theme\images\animated-overlay.gif

     文件        498  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\sprflat-theme\images\handle.png

     文件        212  2018-06-13 21:43  hr\out\artifacts\hr_war_exploded\static\css\sprflat-theme\images\ui-bg_flat_0_aaaaaa_40x100.png

............此处省略2341个文件信息

评论

共有 条评论