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

📄 modify.jsp

📁 会议流程管理系统
💻 JSP
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,oa.main.DealString"%>
<jsp:useBean id="pb" class="oa.main.ParentBean" scope="page"/>
<%
try{

	String uid = (String)session.getAttribute("zgbh");		
	if(uid==null)
	{
		response.sendRedirect("../../session_oa.htm");
		return;
	}

		if (pb.getConn() == null){
		%>		
		数据库无法响应,请<a href="javascript:window.history.back(-1);">返回</a>重试
		<%out.close();
	}
		DealString ds=new DealString();

		String str_cur = ds.toString(request.getParameter("cur")); //翻页时传递页码

        Hashtable hash=new Hashtable();
		String receivers="";
		String receiversBH="";

	    String str_id = ds.toString(request.getParameter("id"));
		
		if(!str_id.equals("")){
		
				String sql = "select HG2_MEET_SUMMARY.*,A.XM,B.XM as CHECKER_XM,C.XM as PERFORMER_XM from HG2_MEET_SUMMARY,ZZ_ZGB A,ZZ_ZGB B,ZZ_ZGB C where A.ZGBH=HG2_MEET_SUMMARY.SENDER and B.ZGBH=HG2_MEET_SUMMARY.CHECKER and C.ZGBH=HG2_MEET_SUMMARY.PERFORMER and id = '" + str_id + "'";
				Vector vect = pb.getDataBySql(sql);
				if(vect.size()==0) throw new Exception("数据库读写失败!");
				hash = (Hashtable)vect.get(0);
				sql = "select XM,ZZ_ZGB.ZGBH from HG2_MEET_SUMMARY_MEN,ZZ_ZGB where HG2_MEET_SUMMARY_MEN.RECEIVER=ZZ_ZGB.ZGBH and SUMMARYID='" + str_id + "'";
				vect = pb.getDataBySql(sql);
				
				if(vect.size()>0){
					
					for ( int i=0; i<vect.size(); i++){
						Hashtable hashtable = (Hashtable)vect.get(i);
						receivers += (String)hashtable.get("XM") + ";";
						receiversBH += (String)hashtable.get("ZGBH") +";";
					}
					receivers=receivers.substring(0,receivers.length()-1);
					receiversBH=receiversBH.substring(0,receiversBH.length()-1);
				}
		}
		receivers=receivers.replaceAll(";",",");;
		receiversBH=receiversBH.replaceAll(";",",");;


		String TITLE=ds.toString((String)hash.get("TITLE"));
		String KEYWORD=ds.toString((String)hash.get("KEYWORD"));
		String WORD=ds.toString((String)hash.get("WORD"));
		String LEVEL=ds.toString((String)hash.get("MLEVEL"));
		String TIME=ds.toString((String)hash.get("TIME"));
		String SENDER=ds.toString((String)hash.get("SENDER"));
		String SENDER_XM=ds.toString((String)hash.get("XM"));
		String CHECKER=ds.toString((String)hash.get("CHECKER"));
		String CHECKER_XM=ds.toString((String)hash.get("CHECKER_XM"));
		String ISCHECK=ds.toString((String)hash.get("ISCHECK"));
		String PERFORMER=ds.toString((String)hash.get("PERFORMER"));
		String PERFORMER_XM=ds.toString((String)hash.get("PERFORMER_XM"));
		String ISPERFORM=ds.toString((String)hash.get("ISPERFORM"));
		
		
		if(TIME.equals("")) TIME=ds.getDateTime();








%>
<HTML>

<head><title>会议纪要</title>
<link href="../../css/person.css" type=text/css rel=stylesheet>
<script language="javascript" src="../scripts/department.js"></script>
<script src="Popup.js"></script>
<script src="validateForm.js"></script>
</head>

<BODY leftMargin=0 topMargin=0 >
<form name="form1" method="post" action="">
<br>&nbsp;&nbsp;&nbsp;<font color="#505050" size=2>当前位置:会议管理>><a href="list.jsp?cur=<%=str_cur%>">会议纪要</a></font>

<div align=center>
<font color="#666666" size=3><b>填写会议纪要<b></font>
</div>
<br>

<table border="1" width="95%" align=center cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#A5BEE0" >
<tr bgcolor="#E0E0E0" height=25>
      <td align=right>会议通知级别:</td>
      <td >&nbsp;<select  name="LEVEL" style="color: #000000; background-color: #FFFFFF;font-family:宋体; font-size: 12px; BORDER-RIGHT: 1px solid #A5BEE0; BORDER-TOP: 1px solid #A5BEE0; BORDER-LEFT: 1px solid #A5BEE0; BORDER-BOTTOM: 1px solid #A5BEE0">
	  <option value=1 <%if(LEVEL.equals("1")) out.print("selected");%>>一级</option>
	  <option value=2 <%if(LEVEL.equals("2")) out.print("selected");%>>二级</option>
	  <option value=3 <%if(LEVEL.equals("3")) out.print("selected");%>>三级</option>
	  </select></td>
  </tr>
    <tr bgcolor="#ffffff" height=25>
      <td align=right>纪要接收人:</td>
      <td >&nbsp;<input type="text"  title="纪要接收人" readonly name="txt_receivername" maxlength=80 size="35" class=text value="<%=receivers%>" style="color: #000000; background-color: #FFFFFF;font-family:宋体; font-size: 14px;  BORDER-RIGHT: 1px solid #A5BEE0; BORDER-TOP: 1px solid #A5BEE0; BORDER-LEFT: 1px solid #A5BEE0; BORDER-BOTTOM: 1px solid #A5BEE0"><input type="button" value="从组织机构" onclick="openWns('../../organization/departBrower.jsp?ZGBHs='+document.all.txt_receiverZGBH.value,'选择人员')">
	<input type="hidden" value="<%=receiversBH%>" name="txt_receiverZGBH" class=txtframe></td>
    </tr>
	    <tr bgcolor="#E0E0E0" height=25>
      <td align=right>审核人:</td>
      <td >&nbsp;<input type="text" title="审核人"  readonly name="txt_checker" maxlength=80 size="35" class=text value="<%=CHECKER_XM%>" style="color: #000000; background-color: #FFFFFF;font-family:宋体; font-size: 14px;  BORDER-RIGHT: 1px solid #A5BEE0; BORDER-TOP: 1px solid #A5BEE0; BORDER-LEFT: 1px solid #A5BEE0; BORDER-BOTTOM: 1px solid #A5BEE0"><input type="button" value="选择" onclick="openWns('memberselect/stepMem.jsp?bh=CHECKER&name=txt_checker','选择人员')">
        <input type="hidden" value="<%=CHECKER%>" name="CHECKER" class=txtframe></td>
    </tr>
	    <tr bgcolor="#ffffff" height=25>
      <td align=right> 督办人:</td>
      <td >&nbsp;<input type="text" title="督办人" name="txt_performer" value="<%=PERFORMER_XM%>" maxlength=80 size="35" class=text style="color: #000000; background-color: #FFFFFF;font-family:宋体; font-size: 14px;BORDER-RIGHT: 1px solid #A5BEE0; BORDER-TOP: 1px solid #A5BEE0; BORDER-LEFT: 1px solid #A5BEE0; BORDER-BOTTOM: 1px solid #A5BEE0"><input name="button" type="button" onclick="openWns('memberselect/stepMem.jsp?bh=PERFORMER&name=txt_performer','选择人员')" value="选择">
        <input type="hidden" value="<%=PERFORMER%>" name="PERFORMER" class=txtframe></td>
    </tr>

    <tr bgcolor="#E0E0E0" height=25>
      <td align=right>通知标题:</td>
      <td >&nbsp;<input type="text" name="TITLE" title="通知标题" maxlength=80 size="50" class=text value="<%=TITLE%>" style="color: #000000; background-color: #FFFFFF;font-family:宋体; font-size: 14px;  BORDER-RIGHT: 1px solid #A5BEE0; BORDER-TOP: 1px solid #A5BEE0; BORDER-LEFT: 1px solid #A5BEE0; BORDER-BOTTOM: 1px solid #A5BEE0"></td>
    </tr>
    <tr bgcolor="#ffffff" height=25>
      <td align=right>关键字:</td>
      <td >&nbsp;<input type="text" name="KEYWORD" title="关键字" maxlength=80 size="50" class=text value="<%=KEYWORD%>" style="color: #000000; background-color: #FFFFFF;font-family:宋体; font-size: 14px;  BORDER-RIGHT: 1px solid #A5BEE0; BORDER-TOP: 1px solid #A5BEE0; BORDER-LEFT: 1px solid #A5BEE0; BORDER-BOTTOM: 1px solid #A5BEE0"></td>
    </tr>
    <tr bgcolor="#E0E0E0" height=25>
      <td align=right>发布时间:</td>
      <td >&nbsp;<input type="text" name="TIME" title="发布时间" maxlength=20 size="20" class=text value="<%=TIME%>" style="color: #000000; background-color: #FFFFFF;font-family:宋体; font-size: 14px;  BORDER-RIGHT: 1px solid #A5BEE0; BORDER-TOP: 1px solid #A5BEE0; BORDER-LEFT: 1px solid #A5BEE0; BORDER-BOTTOM: 1px solid #A5BEE0" readonly><a href="#" onClick="fPopUpDlg('calendar.htm',document.all.TIME,'winpop',172,230);return false;">
	   <img src="../../images/DATETIME.GIF"></td>
    </tr>

    <tr bgcolor="#ffffff" height=25>
      <td align=right>纪要内容:</td>
      <td >&nbsp;<textarea name="WORD" class="text" cols="100" rows="5" ><%=WORD%></textarea></td>
    </tr>


    <tr bgcolor="#E0E0E0" height=25>
      <td colspan=2 align=center><input type="button" value="提交" name="baocun" onclick="onSubmit('mod')"  style="color: #000000; background-color: #FFFFFF;font-family:宋体; font-size: 12px;BORDER-RIGHT: 1px solid #A5BEE0; BORDER-TOP: 1px solid #A5BEE0; BORDER-LEFT: 1px solid #A5BEE0; BORDER-BOTTOM: 1px solid #A5BEE0"></td>
    </tr>
</table>
</BODY>
</HTML>

<script language=javascript>
function muban()
{
	var windoc = "word/EditDoc.jsp?id=<%=WORD%>";	
	var winword = window.open(windoc,"editDOC","height=500,width=750,top=0,left=0,toolbar=no,menubar=no,location=no,resizable=yes,directories=no,status=no,scrollbars=yes,dependent=no");
	winword.focus();
}
</script>

<script>
	function onSubmit(actiontype){
		//????
		if(!validateForm(document.form1.txt_receivername,'NotBlank',document.form1.txt_checker,'NotBlank',document.form1.TITLE,'NotBlank')) return false;
		document.all.form1.baocun.disabled = true;
		document.all.form1.action="servlet.jsp?id=<%=str_id%>&action="+actiontype+"&cur=<%=str_cur%>";
		document.all.form1.submit();
	}

	function onButton_OK(oList){
	    var strNames="";
		var strValues="";
		var strZGBHValues="";
		var strValues1="";
		for(var i=0;i<oList.length;i++){
			strNames+=oList.options[i].text;
			strNames+=",";
			strValues1=oList.options[i].value;//zgbh+xm+gh
			
			if(strValues!="")
			    strValues+=",";
			strValues+=(strValues1.split(","))[1];
		
			strZGBHValues+=(strValues1.split(","))[0];//存储zgbh的隐藏框值
			strZGBHValues+=",";
		}
		document.all.txt_receivername.value = strValues;
		document.all.txt_receiverZGBH.value = strZGBHValues;//存储zgbh的隐藏框值
	}

	function openWns(url,name){
		var hWnd=window.open(url,name,'left=100,top=50,width=460,height=490');
		hWnd.focus();
	}
</script>
<%}finally{
	if(pb!=null)
		pb.closeConn();
}%>

⌨️ 快捷键说明

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