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

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="jh_planmanage.aspx.cs" Inherits="rc_jh_notemanage" 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. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
  6. <title>记录管理</title>
  7. <style type="text/css">
  8. <!--
  9. .style1 {
  10. color: #FFFFFF;
  11. font-weight: bold;
  12. font-size: 13px;
  13. }
  14. .style2 {font-size: 14px}
  15. -->
  16. </style>
  17. <link href="../css/link.css" rel="stylesheet" type="text/css"/>
  18. <style type="text/css">
  19. <!--
  20. .style7 {
  21. font-weight: bold;
  22. font-size: 13px;
  23. }
  24. .style10 {font-size: 12px}
  25. .style13 {color: #FF0000}
  26. -->
  27. </style>
  28. </head>
  29. <body>
  30. <div align="center">
  31.     <%
  32.                 COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
  33.                 if (loginuser == null)
  34.                 {
  35.                     Response.Write("<script language='javascript'>parent.document.location.href='../login.aspx'</script>");  
  36.                 }
  37.          %>
  38.   <form runat="server" action="" method="post">
  39.       <br />
  40.       <br />
  41.       <br />
  42.   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  43.     <tr>
  44.       <td height="21" style="width: 6px"><img src="../images/sj/leftlin1.gif" width="6" height="21"></td>
  45.       <td width="936" bgcolor="#5AAE18"><div align="center"><span class="style2"><span class="style1">计 划 列 表</span></span></div></td>
  46.       <td width="6" height="21"><img src="../images/sj/rightlin1.gif" width="6" height="21"></td>
  47.     </tr>
  48.   </table>
  49.   <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  50.     <tr>
  51.       <td bgcolor="#FFFFFF" style="height: 28px"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
  52.           <tr bgcolor="#FFFFFF">
  53.             <td colspan="1" style="height: 14px"></td>
  54.           </tr>
  55.           
  56.       </table>
  57.           <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="to_id"
  58.               DataSourceID="SqlDataSource1" Width="100%" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound">
  59.               <Columns>
  60.                   <asp:HyperLinkField DataNavigateUrlFields="to_id" DataNavigateUrlFormatString="jh_plancontent.aspx?toid={0}"
  61.                       DataTextField="to_title" HeaderText="计划主题" />
  62.                   <asp:HyperLinkField HeaderText="修改" Text="修改" DataNavigateUrlFields="to_id" DataNavigateUrlFormatString="jh_planupdate.aspx?id={0}" />
  63.                   <asp:HyperLinkField HeaderText="删除" Text="删除" DataNavigateUrlFields="to_id" DataNavigateUrlFormatString="jh_plandelete.aspx?toid={0}" />
  64.                   <asp:HyperLinkField HeaderText="工作类型" Text="工作计划" />
  65.                   <asp:BoundField DataField="to_sendtime" HeaderText="时间" SortExpression="to_sendtime" />
  66.               </Columns>
  67.           </asp:GridView>
  68.       </td>
  69.     </tr>
  70.   </table>
  71.   </form>
  72.   <span class="style10"><br>
  73.   (总共<%=this.GridView1.Rows.Count %> 条记录) </span> <a href="jh_writeplan.aspx">撰写计划  </a> 
  74.     <br />
  75.     <br />
  76.     <img alt=""  src="../images/sj/up.gif" width="17" height="12"/><a href="javascript:history.go(-1)">返 回</a> <br>
  77.     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:sj_OA_DBConnectionString2 %>"
  78.         SelectCommand="SELECT * FROM [timeorder] WHERE ([to_state] = @to_state)">
  79.         <SelectParameters>
  80.             <asp:Parameter DefaultValue="1" Name="to_state" Type="Int32" />
  81.         </SelectParameters>
  82.     </asp:SqlDataSource>
  83.   
  84. <br/>
  85.   <br/>
  86.   
  87. </div>
  88. </body>
  89. </html>