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

📄 dms_0002fdocument_0002fcoworkdept_0005fclient_0002ejsp_jsp.java

📁 dgbas公文管理核心java源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package DMS.document;

import com.jasson.business.document.DocPhraseInfo;
import java.util.*;
import java.text.*;
import java.lang.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class DMS_0002fdocument_0002fCoWorkDept_0005fClient_0002ejsp_jsp extends HttpJspBase {


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

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

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

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

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

            // end
            // HTML // begin [file="/DMS/document/CoWorkDept_Client.jsp";from=(5,32);to=(7,0)]
                out.write("\r\n\r\n");

            // end
            // begin [file="/DMS/document/CoWorkDept_Client.jsp";from=(7,2);to=(30,0)]
                
                //	ExtendString ExStr=new ExtendString();
                	DocPhraseInfo[] phraseInfo=new DocPhraseInfo[1];
                	String strAllDeptInfo="";
                	Vector vDeptID=null;
                	Vector vDeptName=null;
                	if(session.getAttribute("PhraseInfo")!=null)
                	{
                	    phraseInfo=(DocPhraseInfo[])session.getAttribute("PhraseInfo");
                		session.removeAttribute("PhraseInfo");
                	}
                	if(request.getAttribute("strAllDeptInfo")!=null)
                	{
                		strAllDeptInfo=request.getAttribute("strAllDeptInfo").toString();
                		vDeptID=(Vector)session.getAttribute("vDeptID");
                		vDeptName=(Vector)session.getAttribute("vDeptName");
                		session.removeAttribute("vDeptID");
                		session.removeAttribute("vDeptName");
                	}
                	String FileNOorCreateNO=request.getAttribute("FileNOorCreateNO").toString();
                	String isFileNO=request.getAttribute("isFileNO").toString();
                	String TaskID=request.getAttribute("TaskID").toString();
                
            // end
            // HTML // begin [file="/DMS/document/CoWorkDept_Client.jsp";from=(30,2);to=(324,0)]
                out.write("\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\">\r\n<title>會辦作業</title>\r\n<script src=\"../DMS/inc/FunLib.js\"></script>\r\n<Script>\r\nfunction btnSubmit_onclick()\r\n{\r\n\tif(form1.DeptList.length<1)\r\n\t{\r\n\t\talert(\"未輸入會辦單位!\");\r\n\t\treturn false;\r\n\t}\r\n\telse\r\n\t{\r\n\t\tfor(i=1;i< form1.DeptList.length;i++)\r\n\t\t{\r\n\t\t\tif(form1.Targets.value!=\"\")\r\n\t\t\t{\r\n\t\t\t\tform1.Targets.value += \";\" + document.form1.DeptList.options[i].value+\",0,0\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t    form1.Targets.value = document.form1.DeptList.options[i].value+\",0,0\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tform1.DeptList.multiple=true\r\n\t\tfor(var i=form1.DeptList.length-1;i>-1;i--)//提交所有ListBox中的數據,必須有選中才能提交所以要此處理\r\n\t\t{\r\n\t\t\tform1.DeptList.item(i).selected=true\r\n\t\t}\r\n\r\n\t\tform1.submit();\r\n\t\twindow.close();\r\n\t\treturn false;\r\n\t}\r\n}\r\n\r\nfunction DeptAdd()\r\n{\r\n\tvar Count=\"\";\r\n\tif(form1.DeptID.selectedIndex<0)\r\n\t{\r\n\t   return false;\r\n\t}\r\n\tfor(var i=form1.DeptID.length-1;i>-1;i--)\r\n\t{\r\n\t\tif(form1.DeptID.item(i).selected)\r\n\t\t{\r\n\t\t\tvar op=form1.DeptID.item(i);\r\n\r\n\t\t    var optxt=op.text\r\n\r\n\t\t\tform1.DeptList.options[form1.DeptList.options.length] = new Option(optxt,op.value);\r\n\r\n\t\t\tform1.DeptID.remove(i);\r\n\t\t\tCount=form1.DeptList.length-1;\r\n\t\t}\r\n\t}\r\n\tif(document.form1.CoWrokType[0].checked)\r\n\t{\r\n\t\tCoWrokType = \"順會\"\r\n\t}\r\n\telse\r\n\t{\r\n\t\tCoWrokType = \"分會\"\r\n\t}\r\n\tCoWorkCnt.innerText=CoWrokType + \"部門 [數目:\" +(Count+1)+ \"]\";\r\n\treturn true;\r\n}\r\n\r\nfunction DeptDel()\r\n{\r\n\tvar Count=\"\";\r\n\tif(form1.DeptList.selectedIndex < 0)\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n\tfor(var i=form1.DeptList.length-1;i>-1;i--)\r\n\t{\r\n\t\tif(form1.DeptList.item(i).selected)\r\n\t\t{\r\n\t\t\tvar op=form1.DeptList.item(i);\r\n\t\t    var optxt=op.text\r\n\r\n\t\t\tform1.DeptID.options[form1.DeptID.length] = new Option(optxt,op.value);\r\n\r\n\t\t\tform1.DeptList.remove(i);\r\n\t\t\tCount=form1.DeptList.length-1;\r\n\t\t}\r\n\t}\r\n\r\n    if(document.form1.CoWrokType[0].checked)\r\n\t{\r\n\t\tCoWrokType = \"順會\"\r\n\t}\r\n\telse\r\n\t{\r\n\t\tCoWrokType = \"分會\"\r\n\t}\r\n\tCoWorkCnt.innerText=CoWrokType + \"部門 [數目:\" +(Count+1)+ \"]\";\r\n}\r\n\r\nfunction FileMan(File)\r\n{\r\n\twindow.open(File,\"FileMan\",\"height=120,width=500,scrollbars=0,status=1,menubar=0\");\r\n\treturn false;\r\n}\r\n\r\nfunction window_onload() //控制彈出的窗口大小\r\n{\r\n   window.dialogHeight=25;\r\n   window.dialogWidth=30;\r\n}\r\n\r\n//上移\r\nfunction btnUp_onclick()\r\n{\r\n\tif(form1.DeptList.selectedIndex==-1)\r\n\t{\r\n\t\talert(\"請選擇一新增會辦單位!\");\r\n\t\treturn false;\r\n\t}\r\n/*\r\n\tif(form1.DeptList.selectedIndex==0)\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n*/\r\n\tif(form1.DeptList.selectedIndex<=0)\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n\ti=form1.DeptList.selectedIndex;\r\n\ttemptext=document.form1.DeptList.options[i].text;\r\n\ttempvalue=document.form1.DeptList.options[i].value;\r\n\tdocument.form1.DeptList.options[i].text=document.form1.DeptList.options[i-1].text;\r\n\tdocument.form1.DeptList.options[i].value=document.form1.DeptList.options[i-1].value;\r\n\tdocument.form1.DeptList.options[i-1].text=temptext;\r\n\tdocument.form1.DeptList.options[i-1].value=tempvalue;\r\n\tform1.DeptList.selectedIndex=i-1;\r\n\treturn true;\r\n}\r\n//下移\r\nfunction btnDown_onclick()\r\n{\r\n\tif(form1.DeptList.selectedIndex==-1)\r\n\t{\r\n\t\talert(\"請選擇一新增會辦單位!\");\r\n\t\treturn false;\r\n\t}\r\n/*\r\n\tif(form1.DeptList.selectedIndex==0)\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n*/\r\n\tif(form1.DeptList.selectedIndex==form1.DeptList.length-1)\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n\ti=form1.DeptList.selectedIndex;//當前選中的數據位置\r\n\ttemptext=document.form1.DeptList.options[i].text;\r\n\ttempvalue=document.form1.DeptList.options[i].value;\r\n\tdocument.form1.DeptList.options[i].text=document.form1.DeptList.options[i+1].text;\r\n\tdocument.form1.DeptList.options[i].value=document.form1.DeptList.options[i+1].value;\r\n\tdocument.form1.DeptList.options[i+1].text=temptext;\r\n\tdocument.form1.DeptList.options[i+1].value=tempvalue;\r\n\tform1.DeptList.selectedIndex=i+1;\r\n\treturn true;\r\n}\r\n\r\nfunction CoWrokType_onclick() //單選按鈕的改變導致數據不能上下移動\r\n{\r\n\tif (form1.CoWrokType[0].checked)\r\n\t{\r\n\t\tform1.btnUp.disabled=false;\r\n\t\tform1.btnDown.disabled=false;\r\n\t}\r\n\telse\r\n\t{\r\n\t\tform1.btnUp.disabled=true;\r\n\t\tform1.btnDown.disabled=true;\r\n\t}\r\n}\r\n\r\nfunction DeptID_ondblclick()//雙擊選中\r\n{\r\n\tDeptAdd();\r\n\treturn true;\r\n}\r\n\r\nfunction DeptList_ondblclick()//雙擊刪除\r\n{\r\n\tDeptDel();\r\n\treturn true;\r\n}\r\n\r\nfunction PhraseNo_onkeyup()\r\n{\r\n\tFlag=false;\r\n\tif (form1.selPhrase.length==0)\r\n\t{\r\n\t\talert(\"目前沒有加註意見詞庫!\")\r\n\t\treturn false;\r\n\t}\r\n\r\n\tfor(i=0;i<form1.selPhrase.length;i++)\r\n\t{\r\n\t\tif (form1.PhraseNo.value == form1.selPhrase.options[i].value)\r\n\t\t{\r\n\t\t\tFlag=true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\tif(Flag)\r\n\t{\r\n\t\tform1.selPhrase.selectedIndex=i\r\n\t}\r\n\telse\r\n\t{\r\n\t\tform1.selPhrase.selectedIndex=0\r\n\t}\r\n\treturn true;\r\n}\r\n\r\nfunction btnSelect_onclick()\r\n{\r\n\tif(form1.selPhrase.selectedIndex<1)\r\n\t{\r\n\t    return false;\r\n\t}\r\n\tform1.Opinion.value+=form1.selPhrase.options[form1.selPhrase.selectedIndex].text;\r\n\treturn true;\r\n}\r\n\r\nfunction PhraseNo_onfocus()\r\n{\r\n\tform1.PhraseNo.select();\r\n}\r\n\r\n\r\nfunction getMemberOfDeptment()\r\n{\r\n\tvar DeptID=form1.DeptID[form1.DeptID.selectedIndex].value;\r\n\tvar str=strTemp.value\r\n\tstr=str.split(\"|\");\r\n\r\n\tfor(var i=form1.DeptID.length-1;i>-1;i--)\r\n\t{\r\n\t    form1.DeptID.remove(i)\r\n\t}\r\n\r\n\tfor(i=0;i<str.length-1;i++)\r\n\t{\r\n\t\tmemberID=str[i].substring(0,str[i].indexOf(\"_\"));\r\n\t\tmemberName=str[i].substring(str[i].indexOf(\"_\")+1,str[i].lastIndexOf(\"_\"));\r\n\t\tdeptmentID=str[i].substring(str[i].lastIndexOf(\"_\")+1);\r\n\t\tif(deptmentID==DeptID)\r\n\t\t{\r\n\t\t\tvar op=form1.document.createElement(\"OPTION\");\r\n\t\t\top.text=memberName;\r\n\t\t\top.value=deptmentID+\",\"+memberID;\r\n\t\t\tform1.DeptID.add(op);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n\r\n\r\n</SCRIPT>\r\n</head>\r\n<body onload=window_onload()>\r\n<form name=\"form1\" action=\"/WebAgenda/servlet/CoWorkDeptServlet\" method=\"post\" target=\"HideFrame\">\r\n  <table width=\"100%\" >\r\n    <tr>\r\n      <td  class=\"title\" width=\"2%\"><img src=\"../images/who.gif\"></td>\r\n      <td  class=\"title\" width=\"88%\">會辦作業 </td>\r\n      <td  class=\"title\" width=\"10%\">&nbsp;</td>\r\n    </tr>\r\n  </table>\r\n  <table border=\"0\" width=\"94%\">\r\n    <tr>\r\n      <td colspan=\"4\" class=\"td_bg\">\r\n          <input type=\"radio\" value=\"1\" checked name=\"CoWrokType\" onclick=\"return CoWrokType_onclick()\">順會&nbsp;&nbsp;\r\n          <input type=\"radio\" value=\"2\" name=\"CoWrokType\"  onclick=\"return CoWrokType_onclick()\">分會\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td class=\"td_bg\">可會辦部門列表<br>\r\n          <select size=6 name=\"DeptID\" style=\"width: 183; height: 110\" multiple ondblclick=\"return DeptID_ondblclick()\">\r\n");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -