visual_del.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="cn.js.fan.util.*"%>
- <%@ page import="java.util.*"%>
- <%@ page import="cn.js.fan.web.*"%>
- <%@ page import="com.redmoon.oa.visual.*"%>
- <%@ page import="com.redmoon.oa.flow.*"%>
- <link href="common.css" rel="stylesheet" type="text/css">
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
- <%
- String priv="read";
- if (!privilege.isUserPrivValid(request,priv))
- {
- // out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
- // return;
- }
- String myname = privilege.getUser( request );
- String op = ParamUtil.get(request, "op");
- String privurl = ParamUtil.get(request, "privurl");
- String formCode = ParamUtil.get(request, "formCode");
- if (formCode.equals("")) {
- out.print(SkinUtil.makeErrMsg(request, "编码不能为空!"));
- return;
- }
- int id = ParamUtil.getInt(request, "id");
- FormMgr fm = new FormMgr();
- FormDb fd = fm.getFormDb(formCode);
- com.redmoon.oa.visual.FormDAOMgr fdm = new com.redmoon.oa.visual.FormDAOMgr(fd);
- try {
- if (fdm.del(request)) {
- out.print(StrUtil.Alert_Redirect("删除成功!", privurl));
- return;
- }
- }
- catch (ErrMsgException e) {
- out.print(StrUtil.Alert_Back(e.getMessage()));
- }
- %>