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

📄 day_rc.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %> 
<%@ page import="cn.com.aheadsoft.recordset.ClendarItemRecordSet" %> 
<%@ page import="cn.com.aheadsoft.business.ClendarItemBusiness" %>  
<%@ page import="cn.com.aheadsoft.recordset.ClendarItemRecordSet" %> 
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.util.StringTool" %> 
<%@ page import="cn.com.aheadsoft.util.DateTools" %> 
<%@ page import="cn.com.aheadsoft.util.TheProperties" %>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<jsp:useBean id="upm" scope="session" class="cn.com.aheadsoft.manage.UserPurviewManage"/>
<link href="/krm/jsp/css/a6oa.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>日安排</title> 
 

<script language="JavaScript" src="/krm/jsp/jscript/Calendardiary.js" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);  
 
}
//-->
</script>
  

<%
 
	String select_date="";
	select_date = request.getParameter("select_date");
	if(select_date==null){
	  StringTool st = new StringTool();
	  select_date = st.Now2StringShort();
	}

%>
</head> 
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
	 
 <tr height="8">
	<td class="trA"> &nbsp;您的位置:工作日记 >> 日程安排 >> <font class="fontcolor">日安排</font></td>
 </tr>
   <tr height="8"> 
    <td></td>
  </tr> 	  
	  <tr>
		<td align="center" >
    <form action="/krm/jsp/diamanage/schmanage/day_rc.jsp"  method="post"  name="form1" >
      <input type="hidden" name="select_date" >
      <table border="0" cellpadding="0" cellspacing="0" width="98%" align="center"  class="collapse">
  <tr>
    <td ><table width="98%" border="0" cellpadding="1" cellspacing="1" >
         <tr > 
          <td class="tdA" colspan="9" align="center">
		  
           <strong><%=select_date%> <%
		   if(!TheProperties.ENCODE.equalsIgnoreCase("iso8859_1")){	
		    String week=DateTools.date2week(select_date);
			%>
		    <%=week%><%}else{%><%=new String(DateTools.date2week(select_date).getBytes("gb2312"),"iso_8859_1")%><%}%></strong>
            <a href="javascript:show_calendar('form1.select_date');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><font color="4A86A5">[选择日期]</font></a> </td>
        </tr>
        <tr > 
          <td width="20%"  class="common bgcolor" align="center"> 
            <div align="center"><strong>上午</strong></div></td>
          <td width="80%" align="center" > 
            <table width="98%" height="40" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                    <td colspan="2"  class="common" >[<a href="/krm/jsp/diamanage/schmanage/append.jsp?date=<%=select_date%>&phase=1morning">添加</a>]</td>
                </tr>
 
   	  	<% 
       
	    ClendarItemRecordSet clendarmorning  = new ClendarItemRecordSet();	
		ClendarItemBusiness  businessmorning = new ClendarItemBusiness();		 
		businessmorning.setQueryWhereForMorning(userinfo.GetUserID(),select_date,"1morning");
      					 
		int num1 = businessmorning.execute("query");				
		clendarmorning = businessmorning.getClendarItemRecordSet();   
          if(clendarmorning != null && clendarmorning.size() > 0) {  
		  int num5 = 1;               
          while(clendarmorning.next()) {
        %>
                <tr> 
                  <td width="80%" class="common" ><%=num5%>、内容:<%= StringFormat.Source2GB(clendarmorning.getCAL_content()) %><br/>
                                          &nbsp;&nbsp;&nbsp;地点:<%= StringFormat.Source2GB(clendarmorning.getCAL_place()) %><br/>
                                          &nbsp;&nbsp;&nbsp;备注:<%= StringFormat.Source2GB(clendarmorning.getCAL_memo()) %></td>
                    <td width="20%" class="common" >[<A href="/krm/jsp/diamanage/schmanage/modi_rc.jsp?sche_id=<%= StringFormat.Source2GB(clendarmorning.getCAL_ID()) %>&date=<%= StringFormat.Source2GB(clendarmorning.getCAL_date()) %>" >修改</a>] 
                      [<A href="/krm/servlet/clendarservlet?status=d&sche_id=<%= StringFormat.Source2GB(clendarmorning.getCAL_ID()) %>" onclick="return(confirm('确实要删除吗?'))" >删除</a>]</td>

				</tr>
    	 <%
		       num5++;					 
				}
			}
		 %>
	
              </table></td>
        </tr>
        <tr > 
          <td  class="common bgcolor" align="center" > 
            <div align="center" ><strong>下午</strong></div></td>
          <td  align="center" > 
            <table width="98%" height="40" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                    <td colspan="2" class="common"  >[<a href="/krm/jsp/diamanage/schmanage/append.jsp?date=<%=select_date%>&phase=2afternoon">添加</a>]</td>
                </tr>
 
   	  	<% 
	    ClendarItemRecordSet clendarafternoon  = new ClendarItemRecordSet();	
		ClendarItemBusiness  businessafternoon = new ClendarItemBusiness();				 
		businessafternoon.setQueryWhereForAfternoon(userinfo.GetUserID(),select_date,"2afternoon");
        					 
		int num2 = businessafternoon.execute("query");				
		clendarafternoon = businessafternoon.getClendarItemRecordSet(); 		
            if(clendarafternoon != null && clendarafternoon.size() > 0) {  
			 int num6 = 1;               
                while(clendarafternoon.next()) {
        %>
                <tr> 
                  <td width="80%" class="common" ><%=num6%>、内容:<%= StringFormat.Source2GB(clendarafternoon.getCAL_content()) %><br/>
                                          &nbsp;&nbsp;&nbsp;地点:<%= StringFormat.Source2GB(clendarafternoon.getCAL_place()) %><br/>
                                          &nbsp;&nbsp;&nbsp;备注:<%= StringFormat.Source2GB(clendarafternoon.getCAL_memo()) %></td>
                    <td width="20%" class="common" >[<A href="/krm/jsp/diamanage/schmanage/modi_rc.jsp?sche_id=<%= StringFormat.Source2GB(clendarafternoon.getCAL_ID()) %>&date=<%= StringFormat.Source2GB(clendarafternoon.getCAL_date()) %>" >修改</a>] 
                      [<A href="/krm/servlet/clendarservlet?status=d&sche_id=<%= StringFormat.Source2GB(clendarafternoon.getCAL_ID()) %>" onclick="return(confirm('确实要删除吗?'))" >删除</a>]</td>

				</tr>
    	 <%
		       num6++;					 
				}
			}
		 %> 
 
              </table></td>
        </tr>
        <tr > 
          <td  class="common bgcolor" align="center" > 
            <div align="center"><strong>晚上</strong></div></td>
          <td> 
            <table width="98%" align="center" height="40" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                    <td colspan="2" class="common"   >[<a href="/krm/jsp/diamanage/schmanage/append.jsp?date=<%=select_date%>&phase=3night">添加</a>]</td>
                </tr>
  	  	<% 
	    ClendarItemRecordSet clendarrecordset  = new ClendarItemRecordSet();	
		ClendarItemBusiness  businessnight     = new ClendarItemBusiness();						 
		businessnight.setQueryWhereForEverning(userinfo.GetUserID(),select_date,"3night");       							 
		int num3 = businessnight.execute("query");				
		clendarrecordset = businessnight.getClendarItemRecordSet();		
            if(clendarrecordset != null && clendarrecordset.size() > 0) {  
			 int num7 = 1;               
                while(clendarrecordset.next()) {
        %>
                <tr> 
                  <td width="80%" class="common" ><%=num7%>、内容:<%= StringFormat.Source2GB(clendarrecordset.getCAL_content()) %><br/>
                                          &nbsp;&nbsp;&nbsp;地点:<%= StringFormat.Source2GB(clendarrecordset.getCAL_place()) %><br/>
                                          &nbsp;&nbsp;&nbsp;备注:<%= StringFormat.Source2GB(clendarrecordset.getCAL_memo()) %></td>
                    <td width="20%" class="common" >[<A href="/krm/jsp/diamanage/schmanage/modi_rc.jsp?sche_id=<%= StringFormat.Source2GB(clendarrecordset.getCAL_ID()) %>&date=<%= StringFormat.Source2GB(clendarrecordset.getCAL_date()) %>" >修改</a>] 
                      [<A href="/krm/servlet/clendarservlet?status=d&sche_id=<%= StringFormat.Source2GB(clendarrecordset.getCAL_ID()) %>" onclick="return(confirm('确实要删除吗?'))" >删除</a>]</td>

				</tr>
    	 <%
		       num7++;					 
				}
			}
		 %>
              </table></td>
        </tr>
      </table></td>
  </tr>
  <tr><td  height="5" class="tdC">&nbsp;</td>
</tr>
</table>
</form>
		  <br> 
		</td>
	</tr>
		
</table>
 
<div align="center"></div>
</body>
</html> 

⌨️ 快捷键说明

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