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

OA系统

开发平台:

C#

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