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.

187 lines
7.3 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/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<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 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" />
<script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="../../../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../../../Scripts/bootstrap/js/bootstrap.min.js"></script>
<!-- 自己的系统风格统一. -->
<link href="../../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
<link href="../../../Style/skin/css/Default.css" rel="stylesheet" />
<!-- 引用通用的js文件. -->
<script type="text/javascript" src="../../../Scripts/config.js"></script>
<script type="text/javascript" src="../../../Comm/Gener.js"></script>
<script src="../../Admin.js"></script>
<script src="DDLBar.js"></script>
<script src="../../CCFlowEnum.js"></script>
<script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
<script src="../../../Scripts/vue.js"></script>
<script type="text/javascript" language="javascript">
var nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Node", nodeID);
var nodeID = GetQueryString("FK_Node");
var node = null;
//页面启动函数.
$(function () {
InitBar(BatchRole.WorkCheckModel);
node = new Entity("BP.WF.Node", nodeID);
//赋值.
//GenerFullAllCtrlsVal(node); 效果不好
var selVal = node.GetPara("BatchCheckNoteModel");
$("#DDL_BatchCheckNoteModel option[value='" + selVal + "']").attr("selected", true);
var listCount = node.GetPara("BatchCheckListCount");
if (listCount == 0 || listCount == null || listCount == undefined)
listCount = 15;
$("#TB_BatchCheckListCount").val(listCount);
//查询该流程的所有字段.
var frmID = "ND" + parseInt(node.NodeID);
var mapAttrs = new Entities("BP.Sys.MapAttrs");
mapAttrs.Retrieve("FK_MapData", frmID);
var html = "<table class='table'>";
html += "<tr>";
html += "<th>#</th>";
html += "<th>标题</th>";
var files = "";
files = node.GetPara("BatchFields") || "";
var editFiles = node.GetPara("EditFields") || "";
var num = 2;
$.each(mapAttrs, function (i, mapAttr) {
if (files == "")
return true;
if (files.indexOf(mapAttr.KeyOfEn) == -1)
return true;
html += "<th>" + mapAttr.Name + "</th>";
})
html += "</tr>";
for (var i = 0; i < 5; i++) {
html += "<tr>";
html += "<td> <input type=checkbox />" + i + "</td>";
html += "<td>只读</td>";
$.each(mapAttrs, function (i, mapAttr) {
if (files == "")
return true;
if (files.indexOf(mapAttr.KeyOfEn) == -1)
return true;
if (editFiles.indexOf(mapAttr.KeyOfEn) == -1)
html += "<td>只读</td>";
else
html += "<td>可编辑</td>";
});
html += "</tr>";
}
html += "</table>";
$("#list").html(html);
});
function GotoFields() {
var url = "BatchStartFields.htm" + "?Type=Add&FK_Node=" + GetQueryString("FK_Node") + "&FK_Flow=" + GetQueryString("FK_Flow");
OpenEasyUiDialogExtCloseFunc(url, '设置显示的字段', 800, 500, function () {
window.location.reload();
});
}
function GotoEditFields() {
var url = "BatchStartFields.htm" + "?Type=Edit&FK_Node=" + GetQueryString("FK_Node") + "&FK_Flow=" + GetQueryString("FK_Flow");
OpenEasyUiDialogExtCloseFunc(url, '设置可编辑的字段', 800, 500, function () {
window.location.reload();
});
}
function Save() {
$("#Btn_Save").html('正在保存请稍候...');
node.BatchRole = BatchRole.WorkCheckModel;
//设置审核意见的模式.
var selVal = $("#DDL_BatchCheckNoteModel option:selected").val();
node.SetPara("BatchCheckNoteModel", selVal);
var listCount = $("#TB_BatchCheckListCount").val();
if (listCount == "")
listCount = 0;
node.SetPara("BatchCheckListCount", listCount);
node.Update();
Reload();
}
</script>
</head>
<body>
<div id="bar">
</div>
<form id="cc">
<fieldset>
<legend>
<label>审核组件模式</label>
</legend>
<br />
<table>
<tr>
<td>填写意见格式</td>
<td>
<select id="DDL_BatchCheckNoteModel">
<option value="0">选择的多条记录一个意见框. </option>
<option value="1">每个记录后面都有一个意见框.. </option>
<option value="2">无意见</option>
</select>
</td>
</tr>
<tr>
<td>批处理列显示行数 </td>
<td> <input type="text" id="TB_BatchCheckListCount" /></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>
显示的字段列表
- <input type="button" class="cc-btn" style="line-height:25px" onclick="GotoFields()" value="设置显示的字段" />
- <input type="button" class="cc-btn" style="line-height:25px" onclick="GotoEditFields()" value="设置可编辑的字段" />
</legend>
<br />
<div id="xx">
<div id="boolbar">
<button>发送</button>
<select id="dd">
<option id="x">xx部门审批</option>
<option id="x">xx主任审批</option>
</select>
<button>退回</button>
<button>批量设置意见</button>
<button>设置签章</button>
<button>设置签名</button>
</div>
<div id="list"></div>
</div>
</fieldset>
</form>
</body>
</html>