📄 s_addfawennigao.jsp
字号:
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "价格";
form.WebOffice.WebObject.Application.Range("C1").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "详细说明";
form.WebOffice.WebObject.Application.Range("D1").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "库存";
form.WebOffice.WebObject.Application.Range("A2").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "书签";
form.WebOffice.WebObject.Application.Range("A3").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "毛笔";
form.WebOffice.WebObject.Application.Range("A4").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "钢笔";
form.WebOffice.WebObject.Application.Range("A5").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "尺子";
form.WebOffice.WebObject.Application.Range("B2").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "0.5";
form.WebOffice.WebObject.Application.Range("C2").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "樱花";
form.WebOffice.WebObject.Application.Range("D2").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "300";
form.WebOffice.WebObject.Application.Range("B3").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "2";
form.WebOffice.WebObject.Application.Range("C3").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "狼毫";
form.WebOffice.WebObject.Application.Range("D3").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "50";
form.WebOffice.WebObject.Application.Range("B4").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "3";
form.WebOffice.WebObject.Application.Range("C4").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "蓝色";
form.WebOffice.WebObject.Application.Range("D4").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "90";
form.WebOffice.WebObject.Application.Range("B5").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "1";
form.WebOffice.WebObject.Application.Range("C5").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "20cm";
form.WebOffice.WebObject.Application.Range("D5").Select;
form.WebOffice.WebObject.Application.ActiveCell.FormulaR1C1 = "40";
//保护工作表
form.WebOffice.WebObject.Application.Range("B2:D5").Select;
form.WebOffice.WebObject.Application.Selection.Locked = false;
form.WebOffice.WebObject.Application.Selection.FormulaHidden = false;
form.WebOffice.WebObject.Application.ActiveSheet.Protect(true,true,true);
alert("已经保护工作表,只有B2-D5单元格可以修改。");
}
//作用:VBA套红
function WebInsertVBA(){
//画线
var object=form.WebOffice.WebObject;
var myl=object.Shapes.AddLine(100,60,305,60)
myl.Line.ForeColor=255;
myl.Line.Weight=2;
var myl1=object.Shapes.AddLine(326,60,520,60)
myl1.Line.ForeColor=255;
myl1.Line.Weight=2;
//object.Shapes.AddLine(200,200,450,200).Line.ForeColor=6;
var myRange=form.WebOffice.WebObject.Range(0,0);
myRange.Select();
var mtext="★";
form.WebOffice.WebObject.Application.Selection.Range.InsertAfter (mtext+"\n");
var myRange=form.WebOffice.WebObject.Paragraphs(1).Range;
myRange.ParagraphFormat.LineSpacingRule =1.5;
myRange.font.ColorIndex=6;
myRange.ParagraphFormat.Alignment=1;
myRange=form.WebOffice.WebObject.Range(0,0);
myRange.Select();
mtext="金格发[2003]154号";
form.WebOffice.WebObject.Application.Selection.Range.InsertAfter (mtext+"\n");
myRange=form.WebOffice.WebObject.Paragraphs(1).Range;
myRange.ParagraphFormat.LineSpacingRule =1.5;
myRange.ParagraphFormat.Alignment=1;
myRange.font.ColorIndex=1;
mtext="金格电子政务文件";
form.WebOffice.WebObject.Application.Selection.Range.InsertAfter (mtext+"\n");
myRange=form.WebOffice.WebObject.Paragraphs(1).Range;
myRange.ParagraphFormat.LineSpacingRule =1.5;
//myRange.Select();
myRange.Font.ColorIndex=6;
myRange.Font.Name="仿宋_gbk";
myRange.font.Bold=true;
myRange.Font.Size=50;
myRange.ParagraphFormat.Alignment=1;
//myRange=myRange=form.WebOffice.WebObject.Paragraphs(1).Range;
form.WebOffice.WebObject.PageSetup.LeftMargin=70;
form.WebOffice.WebObject.PageSetup.RightMargin=70;
form.WebOffice.WebObject.PageSetup.TopMargin=70;
form.WebOffice.WebObject.PageSetup.BottomMargin=70;
}
//作用:套用模版定稿
function WebInsertFile(){
SaveDocument();
form.WebOffice.WebSetMsgByName("COMMAND","INSERTFILE");
form.WebOffice.Template="模板一.doc";
if (form.WebOffice.WebLoadTemplate()){
if (form.WebOffice.WebInsertFile()){
alert("成功");
}else{
StatusMsg(form.WebOffice.Status);
}
}else{
StatusMsg(form.WebOffice.Status);
}
}
//作用:保存定稿文件
function WebUpdateFile(){
if (form.WebOffice.WebUpdateFile()){
StatusMsg(form.WebOffice.Status);
}else{
StatusMsg(form.WebOffice.Status);
}
}
//作用:导入Text
function WebInportText(){
var mText;
form.WebOffice.WebSetMsgByName("COMMAND","INPORTTEXT");
if (form.WebOffice.WebSendMessage()){
mText=form.WebOffice.WebGetMsgByName("CONTENT");
form.WebOffice.WebObject.Application.Selection.Range.InsertAfter(mText);
alert("导入文本成功");
}
StatusMsg(form.WebOffice.Status);
}
//作用:导出Text
function WebExportText(){
var mText=form.WebOffice.WebObject.Content.Text;
form.WebOffice.WebSetMsgByName("COMMAND","EXPORTTEXT");
form.WebOffice.WebSetMsgByName("CONTENT",mText);
if (form.WebOffice.WebSendMessage()){
alert("导出文本成功");
}
StatusMsg(form.WebOffice.Status);
}
//作用:获取文档页数
function WebDocumentPageCount(){
var intPageTotal;
intPageTotal = form.WebOffice.WebObject.Application.ActiveDocument.BuiltInDocumentProperties(14);
alert("文档页总数:"+intPageTotal);
}
</SCRIPT>
</head>
<BODY leftMargin=0 topMargin=0 onload=javascript:Load(); onunload=javascript:UnLoad(); marginheight="0" marginwidth="0">
<div class="header"></div>
<table align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<%@include file="../../xtop.jsp"%>
</td>
</tr>
<tr>
<td width="168" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
<tr>
<td><div class="sidebariconone"><%@include file="../../xoa_left.jsp" %></div></td></tr>
</table></td>
<td width="832" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
<tr>
<td>
<br>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR class=main_title>
<TD height=23> <B>公文管理</B>--><B>发文流程-->增加发文拟稿</B></TD>
</TR></TBODY></TABLE>
<TABLE class=tab_back>
<TBODY>
<TR>
<TD>
<TABLE height=25 cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR align=middle>
<TD width=5> </TD>
<TD class=tab_left> </TD>
<TD class=tab_on vAlign=bottom><SPAN
style="BACKGROUND-COLOR: #b0cdfc"><A
href="<%=request.getContextPath()%>/gw/send/s_draftList.jsp">发文拟稿</A>
</SPAN></TD>
<TD class=tab_middle> </TD>
<TD class=tab_on vAlign=bottom><A
href="<%=request.getContextPath()%>/gw/send/s_transactList.jsp">发文办理</A>
</TD>
<TD class=tab_middle> </TD>
<TD class=tab_on vAlign=bottom><A
href="<%=request.getContextPath()%>/gw/send/s_transactedList.jsp">已办发文</A>
</TD>
<TD class=tab_right
vAlign=bottom> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!-- 工具条上 2004-04-28 -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<FORM name=formBar1 action=draft_control.jsp method=post>
<TBODY>
<TR class=toptr2>
<TD>
<TABLE cellSpacing=1 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD width="5%"><INPUT class="sbttn" onclick=javaScript:FunSend(); type=button name=btn1 value="发送"></TD>
<TD width="5%"><INPUT class="sbttn" onclick=javaScript:FunSave(); type=button name=btn1 value="保存"></TD>
<TD width="5%"><INPUT class="sbttn" onclick=javaScript:FunReset(form); type=button name=btn2 value="刷新"></TD>
<TD width="3%"><INPUT class="sbttn" onclick=javaScript:FunBack(formPage); type=button name=btn3 value="返回"></TD>
<TD
width="87%"> </TD></TR></TBODY></TABLE></TD></TR></FORM></TBODY></TABLE><!-- 数据区 2004-04-28 -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" align="center" border=0>
<FORM name=form onSubmit="javaScript:return check_validate(this);"
action=draft_control.jsp method=post
encType=multipart/form-data><!--查询信息--><INPUT type=hidden name=searchField>
<INPUT type=hidden name=searchKey> <!--分页信息--><INPUT type=hidden value=0
name=page> <!--动作信息--><INPUT type=hidden value=ADD name=ACTION>
<SCRIPT language=Javascript>
function goUrl(url) {
document.formPage.action = url;
document.formPage.submit();
}
function goUrlConfirm(url,msg) {
if (confirm(msg)) {
document.formPage.action = url;
document.formPage.submit();
} else {
////////////需要在这里加入控制光标形状的代码
}
}
function goFormUrl(theForm, url) {
theForm.action = url;
theForm.submit();
}
function goFormUrlConfirm(theForm, url, msg) {
if (confirm(msg)) {
theForm.action = url;
theForm.submit();
} else {
////////////需要在这里加入控制光标形状的代码
}
}
// 全选
function CheckAll(theForm) {
for (var i=0;i<theForm.elements.length;i++) {
var e = theForm.elements[i];
if (e.name != "checkall") {
e.checked = theForm.checkall.checked;
}
}
}
//打开新窗口的函数
function toUrl(url) {
if (window.closed)
window.open(url,"","width=600,height=500,top="+(screen.availHeight-500)/2+",left="+(screen.availWidth-600)/2,resizable=true,scrollbars=true,menubar=true);
else
{
window.close();
window.open(url,"","width=600,height=500,top="+(screen.availHeight-500)/2+",left="+(screen.availWidth-600)/2,resizable=true,scrollbars=true,menubar=true);
}
}
</SCRIPT>
<!--隐藏的--><INPUT type=hidden value=1241314277546 name=RECORDID> <INPUT
type=hidden value=0 name=ISSEND> <INPUT type=hidden name=WZID> <INPUT
type=hidden value=3 name=WZRYID> <INPUT type=hidden value=1 name=WZBMID>
<INPUT type=hidden value=0 name=WZGD>
<TBODY>
<TR>
<TD vAlign=top align=right width="25%">拟稿单位</TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=100 value=系统管理 name=WZNGDW>
<TR>
<TD vAlign=top align=right width="25%">拟稿人</TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=100 value=test2(经理) name=WZNGRY>
<TR>
<TD vAlign=top align=right width="25%">密级</TD>
<TD width=25> </TD>
<TD><SELECT class=search style="WIDTH: 300px" name=WZMJ> <OPTION
value=""></OPTION> <OPTION value=机密文>机密文</OPTION> <OPTION value=11
selected>11</OPTION> <OPTION value=ddddddd>ddddddd</OPTION></SELECT>
<TR>
<TD vAlign=top align=right width="25%">缓急</TD>
<TD width=25> </TD>
<TD><SELECT class=search style="WIDTH: 300px" name=WZHJ> <OPTION
value=紧急 selected>紧急</OPTION> <OPTION value=一般>一般</OPTION> <OPTION
value=特级>特级</OPTION> <OPTION value=非常>非常</OPTION></SELECT>
<TR>
<TD vAlign=top align=right width="25%">标题</TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=100 name=WZBT>
<TR>
<TD vAlign=top align=right width="25%">主送 </TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=10 name=WZZS> <A
href="javascript:Win_DepartmentSelect('form.WZZS');">>></A>
<TR>
<TD vAlign=top align=right width="25%">抄送</TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=10 name=WZCS> <A
href="javascript:Win_DepartmentSelect('form.WZCS');">>></A>
<TR>
<TD vAlign=top align=right width="25%">报送</TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=10 name=WZBS> <A
href="javascript:Win_DepartmentSelect('form.WZBS');">>></A>
<TR>
<TD vAlign=top align=right width="25%">已发</TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=10 name=WZYF> <A
href="javascript:Win_DepartmentSelect('form.WZYF');">>></A>
<TR>
<TD vAlign=top align=right width="25%">主题词</TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=100 name=WZZT>
<TR>
<TD vAlign=top align=right width="25%">拟稿时间</TD>
<TD width=25> </TD>
<TD><INPUT class=tex3 maxLength=100 value=2009-05-03 name=WZSJ> <!--附件-->
<SCRIPT language=VbScript src="<%=request.getContextPath()%>/gw_css/upload.htm"></SCRIPT>
<TR>
<TD colSpan=3>
<TABLE id=tabfj cellSpacing=0 align=center border=0 name="tabfj" bgcolor="gray">
<TBODY>
<TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -