⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pigeonhole_control.jsp

📁 一个做得非常好的电子政务系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="com.ijipin.tool.*" %>
<%@ page import="com.ijipin.database.*" %>
<%@ page import="com.ijipin.property.*" %>
<%@ include file="/userinfor.jsp" %>
<%@ page import="com.ijipin.oa.document.*" %>
<%@ page import="com.ijipin.flow.*" %>
<%
    final String strLevel = Draft.strLevel;  //本页所在的层次
    final int iModuleID   = Draft.iModuleID;
    String strLink_action = "pigeonhole_list.jsp";
    String strSWLB = "38";
%>
<%@ include file="/share/page/page_request.jsp" %>
<%@include file="/share/page/page_form.jsp"%>
<%
    String strMessage = "操作出现异常!";
    boolean flag = false;
    if (strACTION.equals("ADD")) {
        strACTION = "UPDATE";
    }
%>
<%
    DataConn dataConn = new DataConn();
    try {
        Module module = new Module(dataConn);
        moduleInfor_session = (ModuleInfor)module.getInfor(iModuleID);

        String sTable = moduleInfor_session.getSXBM();
        String key_field = moduleInfor_session.getSXZJ();
        String key_value = "";

        String idArray[] = request.getParameterValues("C_ID");
        String WZID = Convert.toZeroStr(request.getParameter("WZID"));
        //////////////附件
        Annex annex = new Annex(moduleInfor_session.getSXFJ(), dataConn);
        boolean hasAnnex = false;
        if (!Convert.toSpaceStr(moduleInfor_session.getSXFJ()).equals("")) {
            hasAnnex = true;
        }

        DataAction dataAction = new DataAction(dataConn);
        if (strACTION.equals("GUIDANG")) {
            flag = dataAction.update(sTable, "WZGD=0", key_field + "=" + WZID);
        } else if (strACTION.equals("DELETE")) {
            if (idArray != null) {
                flag = dataAction.delete(sTable, key_field, idArray);
                /////////////////////这里还应该删除办理信息

                if (flag && hasAnnex) {
                    flag = annex.delete(idArray, rootPath_session);
                    if (!flag) {
                        strMessage = annex.getMessage();
                    }
                }
            } else {
                flag = true;
            }
        }

        if (!flag) {
            strMessage = dataAction.getMessage();
        }



    }
    catch(java.lang.Exception ex) {
        System.out.println("错误信息:" + ex.getMessage());
    }
    finally {
        if (dataConn != null) {
            dataConn.close();
        }
    }
%>
<%
    if (!flag) {
        out.println("<Script Language='javaScript'>");
        out.println("alert('" + strMessage + "');");
        out.println("history.go(-1);");
        out.println("</Script>");
    } else {
        out.println("<Script Language='javaScript'>");
        out.println("formPage.action='" + strLink_action + "'");
        out.println("formPage.submit();");
        out.println("</Script>");
    }
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -