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
archive_basicdata_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"%>
- <%@ page import = "java.net.URLEncoder"%>
- <%@ page import = "java.util.*"%>
- <%@ page import = "cn.js.fan.util.*"%>
- <%@ page import = "cn.js.fan.web.*"%>
- <%@ page import = "java.util.Enumeration"%>
- <%@ page import = "java.util.Iterator"%>
- <%@ page import = "org.jdom.*"%>
- <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>基础数据维护</title>
- </head>
- <body>
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
- <%
- if (!privilege.isUserPrivValid(request, "archive.basicdata")) {
- out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
- return;
- }
- String itemCode = ParamUtil.get(request, "itemCode");
- String optionValue = "";
- String op = ParamUtil.get(request, "op");
- BasicDataMgr bdm = new BasicDataMgr("archive");
- boolean re = false;
- if (op.equals("addOption")) {
- optionValue = ParamUtil.get(request, "optionValue");
- re = bdm.addOption(optionValue,itemCode);
- if (re) {
- out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.archive", "success_addoption_basicdata")));
- }else{
- out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.archive", "fail_addoption_basicdata")));
- }
- }
- if (op.equals("delOption")) {
- optionValue = ParamUtil.get(request, itemCode);
- re = bdm.delOption(optionValue,itemCode);
- if (re) {
- out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.archive", "success_deloption_basicdata")));
- }else{
- out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.archive", "fail_deloption_basicdata")));
- }
- }
- if (op.equals("setDefaultValue")) {
- optionValue = ParamUtil.get(request, itemCode);
- re = bdm.setDefaultValue(optionValue,itemCode);
- if (re) {
- out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.archive", "success_setdefaultvalue_basicdata")));
- }else{
- out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.archive", "fail_setdefaultvalue_basicdata")));
- }
- }
- %>
- </body>
- </html>