apps/com.actionsoft.apps.coe.pal/template/page/pal.pl.list.flow.char.htm
2022-06-27 23:38:56 +08:00

72 lines
2.8 KiB
HTML
Executable File

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Project_Create</title>
<script type="text/javascript" src="../commons/js/jquery/scripts/jquery.js"></script>
<!--coe css -->
<link rel="stylesheet" type="text/css" href="../<I18N#COEPATH>/css/<#coePortal>/coe.team.create.css">
<link href="../commons/css/awsui.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../<I18N#COEPATH>/css/public.css">
<script>
function savePlDiagramUrl(){
var sid=jQuery('#sid').val();
var id=jQuery('#id').val();
var plDiagramUrl=jQuery('#plDiagramUrl').val();
var params = {
sid:sid,
cmd:"com.actionsoft.apps.coe.pal_processlevel_flowchart_save",
id : id,
plDiagramUrl : plDiagramUrl
};
doAjax(params,function(msg){
if(msg=="1"){
var type=jQuery("#type").val();
if(type=="grid"){
parent.$("#coeContent").get(0).contentWindow.document.getElementById("coeContentiframe").contentWindow.reloadGrid();
parent.$("#coeContent").get(0).contentWindow.document.getElementById("coeContentiframe").contentWindow.$("#name_"+id).trigger('click');
parent.$("#coeContent").get(0).contentWindow.document.getElementById("coeContentiframe").contentWindow.$("#a_"+id).replaceWith("<a href='#' onclick='openFlowProcess(\""+plDiagramUrl+"\"); return false;' title='<I18N#打开流程图>'><i class='icon-globe'></a>");
}else{
parent.$("#coeContent").get(0).contentWindow.document.getElementById("coeContentiframe").contentWindow.refreshParentNode();
}
parent.jQuery.close('showOpenFlowChar');
}
});
}
function doAjax(params,callback){
jQuery.ajax({
type : "POST",
url : "./w",
data : params,
success : function(msg) {
callback(msg);
}
});
}
</script>
</head>
<body >
<body>
<form id='frmMain' name='frmMain' action="./w" method='post'>
<div class="team_create_content">
<table class="table-bordered table-striped" style="width:100%">
<tr>
<td align='right' style="padding-right:5px;width:70px;"><I18N#流程图>:</td>
<td>
&nbsp;<input type="text" name="plDiagramUrl" id="plDiagramUrl" value="<#plDiagramUrl>" style="width: 90%;"/>
</td>
</tr>
</table>
<div class="team_create_tbl_bottom" style="margin-top: 10px;">
<div class="team_careat_button"> <a href='#' class='button blue' onClick="savePlDiagramUrl(); return false;"><I18N#保存></a> <a href='#' class="button" onClick="parent.jQuery.close('showOpenFlowChar');return false;"><I18N#关闭></a> </div>
</div>
</div>
</div>
<input type="hidden" name="id" id="id" value="<#id>">
<input type="hidden" name="sid" id="sid" value="<#sid>">
<input type="hidden" name="type" id="type" value="<#type>">
</form>
</body>
</body>
</html>