论坛首页 综合技术论坛

关于政务版本中的公文签名及签章

浏览 5663 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (5)
作者 正文
   发表时间:2011-08-05   最后修改:2011-08-05

政府的很多系统都有涉及到电子签名及签章的管理功能,在joffice中,也有关于这部分的整合,先看以下的一界面:

电子印章、签名

我们提供另一种在EXT中比较容易使用J.Office控件,可以比较方便调用这些组件以实现在线的保留修改痕迹、签名、签章等。以下我们以整合金格的iWebOffice2009组件为例:

先写一OfficePanel:

 

/**
 * 集成IWebOffice2009 Office控件,以方便实现签名,签章等功能
 * @class IWebOfficePanel
 * @extends Ext.Panel
 */
IWebOfficePanel=Ext.extend(Ext.Panel,{
	constructor:function(conf){
		Ext.applyIf(conf,this);
		this.initUI();
		IWebOfficePanel.superclass.constructor.call(this,{
			region:'center',
			layout:'form',
			items:[
			]
		});
		this.on('afterrender',function(){
			this.body.appendChild(this.officeObj);
			//新建文档
			this.officeObj.CreateFile();
		},this);
		
		this.on('destroy',function(){
			try{
				//文档关闭
				this.officeObj.WebClose();
			  }catch(e){
			    alert(e.description);
			  }
		},this);
	},
	initUI:function(){
		this.officeObj= document.createElement('object');
		this.officeObj.classid= "clsid:8B23EA28-2009-402F-92C4-59BE0E063499"; 
		this.officeObj.codebase = __ctxPath+'/js/core/iweboffice/iWebOffice2009.cab#version=10,3,0,0';
		this.officeObj.width = "100%";
		this.officeObj.height = "100%";
	},
	
	openDoc:function(){
		//call the officeObj function
	},
	//签名
	sign:function(){
		//TODO
	}
});

 简单调用示例:

 

 

var officePanel=new IWebOfficePanel({
					region:'center'
				});
				
				var mywin=new Ext.Window({
					title:'J.Office中采用第三方Office控件及签章',
					height:600,
					width:1090,
					layout:'border',
					items:[officePanel]
				});
				
				mywin.show();
  • 大小: 84.9 KB
   发表时间:2011-08-09  
楼主是来打广告滴?
0 请登录后投票
   发表时间:2011-08-12  
支持Chrome和FirFox么?哥们儿为了提高运行效率,禁止用户用IE了。
0 请登录后投票
   发表时间:2011-08-15  
偶以前做电子签章的,其实没什么……
0 请登录后投票
   发表时间:2011-08-17  
andy_ghg 写道
支持Chrome和FirFox么?哥们儿为了提高运行效率,禁止用户用IE了。

你没禁止用户用windows?
0 请登录后投票
   发表时间:2011-08-17  
lz你这是公钥/私钥那种数字签名么?
0 请登录后投票
   发表时间:2011-08-18  
依赖IE的吧。
0 请登录后投票
论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics