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.
139 lines
4.6 KiB
Plaintext
139 lines
4.6 KiB
Plaintext
11 months ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title></title>
|
||
|
<link href="/WF/Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="/WF/Scripts/bootstrap/css/font-awesome.css" rel="stylesheet">
|
||
|
<link href="/WF/Style/skin/css/style.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="/WF/Style/skin/css/animate.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="/WF/Style/skin/font/iconfont.css" rel="stylesheet" type="text/css" />
|
||
|
<!--通用js-->
|
||
|
<script src="/WF/Scripts/jquery-1.11.0.min.js" type="text/javascript"></script>
|
||
|
<script src="/WF/Scripts/QueryString.js" type="text/javascript"></script>
|
||
|
<script src="/WF/Scripts/config.js" type="text/javascript"></script>
|
||
|
<script src="/WF/Comm/Gener.js" type="text/javascript"></script>
|
||
|
<link href="css/icons.css" rel="stylesheet" />
|
||
|
<style type="text/css">
|
||
|
</style>
|
||
|
<script type="text/javascript">
|
||
|
var workID = GetQueryString("WorkID"); //workid 子线程的ID
|
||
|
$(function () {
|
||
|
|
||
|
//传入数据调用ajax. 返回查询犯人的接口.
|
||
|
var data = "";
|
||
|
//获得.
|
||
|
var ens = new Entities("BP.JianYu.Fanrens");
|
||
|
ens.Retrieve("WorkIDOfBatch", workID);
|
||
|
|
||
|
var jianqus = new Entities("BP.JianYu.JianQus");
|
||
|
jianqus.RetrieveAll();
|
||
|
|
||
|
var html = "<table class='table table-bordered table - hover' >";
|
||
|
html += "<tr>";
|
||
|
html += "<th>编号</th>";
|
||
|
html += "<th>名称</th>";
|
||
|
html += "<th>监区</th>"; //监区
|
||
|
html += "<th>分监区</th>"; //分监区
|
||
|
html += "<th>操作</th>"; //分监区
|
||
|
html += "</tr>";
|
||
|
|
||
|
for (var idx = 0; idx < jianqus.length; idx++) {
|
||
|
var jq = jianqus[idx];
|
||
|
|
||
|
html += "<tr>";
|
||
|
html += "<th colsapn=5>" + jq.No + " - " + jq.Name + "</th>";
|
||
|
html += "</tr>";
|
||
|
|
||
|
for (var i = 0; i < ens.length; i++) {
|
||
|
|
||
|
var en = ens[i];
|
||
|
if (en.JianQuNo != jq.No)
|
||
|
continue;
|
||
|
|
||
|
html += "<tr>";
|
||
|
|
||
|
html += "<td>" + en.No + "</td>";
|
||
|
html += "<td>" + en.Name + "</td>";
|
||
|
|
||
|
html += "<td>" + en.JianQuNo + en.JianQuNoText + "</td>"; //监区
|
||
|
html += "<td>" + en.FenJianQuNo + en.FenJianQuNoText + "</td>"; //分监区
|
||
|
html += "<td><a href=\"javascript:Del('" + en.No + "')\" >删除</a></td>"; //分监区
|
||
|
|
||
|
html += "</tr>";
|
||
|
}
|
||
|
}
|
||
|
html += "</table>";
|
||
|
$("#docs").html(html);
|
||
|
|
||
|
////console.log(html);
|
||
|
//var handler = new HttpHandler("BP.JianYu.AppHandler");
|
||
|
//handler.AddPara("Ens", data);
|
||
|
|
||
|
});
|
||
|
|
||
|
//保存查询结果.
|
||
|
function Del(id) {
|
||
|
var en = new Entity("BP.JianYu.Fanren", id);
|
||
|
en.Delete();
|
||
|
Reload();
|
||
|
}
|
||
|
//保存查询结果.
|
||
|
function AddNew() {
|
||
|
|
||
|
var webUser = new WebUser();
|
||
|
var name = promptGener('请输入编号', "001");
|
||
|
|
||
|
var en = new Entity("BP.JianYu.Fanren");
|
||
|
en.FenJianQuNo = webUser.FK_Dept;
|
||
|
en.No = workID + name;
|
||
|
en.Name = name;
|
||
|
en.WorkIDOfSubthread = workID;
|
||
|
en.WorkIDOfBatch = fid;
|
||
|
en.Insert();
|
||
|
|
||
|
Reload();
|
||
|
}
|
||
|
|
||
|
//执行发送到下一步.
|
||
|
function SendIt() {
|
||
|
|
||
|
if (window.confirm('确定要发送吗?') == false)
|
||
|
return;
|
||
|
|
||
|
$("#toolbar").html("正在发送请稍后.");
|
||
|
|
||
|
var handler = new HttpHandler("BP.JianYu.AppHandler");
|
||
|
handler.AddUrlData();
|
||
|
|
||
|
var data = handler.DoMethodReturnString("ND102_SendIt");
|
||
|
$("#docs").html(data);
|
||
|
}
|
||
|
function Subthread() {
|
||
|
var url = "/WF/WorkOpt/ThreadDtl.htm?WorkID=" + GetQueryString("WorkID");
|
||
|
|
||
|
WinOpen(url);
|
||
|
}
|
||
|
function Chart() {
|
||
|
var url = "/WF/WorkOpt/OneWork/Chart.htm?WorkID=" + GetQueryString("WorkID") + "&FK_Node=" + GetQueryString("FK_Node");
|
||
|
url += "&FID=" + GetQueryString("FID") + "&FK_Flow=001";
|
||
|
WinOpen(url);
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h3>
|
||
|
<div id="toolbar">
|
||
|
<a href="javascript:Subthread();"> 子线程</a>|
|
||
|
<a href="javascript:SendIt();"> (汇总后)发送给监狱长审核</a>
|
||
|
|<a href="javascript:Chart();"> 流程图</a>
|
||
|
|
||
|
</div>
|
||
|
</h3>
|
||
|
|
||
|
<div id="docs">
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|