You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
3.1 KiB
110 lines
3.1 KiB
<HTML>
|
|
<HEAD>
|
|
<TITLE>流程设计器</TITLE>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<style>
|
|
body { margin: 0px; overflow:hidden }
|
|
</style>
|
|
<script language="javascript">
|
|
var flexflow = null;
|
|
var _runtype = 0; //运行模式 0-正常 1-监控
|
|
|
|
function load(){
|
|
//alert('flexflow='+flexflow);
|
|
//加载
|
|
flexflow.load();
|
|
}
|
|
|
|
function flex_callback(res){
|
|
var jres = eval('('+res+')');
|
|
var type = jres.type;
|
|
var jparam = jres.param;
|
|
switch(type){
|
|
case 'oninitcomplete':
|
|
alert('初始化完成');
|
|
var strParam = "";
|
|
strParam += '{';
|
|
strParam += '"endpoint":"http://localhost:8080/tieg/wdk?action=wdk.wf"';
|
|
strParam += '}';
|
|
flexflow = document.getElementById('flexflow');
|
|
alert('flexflow='+flexflow);
|
|
flexflow.init(strParam);
|
|
alert(222);
|
|
break;
|
|
case 'onloadsuccess':
|
|
alert('加载成功');
|
|
break;
|
|
case 'onloaderror':
|
|
alert('加载失败');
|
|
break;
|
|
case 'onnodeclick':
|
|
var nodename = jparam.nodename;
|
|
alert('点击了:'+nodename);
|
|
break;
|
|
default:
|
|
alert('不知名的方法');
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
function getSWFObject(movieName){
|
|
if(document[movieName]){
|
|
return document[movieName];
|
|
}else if(window[movieName]){
|
|
return window[movieName];
|
|
}else if(document.embeds && document.embeds[movieName]){
|
|
return document.embeds[movieName];
|
|
}else{
|
|
return document.getElementById(movieName);
|
|
}
|
|
}
|
|
//E:\work\SVN_ROOT\产品库\基于组件的松耦前端应用开发框架V2.0\4.开发过程\flexflow\bin-debug\flexflow.swf
|
|
|
|
function init(){
|
|
var arr = [];
|
|
arr.push('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
|
|
arr.push(' id="flexflow" width="100%" height="100%"');
|
|
arr.push(' codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">');
|
|
arr.push(' <param name="movie" value="flexflow.swf" />');
|
|
arr.push(' <param name="quality" value="high" />');
|
|
arr.push(' <param name="bgcolor" value="#ffffff" />');
|
|
arr.push(' <param name="allowScriptAccess" value="always" />');
|
|
arr.push(' <param name="flashvars" value="callback=flex_callback&runtype='+_runtype+'">');
|
|
arr.push(' <embed src="flexflow.swf" quality="high" bgcolor="#ffffff"');
|
|
arr.push(' width="100%" height="100%" name="flexflow" align="middle"');
|
|
arr.push(' play="true"');
|
|
arr.push(' loop="false"');
|
|
arr.push(' quality="high"');
|
|
arr.push(' flashvars="callback=flex_callback&runtype='+_runtype+'"');
|
|
arr.push(' wmode="opaque"');
|
|
arr.push(' allowScriptAccess="always"');
|
|
arr.push(' type="application/x-shockwave-flash"');
|
|
arr.push(' pluginspage="http://www.adobe.com/go/getflashplayer">');
|
|
arr.push('</embed>');
|
|
arr.push('</object>');
|
|
|
|
//alert(arr.join(''));
|
|
document.getElementById('flv').innerHTML = arr.join('');
|
|
}
|
|
</script>
|
|
|
|
</HEAD>
|
|
|
|
<BODY onload="init()">
|
|
<!-- <div style="position:fixed;left:0px;top:0px;right:0px;height:50px">-->
|
|
<!-- <input type="button" value="加载" onclick="read()">-->
|
|
<!-- <input type="button" value="读取" onclick="load()">-->
|
|
<!-- </div>-->
|
|
|
|
<div id="flv" style="width:100%;height:100%;border:0px solid #FF0000;">
|
|
|
|
</div>
|
|
|
|
<!--
|
|
|
|
-->
|
|
|
|
</BODY>
|
|
</HTML>
|
|
|