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

📄 dms_0002freport_0002freportact010_0002ejsp_jsp.java

📁 dgbas公文管理核心java源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package DMS.report;

import com.jasson.business.report.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class DMS_0002freport_0002fReportAct010_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/DMS/report/ReportAct010.jsp";from=(3,0);to=(3,77)]
    // end
    // begin [file="/DMS/report/ReportAct010.jsp";from=(4,0);to=(4,79)]
    // end

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

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

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

            // end
            // begin [file="/DMS/report/ReportAct010.jsp";from=(3,0);to=(3,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/ReportAct010.jsp";from=(3,0);to=(3,77)]
                }
            // end
            // HTML // begin [file="/DMS/report/ReportAct010.jsp";from=(3,77);to=(4,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportAct010.jsp";from=(4,0);to=(4,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/ReportAct010.jsp";from=(4,0);to=(4,79)]
                }
            // end
            // HTML // begin [file="/DMS/report/ReportAct010.jsp";from=(4,79);to=(128,0)]
                out.write("\r\n<link rel=\"stylesheet\" href=\"../inc/cn.css\" type=\"text/css\">\r\n<html>\r\n<script src=\"../inc/toUpper.js\" content=\"text/javascript\"></script>\r\n<HEAD>\r\n<SCRIPT language=\"javascript\">\r\n<!--\r\nfunction window_onload() {\r\n\t\tif(PrintTag.value==\"1\")\r\n\t\t\tbtnPrint_onclick();\r\n\t\telse\r\n\t\t\tbtnPreview_onclick();\r\n\thistory.go(-1);\r\n}\r\n//-->\r\n</SCRIPT>\r\n</HEAD>\r\n<BODY    LANGUAGE=javascript onload=\"return window_onload()\">\r\n<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>\r\n<!--\r\n//本文件是用來作為打印報表時的通用函數\r\n//所有需要打印報表的頁面在可以調用本文件提供的兩件函數進行列印或預覽\r\n//要求在調用的頁面中有一個span,其ID是spTXT,內容存放要打印的內容\r\n//並按本系統報表的要求組織\r\n\r\n//單擊打印按鈕時調用這個函數\r\nfunction btnPrint_onclick() {\r\n\r\n  FileSystem1.Data=spTXT3.innerText;//取出txt文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport.txt\");//保存在客戶端硬盤上\r\n  FileSystem1.Data=spINIPrint3.innerText;//取出ini文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport3.ini\");//保存在客戶端硬盤上\r\n  FileSystem1.Run(\"c:\\\\jswinods\\\\odsview.exe /f c:\\\\jswinods\\\\preport3.ini\");//調用報表程序\r\n  FileSystem1.Data=spTXT2.innerText;//取出txt文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport2.txt\");//保存在客戶端硬盤上\r\n  FileSystem1.Data=spINIPrint2.innerText;//取出ini文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport2.ini\");//保存在客戶端硬盤上\r\n  FileSystem1.Run(\"c:\\\\jswinods\\\\odsview.exe /f c:\\\\jswinods\\\\preport2.ini\");//調用報表程序\r\n  FileSystem1.Data=spTXT1.innerText;//取出txt文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport1.txt\");//保存在客戶端硬盤上\r\n  FileSystem1.Data=spINIPrint1.innerText;//取出ini文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport1.ini\");//保存在客戶端硬盤上\r\n  FileSystem1.Run(\"c:\\\\jswinods\\\\odsview.exe /f c:\\\\jswinods\\\\preport1.ini\");//調用報表程序\r\n}\r\n//單擊預覽按鈕時調用這個函數\r\nfunction btnPreview_onclick() {\r\n  FileSystem1.Data=spTXT3.innerText;//取出txt文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport3.txt\");//保存在客戶端硬盤上\r\n  FileSystem1.Data=spINIPreview3.innerText;//取出ini文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport3.ini\");//保存在客戶端硬盤上\r\n  FileSystem1.Run(\"c:\\\\jswinods\\\\odsview.exe /f c:\\\\jswinods\\\\preport3.ini\");//調用報表程序\r\n  FileSystem1.Data=spTXT2.innerText;//取出txt文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport2.txt\");//保存在客戶端硬盤上\r\n  FileSystem1.Data=spINIPreview2.innerText;//取出ini文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport2.ini\");//保存在客戶端硬盤上\r\n  FileSystem1.Run(\"c:\\\\jswinods\\\\odsview.exe /f c:\\\\jswinods\\\\preport2.ini\");//調用報表程序\r\n  FileSystem1.Data=spTXT1.innerText;//取出txt文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport1.txt\");//保存在客戶端硬盤上\r\n  FileSystem1.Data=spINIPreview1.innerText;//取出ini文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport1.ini\");//保存在客戶端硬盤上\r\n  FileSystem1.Run(\"c:\\\\jswinods\\\\odsview.exe /f c:\\\\jswinods\\\\preport1.ini\");//調用報表程序\r\n}\r\n//-->\r\n</SCRIPT>\r\n<OBJECT style=\"Display:none\" \r\n    classid=\"clsid:A0551A33-9731-45E4-BE90-1DE570C15D45\" \r\n       codebase=\"../dlls/FileSystemProj1.cab#version=1,0,2,0\"\r\n\theight=14 id=FileSystem1 style=\"HEIGHT: 14px; LEFT: 0px; TOP: 0px; WIDTH: 14px\" width=14 \r\n\tVIEWASTEXT></OBJECT>\r\n\r\n<span id=spINIPrint1 style=\"Display:none\">\r\n[COMMON]<br>\r\n   IN_FILE =c:\\jswinods\\preport1.txt<br>\r\n   IN_FORMAT =14<br>\r\n   EXECUTE =3<br>\r\n   DATE_TYPE =11<br>\r\n   PAGE_TYPE =11<br>\r\n</span>\r\n<span id=spINIPrint2 style=\"Display:none\">\r\n[COMMON]<br>\r\n   IN_FILE =c:\\jswinods\\preport2.txt<br>\r\n   IN_FORMAT =14<br>\r\n   EXECUTE =3<br>\r\n   DATE_TYPE =11<br>\r\n   PAGE_TYPE =11<br>\r\n</span>\r\n<span id=spINIPrint3 style=\"Display:none\">\r\n[COMMON]<br>\r\n   IN_FILE =c:\\jswinods\\preport3.txt<br>\r\n   IN_FORMAT =14<br>\r\n   EXECUTE =3<br>\r\n   DATE_TYPE =11<br>\r\n   PAGE_TYPE =11<br>\r\n</span>\r\n<span id=spINIPreview1 style=\"Display:none\">\r\n[COMMON]<br>\r\n   IN_FILE =c:\\jswinods\\preport1.txt<br>\r\n   IN_FORMAT =14<br>\r\n   EXECUTE =1<br>\r\n   DATE_TYPE =11<br>\r\n   PAGE_TYPE =11<br>\r\n</span>\r\n<span id=spINIPreview2 style=\"Display:none\">\r\n[COMMON]<br>\r\n   IN_FILE =c:\\jswinods\\preport2.txt<br>\r\n   IN_FORMAT =14<br>\r\n   EXECUTE =1<br>\r\n   DATE_TYPE =11<br>\r\n   PAGE_TYPE =11<br>\r\n</span>\r\n<span id=spINIPreview3 style=\"Display:none\">\r\n[COMMON]<br>\r\n   IN_FILE =c:\\jswinods\\preport3.txt<br>\r\n   IN_FORMAT =14<br>\r\n   EXECUTE =1<br>\r\n   DATE_TYPE =11<br>\r\n   PAGE_TYPE =11<br>\r\n</span>\r\n<center>\r\n<LABEL>\r\n          公文流程一覽表\r\n</LABEL>\r\n\r\n\r\n");

            // end
            // begin [file="/DMS/report/ReportAct010.jsp";from=(128,2);to=(133,0)]
                
                char a1=34;
                String a=String.valueOf(a1);
                String b=a+","+a;
                String txt="";
            // end
            // HTML // begin [file="/DMS/report/ReportAct010.jsp";from=(133,2);to=(140,0)]
                out.write("\r\n\t\t正在讀取數據,請稍候...\r\n<span id=spTXT1 style=\"Display:all\">\r\nYM_公文時效統計表1.JST<br>\r\nYM_公文時效統計表1.JST<br>\r\nYM_公文時效統計表1.JST<br>\r\n\"送達機關\",\"填表機關\",\"年二\",\"月二\",\"日二\",\"年一\",\"月一\",\"一本文\"<br>\t\r\n");

            // end
            // begin [file="/DMS/report/ReportAct010.jsp";from=(140,2);to=(200,0)]
                
                   
                   //ExtendString ExStr=new ExtendString();
                   String Year=ExStr.nullToSpace((String)request.getParameter("Year"));   
                   String Month=ExStr.nullToSpace((String)request.getParameter("Month"));   
                   String MyDeptName=ExStr.formDecode((String)request.getParameter("MyDeptName"));   
                   String pStart=String.valueOf(Integer.parseInt(Year)+1911);
                   String sDate=""+ExCal.cnDate2twDate(pStart);
                   if(Month.length()==2)
                       pStart=pStart+"/"+Month+"/01 00:00:00";
                   else
                       pStart=pStart+"/0"+Month+"/01 00:00:00";
                   ReportDAO010 reportDAO=ReportDAO010.findByFile(pStart,(String)request.getParameter("DeptID")," AttributeName='一般公文' ");
                   String   temp=reportDAO.getDeptName()+",\"";
                   	    temp+=MyDeptName+"\",\"";
                   	    temp+=Integer.toString(Integer.parseInt(ExCal.getDate().substring(0,4))-1911)+"\",\"";
                   	    temp+=ExCal.getDate().substring(5,7)+"\",\"";
                   	    temp+=ExCal.getDate().substring(8,10)+"\",\"";
                   	    temp+=Year+"\",\"";
                   	    temp+=Month+"\",";
                   out.print(temp+reportDAO.getThisMonthReceCount()+"<br>");//本月新收
                   out.print(temp+reportDAO.getLastMonthCount()+"<br>");//上月待辦
                   out.print(temp+reportDAO.getThisMonthAllReceCount()+"<br>");//收文總數
                   out.print(temp+reportDAO.getThisMonthCreateCount()+"<br>");//本月創稿

⌨️ 快捷键说明

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