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

📄 dms_0002fsystem_0002fphrasetypeedit_0002ejsp_jsp.java

📁 dgbas公文管理核心java源码
💻 JAVA
字号:
package DMS.system;

import com.jasson.business.system.*;
import com.jasson.common.ExtendString;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class DMS_0002fsystem_0002fPhraseTypeEdit_0002ejsp_jsp extends HttpJspBase {


    static {
    }
    public DMS_0002fsystem_0002fPhraseTypeEdit_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/PhraseTypeEdit.jsp";from=(0,48);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(1,48);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(2,50);to=(3,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(3,2);to=(30,0)]
                  
                	ExtendString ExStr=new ExtendString(); 
                	request.setCharacterEncoding("ISO8859-1");
                	String PhraseType=request.getParameter("PhraseType"); 
                	String strType=request.getParameter("strType");
                	//out.println("strType:"+strType);
                	int index=java.lang.Integer.parseInt(request.getParameter("index"));
                	int iPhraseType=0;
                	String Phrase="";
                	if(!PhraseType.equals(""))
                		iPhraseType=java.lang.Integer.parseInt(PhraseType);
                	String action="";
                	String title="";
                	String str="";
                	DocPhraseCategoryDAO allPhraseType=null;
                	action=request.getParameter("Action");
                	//out.println("action:"+action);
                	if(action!=null&&action.equals("Add")){
                		title="新增"; 
                	}
                	if(action!=null&&action.equals("Edit")){
                		title="更新"; 
                		str="readonly";
                		allPhraseType=DocPhraseCategoryDAO.find(iPhraseType);
                		//iPhraseType=allPhraseType.getPhraseType();
                		Phrase=allPhraseType.getPhrase();
                	} 
            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(30,2);to=(38,16)]
                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>詞庫類別維護---");

            // end
            // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(38,19);to=(38,24)]
                out.print(title);
            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(38,26);to=(42,6)]
                out.write("</title>\r\n</head>\r\n<Script>\r\nfunction returnV(){\r\n\tstr=\"");

            // end
            // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(42,9);to=(42,16)]
                out.print(strType);
            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(42,18);to=(56,5)]
                out.write("\";\r\n\tstr=str.split(\":\");\r\n\tif(form1.PhraseType.value==\"\"){\r\n\t\talert(\"詞庫類別代碼非空.\");\r\n\t\treturn;\r\n\t}\r\n\tif(isNaN(form1.PhraseType.value)){\r\n\t\talert(\"詞庫類別代碼為數字.\");\r\n\t\treturn;\r\n\t}\r\n\tif(form1.Phrase.value==\"\"){\r\n\t\talert(\"詞庫類別名非空.\");\r\n\t\treturn;\r\n\t}\r\n\tif(\"");

            // end
            // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(56,8);to=(56,14)]
                out.print(action);
            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(56,16);to=(71,94)]
                out.write("\"==\"Add\")\r\n\t\tfor(i=0;i<str.length;i++)\r\n\t\tif(str[i]==form1.PhraseType.value){\r\n\t\t\talert(\"詞庫類別代碼不能重複.\");\r\n\t\t\treturn;\r\n\t\t} \r\n\twindow.returnValue=\"&PhraseType=\"+form1.PhraseType.value+\"&Phrase=\"+form1.Phrase.value;\r\n\t//alert(window.returnValue);\r\n\twindow.close();\r\n}\r\n</script>\r\n<body bgcolor=\"#FFFFFF\" text=\"#000000\" background=\"/WebAgenda/images/contant_bg.gif\"> \r\n<form name=form1>\r\n<table bgcolor=\"#666E66\" cellspacing=\"1\" border=\"1\" align=\"center\">\r\n  <tr>\r\n    <td width=\"100%\" colspan=\"2\" bgcolor=\"#666E66\" class=\"form_text_3\" align=\"center\">詞庫類別維護--");

            // end
            // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(71,97);to=(71,102)]
                out.print(title);
            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(71,104);to=(75,107)]
                out.write("</td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"17%\" class=\"form_text_3\" align=\"center\">詞庫類別代碼</td>\r\n    <td width=\"24%\" class=\"form_text_4\" align=\"left\"><input type=\"text\" name=\"PhraseType\" size=\"20\" value=\"");

            // end
            // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(75,110);to=(75,120)]
                out.print(PhraseType);
            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(75,122);to=(75,124)]
                out.write("\" ");

            // end
            // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(75,127);to=(75,130)]
                out.print(str);
            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(75,132);to=(79,103)]
                out.write("></td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"17%\" class=\"form_text_3\" align=\"center\">詞庫類別名稱</td>\r\n    <td width=\"24%\" class=\"form_text_4\" align=\"left\"><input type=\"text\" name=\"Phrase\" size=\"20\" value=\"");

            // end
            // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(79,106);to=(79,112)]
                out.print(Phrase);
            // end
            // HTML // begin [file="/DMS/system/PhraseTypeEdit.jsp";from=(79,114);to=(90,0)]
                out.write("\"></td>\r\n  </tr>\r\n</table>\r\n<p align=\"center\">\r\n\t<input type=\"button\" value=\"確定\" name=\"B1\" onClick=\"returnV()\" >\r\n\t<input type=\"button\" value=\"取消\" name=\"B2\" onClick=\"javaScript:window.close();\" >\r\n</p>\r\n</form>\r\n</body>\r\n\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 + -