⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 savedocument.aspx

📁 很不错的公文流转系统
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
function WebInsertFile(){
  webform.WebOffice.WebSetMsgByName("COMMAND","INSERTFILE");
  webform.WebOffice.Template="模板一.doc";
  if (webform.WebOffice.WebLoadTemplate()){
     if (webform.WebOffice.WebInsertFile()){
       alert("成功");
     }else{
       StatusMsg(webform.WebOffice.Status);
     }
  }else{
     StatusMsg(webform.WebOffice.Status);
  }
}

function WebUpdateFile(){
  if (webform.WebOffice.WebUpdateFile()){
     StatusMsg(webform.WebOffice.Status);
  }else{
     StatusMsg(webform.WebOffice.Status);
  }
}

function WebInportText(){
    var mText;
    webform.WebOffice.WebSetMsgByName("COMMAND","INPORTTEXT");
    if (webform.WebOffice.WebSendMessage()){
      mText=webform.WebOffice.WebGetMsgByName("CONTENT");
      webform.WebOffice.WebObject.Application.Selection.Range.InsertAfter(mText);
      alert("导入文本成功");
    }
    StatusMsg(webform.WebOffice.Status);
}


function WebExportText(){
    var mText=webform.WebOffice.WebObject.Content.Text;
    webform.WebOffice.WebSetMsgByName("COMMAND","EXPORTTEXT");
    webform.WebOffice.WebSetMsgByName("CONTENT",mText);
    if (webform.WebOffice.WebSendMessage()){
      alert("导出文本成功");
    }
    StatusMsg(webform.WebOffice.Status);
}
function save()
{
  webform.action ="save.aspx";
  webform.submit ();

}
</script>
	</HEAD>
	<body onload="Load()" onunload="UnLoad()">
		<div align="center">
			
<form name="webform" method="post" >
<input type=hidden name=RecordID value="<%=mRecordID%>">
<input type=hidden name=Template value="<%=mTemplate%>">
<input type=hidden name=FileType value="<%=mFileType%>">
<input type=hidden name=EditType value="<%=mEditType%>">
<input type=hidden name=HTMLPath value="<%=mHTMLPath%>">
				<table width="90%" border="0">
					<tr>
						<td bgcolor="#fbe3b5"><table width="27%" border="0">
								<tr>
									<td width="42%" height="24" class="titlebar"><img src="../images/mingpianguanli.gif" width="16" height="16">&nbsp;详细信息</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<table width="90%" border="0" cellpadding="0" cellspacing="0" bgcolor="#fafad2" class="tableframe">
					<!--DWLayoutTable-->
					<tr bgcolor="#fafad2">
						<td width="66" height="19"><div align="right">标题:</div>
						</td>
						<td width="88"><% =PTitle %></td>
						<td width="78"><div align="right">来文时间:</div>
						</td>
						<td width="72"><% =PSendDate %></td>
						<td width="78"><div align="right">密级:</div>
						</td>
						<td width="78"><% =Psecretgreadname %></td>
					</tr>
				</table>
				<table width="90%" border="0" cellpadding="0" cellspacing="0" class="tableframe">
					<!--DWLayoutTable-->
					<tr bgcolor="#fffaf0">
						<td width="66" height="16"><div align="right">文档类型:</div>
						</td>
						<td width="88"><% =Pdocumenttypename %></td>
						<td width="78"><div align="right">紧急程度:</div>
						</td>
						<td width="72"><% =Pexigencedegreename%></td>
						<td width="78"><div align="right">作者</div>
						</td>
						<td width="78"><%=mAuthor%></td>
					</tr>
				</table>
				<table width="90%" border="0" cellpadding="0" cellspacing="0" class="tableframe">
					<!--DWLayoutTable-->
					<tr>
					
					<td height =500>
					<!-- word begin -->

					<table border=0  cellspacing='0' cellpadding='0' width=100% height=100% align=center class=TBStyle>
<!--
<tr>
  <td align=right class="TDTitleStyle" width=64>主题</td>
  <td class="TDStyle"><input type=text name=Subject value="<% //=mSubject%>" class="IptStyle"  ></td>
</tr>

<tr>
  <td align=right class="TDTitleStyle" width=64>作者</td>
  <td class="TDStyle"><input type=text name=Author value="<%// =mAuthor%>" class="IptStyle"></td>
</tr>

<tr>
  <td align=right class="TDTitleStyle" width=64>时间</td>
  <td class="TDStyle"><input type=text name=FileDate value="<% //=mFileDate%>" readonly class="IptStyle"></td>
</tr>
-->
<tr>
  <!--td align=right valign=top  class="TDTitleStyle" width=64>内容</td-->
  <td align=right valign=top  class="TDTitleStyle"  height=90% >
  <asp:Panel id="Panel1"  runat="server">
  <br>功能列表<br>
                 <input type=button class=button name="Revision"  value="隐藏痕迹" <%=mDisabled%> onclick="ShowRevision(this)">
                 <input type=button class=button value="签名印章" <%=mDisabled%> onclick="WebOpenSignature()">
                 <input type=button class=button value="显示签名" <%=mDisabled%> onclick="WebShowSignature()">
                 <input type=button class=button value="验证签名" <%=mDisabled%> onclick="WebCheckSignature()">
                 <input type=button class=button value="保存版本" <%=mDisabled%> onclick="WebSaveVersion()">
                 <input type=button class=button value="打开版本" <%=mDisabled%> onclick="WebOpenVersion()">
                 <input type=button class=button value="刷新文档" <%=mDisabled%> onclick="WebFocus()">
                 <input type=button class=button value="页面设置" <%=mDisabled%> onclick="WebOpenPageSetup()">
                 <input type=button class=button value="打印文档" <%=mDisabled%> onclick="WebOpenPrint()">
                 <input type=button class=button value="插入图片" <%=mDisabled%> onclick="WebOpenPicture()">
                 <input type=button class=button value="标签管理" <%=mDisabled%> onclick="WebOpenBookMarks()">
                 <input type=button class=button value="填充模版" <%=mDisabled%> onclick="LoadBookmarks()">
                 <input type=button class=button value="存为HTML" <%=mDisabled%> onclick="WebSaveAsHtml()">
                 <input type=button class=button value="重调文档" <%=mDisabled%> onclick="LoadDocument()">
                 <input type=button class=button value="打开本地文件" <%=mDisabled%> onclick="WebOpenLocal()">
                 <input type=button class=button value="存为本地文件" <%=mDisabled%> onclick="WebSaveLocal()">
				VBA调用
                 <input type=button class=button value="取Word内容" <%=mDisabled%>  <%=mWord%>  onclick="WebGetWordContent()">
                 <input type=button class=button value="写Word内容" <%=mDisabled%>   <%=mWord%> onclick="WebSetWordContent()">
                 <input type=button class=button value="用Excel求和" <%=mDisabled%>  <%=mExcel%> onclick="WebGetExcelContent()">
				工具栏
                 <input type=button class=button value="关闭常用工具" <%=mDisabled%>  onclick="WebToolsVisible('Standard',false)">
                 <input type=button class=button value="关闭格式工具" <%=mDisabled%>  onclick="WebToolsVisible('Formatting',false)">
                 <input type=button class=button value="关闭审阅按钮" <%=mDisabled%>  onclick="WebToolsVisible('Reviewing',false)">
                 <input type=button class=button value="打开审阅按钮" <%=mDisabled%>  onclick="WebToolsVisible('Reviewing',true)">
                 <input type=button class=button value="关闭打印按钮" <%=mDisabled%>  onclick="WebToolsEnable('Standard',2521,false)">
                 <input type=button class=button value="打开打印按钮" <%=mDisabled%>  onclick="WebToolsEnable('Standard',2521,true)">
                
				其他调用
                 <input type=button class=button value="插入页眉" <%=mDisabled%> <%=mWord%> onclick="webform.WebOffice.WebObject.ActiveWindow.ActivePane.View.SeekView=9;">
                 <input type=button class=button value="插入页码" <%=mDisabled%> <%=mWord%> onclick="webform.WebOffice.WebObject.Application.Dialogs(294).Show();">
                 <input type=button class=button value="插入字符" <%=mDisabled%> <%=mWord%> onclick="webform.WebOffice.WebObject.Application.Dialogs(162).Show();">
                 <input type=button class=button value="插入目录" <%=mDisabled%> <%=mWord%> onclick="webform.WebOffice.WebObject.Application.Dialogs(171).Show();">
                 <input type=button class=button value="插入表格" <%=mDisabled%> <%=mWord%> onclick="webform.WebOffice.WebObject.Application.Dialogs(129).Show();">
                 <input type=button class=button value="套用模版定稿" <%=mDisabled%> <%=mWord%> onclick="WebInsertFile()">
                 <input type=button class=button value="清除痕迹定稿" <%=mDisabled%> <%=mWord%> onclick="webform.WebOffice.WebObject.Application.ActiveDocument.AcceptAllRevisions();">
                 <input type=button class=button value="保存定稿文件" <%=mDisabled%> <%=mWord%> onclick="WebUpdateFile()">
                 <input type=button class=button value="导入Text" <%=mDisabled%> <%=mWord%> onclick="WebInportText();">
                 <input type=button class=button value="导出Text" <%=mDisabled%> <%=mWord%> onclick="WebExportText();">
</asp:Panel>                 
  </td>

  <td class="TDStyle" height=90% >
        <table border=0 cellspacing='0' cellpadding='0' width='100%' height='100%' >
        <tr>
          <td bgcolor=menu >
            <OBJECT id="WebOffice" width="100%" height="100%" classid="clsid:23739A7E-5741-4D1C-88D5-D50B18F7C347"  VIEWASTEXT VIEWASTEXT>
            </OBJECT>
          </td>
        </tr>
        <tr>
          <td bgcolor=menu height='20'>
		<div id=StatusBar>状态栏</div>
          </td>
        </tr>
        </table>
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </table> 
 <table class="tableframe" cellSpacing="0" cellPadding="0" width="100%" border="0">
								<!--DWLayoutTable-->
								<tr>
									<td vAlign="top" width="100%">
										<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD colSpan="2">
													<div align="center">
													<input type=radio  name =ifagree value="同意">同意
													<input type=radio  name =ifagree value="不同意">不同意
													
													</div>
												</TD>
											</TR>
											<TR>
												<TD><FONT face="宋体">意见:</FONT></TD>
												<TD><FONT face="宋体">
												<textarea id =ider name=ider style="Widt:491px ;height:104px"> </textarea>
												</FONT></TD>
											</TR>
											<TR>
												<TD style="HEIGHT: 17px"></TD>
												<TD style="HEIGHT: 17px"></TD>
											</TR>
											<TR>
												<TD colSpan="2">
													<div align="center"><input type =image  src="../images/qd.gif" onclick=save()></div>
												</TD>
											</TR>
											<tr>
												<td colSpan="2">
													<div align="right"><a href="#" onclick="backFun()"><img src="../images/back1.gif" border="0"></a></div>
												</td>
											</tr>
										</TABLE>
									</td>
								</tr>
							</table>
<table width =60% >
<tr>
<td align=center >

<input type=button value="  确定  " onclick="history.back()"> 

  </td>
</tr>
</table>
					
					<!-- word end  -->
				
		<input type=hidden name ="documentid" value =<% =mRecordID%>>
		
		</FORM>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -