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

📄 registerrecord.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@page contentType="text/html;charset=GB2312" %>
<%@page import="cn.com.aheadsoft.business.MeetingInformBusiness"%>
<%@page import="cn.com.aheadsoft.business.PersonInfoBusiness"%>
<%@page import="cn.com.aheadsoft.business.MeetingStaffBusiness"%>
<%@page import="cn.com.aheadsoft.business.MeetingDetailBusiness"%>

<%@page import="cn.com.aheadsoft.recordset.MeetingInformRecordSet"%>
<%@page import="cn.com.aheadsoft.recordset.PersonInfoRecordSet"%>
<%@page import="cn.com.aheadsoft.recordset.MeetingStaffRecordSet"%>
<%@page import="cn.com.aheadsoft.recordset.MeetingDetailRecordSet "%>      

<html>
<head>
<title>会议记录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
</head>
<script>
function atSubmit(){
     if(document.form1.BeginTime.value!=null && document.form1.BeginTime.value=="") {
       document.form1.BeginTime.focus();
       alert("您没有填写会议开始时间!请填写后提交。");
       return false;
     }
     if(document.form1.Address.value!=null && document.form1.Address.value=="") {
       document.form1.Address.focus();
       alert("您没有填写会议地点!请填写后提交。");
       return false;
     }
     if(document.form1.Master.value!=null && document.form1.Master.value=="") {
       document.form1.Master.focus();
       alert("您没有填写主持人!请填写后提交。");
       return false;
     }
     if(document.form1.Record.value!=null && document.form1.Record.value=="") {
       document.form1.Record.focus();
       alert("您没有填写会议记录!请填写后提交。");
       return false;
     }
 
 }
</script>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >

<%!
  	private String getInfoPerson(String sMm_ID) 
	{
	  // get the relative info time related to this meeting
	  MeetingInformBusiness mibi1 = new MeetingInformBusiness();
          mibi1.setQueryWhereOnlyID(sMm_ID);
	  mibi1.setQueryValidInfo();
          mibi1.execute("query");
          MeetingInformRecordSet MeetingInfoRdSet = mibi1.getMeetingInformRdset();
	  MeetingInfoRdSet.next();
	  String sInfoTime = MeetingInfoRdSet.getMI_InfoTime();
	  // generate the String related to the persons who have been informed
	  String sInfoPerson = "";
	  MeetingStaffBusiness m1 = new MeetingStaffBusiness();
	  // get the persons being informed
	  m1.setQueryWhereInfoTime(sInfoTime);
	  m1.setQueryWhereMeeting(sMm_ID);
	  m1.execute("query");
          MeetingStaffRecordSet MeetStaffRdSet = m1.getMeetingStaffRdset();
          while(MeetStaffRdSet.next())
          {  
             PersonInfoBusiness pib = new PersonInfoBusiness();
	     pib.setQueryWhere(MeetStaffRdSet.getMS_Person());
	     pib.execute("query");
	     PersonInfoRecordSet rd = pib.getRecordSet();
	     rd.next();
	     String strName = rd.getI_Name();
	     sInfoPerson = sInfoPerson + strName + ",";
	  }   
	  return sInfoPerson;
	}
%>
<%
  String sMeetName = "";
  String sMeetSubjet = "";
  String sDateTime = ""; 
  String sAddress = "";
  String sAttdence = "";
  String sInfoPerson = "";
  
  String sID = request.getParameter("meetID");
  int iResult = -1;
  MeetingDetailBusiness bundi = new MeetingDetailBusiness();
  bundi.setQueryWhereID(sID);
  iResult = bundi.execute("query");
  MeetingDetailRecordSet MeetingDetailRdSet = bundi.getMeetingDetailRdset();
  int iResNum = MeetingDetailRdSet.size();
  if (iResNum>0)
  {
	MeetingDetailRdSet.next();
	sMeetName = MeetingDetailRdSet.getMD_Name();
  	sMeetSubjet = MeetingDetailRdSet.getMD_Subject();
	sDateTime = MeetingDetailRdSet.getMD_PreTime(); 
  	sAddress = MeetingDetailRdSet.getMD_PreAddress();
  	sAttdence = MeetingDetailRdSet.getMD_Attendance();
	sInfoPerson = getInfoPerson(sID);
  }
  String sUser = (String)session.getAttribute("user");
  sUser = sUser==null?"":sUser;
%>

<form name="form1" method="post" action="/krm/servlet/meetingrecordservlet?module=addmeetrecord&status=\"\"" onsubmit="return atSubmit()">
<input type="Hidden" name="Recorder" value="<%=sUser%>">
<input type="hidden" name="MMID" value="<%=sID%>">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0"  >
  <tr  class="trA">
      <td>&nbsp;您的位置:行政管理 >> 会议管理 >> <font class="fontcolor">登记会议记录</font></td>
  </tr>
  <tr height="8">   
	<td >
	</td>
  </tr>
  <tr>
    <td align="center">
      <table border="0" width="98%"  bordercolor="A1B7DB" class="collapse">
   <tr>             
          <td class="tdA"  colspan="9" align="center"><div align="left">会议记录</div></td>
  </tr>			 
    <tr > 
            <td class="common bgcolor" width="20%">会议名称</td>
      <td class="common" width="30%" ><input type="text" name="meetname" class="middle" value="<%=sMeetName%>" readonly></td>
            <td class="common bgcolor" width="20%">会议开始时间</td>
      <td class="common" width="30%"><input type="text" class="middle" name="BeginTime" value="<%=sDateTime%>"></td>
    </tr>
    <tr > 
            <td class="common bgcolor">会议主题</td>
      <td class="common"><input type="text" name="T2" class="middle" value="<%=sMeetSubjet%>" readonly></td>
            <td class="common bgcolor">会议地点</td>
      <td class="common"><input type="text" class="middle" name="Address" value="<%=sAddress%>"></td>
    </tr>
    <tr > 
            <td class="common bgcolor" > 已通知名单</td>
      <td class="common" width="411"> <input type="text" name="T5" class="long" value="<%=sInfoPerson%>" readonly></td>
            <td class="common bgcolor" >主持人</td>
      <td class="common" ><input type="text" name="Master" class="middle"></td>
    </tr>
    <tr> 
            <td class="common bgcolor"   >到会名单</td>
      <td class="common"   colspan="3" > <input type="text" name="T7" class="long"></td>
    </tr>
    <tr valign="top"> 
            <td class="common bgcolor" bgcolor valign="middle">会议记录</td>
      <td class="common"   colspan="3" >      
                <textarea name="Record" rows="5" style="overflow:auto"></textarea>       
      </td>
    </tr>
    <tr> 
      <td class="tdC" colspan="4" align="center"> 
            <input type="hidden" name="T9" value="">
            <input type="hidden" name="T10" value="">
           <input name="imageField" type="submit"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="提 交">    
		   <input name="imageField" type="button"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="返 回" onClick="javascript:history.back(-1);">  
<!--		  <a href="meetingview.jsp"><img src="../image/cancel.gif" width="80"  border="0"></a> 
   -->         </td>
    </tr>
  </table>
  
    </table>
    </form>
        </td></tr>
</body>
</html>

⌨️ 快捷键说明

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