📄 gw_senddocument.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="gw_senddocument.aspx.cs" Inherits="gw_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 runat="server">
<title>公文传输系统</title>
<link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
<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">
<!--
body {
margin-top: 2px;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<script language="javascript" type="text/javascript">
// <!CDATA[
function btnAdd_onclick() {
var name = document.getElementById("ddlname").value;
document.getElementById("tboxperson").value=name;
}
function Reset1_onclick() {
document.getElementById("tboxperson").value=" ";
}
function Reset2_onclick() {
document.getElementById("tboxdept").value=" ";
}
function check(){
if(document.getElementById("tboxperson").value=="")
{
alert("接收人不能为空!");return false;
}
if(document.getElementById("tboxdept").value=="")
{
alert("接收部门不能为空!");return false;
}
if(document.getElementById("txttitle").value=="")
{
alert("标题不能为空!");return false;
}
if(document.getElementById("fileUpload1").value=="")
{
alert("请选择您要传送的公文!");return false;
}
}
// ]]>
</script>
<script type="text/javascript" language="javascript">
function submit_onclick() {
var x = document.getElementById("form2");
var cmd = document.getElementById("cmd").value;
x.action="gw_selectlike.aspx?cmd="+cmd;
document.myform.submit();
}
function selectlist()
{
var selet1 = document.getElementById("DropDownList1").value;
document.getElementById("tboxdept").value=selet1;
}
</script>
</head>
<body>
<form id="form2" name="myform">
<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">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<table align="center" width="100%" cellpadding="0" border="0" cellspacing="0" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" >
<tr><td colspan="2" style="height: 15px; width: 836px;" ><div class="RoundedCorner"><div align="center">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<span class="style1">公 文 传 输 系 统</span></div></div></td></tr>
<tr><td colspan="2" style="width: 836px">
<table cellpadding="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: 99.9%;" >
<tr><td style="width: 102px; text-align: right; height: 36px;">
选择接收人:</td>
<td style="width: 695px; text-align: left; height: 36px;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddldepartment" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1" DataTextField="dept_department" DataValueField="dept_id" OnSelectedIndexChanged="ddldepartment_SelectedIndexChanged">
<asp:ListItem Value="0">请选择部门</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlname" runat="server">
<asp:ListItem Value="0">请选择对象</asp:ListItem>
</asp:DropDownList>
<input id="btnAdd" type="button" value="增加" onclick="return btnAdd_onclick()" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr><td style="width: 102px; text-align: right; height: 61px;">接收人:</td>
<td style="width: 695px; text-align: left; height: 61px;">
<br />
<asp:TextBox ID="tboxperson" runat="server" TextMode="MultiLine" Width="434px" Height="54px"></asp:TextBox>
<input
id="Reset1" type="reset" value="清除" onclick="return Reset1_onclick()" /></td>
</tr>
<tr><td style="width: 102px; text-align: right; height: 20px;">
接收部门:</td>
<td style="width: 695px; text-align: left; height: 20px;" >
<br />
<img alt="" src="../images/sj/f_icon2.gif" width="18" height="16"/>
<asp:DropDownList
ID="DropDownList1" runat="server" DataSourceID="ObjectDataSource2" DataTextField="dept_department"
DataValueField="dept_department" onchange="selectlist()">
</asp:DropDownList>
</td>
</tr>
<tr><td style="width: 102px; height: 68px;"></td>
<td style="width: 695px; text-align: left; height: 68px;">
<br />
<asp:TextBox ID="tboxdept" runat="server" TextMode="MultiLine" Width="434px" Height="54px" ></asp:TextBox>
<input id="Reset2" type="reset" value="清除" onclick="return Reset2_onclick()" /></td>
</tr>
<tr><td style="height: 56px; text-align: right; width: 102px;">标题:</td>
<td style="height: 56px; width: 695px; text-align: left;">
<asp:TextBox ID="txttitle" runat="server" Width="308px"></asp:TextBox></td>
</tr>
<tr><td style="height: 52px; text-align: right; width: 102px;"><img alt="" src="../images/111.gif" /></td>
<td style="height: 52px; width: 695px; text-align: left;">
<asp:FileUpload ID="fileUpload1" runat="server" Width="404px" /></td></tr>
<tr><td style="width: 102px; height: 105px; text-align: right">
<%
COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
if (loginuser == null)
{
Response.Write("<script language='javascript'>parent.document.location.href='../login.aspx'</script>");
return;
}
string username = loginuser.u_username;
%>
<input id="txtusername" name="txtusername" type="hidden" value="<%=username %>" />
<% string d = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); %>
<input id="txtsendtime" name="txtsendtime" type="hidden" value="<%=d %>" />
</td>
<td style="width: 695px; height: 105px; text-align: left">
<asp:Button ID="btnUpload" runat="server" Text="发送" OnClick="btnUpload_Click" />
<input id="Reset3" type="reset" value="清空" />
<input id="Button1" type="button" onclick="javascript:history.go(-1)" value="取消" /></td>
</tr>
</table>
</td></tr>
</table>
</form>
</div>
<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.departmentBLL"></asp:ObjectDataSource>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -