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.
164 lines
6.3 KiB
Plaintext
164 lines
6.3 KiB
Plaintext
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>方向条件-按审核组件的立场计算</title>
|
|
<link href="../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
|
<script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="../../Scripts/bootstrap/js/bootstrap.min.js"></script>
|
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
<script src="../../Scripts/config.js" type="text/javascript"></script>
|
|
<script src="../../Comm/Gener.js" type="text/javascript"></script>
|
|
<script src="../Admin.js" type="text/javascript"></script>
|
|
<link href="../../Style/skin/css/Default.css" rel="stylesheet" />
|
|
<link href="../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
|
|
<link href="../../Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
|
<script src="../../Scripts/easyUI/jquery-1.8.0.min.js" type="text/javascript"></script>
|
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
<base target="_self" />
|
|
|
|
<script type="text/javascript">
|
|
|
|
function Esc() {
|
|
if (event.keyCode == 27)
|
|
window.close();
|
|
return true;
|
|
}
|
|
var condOrAnd = GetQueryString("CondOrAnd");
|
|
//初始化页面函数.....
|
|
$(function () {
|
|
var en = new Entity("BP.WF.Template.FrmWorkCheck", fk_Node);
|
|
if (en.FWCSta != 0) {
|
|
$("#Msg1").html("<font color=red>当前审核组件是非启用状态,您不能设置此模式.</fon>");
|
|
return;
|
|
}
|
|
if (en.FWCView == "") {
|
|
$("#Msg2").html("<font color=red>您没有设置立场,无法设置按照立场设置转向条件</fon>");
|
|
} else {
|
|
//同意,不同意,酌情处理
|
|
var strs = en.FWCView.split(',');
|
|
var html = "";
|
|
for (var i = 0; i < strs.length; i++) {
|
|
var str = strs[i]
|
|
html += "<option value=" + str + ">" + str + "</option>"
|
|
}
|
|
$("#DDL_Docs").append(html);
|
|
|
|
}
|
|
var mypk = GetQueryString("MyPK");
|
|
var cond = new Entity("BP.WF.Template.Cond");
|
|
if (mypk != null && mypk != undefined && mypk != "") {
|
|
cond.MyPK = mypk;
|
|
cond.SetPKVal(mypk);
|
|
cond.RetrieveFromDBSources();
|
|
}
|
|
var docs = cond.OperatorValue;
|
|
//en.FWCView = "同意,不同意,酌情处理";
|
|
|
|
document.getElementById("DDL_Docs").value = docs;
|
|
document.getElementById("TB_Note").value = data.Note;
|
|
|
|
});
|
|
|
|
//执行保存..
|
|
function Save() {
|
|
var sqlVal = document.getElementById("DDL_Docs").value;
|
|
var note = document.getElementById("TB_Note").value;
|
|
|
|
if (sqlVal == "") {
|
|
alert('请输入参数.');
|
|
return;
|
|
}
|
|
if (note == "") {
|
|
alert('请输入备注说明.');
|
|
return;
|
|
}
|
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_Cond");
|
|
handler.AddUrlData();
|
|
handler.AddPara("TB_Docs", sqlVal);
|
|
handler.AddPara("TB_Note", note);
|
|
handler.AddPara("CondOrAnd", GetQueryString("CondOrAnd"));
|
|
var data = handler.DoMethodReturnString("CondByWorkCheck_Save");
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
$("#Msg").html("<font color=red>" + data + "</font>");
|
|
return;
|
|
}
|
|
|
|
if (data.indexOf('url@') == 0) {
|
|
var url = data.replace('url@', '');
|
|
SetHref(url);
|
|
return;
|
|
}
|
|
Back();
|
|
}
|
|
|
|
//返回.
|
|
function Back() {
|
|
var url = GetHrefUrl();
|
|
url = url.replace('CondByWorkCheck.htm', 'List.htm');
|
|
if (url.indexOf("MyPK=") != -1) {
|
|
url = url.replace("&MyPK=" + GetQueryString("MyPK"), "");
|
|
}
|
|
SetHref(url);
|
|
|
|
}
|
|
function ToWorkCheck() {
|
|
var url = "../../Comm/EnOnly.htm?EnName=BP.WF.Template.FrmWorkCheck&NodeID=" + GetQueryString("FK_Node");
|
|
|
|
WinOpen(url);
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onkeypress="Esc();">
|
|
<div class="container-full">
|
|
<div class="attrnode-bar-header">
|
|
<span class="pull-right">
|
|
<button id="Btn_Save" name="Btn_Save" onclick="Save();">保存</button>
|
|
<button id="Btn_Back" name="Btn_Back" onclick="Back();">返回</button>
|
|
|
|
</span>
|
|
<strong>方向条件-按审核组件的立场计算</strong>
|
|
</div>
|
|
<form id="cc">
|
|
|
|
<table style="position:relative;top:10px; margin: 8px; width:100%">
|
|
<tr>
|
|
<td style="width: 20%;">
|
|
请输入成立的条件(中文标签):
|
|
</td>
|
|
<td>
|
|
<select style="width:20%" id="DDL_Docs"></select>
|
|
|
|
<!--<input type="text" id="TB_Docs" name="TB_Docs" style="width: 95%;" />-->
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
备注(不为空):
|
|
</td>
|
|
<td>
|
|
<input type="text" value="" id="TB_Note" name="TB_Note" style="width: 95%;" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div style="text-align: left" class="pd10">
|
|
<h4>帮助
|
|
</h4>
|
|
<ul>
|
|
<li>立场编号不能为空.</li>
|
|
<li><a href="javascript:ToWorkCheck();">审核组件属性</a>.</li>
|
|
<li><div id="Msg1" /></li>
|
|
<li><div id="Msg2" /></li>
|
|
</ul>
|
|
</div>
|
|
</form>
|
|
<center>
|
|
<div id="Msg" />
|
|
</center>
|
|
</div>
|
|
</body>
|
|
</html>
|