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.

130 lines
6.1 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>
<title></title>
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
<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 src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
<script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Scripts/config.js" type="text/javascript"></script>
<script src="../../../Comm/JScript.js" type="text/javascript"></script>
<script src="../../../Scripts/CommonUnite.js" type="text/javascript"></script>
<script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Comm/Gener.js" type="text/javascript"></script>
<!-- 自己的系统风格统一. -->
<link href="../../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
<link href="../../../Style/skin/css/Default.css" rel="stylesheet" />
<!-- 自己的系统风格统一end -->
<script src="DDLBar.js" type="text/javascript"></script>
<script src="../../CCFlowEnum.js" type="text/javascript"></script>
<script type="text/javascript">
var nodeID = 0;
var fk_flow = "";
$(function () {
InitBar(FormSlnType.WebOffice);
//获取节点属性
nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Node", nodeID);
fk_flow = node.FK_Flow;
var btnLab = new Entity("BP.WF.Template.BtnLab", nodeID);
var btnOffice = new Entity("BP.WF.Template.BtnLabExtWebOffice", nodeID);
//使用公文表单..
if (node.FormType == FormSlnType.WebOffice) {
document.getElementById("RB_WebOffice_FrmFirst").checked = true;
var FrmFirst = 2;
if (btnOffice.WebOfficeEnable == WebOfficeWorkModel.FrmFirst)
document.getElementById("RB_WebOffice_FrmFirst").checked = true;
else
document.getElementById("RB_WebOffice_WordFirst").checked = true;
//表单工作模式.
if (btnOffice.WebOfficeFrmModel == FormSlnType.FreeForm)
document.getElementById("RB_WebOffice_FreeFrm").checked = true;
else
document.getElementById("RB_WebOffice_FoolForm").checked = true;
}
});
//设置表单字段控件权限
function BindAttrs() {
var url = "../../Sln/BindFrms.htm?FK_Node=" + nodeID + "&FK_Flow=" + fk_flow;
OpenEasyUiDialogExt(url, '绑定列表', 800, 450, false);
}
function BindAttrsBtn() {
var url = "../../../Comm/EnOnly.htm?EnName=BP.WF.Template.BtnLabExtWebOffice&PKVal=" + nodeID + "&FK_Flow=" + fk_flow;
OpenEasyUiDialogExt(url, '公共属性控件', 800, 450, false);
}
function Save() {
$("#Btn_Save").html("正在保存...");
//节点
nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Node", nodeID);
node.FormType = FormSlnType.WebOffice;
node.Update();
//按钮
var btnLab = new Entity("BP.WF.Template.BtnLabExtWebOffice", nodeID);
var WebOfficeStyle = $("input[name='WebOfficeStyle']:checked").val();
if (WebOfficeStyle == "0")
btnLab.WebOfficeEnable = WebOfficeWorkModel.FrmFirst;
else
btnLab.WebOfficeEnable = WebOfficeWorkModel.WordFirst;
var WebOfficeFrmType = $("input[name='WebOfficeFrmType']:checked").val();
if (WebOfficeFrmType == "0")
btnLab.WebOfficeFrmModel = FormSlnType.FoolForm;
else
btnLab.WebOfficeFrmModel = FormSlnType.FreeForm;
btnLab.Update();
//更新表单类型.
//var frmID = "ND" + nodeID;
//var mapData = new Entity("BP.Sys.MapData", frmID);
//mapData.FrmType = FormSlnType.WebOffice;
//mapData.Update();
$("#Btn_Save").html("保存成功.");
}
</script>
</head>
<body>
<div id="bar"> </div>
<fieldset>
<legend>设置</legend>
<div style="margin-top:10px;margin-bottom:10px">
<b>呈现风格:</b>
<input type="radio" value="0" id="RB_WebOffice_FrmFirst" checked=true name="WebOfficeStyle" /><label for="RB_WebOffice_FrmFirst">表单在前面 </label>
<input type="radio" value="1" id="RB_WebOffice_WordFirst" name="WebOfficeStyle" /><label for="RB_WebOffice_WordFirst">公文在前面 </label>
<b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表单工作模式:</b>
<input type="radio" value="1" id="RB_WebOffice_FreeFrm" checked=true name="WebOfficeFrmType" /> <label for="RB_WebOffice_FreeFrm">自由表单显示 </label>
<input type="radio" value="0" id="RB_WebOffice_FoolForm" name="WebOfficeFrmType" /> <label for="RB_WebOffice_FoolForm">傻瓜表单显示 </label>
</div>
</fieldset>
<fieldset>
<legend id="help">说明</legend>
<ul>
<li> <a href="javascript:BindAttrs()">设置附件权限</a> - <a href="javascript:BindAttrsBtn()">设置公文按钮权限</a> </li>
<li> 我们把一个节点需要绑定多个表单的节点称为多表单节点,它有两种展现方式,标签页与表单树。</li>
<li>对应的流程demo:\\流程树\\表单解决方案\\树形表单与多表单 </li>
<!--<li> <img src="Doc.png" id="help" class="HelpImg" /> </li>-->
</ul>
</fieldset>
</body>
</html>