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

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="rc_notemanage.aspx.cs" Inherits="rc_rc_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.     <title>记录管理</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
  7. <style type="text/css">
  8. <!--
  9. .style1 {color: #FFFFFF}
  10. -->
  11. </style>
  12. <link href="../css/link.css" rel="stylesheet" type="text/css"/>
  13. <style type="text/css">
  14. <!--
  15. .style3 {font-size: 12px}
  16. .style4 {font-size: 13px}
  17. .style6 {color: #000000}
  18. .style7 {color: #FF0000}
  19. body {
  20. margin-top: 0px;
  21. }
  22. -->
  23. </style>
  24. <script language="javascript" type="text/javascript">
  25. // <!CDATA[
  26. function submit1_onclick() {
  27.     var x = document.getElementById("form2");
  28.     var cmd = document.getElementById("cmd").value;
  29.     x.action="rc_selectlike.aspx?cmd="+cmd;
  30.     document.myform.submit();
  31. }
  32. // ]]>
  33. </script>
  34. </head>
  35. <body>
  36.     <%
  37.                 COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
  38.                 if (loginuser == null)
  39.                 {
  40.                     Response.Write("<script language='javascript'>parent.document.location.href='../login.aspx'</script>");  
  41.                 }
  42.          %>
  43. <div align="center">
  44. <form  id="form2" name="myform">
  45.   <table width="758" border="0" cellpadding="1" cellspacing="0">
  46.     <tr>
  47.       <td><div align="right">
  48.           <form name="form1" method="post" action="" >
  49.             <input name="cmd" type="text" id="cmd" />
  50.             <input name="submit" type="submit" id="submit1" style="FONT-SIZE: 12px; HEIGHT: 27px" value= " 查 询 " onclick="return submit1_onclick()"/>
  51.           </form>
  52.       </div></td>
  53.     </tr>
  54.   </table>
  55.   </form>
  56.   
  57.   <form runat="server">
  58.   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  59.     <tr>
  60.       <td style="height: 19px; width: 4px;"><img src="../images/sj/leftlin1.gif" width="6" height="21" /></td>
  61.       <td width="936" bgcolor="#5AAE18" style="height: 19px"><div align="center">
  62.           <div align="center" class="style1"><span class="style1"><strong>日 程 列 表</strong></span></div>
  63.           </div></td>
  64.       <td width="6" style="height: 19px"><img alt="" src="../images/sj/rightlin1.gif" width="6" height="21" /></td>
  65.     </tr>
  66.     
  67.   </table>
  68.   
  69.   <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  70.     <tr bgcolor="#FFFFFF">
  71.     <td colspan="8">
  72.         <asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound">
  73.             <Columns>
  74.                 <asp:HyperLinkField DataTextField="to_title" HeaderText="主题" DataNavigateUrlFields="to_id" DataNavigateUrlFormatString="rc_notecontent.aspx?tid={0}" />
  75.                 <asp:BoundField DataField="to_orderdate" HeaderText="日程日期" SortExpression="to_orderdate" />
  76.                 <asp:HyperLinkField HeaderText="修改" Text="修改" DataNavigateUrlFields="to_id" DataNavigateUrlFormatString="rc_noteupdate.aspx?id={0}" />
  77.                 <asp:HyperLinkField HeaderText="删除" Text="删除" DataNavigateUrlFields="to_id" DataNavigateUrlFormatString="rc_notedelete.aspx?id={0}" />
  78.                 <asp:HyperLinkField HeaderText="类型" Text="工作日程" />
  79.                 <asp:BoundField DataField="to_sendtime" HeaderText="时间" SortExpression="to_sendtime" />
  80.                 <asp:TemplateField HeaderText="批阅">
  81.                       <ItemTemplate><img alt="" src="../images/sj/pen.gif" width="24" height="21">
  82.                           <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("to_id", "rc_read.aspx?id={0}") %>'
  83.                               Text="撰写批阅"></asp:HyperLink>
  84.                       </ItemTemplate>
  85.                   </asp:TemplateField>
  86.             </Columns>
  87.         </asp:GridView>
  88.     </td>
  89.     </tr>
  90.   </table>
  91.   <span class="style3">
  92.       <br />
  93.       (总共<%=this.GridView1.Rows.Count %>条记录)</span>
  94.   <br/>  
  95.   <table width="13%"  border="0" cellspacing="0" cellpadding="0">
  96.     <tr>
  97.       <td style="width: 87px"><img alt="" src="../images/sj/up.gif" width="17" height="12" /><a href="javascript:history.go(-1)">返 回</a></td>
  98.     </tr>
  99.   </table>
  100. </form>
  101.   <p>
  102.       <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:sj_OA_DBConnectionString %>"
  103.           SelectCommand="SELECT * FROM [timeorder] WHERE ([to_state] = @to_state)">
  104.           <SelectParameters>
  105.               <asp:Parameter DefaultValue="0" Name="to_state" Type="Int32" />
  106.           </SelectParameters>
  107.       </asp:SqlDataSource>
  108.       &nbsp;
  109.       &nbsp;&nbsp;</p>
  110. </div>
  111. </body>
  112. </html>