archive_basicdata_do.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
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>