NewDocument.aspx
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:5k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="NewDocument.aspx.cs" AutoEventWireup="false" validateRequest=false Inherits="OA.NewDocument" %>
  2. <%@ Register TagPrefix="uc1" TagName="Mymenu" Src="MENU/Mymenu.ascx" %>
  3. <%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  5. <HTML>
  6. <HEAD>
  7. <title>安泰自动办公系统</title>
  8. <style type="text/css">TABLE { FONT-SIZE: 9pt }
  9. BODY { FONT-SIZE: 9pt }
  10. </style>
  11. <LINK href="baseStyle.css" type="text/css" rel="stylesheet">
  12. <LINK href="MENU/menuStyle.css" type="text/css" rel="stylesheet">
  13. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  14. <meta content="C#" name="CODE_LANGUAGE">
  15. <meta content="JavaScript" name="vs_defaultClientScript">
  16. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  17. <script language="javascript">
  18. function SelectAccepter_onclick()
  19. {
  20. var obs = document.all.tags("INPUT");
  21.         for (var i=0; i < obs.length; i++)
  22.         {
  23. if(obs[i].type =="radio"&obs[i].checked==true)
  24. {
  25. var str = obs[i].value;
  26. if(str=="0")
  27. {
  28. var BackValue = window.showModalDialog("SelectAccepter.aspx","","scroll:0;status:0;help:0;resizable:0;dialogWidth:400px;dialogHeight:380px")
  29. if(BackValue != null)
  30. {
  31. document.all.Accepter.value=BackValue["name"];
  32. document.all.AccepterID.value=BackValue["id"];
  33. }
  34. }
  35. else
  36. {
  37. var BackValue = window.showModalDialog("SelectCheck.aspx","","scroll:0;status:0;help:0;resizable:0;dialogWidth:400px;dialogHeight:380px")
  38. if(BackValue != null)
  39. {
  40. document.all.Accepter.value=BackValue["name"];
  41. document.all.AccepterID.value=BackValue["id"];
  42. }
  43. if(BackValue["name"].length<5){
  44. alert("只有一个对象不能采用流程审批方式,请采用平行发送!")
  45. obs[i-1].checked=true
  46. }
  47. }
  48. }
  49.     }
  50.    }
  51. </script>
  52. </HEAD>
  53. <body topMargin="5" oncontextmenu='return false'>
  54. <form id="Form1" method="post" runat="server">
  55. <uc1:mymenu id="Mymenu1" runat="server" MenuData="MENU/MenuData.xml"></uc1:mymenu>
  56. <TABLE id="Table1" height="80%" cellSpacing="1" cellPadding="1" width="90%" align="center"
  57. bgColor="#f0f8ff" border="1">
  58. <TR>
  59. <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"
  60. align="center" bgColor="background" colSpan="3">
  61. <P dir="ltr" style="FONT-WEIGHT: bold; COLOR: white; MARGIN-RIGHT: 0px; FONT-FAMILY: 宋体, 黑体"
  62. align="center">发送新文档</P>
  63. </TH>
  64. </TR>
  65. <TR>
  66. <TD style="WIDTH: 100px; HEIGHT: 20px" align="center"><FONT face="宋体"></FONT></TD>
  67. <TD style="HEIGHT: 20px" vAlign="middle" align="center" colSpan="2"><asp:radiobuttonlist id="RadioButtonList1" runat="server" Width="385px" RepeatDirection="Horizontal">
  68. <asp:ListItem Value="0" Selected="True">选择平行发送</asp:ListItem>
  69. <asp:ListItem Value="选择流程审阅">选择流程审阅</asp:ListItem>
  70. </asp:radiobuttonlist></TD>
  71. </TR>
  72. <TR>
  73. <TD style="WIDTH: 100px" align="center" height="25">发送到:</TD>
  74. <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>
  75. <TD align="left" width="25%" height="25"><INPUT onclick="SelectAccepter_onclick()" type="button" value="浏览...">
  76. <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="Accepter" ErrorMessage="*"></asp:requiredfieldvalidator></TD>
  77. </TR>
  78. <TR>
  79. <TD style="WIDTH: 100px" align="center" height="25"><FONT face="宋体">标&nbsp; 题:</FONT></TD>
  80. <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>
  81. </TR>
  82. <TR>
  83. <TD style="WIDTH: 100px; HEIGHT: 80%" align="center">内&nbsp; 容:</TD>
  84. <TD style="HEIGHT: 100%" align="center" colSpan="2"><FTB:FREETEXTBOX id="FreeTextBox1" runat="server" Width="100%" Height="100%" AllowHtmlMode="False"
  85. AutoConfigure="EnableAll" BackColor="Control" GutterBackColor="Control" ToolbarType="Office2003"></FTB:FREETEXTBOX></TD>
  86. </TR>
  87. <TR>
  88. <TD style="HEIGHT: 30px" align="center" colSpan="3">
  89. <P><INPUT id="Send" onclick="javascript:if(document.frames['FreeTextBox1_editor'].document.body.innerHtml=='')alert('你的文档内容是空的!');"
  90. 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='';"
  91. type="button" value="取消" CausesValidation="False"></P>
  92. </TD>
  93. </TR>
  94. </TABLE>
  95. </form>
  96. </body>
  97. </HTML>