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

📄 dms_0002fsystem_0002fcodeinfoedit_0002ejsp_jsp.java

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

import java.sql.*;
import com.jasson.common.ExtendString;
import com.jasson.business.system.DocCopyDAO;
import com.jasson.business.system.DocKindDAO;
import com.jasson.business.system.DocTypeDAO;
import com.jasson.business.system.DocAttributeDAO;
import com.jasson.business.system.DocSecretDAO;
import com.jasson.business.system.DocSpeedDAO;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class DMS_0002fsystem_0002fCodeInfoEdit_0002ejsp_jsp extends HttpJspBase {


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

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

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

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

            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(4,57);to=(5,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(5,57);to=(6,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(6,57);to=(7,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(7,62);to=(8,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(8,59);to=(9,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(9,58);to=(10,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(10,2);to=(76,0)]
                
                	String[] aCodeName=new String[6];
                	aCodeName[0] = "本別資料";
                	aCodeName[1] = "類別資料";
                	aCodeName[2] = "文別資料";
                	aCodeName[3] = "性質資料";
                	aCodeName[4] = "密等資料";
                	aCodeName[5] = "速別資料";
                	
                	String status="",codeIDStr="",codeNo="",codeName="",codeTypeStr="",speedDays="";
                	int codeID=1;
                	status=request.getParameter("status");
                	codeNo=request.getParameter("codeNo");
                	codeIDStr=request.getParameter("codeID");
                	if(codeIDStr != null)
                	codeID=Integer.parseInt(codeIDStr);
                	codeTypeStr=request.getParameter("codeType");
                	speedDays=request.getParameter("speedDays");
                	if (status==null) status="";
                	if (codeTypeStr==null) codeTypeStr="1";
                	if (speedDays==null) speedDays="";
                	if (status.equals("add")) status="新增";
                	if (status.equals("mod")) status="修改";
                	int codeType=1;
                	codeType=Integer.parseInt(codeTypeStr);
                	//status,codeName不能直接從參數傳遞,故需如下處理
                	status+=aCodeName[codeType-1];
                	if(codeType==1)
                	{
                	    DocCopyDAO docCopyDAO = DocCopyDAO.find(codeID);
                	    codeName=docCopyDAO.getCopyName();
                	   
                	}
                	if(codeType==2)
                	{
                	    DocKindDAO docKindDAO = DocKindDAO.find(codeID);
                	    codeName=docKindDAO.getKindName();
                	    
                	}
                	if(codeType==3)
                	{
                	    DocTypeDAO docTypeDAO = DocTypeDAO.find(codeID);
                	    codeName=docTypeDAO.getTypeName();
                	    
                	   
                	}
                	if(codeType==4)
                	{
                	    DocAttributeDAO docAttributeDAO = DocAttributeDAO.find(codeID);
                	    codeName=docAttributeDAO.getAttributeName();
                	    
                	   
                	}
                	if(codeType==5)
                	{
                	    DocSecretDAO docSecretDAO = DocSecretDAO.find(codeID);
                	    codeName=docSecretDAO.getSecretName();
                	    
                	   
                	}
                	if(codeType==6)
                	{
                	    DocSpeedDAO docSpeedDAO = DocSpeedDAO.find(codeID);
                	    codeName=docSpeedDAO.getSpeedName();
                	    
                	}
            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(76,2);to=(132,47)]
                out.write("\r\n<html>\r\n<script src=\"../inc/toUpper.js\" content=\"text/javascript\"></script>\r\n<HEAD>\r\n<META NAME=\"GENERATOR\" Content=\"Microsoft Visual Studio 6.0\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\">\r\n<link rel=\"stylesheet\" href=\"../inc/window.css\" type=\"text/css\">\r\n<TITLE></TITLE>\r\n<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>\r\n<!--\r\n\r\nfunction B1_onclick() \r\n{\r\n  codeNo=form1.codeNo.value\r\n  codeName=form1.codeName.value\r\n  if (codeNo==\"\" || codeName==\"\")\r\n  {\r\n    alert(\"代碼和名稱不能為空\");\r\n    return false;\r\n  }\r\n  if (codeNo.length>10 || codeName.length>20)\r\n  {\r\n    alert(\"代碼或名稱()太長\");\r\n    return false;\r\n  }\r\n  Val=\"codeNo=\"+form1.codeNo.value;\r\n  Val=Val+\"&codeName=\"+form1.codeName.value;\r\n  if (form1.CodeType.value==\"6\")\r\n     Val=Val+\"&speedDays=\"+form1.speedDays.value;\r\n  window.returnValue=Val;\r\n  window.close();\r\n  return false;\r\n}\r\n\r\nfunction B2_onclick() \r\n{\r\n  window.returnValue=\"\";\r\n  window.close();\r\n}\r\n\r\n\r\nfunction window_onload() {\r\n  window.returnValue=\"\";\r\n}\r\n\r\n//-->\r\n</SCRIPT>\r\n</HEAD>\r\n<body   LANGUAGE=javascript onload=\"return window_onload()\">\r\n\r\n<form name=form1>\r\n\t<fieldset style=\"padding: 2\">\r\n  <legend>代碼維護程式</legend>\r\n  <table   border=\"0\" width=\"100%\">\r\n    <tr>\r\n    <td width=\"100%\" colspan=\"2\" height=\"31\">\r\n      <p align=\"right\">作業狀態:<span class=\"page\">");

            // end
            // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(132,50);to=(132,56)]
                out.print(status);
            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(132,58);to=(136,80)]
                out.write("</span></td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"32%\" align=\"right\" height=\"29\">代號:</td>\r\n    <td width=\"68%\" height=\"29\"><input type=\"text\" name=\"codeNo\" size=\"6\" value=");

            // end
            // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(136,83);to=(136,89)]
                out.print(codeNo);
            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(136,91);to=(140,85)]
                out.write("></td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"32%\" align=\"right\" height=\"27\">名稱:</td>\r\n    <td width=\"68%\" height=\"27\" ><input type=\"text\" name=\"codeName\" size=\"23\" value=\"");

            // end
            // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(140,88);to=(140,96)]
                out.print(codeName);
            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(140,98);to=(142,2)]
                out.write("\"></td>\r\n  </tr>\r\n  ");

            // end
            // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(142,4);to=(142,21)]
                if (codeType==6){
            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(142,23);to=(145,83)]
                out.write("\r\n  <tr>\r\n    <td width=\"32%\" align=\"right\" height=\"28\">限辦天數:</td>\r\n    <td width=\"68%\" height=\"28\"><input type=\"text\" name=\"speedDays\" size=\"6\" value=");

            // end
            // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(145,86);to=(145,95)]
                out.print(speedDays);
            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(145,97);to=(147,2)]
                out.write("></td>\r\n  </tr>\r\n  ");

            // end
            // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(147,4);to=(147,5)]
                }
            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(147,7);to=(154,40)]
                out.write("\r\n\r\n</table>\r\n </fieldset>\r\n  <br>\r\n        <input type=\"submit\" value=\"確定\" name=\"B1\" LANGUAGE=javascript onclick=\"return B1_onclick()\">\r\n      <input type=\"reset\" value=\"取消\" name=\"B2\" LANGUAGE=javascript onclick=\"return B2_onclick()\">\r\n<input type=hidden name=CodeType value=\"");

            // end
            // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(154,43);to=(154,51)]
                out.print(codeType);
            // end
            // HTML // begin [file="/DMS/system/CodeInfoEdit.jsp";from=(154,53);to=(158,0)]
                out.write("\">\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 + -