附录2系统核心功能代码摘录.docx

上传人:b****3 文档编号:3519416 上传时间:2022-11-23 格式:DOCX 页数:12 大小:18.04KB
下载 相关 举报
附录2系统核心功能代码摘录.docx_第1页
第1页 / 共12页
附录2系统核心功能代码摘录.docx_第2页
第2页 / 共12页
附录2系统核心功能代码摘录.docx_第3页
第3页 / 共12页
附录2系统核心功能代码摘录.docx_第4页
第4页 / 共12页
附录2系统核心功能代码摘录.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

附录2系统核心功能代码摘录.docx

《附录2系统核心功能代码摘录.docx》由会员分享,可在线阅读,更多相关《附录2系统核心功能代码摘录.docx(12页珍藏版)》请在冰豆网上搜索。

附录2系统核心功能代码摘录.docx

附录2系统核心功能代码摘录

附录2:

E时代安全电子文档系统V2.0

部分核心功能代码摘录

开发平台:

WindowsServer2008+VS2012+SQL2005+IIS

DocView.htm

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

onbeforecopy="returnfalse"style="background:

#ccc;padding:

10px;">

vars="

E77E049B-23FC-4DB8-B756-60529A35FAD5'codebase='weboffice_v6.0.5.0.cab#version=6,0,5,0'style='LEFT:

0px;TOP:

0px'>";

s+="";

s+="";

s+="";

document.write(s);

//在装载完Weboffice(执行...

//控件后执行"WebOffice1_NotifyCtrlReady"方法

//WebOffice1_NotifyCtrlReady();

--

WebOffice1_NotifyWordEvent(eventname);

//-->

varwebObj;

functiongetUrlParam(name)

{

varreg=newRegExp("(^|&)"+name+"=([^&]*)(&|$)");//构造一个含有目标参数的正则表达式对象

varr=window.location.search.substr

(1).match(reg);//匹配目标参数

if(r!

=null)returnunescape(r[2]);returnnull;//返回参数值

}

$(document).ready(function(){

varfile=decodeURIComponent(getUrlParam('fileurl'));

varfilename=file.replace(/.*(\/|\\)/,"");

varfileExt=(/[.]/.exec(filename))?

/[^.]+$/.exec(filename.toLowerCase()):

'';

if(".doc.xls.ppt.docx.xlsx.pptx.wps.dps.et.pdf".indexOf(fileExt)>-1){

WebOffice1_NotifyCtrlReady(file,fileExt);

}

if(".jpg.png.bmp.gif".indexOf(fileExt)>-1){

//alert("图片预览");

document.write("800){this.width=800;}'/>");

}

if(".txt.cs.py".indexOf(fileExt)>-1)

{

//alert("文本文件预览");

window.location.href=file;

//$("#txtView").html(window.location.href=file);

}

});

functionWebOffice1_NotifyCtrlReady(file,fileExt){

document.all.WebOffice1.ReadOnly=false;

webObj=document.getElementById("WebOffice1");

webObj.HideMenuAction(5,0);//激活设置

webObj.ShowToolBar=false;

//新建文档

webObj.LoadOriginalFile(file,fileExt);

webObj.ProtectDoc(1,1,"etimes20112");

webObj.SetSecurity(0x01);//禁打印

webObj.SetSecurity(0x02);//禁保存

webObj.SetSecurity(0x04);//禁复制

webObj.SetToolBarButton2("MenuBar",1,0);//隐藏office2003文件菜单

webObj.SetToolBarButton2("MenuBar",2,0);//隐藏office2003编辑菜单

webObj.SetToolBarButton2("Standard",1,0);//隐藏office2003新建按钮

webObj.SetToolBarButton2("Standard",2,0);//隐藏office2003打开按钮

webObj.SetToolBarButton2("MenuBar",1,8);//隐藏菜单

webObj.SetToolBarButton2("Standard",1,8);//隐藏常用工具栏

webObj.SetToolBarButton2("Formatting",1,8);//隐藏格式工具栏

webObj.HideMenuItem(0x01+0x8000);

webObj.HideMenuItem(0x02+0x8000);

webObj.HideMenuItem(0x04+0x8000);

webObj.HideMenuAction(1,0x100000+0x200000+0x400000+0x800000+0x1000000+0x2000000+0x4000000+0x8000000+0x10000000);

webObj.HideMenuAction(5,0);//激活设置

webObj.ShowToolBar=false;

}

functionWebOffice1_NotifyWordEvent(eventname){

if(eventname=="DocumentBeforeSave"){

document.all.WebOffice1.lContinue=0;

alert("此文档已经禁止保存");

}elseif(eventname=="DocumentBeforePrint"){

document.all.WebOffice1.lContinue=0;

alert("此文档已经禁止打印");

}elseif(eventname=="WindowSelectionChange"){

document.all.WebOffice1.lContinue=0;

}elseif(eventname=="DocumentBeforeClose"){

document.all.WebOffice1.lContinue=0;

}

}

functionCloseWord(){

webObj.CloseDoc(0);

}

//页面关闭时操作

$(window).unload(function(){

try{

varwebObj=document.getElementById("WebOffice1");

webObj.Close();

}catch(e){

}

});

96%;height:

680px;display:

none"id="txtView">loading...

 

PlusInHelper.htm

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

安全插件

html,body

{

margin:

0;

padding:

0;

font-size:

14px;

line-height:

1.4;

color:

#777676;

font-family:

"MicrosoftYaHei","SegoeUI",Verdana,SimSun,Arial,Sans-Serif;

color:

#22436C!

important;

}

p

{

padding-left:

20px;

padding-right:

20px;

}

ul

{

padding-left:

20px;

padding-right:

20px;

}

$(function(){

$.get("logic/RegisterHandler.ashx?

f=GetCopyright&num="+Math.random(),null,function(data){

if(data!

=""&&data!

=null){

$(".Copyright").html(data);

}

else{

alert("连接服务器超时");

}

});

});

 

center;font-size:

16px;">

安全插件下载

安全插件

插件下载说明:

第一步:

请先下载安全小助手。

第二步:

请下载Flash插件下载。

第三步:

请下载文件压缩工具(winrar)。

red">注意:


1.如果您在进行第一步的过程中出错请先下载MSVC2008安装包并安装,然后再进行第一步操作。


2.如果您的系统是windows2000,您必须先安装windows2000安全小助手支持补丁,然后再进行第一步操作。

安全小助手下载:



手动安装版:

  

Red;"href="javascript:

void(0)"title="点击此处下载插件"

onclick="javascript:

window.open('/PropTemp/serverFile/LoadFile/安全小助手安装版.zip')">安全小助手安装版



black">描述:

当您有待审批文档时,该工具将会在桌面右下角即时弹出对话框进行提示。


Flash插件下载:



  

Red;"href="javascript:

void(0)"onclick="javascript:

window.open('/PropTemp/serverFile/LoadFile/install_flash_player_11_active_x_32bit.zip')"

title="点击此处下载插件">install_flash_player_11_active_x_32bit (windows32位系统)


  

Red;"href="javascript:

void(0)"onclick="javascript:

window.open('/PropTemp/serverFile/LoadFile/install_flash_player_10_active_x.zip')"

title="点击此处下载插件">install_flash_player_10_active_x(windows64位系统)



文件压缩工具(winrar)下载:



       

Red;"href="javascript:

void(0)"

onclick="javascript:

window.open('/PropTemp/serverFile/LoadFile/文件压缩工具.zip');"title="点击此处下载文件压缩工具">文件压缩工具.zip



windows2000安全小助手补丁下载:



       

Red;"href="javascript:

void(0)"

onclick="javascript:

window.open('/PropTemp/serverFile/LoadFile/windows2000安全小助手支持补丁.zip');"title="点击此处下载windows2000安全小助手补丁">

windows2000安全小助手补丁.zip



MSVC2008安装包下载:



       

Red;"href="javascript:

void(0)"

onclick="javascript:

window.open('/PropTemp/serverFile/LoadFile/MSVC2008安装包.zip');"title="点击此处下载MSVC2008安装包">

MSVC2008安装包.zip


 

TimeExplain.htm

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

html,body

{

margin:

0;

padding:

0;

font-size:

14px;

line-height:

1.4;

color:

#777676;

font-family:

"MicrosoftYaHei","SegoeUI",Verdana,SimSun,Arial,Sans-Serif;

color:

#22436C!

important;

}

$(function(){

$.get("logic/RegisterHandler.ashx?

f=GetCopyright&num="+Math.random(),null,function(data){

if(data!

=""&&data!

=null){

$(".Copyright").html(data);

}

else{

alert("连接服务器超时");

}

});

});

 

400px;text-align:

center;">

16px">很抱歉,您的产品升级时间已到,如对该产品满意,或者想继续
使用请联系系统供应商。

13px;">

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1