rc_employeenote.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:7k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="rc_employeenote.aspx.cs" Inherits="rc_rc_employeenote" validateRequest="false"%>
  2. <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
  3.     Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7.     <title>我的日程</title>
  8. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
  9. <link href="../css/link.css" rel="stylesheet" type="text/css"/>
  10. <style type="text/css"> 
  11. div.RoundedCorner{background: #5AAE18} 
  12. b.rtop, b.rbottom{display:block;background: #FFF} 
  13. b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 
  14. b.r1{margin: 0 4px} 
  15. b.r2{margin: 0 3px} 
  16. b.r3{margin: 0 2px} 
  17. b.rtop b.r4, {margin: 0 1px;height: 1px}
  18. .style1 {
  19. font-size: 13px;
  20. color: #FFFFFF;
  21. font-weight: bold;
  22. </style>
  23. <style type="text/css">
  24. <!--
  25. .style15 {color: #000000}
  26. .style16 {
  27. color: #FFFFFF;
  28. font-size: 13px;
  29. }
  30. .style17 {font-size: 12px}
  31. .style20 {font-size: 14px}
  32. .style21 {
  33. color: #5AAE18;
  34. font-weight: bold;
  35. }
  36. .style22 {color: #5AAE18}
  37. body {
  38. margin-top: 0px;
  39. }
  40. -->
  41. </style>
  42. <script language="javascript" type="text/javascript">
  43. // <!CDATA[
  44. function submit1_onclick() {
  45.     var x = document.getElementById("form2");
  46.     var cmd = document.getElementById("cmd").value;
  47.     x.action="rc_selectlike.aspx?cmd="+cmd;
  48.     document.myform.submit();
  49. }
  50. // ]]>
  51. </script>
  52. </head>
  53. <body>
  54.  <form  id="form2" name="myform">
  55.   <table width="758" border="0" cellpadding="1" cellspacing="0">
  56.     <tr>
  57.       <td><div align="right">
  58.           <form name="form1" method="post" action="" >
  59.             <input name="cmd" type="text" id="cmd" />
  60.             <input name="submit" type="submit" id="submit1" style="FONT-SIZE: 12px; HEIGHT: 27px" value= " 查 询 " onclick="return submit1_onclick()"/>
  61.           </form>
  62.       </div></td>
  63.     </tr>
  64.   </table>
  65.   </form>
  66. <div align="center">
  67.     <%
  68.                 COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
  69.                 
  70.                 if (loginuser == null)
  71.                 {
  72.                     Response.Write("<script language='javascript'>parent.document.location.href='../login.aspx'</script>");
  73.                     return;
  74.                 }
  75.                 int userid = loginuser.u_id;
  76.                 //设置where语句
  77.                 String where = "to_u_id='{0}' and to_state='{1}'";
  78.                 where = string.Format(where, userid,0);
  79.                 //查询
  80.                 System.Collections.Generic.IList<COM.OA.Entity.timeorder> doclist = COM.OA.BLL.timeorderBLL.Select(where,true,false);
  81.                 
  82.     %>
  83.     <table align="center"  cellpadding="0" border="0" cellspacing="0" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; width: 93%;" >
  84.         <tr><td colspan="5" style="height: 15px; width: 100%;" ><div class="RoundedCorner"><div align="center">
  85.         <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
  86.         <span class="style1">我 的 日 程</span></div></div></td></tr>
  87.         <tr><td>
  88.         <table cellpadding="0" border="0"  cellspacing="0" style="border-right: #5aae18 1px solid; border-top: #5aae18 1px solid; margin: 0px 1px 1px; border-left: #5aae18 1px solid; border-bottom: #5aae18 1px solid; width: 100%; padding-right: 1px; padding-left: 1px; padding-bottom: 1px; padding-top: 0px;" >
  89.         
  90.         <%
  91.             if (doclist.Count != 0)
  92.             {%>
  93.         <tr><td colspan="5">&nbsp;</td></tr>
  94.         <tr>
  95.           <td><strong>主题</strong></td><td><strong>日程所有人</strong></td><td><strong>日程日期</strong></td><td><strong>类型</strong></td><td><strong>操作</strong></td>
  96.         </tr>
  97.         
  98.         <%   foreach (COM.OA.Entity.timeorder docu in doclist)
  99.              {
  100.                  %>
  101.                  <tr onmouseover = "this.style.backgroundColor = '#D5EEBB'" onmouseout = "this.style.backgroundColor = ''">
  102.                  <td style="height: 26px"><a href="rc_notecontent.aspx?tid=<%=docu.to_id %>"><%=docu.to_title%></a></td>
  103.                  
  104.                  <%  int sendid = docu.to_u_id;
  105.                      string sql3 = "u_id='{0}'";
  106.                      sql3 = string.Format(sql3, sendid);
  107.                      System.Collections.Generic.IList<COM.OA.Entity.users> userlist = COM.OA.BLL.usersBLL.Select(sql3, true, false);
  108.                      if (userlist.Count == 1)
  109.                      {
  110.                          foreach (COM.OA.Entity.users u in userlist)
  111.                          {
  112.                              int emid = u.u_em_id;
  113.                              string emname = "";
  114.                              string sql4 = "em_id='{0}'";
  115.                              sql4 = string.Format(sql4, emid);
  116.                              System.Collections.Generic.IList<COM.OA.Entity.employee> emlist = COM.OA.BLL.employeeBLL.Select(sql4);
  117.                              if (emlist.Count == 1)
  118.                              {
  119.                                  foreach (COM.OA.Entity.employee empl in emlist)
  120.                                  {
  121.                                      emname = empl.em_name;
  122.                                  }
  123.                              }
  124.                              %>
  125.                              <td style="height: 26px; width: 77px;"><%=emname%></td> 
  126.                              <%
  127.             }
  128.         }
  129.                   %>
  130.                  <td style="height: 26px"><%=docu.to_sendtime%></td>
  131.                  <td style="height: 26px">工作日程</td>  
  132.                  <td style="height: 26px"><a href="rc_notedelete.aspx?id=<%=docu.to_id %>">删除</a></td>
  133.                  </tr>  
  134.                  
  135.                  <%     
  136.             }
  137.         }
  138.         else
  139.         {
  140.             %><tr><td colspan="6" align="center" style="height: 51px"><strong>您还没有制定日程</strong></td></tr><%    
  141.         }       
  142.          %>
  143.         
  144.         </table>
  145.         </td></tr>
  146.         <tr><td colspan="4">
  147.             <br />
  148.             (总共<%=doclist.Count.ToString() %>条记录)</td></tr> 
  149.     </table>
  150.   </div>
  151.     <div align="center"><img src="../images/sj/up.gif" width="17" height="12" /><a href="javascript:history.go(-1)">返 回</a></div>
  152.   
  153. </body>
  154. </html>