基於JSP開發的物流資訊管理系統
10064基於JSP開發的物流資訊管理系統
程式碼
鏈-椄:https://pan@baidu@com/s/1b_CCWhXdhnaGAwT6DNsLFA (把@換成 . 就可正常訪問)
趧-紶-碼:5345
f/u枝此段-吶傛開啟baidu網盤手機App,caozuo更方便哦
技術
JAVA + JSP
工具
eclipse + tomact + mysql + jdk
功能詳情
功能詳情 |
---|
本站首頁 |
物流動態 |
物流知識 |
貨物資訊 |
車輛資訊 |
企業資訊 |
輔助工具 |
退出 |
系統相關截圖
● 系統首頁
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.daoImpl.EmploeDaoImpl;
import com.entity.Dept;
public class ManagerDeptAdd extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String did = request.getParameter(“did”);
String dname = request.getParameter(“dname”);
String dnumber = request.getParameter(“dnumber”);
String daddr = request.getParameter(“daddr”);
String eid = request.getParameter(“eid”);
Dept dept = new Dept();
dept.setDid(Integer.parseInt(did));
dept.setDname(dname);
dept.setDnumber(Integer.parseInt(dnumber));
dept.setDaddr(daddr);
dept.setEid(Integer.parseInt(eid));
DeptDaoImpl ddi = new DeptDaoImpl();
boolean flag = ddi.insertDept(dept);
if(flag){
EmploeDaoImpl edi = new EmploeDaoImpl();
boolean flag2 = edi.updatePidByEid(Integer.parseInt(eid), 2011);
if(flag2){
response.sendRedirect(“ManagerDeptTable”);
}
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.entity.Dept;
import com.entity.Message;
public class ManagerDeptTable extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
DeptDaoImpl ddi = new DeptDaoImpl();
String pageNow =request.getParameter("n");
if(pageNow==null||pageNow.equals("")){
pageNow="1";
}
if(Integer.parseInt(pageNow)<1){
pageNow="1";
}
int pageCount =1;
if(request.getSession().getAttribute("pageCount")!=null&&!request.getSession().getAttribute("pageCount").equals("")){
pageCount =(Integer)request.getSession().getAttribute("pageCount");
}
if(Integer.parseInt(pageNow)>pageCount){
pageNow = pageCount+"";
}
ArrayList<Dept> deptlist = ddi.getAllDeptByPage(Integer.parseInt(pageNow));
System.out.println("ÎÒÊÇ·ñΪ¿Õ"+deptlist.isEmpty());
request.getSession().setAttribute("deptlist", deptlist);
pageCount =ddi.getPageCount();
request.getSession().setAttribute("pageCount", pageCount);
request.getSession().setAttribute("pageNow", pageNow);
int lineCount =ddi.getLineCount();
request.getSession().setAttribute("lineCount", lineCount);
response.sendRedirect("manager/dept_table.jsp");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.daoImpl.EmploeDaoImpl;
import com.daoImpl.PostDaoImpl;
import com.entity.Emploe;
import com.entity.Post;
public class ManagerDeptTable_add extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
EmploeDaoImpl edi = new EmploeDaoImpl();
//適合當經理的職位架構師,列出所有適合人選
ArrayList pnameList = edi.getEmploeByPname(“架構師”);
request.getSession().setAttribute(“pnameList”, pnameList);
response.sendRedirect(“manager/dept_add.jsp”);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.*;
import com.entity.Dept;
public class ManagerDeptUpdate extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String did = request.getParameter("did");
DeptDaoImpl ddi = new DeptDaoImpl();
Dept dept = ddi.getDeptById(Integer.parseInt(did));
request.getSession().setAttribute("dept", dept);
ArrayList<Dept> deptList = ddi.getAllDept();
request.getSession().setAttribute("deptList", deptList);
response.sendRedirect("manager/dept_update.jsp");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.entity.Dept;
public class ManagerDeptUpdate_table extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String did = request.getParameter("did");
String dname = request.getParameter("dname");
String dnumber = request.getParameter("dnumber");
String daddr = request.getParameter("daddr");
String eid= request.getParameter("eid");
Dept dept = new Dept();
dept.setDid(Integer.parseInt(did));
dept.setDname(dname);
dept.setDnumber(Integer.parseInt(dnumber));
dept.setDaddr(daddr);
dept.setEid(Integer.parseInt(eid));
DeptDaoImpl ddi = new DeptDaoImpl();
boolean flag = ddi.updateDept(Integer.parseInt(did), dept);
if(flag){
response.sendRedirect("ManagerDeptTable");
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.EmploeDaoImpl;
import com.entity.Emploe;
public class ManagerEmploeAdd extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String eid =request.getParameter("eid");
String ename =request.getParameter("ename");
String esalary =request.getParameter("esalary");
String esex =request.getParameter("esex");
String ebir =request.getParameter("ebir");
String emarry =request.getParameter("emarry");
String eedu =request.getParameter("eedu");
String did =request.getParameter("did");
String pid =request.getParameter("pid");
String eaddr =request.getParameter("eaddr");
String ephone =request.getParameter("ephone");
Emploe emploe = new Emploe();
emploe.setEid(Integer.parseInt(eid));
emploe.setEname(ename);
emploe.setEsalary(esalary);
emploe.setEsex(esex);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
try {
emploe.setEbir(sdf.parse(ebir));
} catch (ParseException e) {
e.printStackTrace();
}
emploe.setEmarry(emarry);
emploe.setEedu(eedu);
emploe.setDid(Integer.parseInt(did));
emploe.setPid(Integer.parseInt(pid));
emploe.setEaddr(eaddr);
emploe.setEphone(ephone);
EmploeDaoImpl edi = new EmploeDaoImpl();
boolean flag = edi.addEmploe(emploe);
if(flag){
response.sendRedirect("EmploeTable");
}else{
response.sendRedirect("ManagerEmploeTable_add");
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.daoImpl.PostDaoImpl;
import com.entity.Dept;
import com.entity.Post;
public class ManagerEmploeTable_add extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
DeptDaoImpl ddi = new DeptDaoImpl();
ArrayList<Dept> deptList =ddi.getAllDept();
PostDaoImpl pdi = new PostDaoImpl();
ArrayList<Post> postList = pdi.getAllPost();
request.getSession().setAttribute("deptList", deptList);
request.getSession().setAttribute("postList", postList);
response.sendRedirect("manager/emploe_add.jsp");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.DeptDaoImpl;
import com.daoImpl.EmploeDaoImpl;
import com.daoImpl.PostDaoImpl;
import com.entity.Dept;
import com.entity.Emploe;
import com.entity.Post;
public class ManagerEmploeUpdate extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Emploe emploe =(Emploe)request.getSession().getAttribute("emploe");
String eid = request.getParameter("eid");
String ename = request.getParameter("ename");
String esalary = request.getParameter("esalary");
String esex = request.getParameter("esex");
String ebir = request.getParameter("ebir");
String emarry = request.getParameter("emarry");
String eedu = request.getParameter("eedu");
String did = request.getParameter("did");
DeptDaoImpl ddi = new DeptDaoImpl();
Dept dept = ddi.getDeptById(Integer.parseInt(did));
request.getSession().setAttribute("dept", dept);
String pid = request.getParameter("pid");
PostDaoImpl pdi = new PostDaoImpl();
Post post = pdi.getPostById(Integer.parseInt(pid));
request.getSession().setAttribute("post", post);
String ephone = request.getParameter("ephone");
String eaddr = request.getParameter("eaddr");
emploe.setEid(Integer.parseInt(eid));
emploe.setEname(ename);
emploe.setEsalary(esalary);
emploe.setEsex(esex);
SimpleDateFormat sfd = new SimpleDateFormat("yyyy-MM-dd");
try {
emploe.setEbir(sfd.parse(ebir));
} catch (ParseException e) {
e.printStackTrace();
}
emploe.setEmarry(emarry);
emploe.setEedu(eedu);
emploe.setDid(Integer.parseInt(did));
emploe.setPid(Integer.parseInt(pid));
emploe.setEphone(ephone);
emploe.setEaddr(eaddr);
EmploeDaoImpl edi = new EmploeDaoImpl();
boolean flag = edi.updateEmploe(Integer.parseInt(eid), emploe);
System.out.println("更新成功了沒");
if(flag){
System.out.println("恩");
request.getSession().setAttribute("emploe", emploe);
response.sendRedirect("EmploeDetail?eid="+eid);
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.ManagerDaoImpl;
import com.entity.Manager;
public class ManagerLogin extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType(“text/html;charset=gb2312”);
PrintWriter out = response.getWriter();
String mname = request.getParameter(“mname”);
String mpassword = request.getParameter(“mpassword”);
String code = request.getParameter(“code”);
String trueCode = (String)request.getSession().getAttribute(“code”);
ManagerDaoImpl mdi = new ManagerDaoImpl();
if(code.equalsIgnoreCase(trueCode)){
out.print("¡Ì");
int n = mdi.managerLogin(mname, mpassword);
System.out.println(n);
if(n1){
Manager manager = mdi.getMangerByName(mname);
request.getSession().setAttribute(“mname”, mname);
request.getSession().setAttribute(“manager”, manager);
response.sendRedirect(“EmploeTable”);
}else if(n2){
response.sendRedirect(“manager_login.jsp”);
}else{
response.sendRedirect(“manager_login.jsp”);
}
}else{
out.print("¡Á");
response.sendRedirect(“manager_login.jsp”);
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.daoImpl.ManagerDaoImpl;
import com.entity.Manager;
public class ManagerMpasswordUpdate extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Manager manager = (Manager)request.getSession().getAttribute("manager");
String mid = request.getParameter("mid");
String mpassword = request.getParameter("mpassword");
String newPsw = request.getParameter("newPsw");
String reNewPsw = request.getParameter("reNewPsw");
String code = request.getParameter("code");
String trueCode = (String)request.getSession().getAttribute("code");
if(code.equalsIgnoreCase(trueCode)){
if(newPsw.equals(reNewPsw)){
if(mid.equals(manager.getMid()+"")){
ManagerDaoImpl mdi = new ManagerDaoImpl();
int n = mdi.managerLogin(manager.getMname(), mpassword);
if(n==1){
boolean flag = mdi.mupdatePassword(Integer.parseInt(mid), newPsw);
if(flag){
response.sendRedirect("manager_login.jsp");
}
}else if(n==2){
response.sendRedirect("manager/mpassword_update.jsp");
}
}else{
response.sendRedirect("manager/mpassword_update.jsp");
}
}else{
response.sendRedirect("manager/mpassword_update.jsp");
}
}else{
response.sendRedirect("manager/mpassword_update.jsp");
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
相關文章
- 基於jsp學生資訊管理系統的設計與實現(含原始檔)JS
- 基於java jsp的大學生成績管理系統JavaJS
- 基於java jsp的倉庫庫存管理系統JavaJS
- 基於java jsp的某企業員工管理系統JavaJS
- (八)java web +mysql物流資訊管理系統JavaWebMySql
- 基於php學生資訊管理系統PHP
- 基於adminlte的後臺管理系統開發
- 開發基於JSP Servlet JavaBean的網上交易系統(含原始檔)JSServletJavaBean
- 基於java的社群居民資訊管理系統Java
- 基於ThinkPHP框架開發的響應式學生資訊後臺管理系統PHP框架
- 基於Tp23開發的bug管理系統
- 基於JSP小區物業管理系統(論文+原始碼)JS原始碼
- 基於SpringBoot+Mybatis+Thymeleaf商品資訊管理系統Spring BootMyBatis
- 基於SSM開發的物業維修管理系統SSM
- 基於SSM開發的企業人事管理系統SSM
- java 基於SSM框架開發線上音樂視訊MV管理系統JavaSSM框架
- 基於Asp.NET CORE 技術框架開發的實驗室資訊管理系統原始碼LISASP.NET框架原始碼
- 基於中臺思想的物流系統設計(四):物流服務與物流詳情
- 基於中臺思想的物流系統設計(一)
- 基於 Golang 開發的分散式定時任務管理系統Golang分散式
- 基於SSM開發的健身俱樂部管理系統 JAVA MySQLSSMJavaMySql
- 基於TP3.1開發的企業網站管理系統網站
- 基於Python+Vue開發的旅遊景區管理系統PythonVue
- 基於ssm、Vue.js的簡單教師資訊管理系統SSMVue.js
- 基於javaEE的土地檔案管理系統的設計及開發Java
- 開發了一個基於thinkphp6.0的快速開發後臺管理系統PHP
- 基於中臺思想的物流系統設計(三):構建物流地址能力
- 基於 vue-element-admin 高效開發後臺管理系統Vue
- 基於laravel及layui開發的後臺管理系統 -- laravel-wjfcmsLaravelUI
- 基於 hyperf,vuetify,casbin 開發的前後端分離管理系統Vue後端
- 基於Hyperf + Vue + Element 開發的管理系統(內建聊天模組)Vue
- 基於Django 的 FreeSwitch 開源GUI 管理系統 YouPBXDjangoGUI
- 基於JSP自定義投票網站系統設計JS網站
- 基於JAVA_JSP電子書下載系統JavaJS
- 基於java jsp的寵物狗銷售網站系統JavaJS網站
- 基於中臺思想的物流系統設計(二):構建物流訂單能力
- 基於jsp和servlet簡單的java web開發(idea)JSServletJavaWebIdea
- 一款基於Laravel5.8開發的通用後臺管理系統Laravel