You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
3.1 KiB
Plaintext

11 months ago
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title> 模板列表 </title>
<link href="../Scripts/easyUI145/themes/color.css" rel="stylesheet" />
<link href="../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/easyUI/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../Scripts/EasyUIUtility.js" type="text/javascript"></script>
<link href="../Scripts/SyntaxHighlighter/Styles/shCoreDefault.css" rel="stylesheet"
type="text/css" />
<script src="../Scripts/SyntaxHighlighter/shCore.js" type="text/javascript"></script>
<script src="../Scripts/SyntaxHighlighter/shBrushCSharp.js" type="text/javascript"></script>
<script src="../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../Comm/JScript.js" type="text/javascript"></script>
<script type="text/javascript" src="../Scripts/config.js"></script>
<script type="text/javascript" src="../Comm/Gener.js"></script>
<script src="../Admin.js"></script>
<script language="javascript" type="text/javascript">
$(function () {
$("#pageloading").show();
InitDocTemp();
$("#pageloading").hide();
});
function InitDocTemp() {
var nodeId = GetQueryString("FK_Node");
var ens = new Entities("BP.WF.Template.DocTemplates");
ens.Retrieve("FK_Node", nodeId);
var html = "<ul>";
for (var i = 0; i < ens.length; i++) {
var en = ens[i];
html += "<li ><span><a href=\"javascript:Import('" + en.No + "','" + en.Name + "')\" >" + en.Name + "</a></span></li>";
}
html += "</ul>";
$("#info").html(html);
}
function Import(id,name) {
if (confirm("确认开始导入模板吗?") == false)
return;
var handler = new HttpHandler("BP.WF.HttpHandler.WF_WorkOpt");
handler.AddUrlData();
handler.AddPara("No", id);
var data = handler.DoMethodReturnString("DocWordSelectDocTemp_Imp");
if (data.indexOf('err@') == 0) {
$("#info").html("<br>" + data);
return;
}
var nodeId = GetQueryString("FK_Node");
var workId = GetQueryString("WorkID");
var fk_flow = GetQueryString("FK_Flow");
var url = "DocWord.htm?FK_Flow=" + fk_flow + "&WorkID=" + workId + "&FK_Node=" + nodeId+"&DocName="+name;
SetHref(url);
}
</script>
</head>
<body>
<form id="cc" name="cc" action="" enctype="multipart/form-data" method="post">
<fieldset>
<legend>请选择文件模版 </legend>
<div id="info">
</div>
</fieldset>
</form>
</body>
</html>