📄 dms_0002freport_0002freportact014_0002ejsp_jsp.java
字号:
_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/ReportAct014.jsp";from=(13,0);to=(13,79)]
}
// end
// HTML // begin [file="/DMS/report/ReportAct014.jsp";from=(13,79);to=(14,0)]
out.write("\r\n");
// end
// begin [file="/DMS/report/ReportAct014.jsp";from=(14,0);to=(14,85)]
com.jasson.business.report.Criteria Criteria = null;
boolean _jspx_specialCriteria = false;
synchronized (pageContext) {
Criteria= (com.jasson.business.report.Criteria)
pageContext.getAttribute("Criteria",PageContext.PAGE_SCOPE);
if ( Criteria == null ) {
_jspx_specialCriteria = true;
try {
Criteria = (com.jasson.business.report.Criteria) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jasson.business.report.Criteria");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"com.jasson.business.report.Criteria", exc);
}
pageContext.setAttribute("Criteria", Criteria, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialCriteria == true) {
// end
// begin [file="/DMS/report/ReportAct014.jsp";from=(14,0);to=(14,85)]
}
// end
// HTML // begin [file="/DMS/report/ReportAct014.jsp";from=(14,85);to=(33,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//\ttop.close();\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/ReportAct014.jsp";from=(33,38);to=(40,0)]
out.write("\r\n<center>\r\n<LABEL>\r\n 公文核判批覆清單\r\n</LABEL>\r\n\r\n\r\n");
// end
// begin [file="/DMS/report/ReportAct014.jsp";from=(40,2);to=(45,0)]
char a1=34;
String a=String.valueOf(a1);
String b=a+","+a;
String txt="";
// end
// HTML // begin [file="/DMS/report/ReportAct014.jsp";from=(45,2);to=(54,0)]
out.write("\r\n 正在讀取數據,請稍候...\r\n<span id=spTXT style=\"Display:none\">\r\nYM_核判批覆清單.JST<br>\r\nYM_核判批覆清單.JST<br>\r\nYM_核判批覆清單.JST<br>\r\n\"列印人員\",\"受文部門\",\"核判日期\",\"制表部門\",\"流水號\",\"來文機關\",\"來文日期\",\"來文字段\",\"文別\",\"附件\",\"密等\",\"處理限期\",\"主旨\"<br>\r\n\r\n\r\n");
// end
// begin [file="/DMS/report/ReportAct014.jsp";from=(54,2);to=(108,0)]
WFCI wfci=(WFCI)getServletContext().getAttribute("wfci");
AgentFlowWrapper agentFlowWrapper = new AgentFlowWrapper(wfci);
com.jasson.integration.agentflow.Department[] arrDeptLev1 = agentFlowWrapper.getSubDepartment(null);
String MyDeptName="";
String strMermberName="";
User user = (User)session.getAttribute("user");
if(user!=null)
{
String strMemberID = ExStr.nullToSpace(user.getMemberId());
strMermberName=ExStr.nullToSpace(user.getLoginName());
String strDepartmentID = agentFlowWrapper.getDepartmentID(strMemberID);
Department Dept=agentFlowWrapper.getDepartment(strDepartmentID); //取得部門infor
if(Dept!=null)
MyDeptName = Dept.getName();
}
java.sql.Date nowDateTime=ExCal.str2DBDate(ExCal.getDateTime());//取得當前時間
Criteria criteria = new Criteria();
if(request.getParameter("FileNO")!=null && !(request.getParameter("FileNO")).equals(""))
{
criteria.setFileNO(request.getParameter("FileNO"));
}
ReportDAO[] Info = ReportDAO.findAll(criteria);
if(Info!=null)
{
for(int i=0;i<Info.length;i++)
{
txt=a+strMermberName+b+Info[i].getUndertakeDeptName()+b+ExCal.dbDate2Str(nowDateTime)+b+MyDeptName;
txt+=b+Info[i].getFileNO()+b+Info[i].getIssueOrgName()+b+ExCal.dbDate2Str(Info[i].getIssueDate());
txt+=b+Info[i].getIssueWord()+"字第"+Info[i].getIssueNO()+"號"+b+Info[i].getCopyName();
txt+=b+Info[i].getAttachCount()+b+Info[i].getSecretName()+b+ExCal.dbDate2Str(Info[i].getTermDate())+b+Info[i].getSubject()+"<br>";
out.println(txt);
}
}
/* criteria.setInnerCondition(" and TcreateDoc.CreateNO='"+(String)request.getParameter("FileNO")+"'");
Info = ReportDAO.findByCreate(criteria);
if(Info!=null)
{
for(int i=0;i<Info.length;i++)
{
txt=a+strMermberName+b+Info[i].getUndertakeDeptName()+b+nowDateTime+b+MyDeptName;
txt+=b+Info[i].getCreateNO()+b+Info[i].getIssueOrgName()+b+Info[i].getIssueDate();
txt+=b+Info[i].getIssueWord()+"字第"+Info[i].getIssueNO()+"號"+b+Info[i].getCopyName();
txt+=b+Info[i].getAttachCount()+b+Info[i].getSecretName()+b+Info[i].getTermDate()+b+Info[i].getSubject()+"<br>";
out.println(txt);
}
}
*/
// end
// HTML // begin [file="/DMS/report/ReportAct014.jsp";from=(108,2);to=(112,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/ReportAct014.jsp";from=(112,42);to=(112,81)]
if (!txt.equals("")) out.print("True");
// end
// HTML // begin [file="/DMS/report/ReportAct014.jsp";from=(112,83);to=(113,39)]
out.write("\">\r\n<input type=hidden name=PrintTag value=");
// end
// begin [file="/DMS/report/ReportAct014.jsp";from=(113,42);to=(113,93)]
out.print(ExStr.nullToSpace(request.getParameter("PrintTag")));
// end
// HTML // begin [file="/DMS/report/ReportAct014.jsp";from=(113,95);to=(116,0)]
out.write(">\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 + -