📄 dms_0002fsystem_0002fphrasecontextedit_0002ejsp_jsp.java
字号:
package DMS.system;
import com.jasson.business.system.*;
import com.jasson.common.ExtendString;
import com.jasson.business.document.DocPhraseInfo;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class DMS_0002fsystem_0002fPhraseContextEdit_0002ejsp_jsp extends HttpJspBase {
static {
}
public DMS_0002fsystem_0002fPhraseContextEdit_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/system/PhraseContextEdit.jsp";from=(0,48);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(1,48);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(2,50);to=(3,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(3,62);to=(4,0)]
out.write("\r\n");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(4,2);to=(35,0)]
String strPhraseNO=request.getParameter("strPhraseNO");
int PhraseType = java.lang.Integer.parseInt(request.getParameter("PhraseType"));
ExtendString ExStr=new ExtendString();
request.setCharacterEncoding("ISO8859-1");
String JumpPage=request.getParameter("JumpPage");
String action=request.getParameter("Action");
String title="";
String readOnly="";
DocPhraseCategoryDAO[] allPhraseType=DocPhraseCategoryDAO.findAllPhraseCategory();
//out.println("action:"+action);
if(action!=null&&action.equals("Add")){
title="新增";
}
String PhraseNO="";
String Phrase="";
int PhraseTypeID=0;
if(action!=null&&action.equals("Edit")){
title="更新";
readOnly="readonly";
String PhraseID=request.getParameter("PhraseID");
int iPhraseID=java.lang.Integer.parseInt(PhraseID);
//out.println(iPhraseID);
DocPhraseInfo[] docPhraseInfo=DocPhraseCategoryDAO.findPhraseByPhraseID(iPhraseID);
PhraseNO=docPhraseInfo[0].getPhraseNO();
Phrase=docPhraseInfo[0].getPhrase();
PhraseTypeID=docPhraseInfo[0].getPhraseType();
}
if(action!=null&&action.equals("Search")){
title="查詢";
}
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(35,2);to=(47,27)]
out.write("\r\n<html> \r\n<head>\r\n<meta http-equiv=\"Content-Language\" content=\"zh-tw\">\r\n<link rel=\"stylesheet\" href=\"/WebAgenda/css_style/form/form_css_1.css\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\">\r\n<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">\r\n<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">\r\n<title>詞庫類別維護</title>\r\n</head>\r\n<Script>\r\nfunction window_onLoad(){ \r\n\tform1.PhraseTypeID.value=\"");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(47,30);to=(47,40)]
out.print(PhraseType);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(47,42);to=(51,6)]
out.write("\";\r\n}\r\n//\r\nfunction returnV(){\r\n\tstr=\"");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(51,9);to=(51,20)]
out.print(strPhraseNO);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(51,22);to=(53,5)]
out.write("\";\r\n\tstr=str.split(\":\");\r\n\tif(\"");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(53,8);to=(53,14)]
out.print(action);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(53,16);to=(53,27)]
out.write("\"==\"Add\"||\"");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(53,30);to=(53,36)]
out.print(action);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(53,38);to=(71,5)]
out.write("\"==\"Edit\"){\r\n\t\tif(form1.PhraseNO.value==\"\"){\r\n\t\t\talert(\"詞庫代碼非空.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t///if(isNaN(form1.PhraseType.value)){\r\n\t\t///\talert(\"詞庫代碼為數字.\");\r\n\t\t///\treturn;\r\n\t\t//}\r\n\t\tif(form1.PhraseTypeID.value==\"\"){\r\n\t\t\talert(\"詞庫類別名非空.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(form1.PhraseContext.value==\"\"){\r\n\t\t\talert(\"詞庫內容非空.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\tif(\"");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(71,8);to=(71,14)]
out.print(action);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(71,16);to=(77,153)]
out.write("\"==\"Add\")\r\n\t\tfor(i=0;i<str.length;i++)\r\n\t\tif(str[i]==form1.PhraseNO.value){\r\n\t\t\talert(\"詞庫類別代碼不能重複.\");\r\n\t\t\treturn;\r\n\t\t} \r\n\twindow.returnValue=\"&PhraseNO=\"+form1.PhraseNO.value+\"&PhraseTypeID=\"+form1.PhraseTypeID.value+\"&PhraseContext=\"+form1.PhraseContext.value+\"&JumpPage=\"+");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(77,156);to=(77,164)]
out.print(JumpPage);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(77,166);to=(86,94)]
out.write(";\r\n\t//alert(window.returnValue);\r\n\twindow.close();\r\n} \r\n</script>\r\n<body onload=\"window_onLoad()\" bgcolor=\"#FFFFFF\" text=\"#000000\" background=\"/WebAgenda/images/contant_bg.gif\"> \r\n<form name=form1>\r\n<table onload=\"window_onLoad()\" width=\"90%\" bgcolor=\"#666E66\" cellspacing=\"1\" border=\"1\" align=\"center\">\r\n <tr>\r\n <td width=\"100%\" bgcolor=\"#666E66\" class=\"form_text_3\" colspan=\"2\" align=\"center\">詞庫內容維護--");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(86,97);to=(86,102)]
out.print(title);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(86,104);to=(90,105)]
out.write("</td>\r\n </tr>\r\n <tr>\r\n <td width=\"40%\" class=\"form_text_3\" align=\"center\">詞庫代碼</td>\r\n <td width=\"60%\" class=\"form_text_4\" align=\"left\"><input type=\"text\" name=\"PhraseNO\" size=\"20\" value=\"");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(90,108);to=(90,116)]
out.print(PhraseNO);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(90,118);to=(90,120)]
out.write("\" ");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(90,123);to=(90,131)]
out.print(readOnly);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(90,133);to=(95,8)]
out.write("></td>\r\n </tr>\r\n <tr>\r\n <td width=\"40%\" class=\"form_text_3\" align=\"center\">詞庫類別</td>\r\n <td width=\"60%\" class=\"form_text_4\" align=\"left\"><select size=\"1\" name=\"PhraseTypeID\">\r\n ");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(95,10);to=(98,8)]
if(allPhraseType!=null)
for(int i=0;i<allPhraseType.length;i++){
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(98,10);to=(99,23)]
out.write("\r\n <option value=\"");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(99,26);to=(99,58)]
out.print(allPhraseType[i].getPhraseType());
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(99,60);to=(99,84)]
out.write("\"><font color=\"#808000\">");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(99,87);to=(99,115)]
out.print(allPhraseType[i].getPhrase());
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(99,117);to=(100,8)]
out.write("</font></option>\r\n ");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(100,10);to=(102,8)]
}
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(102,10);to=(107,110)]
out.write("\r\n </select></td>\r\n </tr>\r\n <tr>\r\n <td width=\"40%\" class=\"form_text_3\" align=\"center\">詞庫內容</td>\r\n <td width=\"60%\" class=\"form_text_4\" align=\"left\"><input type=\"text\" name=\"PhraseContext\" size=\"20\" value=\"");
// end
// begin [file="/DMS/system/PhraseContextEdit.jsp";from=(107,113);to=(107,119)]
out.print(Phrase);
// end
// HTML // begin [file="/DMS/system/PhraseContextEdit.jsp";from=(107,121);to=(116,0)]
out.write("\"></td>\r\n </tr>\r\n</table>\r\n<p align=\"center\">\r\n <input type=\"button\" value=\"確定\" onClick=\"returnV()\" name=\"B1\" >\r\n <input type=\"button\" value=\"取消\" onClick=\"javascript:window.close();\" name=\"B1\" ></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 + -