📄 transactdocument.aspx
字号:
function WebToolsVisible(ToolName,Visible){
try{
webform.WebOffice.WebToolsVisible(ToolName,Visible);
StatusMsg(webform.WebOffice.Status);
}catch(e){}
}
function WebToolsEnable(ToolName,ToolIndex,Enable){
try{
webform.WebOffice.WebToolsEnable(ToolName,ToolIndex,Enable);
StatusMsg(webform.WebOffice.Status);
}catch(e){}
}
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%" class="tableframe">
<tr>
<td>
<table border="1" cellspacing='0' cellpadding='0' width="100%" align="left" class="tableframe">
<tr>
<td colspan="4" bgcolor="lightgoldenrodyellow"> 公文属性</td>
</tr>
<tr>
<td align="right" width="20%">标题:</td>
<td width="80%" colspan="3"> <asp:Label id="Lbl_Title" runat="server"></asp:Label></td>
</tr>
<tr bgcolor="#fffaf0">
<td align="right" width="10%" style="HEIGHT: 20px" bgColor="floralwhite">起草人:</td>
<td width="40%" style="HEIGHT: 20px" bgColor="floralwhite"> <asp:Label id="Lbl_DraftDepartment" runat="server"></asp:Label></td>
<td align="right" width="10%" style="HEIGHT: 20px" bgColor="floralwhite">起草时间:</td>
<td width="40%" style="HEIGHT: 20px" bgColor="floralwhite"> <asp:Label id="Lbl_Time" runat="server"></asp:Label><asp:Label id="Lbl_SendDepartment" Width=0 runat="server"></asp:Label></td>
</tr>
<tr>
<td align="right" width="10%">公文类别:</td>
<td width="40%"> <asp:Label id="Lbl_DocumentType" runat="server"></asp:Label></td>
<td align="right" width="10%">公文类型:</td>
<td width="40%"> <asp:Label id="Lbl_DocumentTypeName" runat="server"></asp:Label></td>
</tr>
<tr bgcolor="#f0a000">
<td align="right" width="10%" bgColor="floralwhite">密级:</td>
<td width="40%" bgColor="floralwhite"> <asp:Label id="Lbl_SecretGreadName" runat="server"></asp:Label></td>
<td align="right" width="10%" bgColor="floralwhite">紧急程度:</td>
<td width="40%" bgColor="floralwhite"> <asp:Label id="Lbl_ExigenceDegreeName" runat="server"></asp:Label></td>
</tr>
<tr bgcolor="#f0a000">
<td align="right" width="10%" bgColor="floralwhite">流程名称:</td>
<td width="40%" bgColor="floralwhite"> <asp:Label id="Lbl_StreamName" runat="server"></asp:Label></td>
<td align="right" width="10%" bgColor="floralwhite"></td>
<td width="40%" bgColor="floralwhite"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="1" cellspacing='0' cellpadding='0' width="100%" height="600" align="left"
class="tableframe">
<tr>
<td colspan="2" bgcolor="lightgoldenrodyellow"> 公文内容</td>
</tr>
<tr>
<!--td align=right valign=top width=64>内容</td-->
<td align="right" height="600">
<asp:Panel id="Panel1" runat="server"></asp:Panel>
</td>
<td 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 >
<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>
<td>
<TABLE cellSpacing="0" cellPadding="0" width="58" align="right" border="0">
<TBODY>
<TR>
<td>
<script language=javascript>
//var MEditType= mEditType%>
//if(MEditType=="0")
//{
//document.write('<A onclick="WebSaveLocalNoMark()" href="#"><img src="../images/save1.gif" alt="保存正式公文" border="0"></A> ');
// }
//else
//{
//document.write('<A onclick="WebSaveLocalWithMark()" href="#"><img src="../images/bchj.gif" alt="保存草稿" border="0"></A> ');
//}
</script>
</td>
<!--
<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"><a href="#" onclick ="OpenFind('../stream/changeusers.aspx?DocumentID=<% =PdocumentID%>')">选下一个处理人</a></TD>
<TD width="14"><IMG height="21" src="../images/button_right.gif" width="5" border="0"></TD>
<TD>
-->
<td><input type=button class=input value =" 保存 " onclick="WebSaveLocalNoMark()"> </td>
<td><input type=button class=input value =" 察看流程信息 " onclick=OpenFind('../desktop/StreamDetail.aspx?DocumentID=<% =NDoc%>')>
<td><input type=button class=input value =" 选择下一节点处理人 " onclick="OpenFind('../stream/changeusers.aspx?DocumentID=<% =PdocumentID%>')"> </td>
<td><input type=button class =input value =" 回退 " onclick="backpass(<% =PdocumentID%>)" ></td>
<td><input type=button class =input value=" 提交 " onclick ="pass(<% =PdocumentID%>)"></td>
</TD>
<TD ></TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
</table>
<table id="TableIdea" border="1" cellspacing='0' cellpadding='0' width="100%" align="center"
class="tableframe">
<tr width="100%">
<td colspan="5" bgcolor="lightgoldenrodyellow" width="100%"> 公文处理意见</td>
</tr>
<% =Lbl_Content %>
<tr>
<td colspan="5">
<div align="right"><a href="#" onclick="backFun()"><img src="../images/back1.gif" border="0"></a></div>
</td>
</tr>
</table>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -