NewDocument.aspx
资源名称:OA_at.rar [点击查看]
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:5k
源码类别:
OA系统
开发平台:
C#
- <%@ Page language="c#" Codebehind="NewDocument.aspx.cs" AutoEventWireup="false" validateRequest=false Inherits="OA.NewDocument" %>
- <%@ Register TagPrefix="uc1" TagName="Mymenu" Src="MENU/Mymenu.ascx" %>
- <%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>安泰自动办公系统</title>
- <style type="text/css">TABLE { FONT-SIZE: 9pt }
- BODY { FONT-SIZE: 9pt }
- </style>
- <LINK href="baseStyle.css" type="text/css" rel="stylesheet">
- <LINK href="MENU/menuStyle.css" type="text/css" rel="stylesheet">
- <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
- <meta content="C#" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- <script language="javascript">
- function SelectAccepter_onclick()
- {
- var obs = document.all.tags("INPUT");
- for (var i=0; i < obs.length; i++)
- {
- if(obs[i].type =="radio"&obs[i].checked==true)
- {
- var str = obs[i].value;
- if(str=="0")
- {
- var BackValue = window.showModalDialog("SelectAccepter.aspx","","scroll:0;status:0;help:0;resizable:0;dialogWidth:400px;dialogHeight:380px")
- if(BackValue != null)
- {
- document.all.Accepter.value=BackValue["name"];
- document.all.AccepterID.value=BackValue["id"];
- }
- }
- else
- {
- var BackValue = window.showModalDialog("SelectCheck.aspx","","scroll:0;status:0;help:0;resizable:0;dialogWidth:400px;dialogHeight:380px")
- if(BackValue != null)
- {
- document.all.Accepter.value=BackValue["name"];
- document.all.AccepterID.value=BackValue["id"];
- }
- if(BackValue["name"].length<5){
- alert("只有一个对象不能采用流程审批方式,请采用平行发送!")
- obs[i-1].checked=true
- }
- }
- }
- }
- }
- </script>
- </HEAD>
- <body topMargin="5" oncontextmenu='return false'>
- <form id="Form1" method="post" runat="server">
- <uc1:mymenu id="Mymenu1" runat="server" MenuData="MENU/MenuData.xml"></uc1:mymenu>
- <TABLE id="Table1" height="80%" cellSpacing="1" cellPadding="1" width="90%" align="center"
- bgColor="#f0f8ff" border="1">
- <TR>
- <TH style="BORDER-RIGHT: #ccccff thin outset; BORDER-TOP: #ccccff thin outset; BORDER-LEFT: #ccccff thin outset; BORDER-BOTTOM: #ccccff thin outset; HEIGHT: 25px; BACKGROUND-COLOR: #99ccff"
- align="center" bgColor="background" colSpan="3">
- <P dir="ltr" style="FONT-WEIGHT: bold; COLOR: white; MARGIN-RIGHT: 0px; FONT-FAMILY: 宋体, 黑体"
- align="center">发送新文档</P>
- </TH>
- </TR>
- <TR>
- <TD style="WIDTH: 100px; HEIGHT: 20px" align="center"><FONT face="宋体"></FONT></TD>
- <TD style="HEIGHT: 20px" vAlign="middle" align="center" colSpan="2"><asp:radiobuttonlist id="RadioButtonList1" runat="server" Width="385px" RepeatDirection="Horizontal">
- <asp:ListItem Value="0" Selected="True">选择平行发送</asp:ListItem>
- <asp:ListItem Value="选择流程审阅">选择流程审阅</asp:ListItem>
- </asp:radiobuttonlist></TD>
- </TR>
- <TR>
- <TD style="WIDTH: 100px" align="center" height="25">发送到:</TD>
- <TD style="PADDING-LEFT: 40px; WIDTH: 450px" vAlign="middle" align="left" height="25"><asp:textbox id="Accepter" runat="server" Width="412px" Height="25px" ReadOnly="True"></asp:textbox><INPUT id="AccepterID" type="hidden" runat="server"></TD>
- <TD align="left" width="25%" height="25"><INPUT onclick="SelectAccepter_onclick()" type="button" value="浏览...">
- <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="Accepter" ErrorMessage="*"></asp:requiredfieldvalidator></TD>
- </TR>
- <TR>
- <TD style="WIDTH: 100px" align="center" height="25"><FONT face="宋体">标 题:</FONT></TD>
- <TD style="PADDING-LEFT: 40px" vAlign="middle" align="left" colSpan="2" height="25"><FONT face="宋体"><asp:textbox id="Title" runat="server" Width="412px" Height="25px"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ControlToValidate="Title" ErrorMessage="*"></asp:requiredfieldvalidator></FONT></TD>
- </TR>
- <TR>
- <TD style="WIDTH: 100px; HEIGHT: 80%" align="center">内 容:</TD>
- <TD style="HEIGHT: 100%" align="center" colSpan="2"><FTB:FREETEXTBOX id="FreeTextBox1" runat="server" Width="100%" Height="100%" AllowHtmlMode="False"
- AutoConfigure="EnableAll" BackColor="Control" GutterBackColor="Control" ToolbarType="Office2003"></FTB:FREETEXTBOX></TD>
- </TR>
- <TR>
- <TD style="HEIGHT: 30px" align="center" colSpan="3">
- <P><INPUT id="Send" onclick="javascript:if(document.frames['FreeTextBox1_editor'].document.body.innerHtml=='')alert('你的文档内容是空的!');"
- type="button" value="发送" name="Send" runat="server"><INPUT id="Reset" onclick="javascript:document.all.Accepter.value='';document.all.Title.value='';document.frames['FreeTextBox1_editor'].document.body.innerText='';"
- type="button" value="取消" CausesValidation="False"></P>
- </TD>
- </TR>
- </TABLE>
- </form>
- </body>
- </HTML>