JAVA协同办公OA管理系统源码


JAVA协同办公OA管理系统源码
资源截图
代码片段和文件信息
/*
 * Created on 2004-9-24
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package com.affice;

import oa.sys.*;
import oa.sys.Time;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
 ****************************************************
 *类名称: Add

 *类功能: 增加公告信息

 *创建: 白伟明 2004年10月5日

 ****************************************************
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class Add extends HttpServlet{
private HttpSession session=null;
private ResultSet rs=null;
private Statement stmt=null;
private String titlecontentsqlisqls;
private int temp=0id;

public void doPost(HttpServletRequest requestHttpServletResponse response) throws ServletException IOException{
request.setCharacterEncoding(“gb2312“);
response.setContentType(“text/html; charset=gb2312“);
Str str=new Str();
Db db=new Db();
Time time=new Time();
PrintWriter out=response.getWriter();
session=request.getSession();
id=Integer.parseInt((String)session.getAttribute(“id“));
title=request.getParameter(“title“);
content=request.getParameter(“content“);
title=str.inStr(title);
content=str.inStr(content);
sqli=“INSERT INTO affice(titletimeemployeeidcontent) VALUES(‘“+title+“‘‘“+time.getYMD()+“‘“+id+“‘“+content+“‘)“;
sqls=“SELECT * FROM affice WHERE time=‘“+time.getYMD()+“‘“;
try {
stmt=db.getStmtread();
rs=stmt.executeQuery(sqls);
if(!rs.next()){
db.close();
stmt=db.getStmt();
temp=stmt.executeUpdate(sqli);
if(temp>0){
request.setAttribute(“msg““发布成功“);
}else{
request.setAttribute(“msg““发布失败“);
}
}else{
request.setAttribute(“msg““今日已经发布公告,不能再发布“);
}
} catch (SQLException e) {
e.printStackTrace();
}finally{
db.close();
RequestDispatcher dispatcher=request.getRequestDispatcher(“add.jsp“);
dispatcher.forward(requestresponse);
}
}
public void doGet(HttpServletRequest requestHttpServletResponse response) throws ServletException IOException{
doPost(requestresponse);
}
}

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

     文件       1752  2004-10-12 17:17  MF000291-JAVA协同办公OA管理系统源码afficeadd.jsp

     文件        686  2004-10-06 09:14  MF000291-JAVA协同办公OA管理系统源码afficeaffice.htm

     文件       1953  2004-11-06 15:58  MF000291-JAVA协同办公OA管理系统源码afficeview.jsp

     文件    3621836  2015-04-27 11:29  MF000291-JAVA协同办公OA管理系统源码affice国内最大的免费商业源码下载平台.mht

     文件        262  2015-07-17 16:10  MF000291-JAVA协同办公OA管理系统源码affice源码说明.txt

     文件      14108  2015-07-21 10:13  MF000291-JAVA协同办公OA管理系统源码affice百纳科技源码.png

     文件        576  2004-09-22 13:03  MF000291-JAVA协同办公OA管理系统源码lack.htm

     文件       2512  2005-01-21 13:45  MF000291-JAVA协同办公OA管理系统源码umfaccept.jsp

     文件        963  2004-10-11 09:33  MF000291-JAVA协同办公OA管理系统源码umfumf.htm

     文件       1616  2005-01-21 17:11  MF000291-JAVA协同办公OA管理系统源码umfsee.jsp

     文件       2352  2004-10-15 16:03  MF000291-JAVA协同办公OA管理系统源码umfsend.jsp

     文件        267  2004-11-15 08:09  MF000291-JAVA协同办公OA管理系统源码umfupload.jsp

     文件    3621836  2015-04-27 11:29  MF000291-JAVA协同办公OA管理系统源码umf国内最大的免费商业源码下载平台.mht

     文件        262  2015-07-17 16:10  MF000291-JAVA协同办公OA管理系统源码umf源码说明.txt

     文件      14108  2015-07-21 10:13  MF000291-JAVA协同办公OA管理系统源码umf百纳科技源码.png

     文件        611  2004-10-12 15:28  MF000291-JAVA协同办公OA管理系统源码cssword.css

     文件        627  2004-09-25 13:51  MF000291-JAVA协同办公OA管理系统源码csswork.css

     文件    3621836  2015-04-27 11:29  MF000291-JAVA协同办公OA管理系统源码css国内最大的免费商业源码下载平台.mht

     文件        262  2015-07-17 16:10  MF000291-JAVA协同办公OA管理系统源码css源码说明.txt

     文件      14108  2015-07-21 10:13  MF000291-JAVA协同办公OA管理系统源码css百纳科技源码.png

     文件       1776  2004-10-12 17:17  MF000291-JAVA协同办公OA管理系统源码departmentadd.jsp

     文件       3315  2004-10-15 16:06  MF000291-JAVA协同办公OA管理系统源码departmentchange.jsp

     文件       2491  2005-01-21 20:23  MF000291-JAVA协同办公OA管理系统源码departmentdel.jsp

     文件        842  2004-10-04 09:28  MF000291-JAVA协同办公OA管理系统源码departmentdepartment.htm

     文件        718  2005-01-20 13:03  MF000291-JAVA协同办公OA管理系统源码departmentdepartmentinfo.htm

     文件       1684  2004-10-15 16:05  MF000291-JAVA协同办公OA管理系统源码departmentview.jsp

     文件    3621836  2015-04-27 11:29  MF000291-JAVA协同办公OA管理系统源码department国内最大的免费商业源码下载平台.mht

     文件        262  2015-07-17 16:10  MF000291-JAVA协同办公OA管理系统源码department源码说明.txt

     文件      14108  2015-07-21 10:13  MF000291-JAVA协同办公OA管理系统源码department百纳科技源码.png

     文件       4194  2004-10-15 16:07  MF000291-JAVA协同办公OA管理系统源码emadd.jsp

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)