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

📄 dms_0002freport_0002freportclient005_0002ejsp_jsp.java

📁 dgbas公文管理核心java源码
💻 JAVA
字号:
package DMS.report;

import java.sql.*;
import java.util.*;
import com.jasson.integration.agentflow.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class DMS_0002freport_0002fReportClient005_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/DMS/report/ReportClient005.jsp";from=(5,0);to=(5,77)]
    // end
    // begin [file="/DMS/report/ReportClient005.jsp";from=(6,0);to=(6,79)]
    // end
    // begin [file="/DMS/report/ReportClient005.jsp";from=(7,0);to=(7,72)]
    // end

    static {
    }
    public DMS_0002freport_0002fReportClient005_0002ejsp_jsp( ) {
    }

    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
    }

    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
        throws java.io.IOException, ServletException {

        JspFactory _jspxFactory = null;
        PageContext pageContext = null;
        HttpSession session = null;
        ServletContext application = null;
        ServletConfig config = null;
        JspWriter out = null;
        Object page = this;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                synchronized (this) {
                    if (_jspx_inited == false) {
                        _jspx_init();
                        _jspx_inited = true;
                    }
                }
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html;charset=Big5");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(0,26);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(1,48);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(2,32);to=(3,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(3,33);to=(4,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(4,54);to=(5,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportClient005.jsp";from=(5,0);to=(5,77)]
                com.jasson.common.ExtendString ExStr = null;
                boolean _jspx_specialExStr  = false;
                 synchronized (pageContext) {
                    ExStr= (com.jasson.common.ExtendString)
                    pageContext.getAttribute("ExStr",PageContext.PAGE_SCOPE);
                    if ( ExStr == null ) {
                        _jspx_specialExStr = true;
                        try {
                            ExStr = (com.jasson.common.ExtendString) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jasson.common.ExtendString");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.jasson.common.ExtendString", exc);
                        }
                        pageContext.setAttribute("ExStr", ExStr, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialExStr == true) {
            // end
            // begin [file="/DMS/report/ReportClient005.jsp";from=(5,0);to=(5,77)]
                }
            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(5,77);to=(6,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportClient005.jsp";from=(6,0);to=(6,79)]
                com.jasson.common.ExtendCalendar ExCal = null;
                boolean _jspx_specialExCal  = false;
                 synchronized (pageContext) {
                    ExCal= (com.jasson.common.ExtendCalendar)
                    pageContext.getAttribute("ExCal",PageContext.PAGE_SCOPE);
                    if ( ExCal == null ) {
                        _jspx_specialExCal = true;
                        try {
                            ExCal = (com.jasson.common.ExtendCalendar) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jasson.common.ExtendCalendar");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.jasson.common.ExtendCalendar", exc);
                        }
                        pageContext.setAttribute("ExCal", ExCal, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialExCal == true) {
            // end
            // begin [file="/DMS/report/ReportClient005.jsp";from=(6,0);to=(6,79)]
                }
            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(6,79);to=(7,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportClient005.jsp";from=(7,0);to=(7,72)]
                si.wfinterface.WFCI wfci = null;
                boolean _jspx_specialwfci  = false;
                 synchronized (application) {
                    wfci= (si.wfinterface.WFCI)
                    pageContext.getAttribute("wfci",PageContext.APPLICATION_SCOPE);
                    if ( wfci == null ) {
                        _jspx_specialwfci = true;
                        try {
                            wfci = (si.wfinterface.WFCI) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "si.wfinterface.WFCI");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"si.wfinterface.WFCI", exc);
                        }
                        pageContext.setAttribute("wfci", wfci, PageContext.APPLICATION_SCOPE);
                    }
                 } 
                if(_jspx_specialwfci == true) {
            // end
            // begin [file="/DMS/report/ReportClient005.jsp";from=(7,0);to=(7,72)]
                }
            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(7,72);to=(8,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportClient005.jsp";from=(8,2);to=(10,0)]
                
                        String year=String.valueOf(ExCal.getYear(ExCal.getDate())-1911);
            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(10,2);to=(180,70)]
                out.write("\r\n<html>\r\n<HEAD>\r\n<script src=\"../inc/toUpper.js\" content=\"text/javascript\"></script>\r\n<link rel=\"stylesheet\" href=\"../inc/cn.css\" type=\"text/css\">\r\n<LINK href=\"../inc/DatePicker.css\" rel=stylesheet type=text/css>\r\n<SCRIPT language=javascript src=\"../inc/DateObject.js\"></SCRIPT>\r\n<SCRIPT language=javascript src=\"../inc/DatePicker.js\"></SCRIPT>\r\n<SCRIPT language=javascript src=\"../inc/editlib.js\"></SCRIPT>\r\n<title>檢視遺失檔案清單 </title>\r\n<SCRIPT language=\"javascript\">\r\nfunction btnOK_onclick(PrintTag){\r\n /*   if(form1.CategoryNO.value==\"\"||form1.CaseNO.value==\"\")\r\n   {\r\n       alert(\"分類號和案次號必須填寫\")\r\n       return false;\r\n    }\r\n */   form1.submit();\r\n    return false;\r\n}\r\n//\r\nfunction BtCategoryNO()\r\n{\r\n    if (form1.YearNO.value==\"\")\r\n    {\r\n        alert(\"請填寫年度號\")\r\n        form1.YearNO.focus();\r\n        return false;\r\n    }\r\n    var strFeatures = \"dialogWidth=250px;dialogHeight=150px;center=yes;help=no\";\r\n    var CategoryNO=form1.CategoryNO.value;\r\n    var YearNO=form1.YearNO.value;\r\n    var tmp = window.showModalDialog(\"/WebAgenda/servlet/SearchByKeyServlet?strSearchBy=0&CategoryNO=\"+CategoryNO+\"&YearNO=\"+YearNO,0,strFeatures );\r\n    if(tmp!=\"\")\r\n    {\r\n        form1.CategoryNO.value=tmp;\r\n    }\r\n}\r\nfunction BtCaseNO()\r\n{\r\n    if (form1.YearNO.value==\"\")\r\n    {\r\n        alert(\"請填寫年度號\")\r\n        form1.YearNO.focus();\r\n        return false;\r\n    }\r\n    if (form1.CategoryNO.value==\"\")\r\n    {\r\n        alert(\"請填寫分類號\")\r\n        form1.CategoryNO.focus();\r\n        return false;\r\n    }\r\n    var strFeatures = \"dialogWidth=250px;dialogHeight=150px;center=yes;help=no\";\r\n    var CategoryNO=form1.CategoryNO.value;\r\n    var YearNO=form1.YearNO.value;\r\n    var tmp = window.showModalDialog(\"/WebAgenda/servlet/SearchByKeyServlet?strSearchBy=1&CategoryNO=\"+CategoryNO+\"&YearNO=\"+YearNO,0,strFeatures);\r\n\tif (tmp!=\"\"){\r\n\t\taReturn=tmp.split(\"|^|*\");\r\n        form1.CaseNO.value = aReturn[0];\r\n        //form1.CaseName.value = aReturn[1];\r\n        //form1.KeepYear.value = aReturn[2];\r\n\t}\r\n}\r\nfunction BtVolumeNO()\r\n{\r\n    if (form1.YearNO.value==\"\")\r\n    {\r\n        alert(\"請填寫年度號\")\r\n        form1.YearNO.focus();\r\n        return false;\r\n    }\r\n    if (form1.CategoryNO.value==\"\")\r\n    {\r\n        alert(\"請填寫分類號\")\r\n        form1.CategoryNO.focus();\r\n        return false;\r\n    }\r\n    if (form1.CaseNO.value==\"\")\r\n    {\r\n        alert(\"請填寫案次號\")\r\n        form1.CaseNO.focus();\r\n        return false;\r\n    }\r\n    var strFeatures = \"dialogWidth=250px;dialogHeight=250px;center=yes;help=no\";\r\n    var CategoryNO=form1.CategoryNO.value;\r\n    var YearNO=form1.YearNO.value;\r\n    var CaseNO=form1.CaseNO.value;\r\n    var tmp = window.showModalDialog(\"/WebAgenda/servlet/SearchByKeyServlet?strSearchBy=2&CategoryNO=\"+CategoryNO+\"&YearNO=\"+YearNO+\"&CaseNO=\"+CaseNO,0,strFeatures);\r\n    if(tmp!=\"\")\r\n    {\r\n        form1.VolumeNO.value=tmp;\r\n    }\r\n}\r\n//----------------------------\r\nfunction BtItemNO()\r\n{\r\n    if (form1.YearNO.value==\"\")\r\n    {\r\n        alert(\"請填寫年度號\")\r\n        form1.YearNO.focus();\r\n        return false;\r\n    }\r\n    if (form1.CategoryNO.value==\"\")\r\n    {\r\n        alert(\"請填寫分類號\")\r\n        form1.CategoryNO.focus();\r\n        return false;\r\n    }\r\n    if (form1.CaseNO.value==\"\")\r\n    {\r\n        alert(\"請填寫案次號\")\r\n        form1.CaseNO.focus();\r\n        return false;\r\n    }\r\n    if (form1.VolumeNO.value==\"\")\r\n    {\r\n        alert(\"請填寫卷次號\")\r\n        form1.VolumeNO.focus();\r\n        return false;\r\n    }\r\n    var strFeatures = \"dialogWidth=250px;dialogHeight=150px;center=yes;help=no\";\r\n    var CategoryNO=form1.CategoryNO.value;\r\n    var YearNO=form1.YearNO.value;\r\n    var CaseNO=form1.CaseNO.value;\r\n    var VolumeNO=form1.VolumeNO.value;\r\n    var tmp = window.showModalDialog(\"/WebAgenda/servlet/SearchByKeyServlet?strSearchBy=4&YearNO=\"+YearNO+\"&CategoryNO=\"+CategoryNO+\"&&CaseNO=\"+CaseNO+\"&&VolumeNO=\"+VolumeNO,0,strFeatures);\r\n    if(tmp!=\"\")\r\n    {\r\n        form1.ItemNO.value=tmp;\r\n    }\r\n}\r\n//----------------------------\r\n//\r\n\r\nfunction onSubmit()\r\n{\r\n    if (form1.CategoryNO.value==\"\")\r\n    {\r\n        alert(\"請填寫分類號\")\r\n                form1.CategoryNO.focus();\r\n                return false;\r\n    }\r\n    if (form1.CaseNO.value==\"\")\r\n    {\r\n        alert(\"請填寫案次號\")\r\n                form1.CaseNO.focus();\r\n                return false;\r\n    }\r\n    form1.submit();\r\n    window.close();\r\n    return false;\r\n}\r\n\r\n</SCRIPT>\r\n\r\n</HEAD>\r\n\r\n<BODY>\r\n<form name=\"form1\" method=\"post\" action=\"ReportAct005.jsp\">\r\n  <table width=\"100%\" >\r\n    <tr>\r\n      <td  class=\"title\" width=\"2%\"><img src=\"../images/who.gif\"></td>\r\n      <td  class=\"title\" width=\"88%\"><label>檢視遺失檔案清單</label> </td>\r\n      <td  class=\"title\" width=\"10%\">&nbsp;</td>\r\n    </tr>\r\n  </table>\r\n  <br>\r\n  <table width=\"90%\">\r\n<tr>\r\n<td width=\"61\">年度號</td>\r\n<td width=\"166\"><input type = \"text\" name = \"YearNO\" size=\"20\" value=\"");

            // end
            // begin [file="/DMS/report/ReportClient005.jsp";from=(180,73);to=(180,77)]
                out.print(year);
            // end
            // HTML // begin [file="/DMS/report/ReportClient005.jsp";from=(180,79);to=(208,7)]
                out.write("\"> </td>\r\n</tr>\r\n\r\n      <tr>\r\n    <td width=\"61\">分類號</td>\r\n     <td width=\"166\" height=\"1\"><input type =\"text\" name = \"CategoryNO\" maxlength=10 size=\"10\" value=\"\">*&nbsp;&nbsp;&nbsp;&nbsp;\r\n        <input type=\"button\" name=\"Bt_CategoryNO\" value=\"查詢\" onclick=\"BtCategoryNO()\"></td>\r\n          </tr>\r\n  <tr>\r\n    <td width=\"61\">案次號</td>\r\n     <td width=\"166\" height=\"1\"><input type =\"text\" name = \"CaseNO\" maxlength=10 size=\"10\" value=\"\">*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"button\" name=\"Bt_CaseNO\" value=\"查詢\" onclick=\"BtCaseNO()\">\r\n</td>  </tr>\r\n\r\n</table><br>\r\n <INPUT type=button value=列印 name=btnOK LANGUAGE=javascript onclick=\"return btnOK_onclick(1)\" class=\"button\">\r\n\r\n  <INPUT type=button value=預覽 name=btnOK LANGUAGE=javascript onclick=\"return btnOK_onclick(2)\" class=\"button\">\r\n\r\n  <input type=button value=\"返回\" id=btnReBack LANGUAGE=javascript onclick=\"window.history.back()\" class=\"button\">\r\n  </table>\r\n\r\n\r\n\r\n\r\n</form>\r\n\r\n</BODY>\r\n\r\n</HTML>");

            // end

        } catch (Throwable t) {
            if (out != null && out.getBufferSize() != 0)
                out.clearBuffer();
            if (pageContext != null) pageContext.handlePageException(t);
        } finally {
            if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
        }
    }
}

⌨️ 快捷键说明

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