var systemCode = "adimanagerserver"; //系统编码 ,这个框架,这个意义不大。
var systemName = "ADI管理平台"; //系统名称
var copyRight = "
版权说明:西安前沿动力软件开发有限责任公司"; //版权所有
var sysWebAppName = window.location.protocol+"//"+window.location.host+"/"+systemCode+"/";//应用路径 正式服
// var sysWebAppName = window.location.protocol+"//"+window.location.hostname+":8080/"+systemCode+"/";//应用路径 测试服
// var sysWebAppName = window.location.protocol+"//192.168.0.43:8080/"+systemCode+"/";//应用路径 测试服
var successCode = '000000000'| '0000000'; //成功编码
var ajaxTimeout = 10000; //ajax提交超时时间(毫秒)
var signPlugId = 'isign';
var serverUrl = sysWebAppName+'manager/trademark/TransServlet';//微服务地址要在内管做代理,匹配连接里的字段
var serverGzlUrl = sysWebAppName+'manager/gzl/TransServlet';
var gzlBrowser = sysWebAppName+'manager/browser/TransServlet';//区块链服务地址
var xgitalser = "http://adicn.com/adi/service/TransServlet"
var fileServerUrl =serverUrl+"/?"+"transCode=B00022&channelNo=manager&userId="+localStorage.getItem("userid")+"&clientToken="+localStorage.getItem("token")+"&id=";
$.excludeUrlMap =null;//转发的transcode对应的网址
//ztree缺省设置
var ztreeSetting = {
check: {
enable: true,
chkboxType: { "Y" : "ps", "N" : "ps" }
},
view: {
dblClickExpand: false
},
data: {
simpleData: {
enable: true
}
}
};
$.__token = window.parent.$configs == undefined ? null : window.parent.$configs.token; //token全局配置
$.mapData = window.parent.$configs == undefined ? null : window.parent.$configs.mapData; //mapData全局标准数据配置
$.mapDataGrid = null; //存储grid的control数据
var __mask = 0; //mask变量
var __login = 0; //重新登录提示控制
var __themes = ['blue','green','red','black']; //主题配置参数
//datagrid扩展方法
$.extend($.fn.datagrid.methods,{
getValue:function(jq){
//zhs
var row = jq.datagrid('getSelected');
if(row){
var opts = jq.datagrid("options");
if(opts && opts.idField){
return row[opts.idField];
}
}
return "";
},
getValues:function(jq){
//zhs
var rows = jq.datagrid('getSelections');
if(rows){
var opts = jq.datagrid("options");
if(opts && opts.idField){
var aa = [];
for(i in rows){
aa.push(rows[i][opts.idField]);
}
return aa;
}
}
return [];
},
setValues:function(jq,values){
//zhs
jq.datagrid("unselectAll");
values instanceof Array ? values = values : values = [values];
for(i in values){
jq.datagrid('setValue',values[i]);
}
},
setValue:function(jq,value){
//zhs
return jq.each(function(){
var opts = $.data(this, 'datagrid').options;
if (opts.idField){
if(opts.singleSelect){
$(this).datagrid("unselectAll");
}
$(this).datagrid('selectRecord',value);
}
});
}
});
//treegrid扩展方法
$.extend($.fn.treegrid.methods,{
setValue:function(jq,value){
//zhs
return jq.each(function(){
$(this).datagrid('selectRow', value);
});
},
setValues:function(jq,values){
//zhs
values instanceof Array ? values = values : values = [values];
for(i in values){
jq.treegrid('setValue',values[i]);
}
},
getValue:function(jq){
var node = jq.treegrid('getSelected');
if(node){
var opts = jq.treegrid('options');
if(opts && opts.idField){
return node[opts.idField];
}
}
return "";
},
getValues:function(jq){
var nodes = jq.treegrid('getSelections');
if(nodes){
var opts = jq.treegrid('options');
if(opts && opts.idField){
var aa = [];
for(i in nodes){
aa.push(nodes[i][opts.idField]);
}
return aa;
}
}
return null;
}
});