<HTML>
<HEAD>
<TITLE> Flow Properties </TITLE>
<META NAME="Author" CONTENT="FengChun(f15_nsm@hotmail.com)">
<META NAME="Keywords" CONTENT="WebFlow">
<META NAME="Description" CONTENT="WebFlow著作权归开发者 Fengchun 拥有,保留一切商业权利">
<link rel="stylesheet" type="text/css" href="inc/style.css">
<link rel="stylesheet" type="text/css" href="inc/webTab/webtab.css">
<script language=jscript src="inc/function.js"></script>
<script language=jscript src="inc/shiftlang.js"></script>
<script language=jscript src="inc/webTab/webTab.js"></script>
<style>
body {
background-color: buttonface;
scroll: no;
margin: 7px, 0px, 0px, 7px;
border: none;
overflow: hidden;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function iniWindow(){
var opener = window.dialogArguments;
var url = opener.dialogURL;
var flowId = url.indexOf('?flowid=')<0?'':url.slice(url.indexOf('?flowid=')+8,url.length);
try{
if(opener.LANG!='') shiftLanguage(opener.LANG,"flowdialog");
var FlowXML = opener.document.all.FlowXML;
if(flowId==''){
atNewFlow();
}else{
if(FlowXML.value!=''){
atEditFlow(FlowXML,flowId);
}else{
alert('打开流程属性对话框时出错!\n\nOpen Flow Dialog-Window Error!');
window.close();
}
}
}catch(e){
alert('打开流程属性对话框时出错!\n\nOpen Flow Dialog-Window Error!');
window.close();
}
}
function okOnClick(){
var opener = window.dialogArguments;
var url = opener.dialogURL;
var flowId = url.indexOf('?flowid=')<0?'':url.slice(url.indexOf('?flowid=')+8,url.length);
try{
var FlowXML = opener.document.all.FlowXML;
xml = getFlowXML(FlowXML,flowId);
if(xml!='') {
FlowXML.value = xml;
window.close();
}
}catch(e){
alert('关闭流程属性对话框时出错!\n\nOpen Flow Dialog-Window Error!');
window.close();
}
}
function cancelOnClick(){
window.close();
}
function applyOnClick(){
var opener = window.dialogArguments;
var url = opener.dialogURL;
var flowId = url.indexOf('?flowid=')<0?'':url.slice(url.indexOf('?flowid=')+8,url.length);
try{
var FlowXML = opener.document.all.FlowXML;
xml = getFlowXML(FlowXML,flowId);
if(xml!='') {
FlowXML.value = xml;
}
}catch(e){
alert('应用流程属性时出错!\n\nApply Flow Properties Error!');
window.close();
}
}
function atNewFlow(){}
function atEditFlow(FlowXML,flowId){
var xmlDoc = new ActiveXObject('MSXML2.DOMDocument');
xmlDoc.async = false;
xmlDoc.loadXML(FlowXML.value);
var xmlRoot = xmlDoc.documentElement;
var Flow = xmlRoot.getElementsByTagName("FlowConfig").item(0);
var beginStepId = '',beginStepText = '',endStepId = '',endStepText = '';
var Steps = xmlRoot.getElementsByTagName("Steps").item(0);
for ( var i = 0;i < Steps.childNodes.length;i++ ) {
Step = Steps.childNodes.item(i);
nType = Step.getElementsByTagName("BaseProperties").item(0).getAttribute("stepType");
if(nType=='BeginStep'){
beginStepId = Step.getElementsByTagName("BaseProperties").item(0).getAttribute("id");
beginStepText = Step.getElementsByTagName("BaseProperties").item(0).getAttribute("text");
}
if(nType=='EndStep'){
endStepId = Step.getElementsByTagName("BaseProperties").item(0).getAttribute("id");
endStepText = Step.getElementsByTagName("BaseProperties").item(0).getAttribute("text");
}
}
document.all.FlowId.value = flowId;
document.all.FlowText.value = Flow.getElementsByTagName("BaseProperties").item(0).getAttribute("flowText");
document.all.BeginStepId.value = beginStepId
document.all.EndStepId.value = endStepId;
document.all.BeginStepText.value = beginStepText;
document.all.EndStepText.value = endStepText;
document.all.BeginStepId.disabled=true;
document.all.EndStepId.disabled=true;
document.all.StepTextColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("stepTextColor");
document.all.StepStrokeColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("stepStrokeColor");
document.all.StepShadowColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("stepShadowColor");
document.all.StepFocusedStrokeColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("stepFocusedStrokeColor");
setRadioGroupValue(document.all.IsStepShadow,Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("isStepShadow"));
document.all.ActionStrokeColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("actionStrokeColor");
document.all.ActionTextColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("actionTextColor");
document.all.ActionFocusedStrokeColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("actionFocusedStrokeColor");
document.all.SStepTextColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("sStepTextColor");
document.all.SStepStrokeColor.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("sStepStrokeColor");
document.all.StepColor1.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("stepColor1");
document.all.StepColor2.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("stepColor2");
setRadioGroupValue(document.all.IsStep3D,Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("isStep3D"));
document.all.Step3DDepth.value = Flow.getElementsByTagName("VMLProperties").item(0).getAttribute("step3DDepth");
setRadioGroupValue(document.all.FlowMode,Flow.getElementsByTagName("FlowProperties").item(0).getAttribute("flowMode"));
document.all.StartTime.value = Flow.getElementsByTagName("FlowProperties").item(0).getAttribute("startTime");
document.all.EndTime.value = Flow.getElementsByTagName("FlowProperties").item(0).getAttribute("endTime");
setRadioGroupValue(document.all.IfMonitor,Flow.getElementsByTagName("FlowProperties").item(0).getAttribute("ifMonitor"));
setRadioGroupValue(document.all.RunMode,Flow.getElementsByTagName("FlowProperties").item(0).getAttribute("runMode"));
setRadioGroupValue(document.all.NoteMode,Flow.getElementsByTagName("FlowProperties").item(0).getAttribute("noteMode"));
document.all.ActiveForm.value = Flow.getElementsByTagName("FlowProperties").item(0).getAttribute("activeForm");
document.all.AutoExe.value = Flow.getElementsByTagName("FlowProperties").item(0).getAttribute("autoExe");
}
function getFlowXML(FlowXML,id){
flowId = document.all.FlowId.value;
flowText = document.all.FlowText.value;
beginStepId = document.all.BeginStepId.value;
endStepId = document.all.EndStepId.value;
beginStepText = document.all.BeginStepText.value;
endStepText = document.all.EndStepText.value;
if(flowId=='') {alert('请先填写流程编号!\n\nPlease input Flow Id!');return '';}
if(flowText=='') {alert('请先填写流程名称!\n\nPlease input Flow Name!');return '';}
if(beginStepId=='' || endStepId=='') {alert('请先填写开始或结束步骤的编号!\n\nPlease input Begin-End Step\'s Id!');return '';}
if(beginStepText=='' || endStepText=='') {alert('请先填写开始或结束步骤的名称!\n\nPlease input Begin-End Step\'s Name!');return '';}
stepTextColor = document.all.StepTextColor.value;
stepStrokeColor = document.all.StepStrokeColor.value;
stepShadowColor = document.all.StepShadowColor.value;
stepFocusedStrokeColor = document.all.StepFocusedStrokeColor.value;
isStepShadow = getRadioGroupValue(document.all.IsStepShadow);
actionStrokeColor = document.all.ActionStrokeColor.value;
actionTextColor = document.all.ActionTextColor.value;
actionFocusedStrokeColor = document.all.ActionFocusedStrokeColor.value;
sStepTextColor = document.all.SStepTextColor.value;
sStepStrokeColor = document.all.SStepStrokeColor.value;
stepColor1 = d
没有合适的资源?快使用搜索试试~ 我知道了~
难得javascript画图源码
共70个文件
gif:30个
xml:15个
html:8个
3星 · 超过75%的资源 需积分: 9 42 下载量 5 浏览量
2009-04-10
20:53:49
上传
评论 1
收藏 80KB RAR 举报
温馨提示
javascript运用VML实现工作流的动态定义,很经典,很成功的案例。和大家分享有时候是种快乐。里面包含了菜单控件,树控件,最重要的是里面的画图堪称经典。非常漂亮
资源推荐
资源详情
资源评论
收起资源包目录
JsWebFlow.rar (70个子文件)
WebFlow
flows
software_en.xml 5KB
software_zh.xml 5KB
fly.xml 4KB
_stepdialog.html 11KB
_actiondialog.html 11KB
inc
contextMenu
context.js 4KB
images
add_step.gif 222B
edit_obj.gif 222B
sendmsg.gif 87B
del_obj.gif 162B
save.gif 81B
add_action.gif 870B
refresh_vml.gif 182B
Thumbs.db 52KB
add_obj.gif 117B
opensub.gif 56B
contextmenu.xsl 4KB
images
bg.gif 9KB
Q&A.gif 169B
saveflow.gif 145B
editflow.gif 149B
newflow.gif 243B
loadflow.gif 146B
webTab
tab.hover.png 1KB
tab.png 1KB
tab.active.png 1KB
webtab.css 1KB
Thumbs.db 7KB
webTab.js 1KB
dtree
img
line.gif 66B
nolines_minus.gif 859B
obj2.gif 127B
obj1.gif 126B
minus.gif 85B
obj3.gif 97B
minusbottom.gif 83B
obj4.gif 91B
Thumbs.db 70KB
join.gif 69B
flow.gif 942B
plusbottom.gif 84B
plus.gif 85B
empty.gif 62B
joinbottom.gif 66B
nolines_plus.gif 862B
dtree.js 12KB
dtree.css 797B
movestep.js 4KB
shiftlang.js 2KB
function.js 10KB
webflow.js 25KB
style.css 1KB
start.html 600B
_about.html 2KB
webflow.html 6KB
_flowdialog.html 23KB
langs
main_zh.xml 871B
rights_en.xml 849B
about_en.xml 1KB
actiondialog_zh.xml 1KB
stepdialog_zh.xml 1KB
rights_zh.xml 970B
about_zh.xml 1KB
flowdialog_zh.xml 4KB
actiondialog_en.xml 1KB
stepdialog_en.xml 1KB
flowdialog_en.xml 4KB
main_en.xml 978B
_rights.html 1KB
_flowtree.html 2KB
共 70 条
- 1
资源评论
- RIAEasy2012-02-02VML的,还行吧
- 懒人精灵2012-06-15全是自己写的方法!如果有系统提供的方法更好!
- jdjiadian2012-03-28没看到有画图。。压根就是一个 工作流设计器
yinchuanshuxiu
- 粉丝: 5
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Flume进阶-自定义拦截器jar包
- Dubins曲线算法讲解和在运动规划中的使用.pdf
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.dta
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.xlsx
- Reeds+Shepp曲线算法讲解和实现.pdf
- 毕业设计基于SpringBoot+MyBatisPlus+MySQL+Vue的外卖配送信息系统源代码+数据库
- 词向量(Word Embeddings)是自然语言处理(NLP)领域的一种重要技术.txt
- Surfer,线性函数
- MyBatis 的动态 SQL 是其核心特性之一.txt
- 时代的sdddsddsddsd
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功