📄 sendfile.aspx
字号:
if (Form1.WebOffice.WebInsertFile()){
alert("成功");
}else{
StatusMsg(Form1.WebOffice.Status);
}
}else{
StatusMsg(Form1.WebOffice.Status);
}
}
function WebUpdateFile(){
if (Form1.WebOffice.WebUpdateFile()){
StatusMsg(Form1.WebOffice.Status);
}else{
StatusMsg(Form1.WebOffice.Status);
}
}
function WebInportText(){
var mText;
Form1.WebOffice.WebSetMsgByName("COMMAND","INPORTTEXT");
if (Form1.WebOffice.WebSendMessage()){
mText=Form1.WebOffice.WebGetMsgByName("CONTENT");
Form1.WebOffice.WebObject.Application.Selection.Range.InsertAfter(mText);
alert("导入文本成功");
}
StatusMsg(Form1.WebOffice.Status);
}
function WebExportText(){
var mText=Form1.WebOffice.WebObject.Content.Text;
Form1.WebOffice.WebSetMsgByName("COMMAND","EXPORTTEXT");
Form1.WebOffice.WebSetMsgByName("CONTENT",mText);
if (Form1.WebOffice.WebSendMessage()){
alert("导出文本成功");
}
StatusMsg(Form1.WebOffice.Status);
}
//后面加入的功能,非另存发送文件
function save()
{
if(!InputData())
return;
if ( SaveDocument())
{
document.Form1.action="SaveFile.aspx";
document.Form1.submit ();
}
}
//另存发送文件
function saveToLocal()
{
WebSaveLocal()
}
function backFun()
{
window.history.back(-1);
}
function change(vbool)
{
//if (vbool) //true 为直接发送。FALSE为另存发送。
// {
var leng=Form1.TextBoxMainRecord.length
for(var i=0;i<leng ;i++)
{
Form1.TextBoxMainRecord.options[0] =null;
}
leng=Form1.TextBoxCopyRecord.length
for(var i=0;i<leng;i++)
{
Form1.TextBoxCopyRecord .options[0]=null;
}
// }
// else
// {
// }
}
</script>
<script language =vbscript >
function inputdepartment()
dim va
va=InputBox("请输入单位名称:")
inputdepartment =va
end function
</script>
</script>
</HEAD>
<body bgColor="#ffffff" onload="Load()" onunload="UnLoad()" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<!--action="SaveFile.aspx" onsubmit="return SaveDocument();"-->
<form name="Form1" method="post" >
<input type=hidden name =zsdws id=zsdws>
<input type=hidden name=csdws id=csdws>
<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%>">
<input type=hidden name=WriterId value="<%=mWriterId%>">
<FONT face="宋体">
<TABLE align =center cellSpacing="1" cellPadding="1" width="100%" align="left" border="0">
<TBODY>
<TR>
<TD class="titlebar" bgColor="#fbe3b5"><IMG height="16" src="../images/fw.gif" width="16">发文登记
</TD>
<td bgColor="#fbe3b5">
<input type=button value="文种管理" class=input onclick="wzgl()">
</td>
</TR>
</TBODY>
</TABLE>
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="1">
<TBODY>
<TR>
<TD width="13%">
<P align="left">标 题</P>
</TD>
<TD width=100% colspan=3><INPUT id="TextboxTitle" type="text" size=90% name="TextboxTitle" value ="<%=PTitle%>" ></TD>
</TR>
<tr>
<td>
<P align="left">主题词</P>
</td>
<TD width=100% colspan=3>
<INPUT id="Textbox word" type="text" name="Textboxword" size=90% value ="<% =Pword%>" >
</TD>
</tr>
<TR bgColor="#fffaf0">
<TD width=13%>
<P align="left">文 号</P>
</TD>
<TD ><asp:Label ID ="dispType" Runat ="server"></asp:Label></TD>
<TD width="13%">
<P align="left">签发日期</P>
</TD>
<TD width="50%"><asp:label id="LabelDate" runat="server"></asp:label><INPUT id="LabelDate1" type="hidden" size="1" name="LabelDate1" value ="<%=PSendDate%>">
</TD>
</TR>
<TR>
<TD width=13%>
<P align="left">发文单位<A onclick="OpenFinds('../manage/GetDepartment.aspx')" href="#"><IMG alt="选择单位" src="../images/selectman.gif" border="0"></A></P>
</TD>
<TD><INPUT id="DeptName" readOnly type="text" size="20" name="DeptName" runat="server" ><font color=red>(*只能选择)</font><INPUT id="DeptID" style="WIDTH: 8px; HEIGHT: 21px" readOnly type="hidden" size="1" name="DeptID"
runat="server"></TD>
<TD width=13%>
<P align="left">(代)起草单位</P>
</TD>
<TD><INPUT id="TextBoxWriteUnit" type="text" name="TextBoxWriteUnit"></TD>
</TR>
<TR bgColor="#fffaf0">
<TD width=13% bgColor="#fffaf0">
<P align="left">发文份数</P>
</TD>
<TD bgColor="#fffaf0"><INPUT type="text" name =TextBoxNum id =TextBoxNum><INPUT id="DocID" style="WIDTH: 8px; HEIGHT: 21px" type="hidden" size="1" name="DocID"
runat="server"></TD>
<TD width=13% bgColor="#fffaf0">
<P align="left">紧急程度</P>
</TD>
<TD bgColor="#fffaf0"><asp:Label ID="dispExigence" Runat =server ></asp:Label></TD>
</TR>
<TR>
<TD width=13%>
<P align="left">选择方式</P>
</TD>
<TD ><INPUT type="radio" CHECKED value="1" name="RadioButtonListSelectMethod" id="RadioButtonListSelectMethod1" onclick="change(true)" >选择发文单位发文<INPUT type="radio" value="0" onclick="change(false)" name="RadioButtonListSelectMethod">另存发送 </TD>
<td>机密程度:</td>
<td><SELECT id="secret" runat="server" NAME="pf"></SELECT></td>
</TR>
<TR bgColor="#fffaf0">
<TD width=13%>
<P align="left">主送单位
<asp:label id="LabelMainSelect" runat="server">
</asp:label></P>
</TD>
<TD>
<!--<INPUT id="TextBoxMainRecord" type="text" name="TextBoxMainRecord" readonly>-->
<select id="TextBoxMainRecord" size =5 style="width:200px">
</select>
<A onclick="OpenFind('selectUnit.aspx?parentid=TextBoxMainRecord','TextBoxMainRecord')" href="#"><IMG src="../images/plus.gif" border="0" alt="增加单位"></A>
<A href="#"><IMG onclick="deleteDepartment('TextBoxMainRecord')" src="../images/delet.gif" border="0" alt="删除单位"></A>
</TD>
<TD width=13%>
<P align="left">抄送单位
<asp:label id="LabelCopySelect" runat="server">
</asp:label></P>
</TD>
<TD>
<!--
<INPUT id="TextBoxCopyRecord" type="text" name="TextBoxCopyRecord" readonly>-->
<select id="TextBoxCopyRecord" size =5 style="width:200px">
</select>
<A onclick="OpenFind('selectUnit.aspx?parentid=TextBoxCopyRecord','TextBoxCopyRecord')" href="#"><IMG src="../images/plus.gif" border="0" alt="增加单位"></A>
<a onclick ="deleteDepartment('TextBoxCopyRecord')" href="#"><IMG src="../images/delet.gif" border="0" alt="删除单位"></a>
</TD>
</TR>
</table>
<table class="TBStyle" cellSpacing="1" cellPadding="1" width="100%" height ="100%" border="1" align =center >
<tr width=100% height=100% valign =top >
<td align=left valign=top class="TDTitleStyle" id ="pftd" width=55 height="100%" >
<!-- <asp:Panel id="Panel1" runat="server">-->
<span id="hiddeltd" style ="display:''">
<br>功能列表<br>
<input type=button class=buttonqsq name="Revision" value="隐藏痕迹" <%=mDisabled%> onclick="ShowRevision(this)">
<input type=button class=buttonqsq value="签名印章" <%=mDisabled%> onclick="WebOpenSignature()"><br>
<input type=button class=buttonqsq value="显示签名" <%=mDisabled%> onclick="WebShowSignature()"><br>
<input type=button class=buttonqsq value="验证签名" <%=mDisabled%> onclick="WebCheckSignature()"><br>
<input type=button class=buttonqsq value="隐藏签名" <%=mDisabled%> onclick="WebHideSignature()"><br>
<input type=button class=buttonqsq value="删除签名" <%=mDisabled%> onclick="Form1.WebOffice.WebDelSignature();"><br>
<input type=button class=buttonqsq value="保存版本" <%=mDisabled%> onclick="WebSaveVersion()"><br>
<input type=button class=buttonqsq value="打开版本" <%=mDisabled%> onclick="WebOpenVersion()"><br>
<input type=button class=buttonqsq value="刷新文档" <%=mDisabled%> onclick="WebFocus()"><br>
<input type=button class=buttonqsq value="页面设置" <%=mDisabled%> onclick="WebOpenPageSetup()"><br>
<input type=button class=buttonqsq value="打印文档" <%=mDisabled%> onclick="WebOpenPrint()"><br>
<input type=button class=buttonqsq value="插入图片" <%=mDisabled%> onclick="WebOpenPicture()"><br>
<input type=button class=buttonqsq value="重调文档" <%=mDisabled%> onclick="LoadDocument()"><br>
<input type=button class=buttonqs value="打开本地文件" <%=mDisabled%> onclick="WebOpenLocal()"><br>
<input type=button class=buttonqs value="存为本地文件" <%=mDisabled%> onclick="WebSaveLocal()"><br>
工具栏
<input type=button class=buttonqs value="关闭常用工具" <%=mDisabled%> onclick="WebToolsVisible('Standard',false)"><br>
<input type=button class=buttonqs value="打开常用工具" <%=mDisabled%> onclick="WebToolsVisible('Standard',true)"><br>
<input type=button class=buttonqs value="关闭格式工具" <%=mDisabled%> onclick="WebToolsVisible('Formatting',false)"><br>
<input type=button class=buttonqs value="打开格式工具" <%=mDisabled%> onclick="WebToolsVisible('Formatting',true)"><br>
<input type=button class=buttonqs value="关闭审阅按钮" <%=mDisabled%> onclick="WebToolsVisible('Reviewing',false)"><br>
<input type=button class=buttonqs value="打开审阅按钮" <%=mDisabled%> onclick="WebToolsVisible('Reviewing',true)"><br>
<input type=button class=buttonqs value="关闭打印按钮" <%=mDisabled%> onclick="WebToolsEnable('Standard',5,false);"><br>
<input type=button class=buttonqs value="打开打印按钮" <%=mDisabled%> onclick="WebToolsEnable('Standard',5,true);"><br>
其他调用
<input type=button class=buttonqsq value="插入页眉" <%=mDisabled%> <%=mWord%> onclick="Form1.WebOffice.WebObj.ActiveWindow.ActivePane.View.SeekView=9;"><br>
<input type=button class=buttonqsq value="插入页码" <%=mDisabled%> <%=mWord%> onclick="Form1.WebOffice.WebDialogs(294);"><br>
<input type=button class=buttonqsq value="插入字符" <%=mDisabled%> <%=mWord%> onclick="Form1.WebOffice.WebDialogs(162);"><br>
<input type=button class=buttonqsq value="插入目录" <%=mDisabled%> <%=mWord%> onclick="Form1.WebOffice.WebDialogs(171);"><br>
<input type=button class=buttonqsq value="插入表格" <%=mDisabled%> <%=mWord%> onclick="Form1.WebOffice.WebDialogs(129);"><br>
<!-- </asp:Panel> -->
</span>
</td>
<TD class="TDStyle" width=100% height =100% >
<table border =0 cellpadding =0 cellspacing =0 width =100% height =100%>
<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 width=100% >
<td bgcolor="menu" height='20'>
<div id="StatusBar">状态栏</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border =0 cellpadding =0 cellspacing =0 align =center >
<TR>
<TD colSpan="4">
<P align="center">
<input type=button value="隐藏工具栏" id="hiddenjob" class =input onclick =changeTable()>
<input type=button onclick ="return save()" class=input id="fwimg" value =" 发 文" >
<input type=button onclick ="return saveToLocal()" class=input value =" 另 存 为" >
</P>
</TD>
</TR>
</TABLE>
</form>
</body>
<script>
function isInputEmpty(strTest)
{
//var isEmpty=false ;
var Exp=/^(\s*|
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -