gw_sendnote.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:8k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="gw_sendnote.aspx.cs" Inherits="senddocument" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head>
- <title>已发公文</title>
- <style type="text/css">
- div.RoundedCorner{background: #5AAE18}
- b.rtop, b.rbottom{display:block;background: #FFF}
- b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18}
- b.r1{margin: 0 4px}
- b.r2{margin: 0 3px}
- b.r3{margin: 0 2px}
- b.rtop b.r4, {margin: 0 1px;height: 1px}
- .style1 {
- font-size: 13px;
- color: #FFFFFF;
- font-weight: bold;
- }
- </style>
- <style type="text/css">
- <!--
- .style2 {font-size: 12px}
- -->
- </style>
- <link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
- <style type="text/css">
- <!--
- .style6 {
- color: #FFFFFF;
- font-weight: bold;
- }
- .style5 {color: #FFFFFF}
- .style13 {color: #5AAE18; font-weight: bold; }
- .style15 {color: #999999}
- .style16 {color: #5AAE18; font-weight: bold; font-size: 12px; }
- .style17 {color: #999999; font-size: 12px; }
- .style19 {font-size: 13px}
- body {
- margin-top: 2px;
- }
- .style14 {color: #FF0000}
- .style20 {color: #5AAE18}
- -->
- </style>
- <script type="text/javascript">
- <!--
- function dis(){
- document.form1.submit.value=' 查询..'
- document.form1.submit.disabled=true;
- return true;
- }
- function check() {
- if (document.form1.q.value=="") {
- window.alert ("请输入查询关键词!")
- document.form1.q.focus()
- return false
- }
- else
- document.form1.submit();
- return true
- }
- //-->
- function submit_onclick() {
- var x = document.getElementById("form2");
- var cmd = document.getElementById("cmd").value;
- x.action="gw_selectlike.aspx?cmd="+cmd;
- document.myform.submit();
- }
- </script>
- </head>
- <body>
- <form id="form2" name="myform" action="">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="72%" style="height: 28px"><div align="right">
- <input name="cmd" id="cmd" type="text"/>
- <input name="button" type="button" id="button" style="FONT-SIZE: 12px; HEIGHT: 27px" value=" 查 询 " onclick="return submit_onclick()"/>
- </div></td>
- <td width="2%" style="height: 28px"> </td>
- <td width="3%" style="height: 28px"><div align="center"><img alt="" src="../images/sj/face1.gif" width="16" height="14"/></div></td>
- <td width="6%" style="height: 28px"><div align="center"><a href="gw_senddocument.aspx" target="mainFrame">发送公文</a></div></td>
- <td width="2%"><div align="center"><img alt="" src="../images/sj/gw.gif" width="20" height="18"/></div></td>
- <td width="6%"><div align="center"><a href="gw_takedocument.aspx">接收公文</a></div></td>
- <td width="3%" style="height: 28px"><div align="center"><img alt="" src="../images/sj/ico_msb.gif" width="18" height="18"/></div></td>
- <td width="6%" style="height: 28px"><div align="center"><a href="gw_sendnote.aspx">发送记录</a></div></td>
- </tr>
- </table>
- </form>
- <div align="center">
- <form id="form1" runat="server" action="">
- <asp:ScriptManager ID="ScriptManager1" runat="server">
- </asp:ScriptManager>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="6" height="21"><img src="../images/sj/leftlin1.gif" width="6" height="21"></td>
- <td width="936" bgcolor="#5AAE18"><div align="center">
- <div align="center" class="style1"><span class="style6"><strong>已 发 公 文</strong></span></div>
- <span class="style1"></span></div></td>
- <td width="6" height="21"><img src="../images/sj/rightlin1.gif" width="6" height="21"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#5AAE18">
- <tr bgcolor="#FFFFFF">
- <td colspan="8" align="left" style="height: 28px">
- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
- <ContentTemplate>
- 部门:
- <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1"
- DataTextField="dept_department" DataValueField="dept_id">
- </asp:DropDownList><span style="font-size: 9pt">
- (共<%=this.gvdocument.Rows.Count %>条记录)</span>
- <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" />
- <asp:GridView ID="gvdocument" runat="server" Width="100%" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="ObjectDataSource2" BorderWidth="0px" BorderColor="#5AAE18" BorderStyle="Solid" OnRowDataBound="gvdocument_RowDataBound" >
- <Columns>
- <asp:HyperLinkField DataNavigateUrlFields="doc_id" DataNavigateUrlFormatString="gw_documentinfo.aspx?docid={0}"
- DataTextField="doc_title" HeaderText="标题" />
- <asp:HyperLinkField HeaderText="催办" Text="催办" DataNavigateUrlFields="doc_title" DataNavigateUrlFormatString="gw_urge.aspx?mtitle={0}" />
- <asp:TemplateField HeaderText="接收对象" SortExpression="doc_dept_id">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("doc_dept_id") %>'></asp:TextBox>
- </EditItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label1" runat="server" Text='<%# Eval("department.dept_department") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="点击" SortExpression="doc_clicks">
- <ItemTemplate>
- 点击:<asp:Label ID="Label2" ForeColor="red" runat="server" Text='<%# Bind("doc_clicks") %>'></asp:Label>次
- 阅读:<asp:Label ID="Label3" ForeColor="red" runat="server" Text='<%# Bind("doc_reads") %>'></asp:Label>次
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="doc_releasetime" HeaderText="时间" SortExpression="doc_releasetime" />
- <asp:HyperLinkField HeaderText="删除" Text="删除" DataNavigateUrlFields="doc_id" DataNavigateUrlFormatString="gw_delectdocument.aspx?docid={0}" />
- </Columns>
- <RowStyle BorderColor="#5AAE18" />
- </asp:GridView>
- </ContentTemplate>
- </asp:UpdatePanel>
- </tr>
- </table>
- </form>
- <p><img alt="" src="../images/sj/up.gif" width="17" height="12"/><a href="javascript:history.go(-1)">返 回</a></p>
- <p>
- </p>
- <p>
- <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Select"
- TypeName="COM.OA.BLL.departmentBLL"></asp:ObjectDataSource>
- <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="Select"
- TypeName="COM.OA.BLL.documentBLL">
- <SelectParameters>
- <asp:Parameter DefaultValue="doc_dept_id" Name="foreignFieldName" Type="String" />
- <asp:ControlParameter ControlID="DropDownList1" DefaultValue="1" Name="foreignFieldValue"
- PropertyName="SelectedValue" Type="Int32" />
- <asp:Parameter DefaultValue="true" Name="bParentTable" Type="Boolean" />
- <asp:Parameter DefaultValue="false" Name="bChildrenTable" Type="Boolean" />
- </SelectParameters>
- </asp:ObjectDataSource>
- </p>
- </div>
- </body>
- </html>