<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
- 1
- 2
- 3
前往页