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.

151 lines
5.7 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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>
<script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<link href="../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<!-- 引用通用的js文件. -->
<link href="../../Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" />
<script type="text/javascript" src="../../Scripts/config.js"></script>
<script type="text/javascript" src="../../Comm/Gener.js"></script>
<link href="../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
<link href="../../Style/skin/css/Default.css" rel="stylesheet" />
<script src="../Admin.js"></script>
<script type="text/javascript" language="javascript">
//页面启动函数.
$(function () {
$("#Msg").html("正在加载,请稍后......");
InitPage();
$("#Msg").html("");
});
//初始化数据.
function InitPage() {
var fk_node = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Node", fk_node);
//调用公共类库的方法:执行批量主表赋值.
// GenerBindEnumKey("DDL_BRole", "BatchRole", node.BatchRole);
//获得属性集合.
var attrs = new Entities("BP.Sys.MapAttrs");
attrs.Retrieve("FK_MapData", "ND" + fk_node);
//增加处理.
for (var i = 0; i < attrs.length; i++) {
var item = attrs[i];
if (item.UIVisible == false)
continue;
var newRow = "";
newRow = "<tr ><td class=Idx>" + i + "</td>";
if (node.BatchParas.indexOf(item.KeyOfEn) > -1) {
newRow += "<td>" + "<input name='CB_Node' type='checkbox' value='" + item.KeyOfEn + "' checked='checked' />" + item.KeyOfEn + "</td>";
} else {
newRow += "<td>" + "<input name='CB_Node' type='checkbox' value='" + item.KeyOfEn + "' />" + item.KeyOfEn + "</td>";
}
newRow += "<td>" + item.Name + "</td>";
newRow += "<td>" + item.LGTypeText + "</td>";
newRow += "</tr>";
$("#table1 tr:last").after(newRow);
}
$("#DDL_BRole").val(node.BatchRole);
return;
}
function Btn_Save_Click() {
var checkBoxIDs = "";
var cb = $("input[name='CB_Node']:checked").each(function (j) {
checkBoxIDs += $(this).val() + ","; //获得所有的 checkBox ID传入到后台去,用于解决checkbox控件在没有被选择的时候没有值的问题。
});;
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrNode");
handler.AddPara("FK_Node", GetQueryString("FK_Node"));
handler.AddPara("CheckBoxIDs", checkBoxIDs);
handler.AddPara("FK_Flow", GetQueryString("FK_Flow"));
handler.AddFormData();
var data = handler.DoMethodReturnString("BatchStartFields_Save");
if (data.indexOf('err@') >= 0) {
alert(data);
return;
}
alert(data);
Reload();
return;
}
</script>
</head>
<body>
<div class="container-full">
<form id="cc">
<div id="titleH4" class="attrnode-bar-header">
<span class="pull-right">
<button id="Btn_Save" class="cc-btn-tab btn-save" onclick="Btn_Save_Click()">保存</button>
</span>
<strong>批量发起设置 </strong>
</div>
<div style="position:relative;">
<table class="table">
<tr>
<td colspan="1">规则设置:</td>
<td colspan="3">
<label> <input type="radio" value="0" id="CB_xx" name="SXX" /> 禁用</label>
<label> <input type="radio" value="1" id="CB_2xx" name="SXX" /> 启用</label>
</td>
</tr>
<tr>
<td colspan="1">显示的行数:</td>
<td colspan="2">
<input type="text" value="12" ID="TB_BatchListCount" name="TB_BatchListCount" runat="server" style="width:56px" />
</td>
<td> 一次发起多少条记录</td>
</tr>
<tr>
<td class="Sum" colspan="4">
批量发起字段(需要填写的字段.)
</td>
</tr>
<tr>
<td colspan="4">
<table class="table" id="table1">
<tr>
<th>序</th>
<th>字段</th>
<th>名称 </th>
<th>类型</th>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</div>
</body>
</html>