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.

104 lines
3.6 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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" />
<script language="JavaScript" src="/WF/Comm/JScript.js" type="text/javascript"></script>
<script type="text/javascript" src="/WF/Scripts/bootstrap/js/jquery.min.js"></script>
<script type="text/javascript" src="/WF/Scripts/bootstrap/js/bootstrap.min.js"></script>
<script src="/WF/Scripts/bootstrap/bootstrap-paginator/js/bootstrap-paginator.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>
<script src="../WF/Scripts/layui/layui/lay/modules/layer.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
//页面启动函数.
var ens;
var workid;
var webUser = new WebUser();
var html = "";
$(function () {
workid = GetQueryString("WorkID");
if (workid == null)
workid = 1110;
//查询出来所有待检的样本.
ens = new Entities("BP.LIMS.Pools");
ens.Retrieve("YBSta", 1); //查询出来等待检验的.
var html = "<table>";
html += "<tr>";
html += "<th>Idx</th>";
html += "<th>编号</th>";
html += "<th>名称</th>";
html += "<th>单位</th>";
html += "</tr>";
for (var i = 0; i < ens.length; i++) {
var en = ens[i];
html += "<tr>";
html += "<td>" + (i + 1) + "</td>";
html += "<th><label><input type='checkbox' id='CB_" + en.OID + "' name='CB_" + en.OID + "' />" + en.BianHao + "</label></td>";
html += "<td>" + en.MingCheng + "</td>";
html += "<td>单位</td>";
html += "</tr>";
}
html += "</table>";
$("#docs").html(html);
});
function Save() {
//查询出来所有待检的样本.
var ens = new Entities("BP.LIMS.Pools");
ens.Retrieve("YBSta", 1); //查询出来等待检验的.
var ids = "";
for (var i = 0; i < ens.length; i++) {
var en = ens[i];
var val = $("#CB_" + en.OID).is(':checked');
if (val == true)
ids += en.OID + ",";
}
if (confirm('您确定要执行吗?' + ids) == false)
return;
var ens = new Entities("BP.LIMS.Pools");
var data = ens.DoMethodReturnString("DoStartFlow002", ids);
if (data.indexOf('err@') == 0) {
alert(data);
return;
}
var url = "/WF/MyFlow.htm?FK_Flow=001&WorkID=" + data;
SetHref(url);
}
</script>
</head>
<body class="gray-bg">
<div id="title"></div>
<div id="docs"></div>
<button onclick="Save()">执行检验</button>
</body>
</html>