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

📄 dms_0002freport_0002freportact011_0002ejsp_jsp.java

📁 一个简单的公文管理系统
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
                        } 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/ReportAct011.jsp";from=(7,0);to=(7,79)]
                }
            // end
            // HTML // begin [file="/DMS/report/ReportAct011.jsp";from=(7,79);to=(8,0)]
                out.write("\r\n");

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

            // end
            // begin [file="/DMS/report/ReportAct011.jsp";from=(10,2);to=(38,0)]
                
                    String departmentName = "";
                    AgentFlowWrapper wrapper = new AgentFlowWrapper(wfci);
                    User user = (User)session.getAttribute("user");
                    if(user != null)
                    {
                       departmentName = user.getDepName();
                    }
                    String date = ExCal.cnDate2twDate(ExCal.getDate());
                    int yearNO=ExCal.getYear(ExCal.getDate());
                    String UndertakeDeptID="";
                    ArchiveCriteria criteria = new ArchiveCriteria();
                    if(request.getParameter("UndertakeDeptID")!=null && !(request.getParameter("UndertakeDeptID")).equals(""))
                    {
                        criteria.setUndertakeDeptID(request.getParameter("UndertakeDeptID"));
                    }
                
                    if(request.getParameter("BeginDate")!=null && !request.getParameter("BeginDate").equals(""))
                    {
                        criteria.setArchDateFromVal(ExCal.str2DBDate(ExCal.twDate2cnDate(request.getParameter("BeginDate"))));
                    }
                    if(request.getParameter("EndDate")!= null && !request.getParameter("EndDate").equals("") )
                    {
                        criteria.setArchDateToVal( ExCal.str2DBDate(ExCal.twDate2cnDate(request.getParameter("EndDate"))));
                    }
                    ArchiveReportDAO archiveReportDAO = new ArchiveReportDAO();
                    ArchiveReportDAO[] FileInfo = archiveReportDAO.getArchiveDocList(criteria);//歸檔清單
                
            // end
            // HTML // begin [file="/DMS/report/ReportAct011.jsp";from=(38,2);to=(56,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\n        function window_onload() {\r\n    if(PrintTag.value==\"1\")\r\n        btnPrint_onclick();\r\n    else\r\n        btnPreview_onclick();\r\n    history.go(-1);\r\n}\r\n//-->\r\n</SCRIPT>\r\n</HEAD>\r\n<BODY    LANGUAGE=javascript onload=\"return window_onload()\">\r\n");

            // end
            // HTML // begin [file="/DMS/report/../inc/Print.inc";from=(0,0);to=(49,0)]
                out.write("<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  FileSystem1.Data=spTXT.innerText;//取出txt文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport.txt\");//保存在客戶端硬盤上\r\n  FileSystem1.Data=spINIPrint.innerText;//取出ini文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport.ini\");//保存在客戶端硬盤上\r\n  FileSystem1.Run(\"c:\\\\jswinods\\\\odsview.exe /f c:\\\\jswinods\\\\preport.ini\");//調用報表程序\r\n}\r\n//單擊預覽按鈕時調用這個函數\r\nfunction btnPreview_onclick() {\r\n  FileSystem1.Data=spTXT.innerText;//取出txt文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport.txt\");//保存在客戶端硬盤上\r\n  FileSystem1.Data=spINIPreview.innerText;//取出ini文件的內容\r\n  FileSystem1.SaveToFile(\"c:\\\\jswinods\\\\preport.ini\");//保存在客戶端硬盤上\r\n  FileSystem1.Run(\"c:\\\\jswinods\\\\odsview.exe /f c:\\\\jswinods\\\\preport.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.ocx#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</HEAD>\r\n\r\n<span id=spINIPrint style=\"Display:none\">\r\n[COMMON]<br>\r\n   IN_FILE =c:\\jswinods\\preport.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\r\n<span id=spINIPreview style=\"Display:none\">\r\n[COMMON]<br>\r\n   IN_FILE =c:\\jswinods\\preport.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");

            // end
            // HTML // begin [file="/DMS/report/ReportAct011.jsp";from=(56,38);to=(61,0)]
                out.write("\r\n<center>\r\n<LABEL>\r\n歸檔清單\r\n</LABEL>\r\n");

            // end
            // begin [file="/DMS/report/ReportAct011.jsp";from=(61,2);to=(66,0)]
                
                char a1=34;
                String a=String.valueOf(a1);
                String b=a+","+a;
                String txt="";
            // end
            // HTML // begin [file="/DMS/report/ReportAct011.jsp";from=(66,2);to=(73,0)]
                out.write("\r\n正在讀取數據,請稍候...\r\n<span id=spTXT style=\"Display:all\">\r\nYM_歸檔清單.jst<br>\r\nYM_歸檔清單.jst<br>\r\nYM_歸檔清單.jst<br>\r\n\"制造單位\",\"制表日期\",\"序號\",\"文號\",\"主旨\",\"承辦單位\",\"承辦人員\",\"本文數量單位\",\"附件媒體型式數量單位\",\"密等\",\"點收日期或注記\",\"備註\"<br>\r\n");

            // end
            // begin [file="/DMS/report/ReportAct011.jsp";from=(73,2);to=(97,0)]
                
                    if(FileInfo!=null&&FileInfo.length!=0)
                    {
                        Vector vtrText = new Vector();
                        for(int i=0;i<FileInfo.length;i++)
                        {
                            txt=a+departmentName;//制表單位
                            txt+=b;
                            txt+=b+String.valueOf(i+1);
                            txt+=b+ExStr.nullToSpace(FileInfo[i].getFileNO());
                            txt+=b+ExStr.nullToSpace(String.valueOf(FileInfo[i].getSubject()));
                            txt+=b+ExStr.nullToSpace(FileInfo[i].getUnderTakeDeptName());
                            txt+=b+ExStr.nullToSpace(FileInfo[i].getUnderTakeDeptName());
                            txt+=b+ExStr.nullToSpace(String.valueOf(FileInfo[i].getFileCount()));//本文數量
                            txt+=b+ExStr.nullToSpace(FileInfo[i].getMediaType());//附件媒體形式
                            txt+=b+ExStr.nullToSpace(FileInfo[i].getSecretName());//密等
                            txt+=b;//點收日期或注記
                            txt+=b;//備註
                            txt+=a+"<br>";
                            vtrText.add(txt);
                        }
                        txt = DividePage.makeDivide(vtrText,6,11);
                        out.print(txt);
                    }
            // end
            // HTML // begin [file="/DMS/report/ReportAct011.jsp";from=(97,2);to=(101,40)]
                out.write("\r\n</span>\r\n</table>\r\n</center>\r\n<input type=hidden name=NoRecord value=\"");

            // end
            // begin [file="/DMS/report/ReportAct011.jsp";from=(101,42);to=(101,81)]
                if (!txt.equals("")) out.print("True");
            // end
            // HTML // begin [file="/DMS/report/ReportAct011.jsp";from=(101,83);to=(102,39)]
                out.write("\">\r\n<input type=hidden name=PrintTag value=");

            // end
            // begin [file="/DMS/report/ReportAct011.jsp";from=(102,42);to=(102,93)]
                out.print(ExStr.nullToSpace(request.getParameter("PrintTag")));
            // end
            // HTML // begin [file="/DMS/report/ReportAct011.jsp";from=(102,95);to=(104,7)]
                out.write(">\r\n</BODY>\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 + -