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

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="gw_sendnote.aspx.cs" Inherits="senddocument" %>
  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>
  5. <title>已发公文</title>
  6. <style type="text/css"> 
  7. div.RoundedCorner{background: #5AAE18} 
  8. b.rtop, b.rbottom{display:block;background: #FFF} 
  9. b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 
  10. b.r1{margin: 0 4px} 
  11. b.r2{margin: 0 3px} 
  12. b.r3{margin: 0 2px} 
  13. b.rtop b.r4, {margin: 0 1px;height: 1px}
  14. .style1 {
  15. font-size: 13px;
  16. color: #FFFFFF;
  17. font-weight: bold;
  18. </style>
  19. <style type="text/css">
  20. <!--
  21. .style2 {font-size: 12px}
  22. -->
  23. </style>
  24. <link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
  25. <style type="text/css">
  26. <!--
  27. .style6 {
  28. color: #FFFFFF;
  29. font-weight: bold;
  30. }
  31. .style5 {color: #FFFFFF}
  32. .style13 {color: #5AAE18; font-weight: bold; }
  33. .style15 {color: #999999}
  34. .style16 {color: #5AAE18; font-weight: bold; font-size: 12px; }
  35. .style17 {color: #999999; font-size: 12px; }
  36. .style19 {font-size: 13px}
  37. body {
  38. margin-top: 2px;
  39. }
  40. .style14 {color: #FF0000}
  41. .style20 {color: #5AAE18}
  42. -->
  43. </style>
  44. <script type="text/javascript">
  45. <!--
  46. function dis(){
  47. document.form1.submit.value=' 查询..'
  48. document.form1.submit.disabled=true;
  49. return true;
  50. }
  51. function check() {
  52. if (document.form1.q.value=="") {
  53. window.alert ("请输入查询关键词!")
  54. document.form1.q.focus()
  55. return false
  56. }
  57. else 
  58. document.form1.submit(); 
  59. return true
  60. }
  61. //-->
  62. function submit_onclick() {
  63.     var x = document.getElementById("form2");
  64.     var cmd = document.getElementById("cmd").value;
  65.     x.action="gw_selectlike.aspx?cmd="+cmd;
  66.     document.myform.submit();
  67. }
  68. </script>
  69. </head>
  70. <body>
  71. <form id="form2" name="myform" action="">
  72.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  73.       <tr>
  74.         <td width="72%" style="height: 28px"><div align="right">
  75.           <input name="cmd" id="cmd" type="text"/>
  76.           <input name="button" type="button" id="button" style="FONT-SIZE: 12px; HEIGHT: 27px"  value=" 查 询 " onclick="return submit_onclick()"/>
  77.         </div></td>
  78.         <td width="2%" style="height: 28px">&nbsp;</td>
  79.         <td width="3%" style="height: 28px"><div align="center"><img alt=""  src="../images/sj/face1.gif" width="16" height="14"/></div></td>
  80.         <td width="6%" style="height: 28px"><div align="center"><a href="gw_senddocument.aspx" target="mainFrame">发送公文</a></div></td>
  81.         <td width="2%"><div align="center"><img alt=""  src="../images/sj/gw.gif" width="20" height="18"/></div></td>
  82.         <td width="6%"><div align="center"><a href="gw_takedocument.aspx">接收公文</a></div></td>
  83.         <td width="3%" style="height: 28px"><div align="center"><img alt=""  src="../images/sj/ico_msb.gif" width="18" height="18"/></div></td>
  84.         <td width="6%" style="height: 28px"><div align="center"><a href="gw_sendnote.aspx">发送记录</a></div></td>
  85.       </tr>
  86.     </table>
  87.     </form>
  88. <div align="center">
  89. <form id="form1" runat="server" action="">
  90.     <asp:ScriptManager ID="ScriptManager1" runat="server">
  91.     </asp:ScriptManager>
  92.   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  93.     <tr>
  94.       <td width="6" height="21"><img src="../images/sj/leftlin1.gif" width="6" height="21"></td>
  95.       <td width="936" bgcolor="#5AAE18"><div align="center">
  96.           <div align="center" class="style1"><span class="style6"><strong>已 发 公 文</strong></span></div>
  97.           <span class="style1"></span></div></td>
  98.       <td width="6" height="21"><img src="../images/sj/rightlin1.gif" width="6" height="21"></td>
  99.     </tr>
  100.   </table>
  101.   <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#5AAE18">
  102.     <tr bgcolor="#FFFFFF">
  103.       <td colspan="8" align="left" style="height: 28px">
  104.           <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  105.               <ContentTemplate>
  106.                   部门:
  107.           <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1"
  108.               DataTextField="dept_department" DataValueField="dept_id">
  109.           </asp:DropDownList><span style="font-size: 9pt"> &nbsp; &nbsp;&nbsp;
  110.            (共<%=this.gvdocument.Rows.Count %>条记录)</span>
  111.                   <input id="Hidden1" style="width: 637px" type="hidden" /><br /><hr style="border-right: #5aae18 thin solid; border-top: #5aae18 thin solid; border-left: #5aae18 thin solid; border-bottom: #5aae18 thin solid" />
  112.         <asp:GridView ID="gvdocument" runat="server" Width="100%" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="ObjectDataSource2" BorderWidth="0px" BorderColor="#5AAE18" BorderStyle="Solid" OnRowDataBound="gvdocument_RowDataBound" >
  113.             <Columns>
  114.                 <asp:HyperLinkField DataNavigateUrlFields="doc_id" DataNavigateUrlFormatString="gw_documentinfo.aspx?docid={0}"
  115.                     DataTextField="doc_title" HeaderText="标题" />
  116.                 <asp:HyperLinkField HeaderText="催办" Text="催办" DataNavigateUrlFields="doc_title" DataNavigateUrlFormatString="gw_urge.aspx?mtitle={0}" />
  117.                 <asp:TemplateField HeaderText="接收对象" SortExpression="doc_dept_id">
  118.                     <EditItemTemplate>
  119.                         <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("doc_dept_id") %>'></asp:TextBox>
  120.                     </EditItemTemplate>
  121.                     <ItemTemplate>
  122.                         <asp:Label ID="Label1" runat="server" Text='<%# Eval("department.dept_department") %>'></asp:Label>
  123.                     </ItemTemplate>
  124.                 </asp:TemplateField>
  125.                 <asp:TemplateField HeaderText="点击" SortExpression="doc_clicks">
  126.                     <ItemTemplate>
  127.                         点击:<asp:Label ID="Label2" ForeColor="red" runat="server" Text='<%# Bind("doc_clicks") %>'></asp:Label>次
  128.                         &nbsp;&nbsp;&nbsp;&nbsp;阅读:<asp:Label ID="Label3" ForeColor="red" runat="server" Text='<%# Bind("doc_reads") %>'></asp:Label>次
  129.                     </ItemTemplate>
  130.                 </asp:TemplateField>
  131.                 <asp:BoundField DataField="doc_releasetime" HeaderText="时间" SortExpression="doc_releasetime" />
  132.                 <asp:HyperLinkField HeaderText="删除" Text="删除" DataNavigateUrlFields="doc_id" DataNavigateUrlFormatString="gw_delectdocument.aspx?docid={0}" />
  133.             </Columns>
  134.             <RowStyle BorderColor="#5AAE18" />
  135.         </asp:GridView>
  136.                   
  137.               </ContentTemplate>
  138.           </asp:UpdatePanel>
  139.     </tr>    
  140.     
  141.   </table>
  142.   </form>
  143.     <p><img alt=""  src="../images/sj/up.gif" width="17" height="12"/><a href="javascript:history.go(-1)">返 回</a></p>
  144.     <p>
  145.         &nbsp;</p>
  146.     <p>
  147.         <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Select"
  148.             TypeName="COM.OA.BLL.departmentBLL"></asp:ObjectDataSource>
  149.         <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="Select"
  150.             TypeName="COM.OA.BLL.documentBLL">
  151.             <SelectParameters>
  152.                 <asp:Parameter DefaultValue="doc_dept_id" Name="foreignFieldName" Type="String" />
  153.                 <asp:ControlParameter ControlID="DropDownList1" DefaultValue="1" Name="foreignFieldValue"
  154.                     PropertyName="SelectedValue" Type="Int32" />
  155.                 <asp:Parameter DefaultValue="true" Name="bParentTable" Type="Boolean" />
  156.                 <asp:Parameter DefaultValue="false" Name="bChildrenTable" Type="Boolean" />
  157.             </SelectParameters>
  158.         </asp:ObjectDataSource>
  159.         &nbsp;&nbsp;</p>
  160. </div>
  161. </body>
  162. </html>