📄 docdetail.aspx
字号:
function WebGetWordContent(){
try{
alert(webform.WebOffice.WebObj.Content.Text);
}catch(e){}
}
function WebSetWordContent(){
var mText=window.prompt("请输入内容:","测试内容");
if (mText==null){
return (false);
}
else
{
//下面为显示选中的文本
//alert(webform.WebOffice.WebObj.Application.Selection.Range.Text);
//下面为在当前光标出插入文本
webform.WebOffice.WebObj.Application.Selection.Range.InsertAfter (mText+"\n");
//下面为在第一段后插入文本
//webform.WebOffice.WebObj.Application.ActiveDocument.Range(1).InsertAfter(mText);
}
}
function WebGetExcelContent(){
webform.WebOffice.WebObj.Application.Sheets(1).Select;
webform.WebOffice.WebObj.Application.Range("C5").Select;
webform.WebOffice.WebObj.Application.ActiveCell.FormulaR1C1 = "126";
webform.WebOffice.WebObj.Application.Range("C6").Select;
webform.WebOffice.WebObj.Application.ActiveCell.FormulaR1C1 = "446";
webform.WebOffice.WebObj.Application.Range("C7").Select;
webform.WebOffice.WebObj.Application.ActiveCell.FormulaR1C1 = "556";
webform.WebOffice.WebObj.Application.Range("C5:C8").Select;
webform.WebOffice.WebObj.Application.Range("C8").Activate;
webform.WebOffice.WebObj.Application.ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)";
webform.WebOffice.WebObj.Application.Range("D8").Select;
alert(webform.WebOffice.WebObj.Application.Range("C8").Text);
}
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);
}
</script>
</HEAD>
<body bgcolor="#ffffff" onload="Load()" onunload="UnLoad()" MS_POSITIONING="GridLayout">
<form name="webform" method="post" action="DocumentSave.aspx" onsubmit="return SaveDocument();">
<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="100%">
<tr>
<td>
<table border="1" cellspacing='0' cellpadding='0' width="100%" align="left" class="TBStyle">
<tr>
<td class="TDTitleStyle" colspan="4" bgcolor="#ffff99"> 公文属性</td>
</tr>
<tr>
<td align="right" class="TDTitleStyle" width="10%">主题:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_Title" runat="server"></asp:Label></td>
<td align="right" class="TDTitleStyle" width="10%">作者:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_Author" runat="server"></asp:Label></td>
</tr>
<tr bgcolor=FloralWhite>
<td align="right" class="TDTitleStyle" width="10%">起草单位:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_DraftDepartment" runat="server"></asp:Label></td>
<td align="right" class="TDTitleStyle" width="10%">发送单位:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_SendDepartment" runat="server"></asp:Label></td>
</tr>
<tr>
<td align="right" class="TDTitleStyle" width="10%">公文类别:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_DocumentType" runat="server"></asp:Label></td>
<td align="right" class="TDTitleStyle" width="10%">公文类型:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_DocumentTypeName" runat="server"></asp:Label></td>
</tr>
<tr bgcolor=FloralWhite>
<td align="right" class="TDTitleStyle" width="10%">密级:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_SecretGreadName" runat="server"></asp:Label></td>
<td align="right" class="TDTitleStyle" width="10%">紧急程度:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_ExigenceDegreeName" runat="server"></asp:Label></td>
</tr>
<tr>
<td align="right" class="TDTitleStyle" width="10%">主送单位:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_MainSendComp" runat="server"></asp:Label></td>
<td align="right" class="TDTitleStyle" width="10%">抄送单位:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_CopySendComp" runat="server"></asp:Label></td>
</tr>
<tr bgcolor=FloralWhite>
<td align="right" class="TDTitleStyle" width="10%">流程:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_StreamName" runat="server"></asp:Label></td>
<td align="right" class="TDTitleStyle" width="10%">时间:</td>
<td class="TDStyle" width="40%"> <asp:Label id="Lbl_Time" runat="server"></asp:Label></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="1" cellspacing='0' cellpadding='0' width="100%" height="600" align="left"
class="TBStyle">
<tr>
<td class="TDTitleStyle" colspan="2" bgcolor="#ffff99"> 公文内容</td>
</tr>
<tr>
<!--td align=right valign=top class="TDTitleStyle" width=64>内容</td-->
<td align="right" class="TDTitleStyle" height="600">
<asp:Panel id="Panel1" runat="server"></asp:Panel>
</td>
<td class="TDStyle" height="600" width="100%">
<table border="0" cellspacing='0' cellpadding='0' width='100%' height="600">
<tr>
<td bgcolor="menu">
<OBJECT height="100%" width="100%" classid=clsid:3010A4BD-B471-4146-95D8-4927D5C5C79F codebase="../FairyWebOfficeOcx.ocx" name=WebOffice VIEWASTEXT>
<PARAM NAME="Visible" VALUE="0">
<PARAM NAME="AutoScroll" VALUE="0">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AxBorderStyle" VALUE="1">
<PARAM NAME="Caption" VALUE="FairyWebOffice">
<PARAM NAME="Color" VALUE="2147483663">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="KeyPreview" VALUE="0">
<PARAM NAME="PixelsPerInch" VALUE="96">
<PARAM NAME="PrintScale" VALUE="1">
<PARAM NAME="Scaled" VALUE="-1">
<PARAM NAME="DropTarget" VALUE="0">
<PARAM NAME="HelpFile" VALUE="">
<PARAM NAME="DoubleBuffered" VALUE="0">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="Cursor" VALUE="0">
<PARAM NAME="HelpType" VALUE="0">
<PARAM NAME="HelpKeyword" VALUE="">
<PARAM NAME="ServerPath" VALUE="">
<PARAM NAME="RecordID" VALUE="">
<PARAM NAME="Template" VALUE="">
<PARAM NAME="FileName" VALUE="">
<PARAM NAME="FileType" VALUE="">
<PARAM NAME="EditType" VALUE="0">
<PARAM NAME="UserName" VALUE="">
<PARAM NAME="Model" VALUE="0">
<PARAM NAME="Status" VALUE="">
</OBJECT>
</td>
</tr>
<tr>
<td bgcolor="menu" height='20'>
<div id="StatusBar">状态栏</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td>
<TABLE cellSpacing="0" cellPadding="0" width="58" align="right" border="0">
<TBODY>
<TR>
<TD width="5"><!--<IMG height="21" src="../images/button_left.gif" width="5" border="0"></TD>
<TD class="button" noWrap background="../images/button_bg.gif">-->
<% =displaychangeuser%>
<!--</TD>
<TD width="14"><IMG height="21" src="../images/button_right.gif" width="5" border="0">--></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="58" align="right" border="0">
<TBODY>
<TR>
<TD ></TD>
<TD class="button" noWrap ><a href="../desktop/StreamDetail.aspx?DocumentID=<% =NDoc%>"><img src=../images/viewnew.gif border=0></a></TD>
<TD ></TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
</table>
<table id="TableIdea" border="1" cellspacing='0' cellpadding='0' width="100%" align="center"
class="TBStyle">
<tr width="100%">
<td class="TDTitleStyle" colspan="4" bgcolor="#ffff99" width="100%"> 公文处理意见</td>
</tr>
<tr>
<asp:Label id="Lbl_Content" runat="server"></asp:Label>
<tr>
<td colspan="4">
<div align="right">
<!--<a href="#" onclick=WebSaveLocalNoMark()><img src="../images/bc.gif" alt="保存正式公文" border="0"></a>-->
<a href="#" onclick=WebSaveLocalWithMark()><img src="../images/bchj.gif" alt="保存草稿" border="0"></a>
<a href="#" onclick="backFun()"><img src="../images/back1.gif" border="0"></a></div>
</td>
</tr>
</table>
<div id="menu" style=" position:absolute;visibility:hidden;top:184px;left:8px;width:100%; height::20px; background-color::red">
<table id=table1 border="=0" cellpadding="0"; cellspacing="0">
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<iframe src="javascript:false" style="position::absolute; visibility:inherit;top:0px;left:8px;width:100%;height:20px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';">
</iframe>
</div>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -