📄 dms_0002freport_0002freportact003_0002ejsp_jsp.java
字号:
package DMS.report;
import com.jasson.business.report.ArchiveCriteria;
import com.jasson.business.report.ReportDAO003;
import com.jasson.common.ExtendString;
import java.util.*;
import java.lang.Integer;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class DMS_0002freport_0002fReportAct003_0002ejsp_jsp extends HttpJspBase {
// begin [file="/DMS/report/ReportAct003.jsp";from=(6,0);to=(6,77)]
// end
// begin [file="/DMS/report/ReportAct003.jsp";from=(7,0);to=(7,79)]
// end
// begin [file="/DMS/report/ReportAct003.jsp";from=(8,3);to=(164,0)]
String getMediaTypeNameFromNO(String MediaTypeNO)
{
String MediaTypeName ="";
if(MediaTypeNO.equals("1"))
{
MediaTypeName = "紙本";
}
if(MediaTypeNO.equals("2"))
{
MediaTypeName = "底片";
}
if(MediaTypeNO.equals("3"))
{
MediaTypeName = "微縮片";
}
if(MediaTypeNO.equals("4"))
{
MediaTypeName = "幻燈片";
}
if(MediaTypeNO.equals("5"))
{
MediaTypeName = "磁片";
}
if(MediaTypeNO.equals("6"))
{
MediaTypeName = "磁帶";
}
if(MediaTypeNO.equals("7"))
{
MediaTypeName = "光碟";
}
if(MediaTypeNO.equals("8"))
{
MediaTypeName = "錄音";
}
if(MediaTypeNO.equals("9"))
{
MediaTypeName = "錄影帶";
}
if(MediaTypeNO.equals("A"))
{
MediaTypeName = "工程圖";
}
if(MediaTypeNO.equals("B"))
{
MediaTypeName = "照片";
}
if(MediaTypeNO.equals("C"))
{
MediaTypeName = "圖表";
}
if(MediaTypeNO.equals("D"))
{
MediaTypeName = "電影片";
}
if(MediaTypeNO.equals("E"))
{
MediaTypeName = "地圖";
}
if(MediaTypeNO.equals("Z"))
{
MediaTypeName = "其他";
}
if(MediaTypeNO.equals(""))
{
MediaTypeName = "";
}
return MediaTypeName;
}
//------------------------------------------------------------------
static int linecount = 11;
ReportDAO003[] integrateFileInfo(ReportDAO003[] FileInfo )
{
ReportDAO003 NullDAO = ReportDAO003.getNullDA0();
ExtendString ExStr = new ExtendString();
Vector vtrFileInfo = new Vector();
for(int g = 0; g < FileInfo.length; g ++)
{
vtrFileInfo.addElement(FileInfo[g]);
}
int j = 0;
int i = 0;
int count = 0;
//Vector deptDocCount = new Vector();
for( j = 0 ; j < vtrFileInfo.size(); j++)
{
ReportDAO003 iDAO = (ReportDAO003)vtrFileInfo.elementAt(i);
ReportDAO003 jDAO = (ReportDAO003)vtrFileInfo.elementAt(j);
String iCaseNO = ExStr.nullToSpace(iDAO.getCaseNO());
//System.out.println("iCaseNO is :"+iCaseNO);
String jCaseNO = ExStr.nullToSpace(jDAO.getCaseNO());
//System.out.println("jCaseNO is :"+jCaseNO);
if(iCaseNO.equals(jCaseNO))
{
if(j!=vtrFileInfo.size()-1)
{
count++;
}
else
{
count++;
//deptDocCount.addElement(new Integer(count));
int addcount = linecount - count%linecount;
for(int h = 0; h < addcount; h++)
{
vtrFileInfo.add(i+count+h,NullDAO);
}
j = j+addcount;
}
}
else
{
//deptDocCount.addElement(new Integer(count));
if(count%linecount!=0)
{
int addcount = linecount - count%linecount;
for(int h = 0; h < addcount; h++)
{
vtrFileInfo.add(j+h,NullDAO);
}
j = j+addcount;
}
i = j;
j = j-1;
count = 0;
}
}
ReportDAO003[] newFileInfo = new ReportDAO003[vtrFileInfo.size()];
for(int r= 0; r < vtrFileInfo.size(); r++)
{
newFileInfo[r] = (ReportDAO003)vtrFileInfo.elementAt(r);
}
return newFileInfo;
}//end getIntegratePage
// end
static {
}
public DMS_0002freport_0002fReportAct003_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/ReportAct003.jsp";from=(0,48);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/report/ReportAct003.jsp";from=(1,64);to=(2,0)]
out.write("\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -