Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
task_add_do.jsp
Package: JSP-OA.rar [view]
Upload User: jhtang88
Upload Date: 2014-01-27
Package Size: 28528k
Code Size: 2k
Category:
Jsp/Servlet
Development Platform:
Java
- <%@ page contentType="text/html;charset=utf-8"
- import = "java.io.File"
- import = "cn.js.fan.web.*"
- import = "cn.js.fan.util.*"
- %>
- <%@ page import="java.util.Calendar" %>
- <html>
- <head>
- <title>创建任务</title>
- <%@ include file="../inc/nocache.jsp"%>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" href="../common.css" type="text/css">
- <script language="javascript">
- <!--
- //-->
- </script>
- <link href="common.css" rel="stylesheet" type="text/css">
- </head>
- <body bgcolor="#FFFFFF" text="#000000">
- <br>
- <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil" />
- <jsp:useBean id="task" scope="page" class="com.redmoon.oa.task.TaskMgr" />
- <%
- boolean isSuccess = false;
- try {
- isSuccess = task.Add(application, request);
- }
- catch (ErrMsgException e) {
- out.println(fchar.Alert_Back("发送失败:"+e.getMessage()));
- }
- String privurl = task.getprivurl();
- //if (privurl==null || privurl.equals("")) {
- privurl = "task_show.jsp?rootid=" + task.getRootid() + "&showid=" + task.getId();
- //}
- String op = ParamUtil.get(request, "op");
- // System.out.println("privurl=" + privurl);
- if (isSuccess)
- {
- if (op.equals("new")) {
- privurl = "task_add.jsp?op=newsubtask&parentid=" + task.getId();
- %>
- <ol><strong>撰写任务完毕!请点击下面的链接分配任务,或者等待页面自动跳转</strong></ol>
- <%
- out.print(StrUtil.waitJump("<a href='"+privurl+"'>分配任务!</a>", 3, privurl));
- return;
- }
- else {
- %>
- <ol>
- 操作成功!
- </ol>
- <% out.println(fchar.waitJump("<a href='"+privurl+"'>回到前页!</a>",3,privurl));
- }
- }
- %>
- </body>
- </html>