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

📄 dms_0002freport_0002freportclient024_0002ejsp_jsp.java

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

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


public class DMS_0002freport_0002fReportClient024_0002ejsp_jsp extends HttpJspBase {


    static {
    }
    public DMS_0002freport_0002fReportClient024_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/ReportClient024.jsp";from=(0,48);to=(1,0)]
                out.write("\r\n");

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

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

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

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

            // end
            // HTML // begin [file="/DMS/report/ReportClient024.jsp";from=(6,39);to=(8,0)]
                out.write("\r\n\r\n");

            // end
            // begin [file="/DMS/report/ReportClient024.jsp";from=(8,2);to=(12,0)]
                
                	response.setHeader("Cache-Control","no-store");
                	response.setHeader("Pragma","no-cache");
                	response.setDateHeader("Expires",0);
            // end
            // HTML // begin [file="/DMS/report/ReportClient024.jsp";from=(12,2);to=(13,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportClient024.jsp";from=(13,2);to=(16,0)]
                
                	ExtendCalendar ExCal=new ExtendCalendar();
                	int YearNO=ExCal.getYear(ExCal.getDate())-1911;
            // end
            // HTML // begin [file="/DMS/report/ReportClient024.jsp";from=(16,2);to=(204,77)]
                out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Language\" content=\"zh-tw\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\">\r\n<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">\r\n<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">\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 src=\"../inc/DateObject.js\"></SCRIPT>\r\n<SCRIPT src=\"../inc/DatePicker.js\"></SCRIPT>\r\n<SCRIPT src=\"../inc/editlib.js\"></SCRIPT>\r\n<SCRIPT src=\"../inc/OnloadEvent.js\"></SCRIPT>\r\n<title>卷脊標簽</title>\r\n</head>\r\n<script>\r\nfunction btnOK_onclick(PrintTag)\r\n{\r\n\tif(!chkData())\r\n\t{\r\n\t    return;\r\n\t}\r\n    form1.submit();\r\n    return false;\r\n}\r\nfunction chkData()\r\n{\r\n    if (form1.YearNO.value==\"\")\r\n    {\r\n\t\talert(\"請填寫年度號\")\r\n\t\tform1.YearNO.focus();\r\n\t\treturn false;\r\n    }\r\n\r\n    if (form1.CategoryNO.value==\"\")\r\n    {\r\n\t\talert(\"請填寫分類號\")\r\n\t\tform1.CategoryNO.focus();\r\n\t\treturn false;\r\n    }\r\n    if (form1.CaseNO.value==\"\")\r\n    {\r\n\t\talert(\"請填寫案次號\")\r\n\t\tform1.CaseNO.focus();\r\n\t\treturn false;\r\n    }\r\n\treturn true\r\n}\r\nfunction setSelect()\r\n{\r\n\tif(form1.chkBeginDate.checked==false)\r\n\t{\r\n\t    BeginDate.setEnabled(false)\r\n\t}\r\n\tif(form1.chkEndDate.checked==false)\r\n\t{\r\n\t    EndDate.setEnabled(false)\r\n\t}\r\n}\r\nfunction setEnableDate(chked,checkboxObj)\r\n{\r\n\tvar obj=eval(checkboxObj)\r\n\tobj.setEnabled(chked)\r\n}\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</script>\r\n<body onload=setSelect()>\r\n<form name=\"form1\" method=\"post\" action=\"ReportAct024.jsp\">\r\n<table border=\"1\" width=\"100%\">\r\n  <tr>\r\n    <td colspan=\"2\">卷脊標簽</td>\r\n  </tr>\r\n  <tr>\r\n    <th colspan=2>\r\n\t\t年度號﹕<input type=text name=YearNO size=4 maxlength=4 style=\"dType:1\" value=\"");

            // end
            // begin [file="/DMS/report/ReportClient024.jsp";from=(204,80);to=(204,86)]
                out.print(YearNO);
            // end
            // HTML // begin [file="/DMS/report/ReportClient024.jsp";from=(204,88);to=(233,0)]
                out.write("\">&nbsp;&nbsp;\r\n\t\t分類號﹕<input type=text name=CategoryNO size=10 maxlength=10>\r\n\t\t<input type=button value=\"...\" onclick=BtCategoryNO() title=\"查詢分類號\">&nbsp;&nbsp;\r\n\t\t案次號﹕<input type=text name=CaseNO size=10 maxlength=10>\r\n\t\t<input type=button value=\"...\" onclick=BtCaseNO() title=\"查詢案次號\">&nbsp;&nbsp;\r\n\t\t卷次號﹕<input type=text name=VolumeNO size=4 maxlength=4 style=\"dType:1\">\r\n\t\t<input type=button value=\"...\" onclick=BtVolumeNO() title=\"查詢卷次號\">\r\n\t</th>\r\n  </tr>\r\n    <tr>\r\n      <th nowrap>歸檔日期:</th>\r\n      <td><input type=checkbox name=chkBeginDate onclick=setEnableDate(this.checked,\"BeginDate\")>\r\n        <SCRIPT>var BeginDate=createDatePicker(\"BeginDate\");</SCRIPT>\r\n        &nbsp;&nbsp;至&nbsp;<input type=checkbox name=chkEndDate onclick=setEnableDate(this.checked,\"EndDate\")>\r\n        <SCRIPT>var EndDate=createDatePicker(\"EndDate\");</SCRIPT>\r\n      </td>\r\n    </tr>\r\n\r\n  <tr>\r\n    <td colspan=\"2\" align=center>\r\n\t  <input type=button value=\"列印\" onclick=\"return btnOK_onclick(1)\" class=\"button\">\r\n\t  <input type=button value=\"預覽\" onclick=\"return btnOK_onclick(2)\" class=\"button\">\r\n\t  <input type=button value=\"返回\" onclick=\"window.history.back()\" class=\"button\">\r\n\t</td>\r\n  </tr>\r\n</table>\r\n</form>\r\n</body>\r\n</html>\r\n");

            // 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 + -