274 lines
8.3 KiB
HTML
Executable File
274 lines
8.3 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<title>键值字典设置</title>
|
|
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
|
|
|
|
[#AWSImport]
|
|
[#AWSUIImport]
|
|
|
|
|
|
<link rel='stylesheet' id='schemeCss' href='../apps/_bpm.platform/css/colorschemes/scheme_aws.css?v=1450692457551' name='schemeCss'>
|
|
<script>
|
|
var isRefreshPage = true;
|
|
//按钮事件
|
|
function refreshKVCache(){
|
|
var isCacheValue= $('#ISCACHE').prop('checked');
|
|
var boIdValue=$('#boId').val();
|
|
awsui.ajax.request({
|
|
type: 'POST',
|
|
url: './jd?sid='+$('#sid').val()+'&cmd=com.actionsoft.apps.dict_refresh_kv_cache',
|
|
data: 'isCache='+isCacheValue+'&boId='+boIdValue+'&dictKey='+$('#DICTKEY').val(),
|
|
success: function(msg){
|
|
$.simpleAlert(msg);
|
|
}
|
|
});
|
|
}
|
|
function onSwitchBtChangeEvent(buttonName,swValue){
|
|
//刷新字表
|
|
if(buttonName=="ISTREE" || buttonName=="ISSYS"){
|
|
//先保存,保存完毕后回调函数调用刷新页面
|
|
AWSForm.saveFormData(false,function(){
|
|
AWSFormUtil.refreshPage();
|
|
});
|
|
}
|
|
}
|
|
function btclickSuccess(buttonName,response,options){
|
|
if (buttonName == "刷新缓存") {
|
|
$.simpleAlert(response.msg,response.result);
|
|
}else if(buttonName == "部署向导"){
|
|
var url = response.data.url;
|
|
var urlArr = url.split("functionName=");
|
|
var newUrl = urlArr[0]+"functionName="+encodeURIComponent(urlArr[1]);
|
|
deployFunctionOld(newUrl,true);
|
|
}else if(buttonName=="维护权限"){
|
|
var resourceType = response.data.resourceType;
|
|
var resourceId = response.data.resourceId;
|
|
var dlg = FrmDialog.open({
|
|
title : "维护权限",
|
|
width : 700,
|
|
height : 380,
|
|
url : "./w",
|
|
data : {
|
|
sid : $("input[name=sid]").val(),
|
|
cmd : "CLIENT_COMMON_AC_ACTION_OPEN",
|
|
resourceId : resourceId,
|
|
resourceType : resourceType
|
|
},
|
|
buttons : [{
|
|
text : '确定',
|
|
cls : "blue",
|
|
handler : function() {
|
|
dlg.win().saveAC();
|
|
}
|
|
}, {
|
|
text : '关闭',
|
|
handler : function() {
|
|
dlg.close();
|
|
}
|
|
}]
|
|
});
|
|
}
|
|
|
|
}
|
|
function btclickFailure(buttonName,response,options){
|
|
if (buttonName == "刷新缓存") {
|
|
$.simpleAlert(response.msg,response.result);
|
|
}
|
|
}
|
|
function casecadePNO(itemNO){
|
|
var itemPage = window.frames['side_c_m_page_frame'];
|
|
var $PNO = itemPage.$("#PNO");
|
|
itemNO = $(itemNO).val();
|
|
var pNOLength = itemNO.lastIndexOf("-");
|
|
var str = itemNO.substring(0,pNOLength);
|
|
str = str.replace(/\d/g,"_");
|
|
var width = itemPage.$("#ITEMNO").width()+8;
|
|
var processInstId = $("#processInstId").val()
|
|
var sql = "select * from BO_ACT_DICT_KV_ITEM where BINDID = '" + processInstId + "' order by ITEMNO";
|
|
var config={"placeholder":"",
|
|
"boItemId":"6e3db9bd-fe36-410a-af63-dfd5dea6419c",
|
|
"isAdvance":true,
|
|
"mapping":{"source":"ITEMNO","target":"this"},
|
|
"display":"",
|
|
"dataType":"localJDBC",
|
|
"data":{
|
|
"sql":sql
|
|
},
|
|
"separator":",",
|
|
"listWidth":"",
|
|
"maxHeight":"150",
|
|
"multiple":false,
|
|
"editable":true,
|
|
"cascade" : false,
|
|
"mode":"adv"
|
|
};
|
|
awsui.ajax.request({
|
|
type : "POST",
|
|
url : "./jd",
|
|
dataType : "json",
|
|
alert: false,
|
|
data : {
|
|
sid : frmMain.sid.value,
|
|
cmd : "com.actionsoft.apps.dict_item_cascade",
|
|
itemNO : itemNO,
|
|
processInstId : processInstId
|
|
},
|
|
success : function(json) {
|
|
// $PNO.combobox({
|
|
// async :{
|
|
// url : "./w?sid=" + frmMain.sid.value,
|
|
// params : {
|
|
// cmd : 'CLIENT_UI_COMBOBOX_SOURCE',
|
|
// bindValue : '',
|
|
// boEntityName : 'BO_ACT_DICT_KV_ITEM',
|
|
// boItemName : 'PNO',
|
|
// config : awsui.encode(config),
|
|
// query:'',
|
|
// cascadeValue : ''
|
|
// }
|
|
// },
|
|
// width :width,
|
|
// target : $PNO,
|
|
// seperator : ",",
|
|
// editable : true,
|
|
// selectVal : json.data.PNO,
|
|
// listHeight : "150px",
|
|
// multiple : false,
|
|
// disable : true,
|
|
// autoFocus : false,
|
|
// select : function(item, data) {
|
|
// var value = data.value;
|
|
// }
|
|
// });
|
|
if(json.data.PNO==""){
|
|
$PNO.setComboboxVal("undefined");
|
|
}else{
|
|
$PNO.setComboboxVal(json.data.PNO);
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
//return false;
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
<link type='text/css' rel='stylesheet' id='themeCss' href='../apps/_bpm.platform/css/theme/theme.css' name='themeCss'/>
|
|
</head>
|
|
<body>
|
|
<form id="frmMain" method="post" name="frmMain">
|
|
<div id="aws-form-container" class="aws-form-ux-container" border="0">
|
|
<table id="aws-form-maintable" class="awsui-ux aws-form-ux-maintable" style="table-layout: auto;" border="0" cellspacing="0" cellpadding="0" align="center"><!--每个模板必须含有 aws-form-titlebg 和 title样式 否则无法应用配色风格-->
|
|
<tbody>
|
|
<tr id="aws-form-titlebg" class="aws-form-ux-titlebg"><!--若自定义模板title的 id -->
|
|
<td id="aws-form-title" class="aws-form-ux-header"><span id="_DICT_TITLE"></span>
|
|
<div border="0" style="height: 40px; width: 96px; float: right;"><img id="_DICT_ARROR_ICON" style="cursor: pointer;" onclick="showHide()" /></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="aws-form-formcontent" class="aws-form-ux-formcontent">
|
|
<td>
|
|
<table width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<table id="_SYSTEM_SETTING_DIV" class="awsui-ux table-striped" style="padding: 0px;" width="100%" cellspacing="3" cellpadding="0"><colgroup> <col class="awsui-ux-title" /> <col style="width: 50.0%;" /> <col class="awsui-ux-title" /> <col style="width: 50.0%;" /> </colgroup>
|
|
<tbody>
|
|
<tr id="5969154b_ee0e_4327_80ec_4955dc6a2bfc">
|
|
<td class="awsui-ux-title"><label id="DICTNAMELabel" class="aws-form-ux-label" for="DICTNAME">字典名称</label></td>
|
|
<td class="aws-form-ux-content">[#DICTNAME]</td>
|
|
<td class="awsui-ux-title"><label id="DICTKEYLabel" class="aws-form-ux-label" for="DICTKEY">字典标识</label></td>
|
|
<td class="aws-form-ux-content">[#DICTKEY]</td>
|
|
</tr>
|
|
<tr id="608a0326_eff0_4a07_9fb5_a3a8e46d141a">
|
|
<td class="awsui-ux-title"><label id="APPIDLabel" class="aws-form-ux-label" for="APPID">应用ID</label></td>
|
|
<td class="aws-form-ux-content">[#APPID]</td>
|
|
<td class="awsui-ux-title"><label id="DICTCATEGORYLabel" class="aws-form-ux-label" for="DICTCATEGORY">分类</label></td>
|
|
<td class="aws-form-ux-content">[#DICTCATEGORY]</td>
|
|
</tr>
|
|
<tr id="608a0326_eff0_4a07_9fb5_a3a8e46d141a">
|
|
<td class="awsui-ux-title"><label id="MEMOLabel" class="aws-form-ux-label" for="MEMO">备注说明</label></td>
|
|
<td class="aws-form-ux-content" colspan="3">[#MEMO]</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="awsui-ux-title">系统参数</td>
|
|
<td class="aws-form-ux-content" colspan="3">
|
|
<table border="0" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td id="608a0326_eff0_4a07_9fb5_a3a8e46d141a" nowrap="nowrap"></td>
|
|
<td>[#ISCACHE]</td>
|
|
<td id="608a0326_eff0_4a07_9fb5_a3a8e46d141a" nowrap="nowrap"></td>
|
|
<td>[#ISTREE]</td>
|
|
<td id="608a0326_eff0_4a07_9fb5_a3a8e46d141a" nowrap="nowrap"></td>
|
|
<td class="uiexist">[#ISSYS]</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table id="_USER_SETTING" class="awsui-ux table-striped" style="padding: 0px;" width="100%" cellspacing="3" cellpadding="0"><colgroup><col class="awsui-ux-title" /> <col style="width: 100.0%;" /> </colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td class="aws-form-ux-gridbg" colspan="2">
|
|
<div class="aws-form-ux-grid" border="0">[#Grid1]</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr class="aws-form-bottom">
|
|
<td class="aws-form-ux-actionsoft">[#Actionsoft]</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<script>// <![CDATA[
|
|
var divOnOff=0;
|
|
var t="参数设置";
|
|
if($("#DICTNAME").val()!=''){
|
|
t=$("#DICTNAME").val();
|
|
}
|
|
$("#_DICT_TITLE").html(t);//set dynamic title
|
|
if($("#ISSYS").val()=='1'){
|
|
onSetting();
|
|
}else{
|
|
offSetting();
|
|
}
|
|
function showHide(){
|
|
if(divOnOff==0){
|
|
offSetting();
|
|
}else{
|
|
onSetting();
|
|
}
|
|
}
|
|
function onSetting(){
|
|
divOnOff=0;
|
|
$("#_SYSTEM_SETTING_DIV").hide();
|
|
$("#_DICT_ARROR_ICON").attr("src","../apps/com.actionsoft.apps.dict/img/off.png");
|
|
$("#_DICT_ARROR_ICON").attr("title","展开系统属性");
|
|
}
|
|
function offSetting(){
|
|
divOnOff=1;
|
|
$("#_SYSTEM_SETTING_DIV").show();
|
|
$("#_SYSTEM_SETTING_DIV").find("input").each(function () {
|
|
AWSFormUI.setComponentAutoWidth($(this));
|
|
});
|
|
$("#_DICT_ARROR_ICON").attr("src","../apps/com.actionsoft.apps.dict/img/on.png");
|
|
$("#_DICT_ARROR_ICON").attr("title","隐藏系统属性");
|
|
}
|
|
// ]]></script>
|
|
</form>
|
|
</body>
|
|
</html> |