📄 dms_0002fcommon_0002fphraselst_0002ejsp_jsp.java
字号:
package DMS.common;
import com.jasson.business.document.DocPhraseInfo;
import com.jasson.common.ExtendString;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class DMS_0002fcommon_0002fPhraseLst_0002ejsp_jsp extends HttpJspBase {
static {
}
public DMS_0002fcommon_0002fPhraseLst_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/common/PhraseLst.jsp";from=(0,49);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(1,63);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(2,50);to=(4,0)]
out.write("\r\n\r\n");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(4,2);to=(9,0)]
DocPhraseInfo[] phraseInfos = (DocPhraseInfo[])request.getAttribute("PhraseInfos");
String strPhraseTypeName = request.getAttribute("PhraseTypeName").toString();
System.out.println("詞庫類型: " + strPhraseTypeName);
System.out.println("找到 " + phraseInfos.length + " 筆質料");
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(9,2);to=(71,48)]
out.write("\r\n<html>\r\n<head>\r\n<title>片語列表</title>\r\n</head>\r\n<body onload=\"windowLoad()\">\r\n<script language=javascript>\r\n\tfunction windowLoad(){\r\n\t\tif(form1.R1){\r\n\t\t\tif(form1.R1.length)\r\n\t\t\t\tform1.R1[0].checked=true;\r\n\t\t\telse\r\n\t\t\t\tform1.R1.checked=true;\r\n\t\t}\r\n\t\twindow.returnValue=\"\";\r\n\t}\r\n\r\n\tfunction Check(valueSel){\r\n\t\tif(form1.R1.length){\r\n\t\t\tfor(var i=0; i<form1.R1.length; i++){\r\n\t\t\t\tif(form1.R1[i].value==valueSel){\r\n\t\t\t\t\tform1.R1[i].checked=true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tform1.R1.checked=true;\r\n\t\t}\r\n\t}\r\n\r\n\tfunction DbClick(valueSel){\r\n\t\twindow.returnValue=valueSel;\r\n\t\twindow.close();\r\n\t}\r\n\r\n function OkClick(){\r\n\t\tif(!form1.R1){\t\t//沒有數據\r\n\t\t\t window.close();\r\n\t\t\t return false;\r\n\t\t}\r\n\t\tif(form1.R1.length){\t\t\t//有多條數據\r\n\t\t\t for(var i=0; i<form1.R1.length; i++){\r\n\t\t\t\t if(form1.R1[i].checked){\r\n\t\t\t\t\t\twindow.returnValue=form1.R1[i].value\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t}\r\n\t\telse{\t\t//只有一條數據\r\n\t\t\t if(form1.R1.checked){\r\n\t\t\t\t window.returnValue=form1.R1.value\r\n\t\t\t }\r\n\t\t}\r\n window.close();\r\n }\r\n\r\n function ReturnClick(){\r\n\t\twindow.returnValue=\"\";\r\n window.close();\r\n }\r\n</script>\r\n<form name=\"form1\">\r\n <br><p align=\"right\"><font color=\"#0000FF\">共找到");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(71,51);to=(71,70)]
out.print( phraseInfos.length);
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(71,72);to=(79,0)]
out.write("筆質料</font><br>\r\n <table border=\"1\" width=\"100%\" height=\"44\" align=\"center\">\r\n <tr>\r\n <th>選項</th>\r\n <th>詞庫代碼</th>\r\n <th>詞庫內容</th>\r\n <th>詞庫類型</th>\r\n </tr>\r\n");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(79,2);to=(83,0)]
for(int i=0; i<phraseInfos.length; i++){
DocPhraseInfo phraseInfo = phraseInfos[i];
String valueSel = phraseInfo.getPhrase();
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(83,2);to=(84,37)]
out.write("\r\n <tr title=\"雙擊選擇\" onclick=\"Check('");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(84,40);to=(84,49)]
out.print( valueSel);
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(84,51);to=(84,76)]
out.write("')\" onDblclick=\"DbClick('");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(84,79);to=(84,88)]
out.print( valueSel);
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(84,90);to=(85,52)]
out.write("')\">\r\n <td align=\"center\"><input type=\"radio\" value=\"");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(85,55);to=(85,64)]
out.print( valueSel);
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(85,66);to=(86,25)]
out.write("\" name=\"R1\"></td>\r\n <td align=\"center\">");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(86,28);to=(86,52)]
out.print(phraseInfo.getPhraseNO());
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(86,54);to=(87,25)]
out.write("</td>\r\n <td align=\"center\">");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(87,28);to=(87,50)]
out.print(phraseInfo.getPhrase());
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(87,52);to=(88,25)]
out.write("</td>\r\n <td align=\"center\">");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(88,28);to=(88,45)]
out.print(strPhraseTypeName);
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(88,47);to=(90,0)]
out.write("</td>\r\n </tr>\r\n");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(90,2);to=(91,0)]
}
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(91,2);to=(93,0)]
out.write("\r\n </table>\r\n");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(93,2);to=(95,0)]
if(phraseInfos.length == 0){
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(95,2);to=(97,0)]
out.write("\r\n <p align=\"center\"><font color=\"#FF00\">沒有找到滿足條件的詞庫</font><br>\r\n");
// end
// begin [file="/DMS/common/PhraseLst.jsp";from=(97,2);to=(98,0)]
}
// end
// HTML // begin [file="/DMS/common/PhraseLst.jsp";from=(98,2);to=(105,0)]
out.write("\r\n <p align=\"center\"><input type=\"button\" value=\"確定\" name=\"btnOK\" language=javascript onclick=\"OkClick()\">\r\n <input type=\"button\" value=\"返回\" name=\"btnReturn\" language=javascript onclick=\"ReturnClick()\">\r\n </p>\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 + -