Commit 9d267701 by 周添尉

网盘修改了选择人员的模块

parents feb9ba12 69d0fe7e
......@@ -1177,7 +1177,7 @@ a{
line-height: 28px;
padding-left:6px;
color:#bbb;
width:70%;
width:85%;
}
.disk_move_search>span{
border:1px solid #f2f2f2;
......@@ -1185,8 +1185,8 @@ a{
line-height: 28px;
color:#333;
display: inline-block;
width:25%;
margin-left:5%;
width:13%;
margin-left:2%;
vertical-align: bottom;
text-align:center;
cursor: pointer;
......@@ -1229,7 +1229,7 @@ a{
margin-left: 10px;
}
.disk_move_tree li span.button.ico_close,.disk_move_tree li span.button.ico_open,.disk_move_tree li span.button.ico_docu{
background-size: cover !important;
background-size: 100% 100% !important;
width: 23px !important;
height: 17px !important;
vertical-align: text-bottom !important;
......@@ -1247,6 +1247,9 @@ a{
padding-top:0px !important;
padding-left:4px !important;
border-radius: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ztree li span.button.noline_close{
background-image: url(../../custom/images/disk_move_tree_expand_gray.png) !important;
......@@ -1511,6 +1514,106 @@ a{
.disk_createShare_content>div>div{
padding:0px;
}
/***************选择人员的样式*********************/
.disk_selectUser_content{
padding:0;
}
.disk_selectUser_content>div{
padding:0;
height:600px;
}
.disk_selectUser_content>div:first-child{
border-right:1px solid #e5e5e5;
overflow: auto;
}
.disk_selectUser_content>div:first-child>div:first-child>img{
margin-top:200px;
width:100%;
}
.disk_selectUser_table_title+div{
text-align: center;
}
.disk_selectUser_table_title+div>img{
width: 34%;
margin-top: 147px;
}
.disk_selectUser_table_title{
height:50px;
background: #f9f9f9;
padding-left:15px;
padding-top:10px;
border-bottom:1px solid #e5e5e5;
}
.disk_selectUser_table_title>input{
height:30px;
width:200px;
display: inline;
padding-left:7px;
}
.disk_selectUser_table_title>span{
margin-left: 15px;
background: #50B6FF;
padding: 0px 14px;
height: 30px;
line-height: 30px;
vertical-align: top;
display: inline-block;
color: white;
border-radius: 4px;
cursor: pointer;
}
.disk_selectUser_table_title>span:hover{
background: #93D5FF;
}
.disk_selectUser_table_title>label{
color:red;
margin-left:15px;
display: none;
}
/*******************选择人员的表格***************/
.disk_selectUser_table{
padding:10px;
}
.disk_selectUser_table .fixed-table-body{
height: 411px;
}
.disk_selectUser_table table{
font-size:14px;
}
.disk_selectUser_table .pagination>.active>a,
.disk_selectUser_table .pagination>.active>a:focus,
.disk_selectUser_table .pagination>.active>a:hover,
.disk_selectUser_table .pagination>.active>span,
.disk_selectUser_table .pagination>.active>span:focus,
.disk_selectUser_table .pagination>.active>span:hover{
background: #50B6FF;
border-color: #50B6FF;
color:white;
}
.disk_selectUser_table .pagination>li>a:focus,
.disk_selectUser_table .pagination>li>a:hover,
.disk_selectUser_table .pagination>li>span:focus,
.disk_selectUser_table .pagination>li>span:hover,
.disk_selectUser_table .pagination>li>a,
.disk_selectUser_table .pagination>li>span{
color:#666
}
.disk_selectUser_table .btn-default:hover,
.disk_selectUser_table .btn-default.active,
.disk_selectUser_table .btn-default:active,
.disk_selectUser_table .open>.dropdown-toggle.btn-default{
background-color: #eee;
border-color: #ddd;
}
.disk_selectUser_table .dropdown-menu>.active>a,
.disk_selectUser_table .dropdown-menu>.active>a:focus,
.disk_selectUser_table .dropdown-menu>.active>a:hover{
background-color:#50B6FF;
}
.disk_selectUser_table .fixed-table-container input[type="radio"],
.disk_selectUser_table .fixed-table-container input[type="checkbox"]{
margin: 3px auto !important;
}
/*******************分享的样式*******************/
.share_cotainer{
width:400px;
......
......@@ -9,7 +9,7 @@
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepersonal/js/storePersonalModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/store/js/storeModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storeshare/js/storeShareModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/user/js/jwAppUserModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/userchoice/js/userchoiceModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepartook/js/storePartookModule.js" charset="utf-8"></script>
<script src="${ctx}/jfcas04/js/disk.js"></script>
</head>
......@@ -59,85 +59,8 @@
<div class="col-md-1"><span onclick="disk_content_toggle(this)" class="disk_content_toggleBtn glyphicon glyphicon-th-large" title="切换到列表模式"></span></div>
</div>
<!-- 缩略图 -->
<div class="col-md-12 disk_content_lump">
<%-- <div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module1.png"/>
<div>公司文件</div>
<input style="display:none;" type="text" class="form-control" value="公司文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module2.png"/>
<div>共享文件</div>
<input style="display:none;" type="text" class="form-control" value="共享文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module3.png"/>
<div>我的文件</div>
<input style="display:none;" type="text" class="form-control" value="我的文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module4.png"/>
<div>我的共享</div>
<input style="display:none;" type="text" class="form-control" value="我的共享"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_rar.png"/>
<div>压缩文件夹</div>
<input style="display:none;" type="text" class="form-control" value="压缩文件夹"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_word.png"/>
<div>我的文档</div>
<input style="display:none;" type="text" class="form-control" value="我的文档"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_excel.png"/>
<div>我的EXCEL</div>
<input style="display:none;" type="text" class="form-control" value="我的EXCEL"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_ppt.png"/>
<div>我的PPT</div>
<input style="display:none;" style="display:none;" type="text" class="form-control" value="我的PPT"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_pdf.png"/>
<div>我的PDF</div>
<input style="display:none;" type="text" class="form-control" value="我的PDF"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_uploadImg.png"/>
<div>超级狙击手.png</div>
<input style="display:none;" type="text" class="form-control" value="超级狙击手.png"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_unknow.png"/>
<div>disk_unknow.bsl</div>
<input style="display:none;" type="text" class="form-control" value="disk_unknow.bsl"/>
</div>
</div> --%>
</div>
<div class="col-md-12 disk_content_lump"></div>
<!-- 列表 -->
<div class="disk_content_list disk_table disk_table_height" style="display:none;margin-bottom:20px;" >
<table id="disk_content_list"></table>
......
......@@ -1248,82 +1248,42 @@ function disk_backFolder(handler){
//移动文件
function disk_moveFolder(handler){
//右键移动文件时,如果是不能点击时
if(handler&&$(handler).hasClass('disk_menu_noClick')){
return;
}
var rows;
//如果是列表时
if($('.disk_content_toggleBtn').data('toggleList')){
//如果是列表时
rows = $('#disk_content_list').bootstrapTable('getSelections');
}
else{
//如果是块状时
rows = $('.disk_content_lump').find('.disk_content_lump_click');
}
if(rows.length==0){
var txt = "请选择要移动的文件!!!";
var option = {
title: "移动提示",
btn:parseInt("0001",2)
}
window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.confirm,option);
return;
}
//获得选中的数据
var rows_data = [];
for(var i=0;i<rows.length;i++ ){
if($(rows[i]).data('lump_data')){
//获得块状的数据
rows_data.push($(rows[i]).data('lump_data'));
}
else{
//获得列表的数据
rows_data.push(rows[i]);
}
}
//console.log(rows_data)
var strVar = "";
strVar += "<div style=\"width:268px;padding:0px;border-radius:5px;overflow:hidden;\">\n";
strVar += " <div class=\"disk_move_title\"><span>移动文件<\/span><span onclick=\"$.fancybox.close()\" class=\"glyphicon glyphicon-remove\"><\/span><\/div>\n";
strVar += " <div class=\"disk_move_search\"><input id=\"disk_move_key\" placeholder=\"搜索文件夹\" type=\"text\" ><span id=\"disk_move_btn\">搜索</span><\/div>\n";
strVar += " <div id=\"disk_move_tree\" style=\"height:220px;overflow:auto;\" class=\"ztree disk_move_tree\"><\/div>\n";
strVar += " <div class=\"disk_move_btn\">\n";
strVar += " <span>确定<\/span><span onclick=\"$.fancybox.close()\">取消<\/span>\n";
strVar += " <\/div>\n";
strVar += "<\/div>\n";
$.fancybox.open(strVar,{
//显示之前触发
beforeShow : function( instance, current ) {
//去掉fancybox原来的间距
/*$('.fancybox-opened').css('width','268px');*/
$('.fancybox-skin').css('padding','0');
},
//显示之后触发
afterShow : function( instance, current ){
//隐藏右上角的X
$('.fancybox-close').hide();
}
});
//绑定确定按钮的操作
$('.disk_move_btn>span').eq(0).bind('click',function(){
disk_moveFolder_save(rows_data);
})
//初始化文件目录
init_disk_move_tree(rows_data);
//树的查询功能
$.jfbrother.fuzzySearch('disk_move_tree','#disk_move_key',true,true,'#disk_move_btn');
disk_confirm(handler,'移动文件',null,function(list_rows,uuids,list_data){
var strVar = "";
strVar += "<div style=\"width:650px;padding:0px;border-radius:5px;overflow:hidden;\">\n";
strVar += " <div class=\"disk_move_title\"><span>移动文件<\/span><span onclick=\"$.fancybox.close()\" class=\"glyphicon glyphicon-remove\"><\/span><\/div>\n";
strVar += " <div class=\"disk_move_search\"><input id=\"disk_move_key\" placeholder=\"搜索文件夹\" type=\"text\" ><span id=\"disk_move_btn\">搜索</span><\/div>\n";
strVar += " <div id=\"disk_move_tree\" style=\"height:300px;overflow:auto;\" class=\"ztree disk_move_tree\"><\/div>\n";
strVar += " <div class=\"disk_move_btn\">\n";
strVar += " <span>确定<\/span><span onclick=\"$.fancybox.close()\">取消<\/span>\n";
strVar += " <\/div>\n";
strVar += "<\/div>\n";
$.fancybox.open(strVar,{
//显示之前触发
beforeShow : function( instance, current ) {
//去掉fancybox原来的间距
/*$('.fancybox-opened').css('width','268px');*/
$('.fancybox-skin').css('padding','0');
},
//显示之后触发
afterShow : function( instance, current ){
//隐藏右上角的X
$('.fancybox-close').hide();
}
});
//绑定确定按钮的操作
$('.disk_move_btn>span').eq(0).bind('click',function(){
disk_moveFolder_save(list_data);
})
//初始化文件目录
init_disk_move_tree(list_data);
//树的查询功能
$.jfbrother.fuzzySearch('disk_move_tree','#disk_move_key',true,true,'#disk_move_btn');
});
}
//文件移动的保存
......@@ -1367,19 +1327,23 @@ function disk_moveFolder_save(lump_data_list){
//选择共享人之后的保存,做了多选文件的共享(暂时只能单文件)
function disk_enjoyUser_save(lump_data){
var treeObj = $.fn.zTree.getZTreeObj("disk_enjoyUser_tree");
var nodes = treeObj.getSelectedNodes();
//选择人员数据
var infos = $('#disk_selectUser_list').bootstrapTable('getSelections');
var query = {};
var uuids = '';
var userIds = '';
for(var i = 0 ; i< lump_data.length;i++){
uuids = uuids + lump_data[i].UUID+',';
}
for(var i = 0 ; i< nodes.length;i++){
userIds = userIds + nodes[i].USER_ID+',';
for(var i = 0 ; i< infos.length;i++){
userIds = userIds + infos[i].USER_ID+',';
}
uuids = uuids.substring(0, uuids.length-1);
userIds = userIds.substring(0, userIds.length-1);
if(userIds == ''){
$('.disk_selectUser_table_title>label').fadeIn().delay(3000).fadeOut();
return;
}
query.FIELD_CODE = uuids;
query.FIELD_USER_ID = userIds;
var result = storePersonalModule.storePersonalActAction.shareStorePersonal(query);
......@@ -1425,10 +1389,6 @@ function init_disk_move_tree(rows_data){
init_disk_select_fileImg(ztreeData[i]);
}
//还要做一步过滤
//1.把自身及以下文件过滤掉
//2.所有节点不是文件夹的过滤掉
var zTreeObj;
// zTree 的参数配置,深入使用请参考 API 文档(setting 配置详解)
var setting = {
......@@ -1537,23 +1497,12 @@ function disk_custom_moveTree_data_filter(lump_data_list,ztreeData){
//初始化共享人的树
function init_disk_enjoyUser_tree(rows_data){
/*var result = jwAppUserModel.jwAppsUserDataAction.listALLUserUnit();*/
var ztreeData;
$.ajax({
url:'userchoiceData_listUser',
type:'post',
async:false,
success:function(data){
ztreeData = data.rowSet;
}
})
var ztreeData = userchoiceModule.userchoiceDataAction.listUnitAll().rowSet;
for(var i = 0 ;i<ztreeData.length;i++){
ztreeData[i].icon = 'custom/images/disk_enjoy_users.png';
ztreeData[i].icon = 'custom/images/disk_selectUser_unit.png';
//所有都显示文件夹的样子
//ztreeData[i].isParent=true;
}
//console.log(ztreeData)
//还要做一步过滤
//1.把自身及以下文件过滤掉
......@@ -1564,23 +1513,19 @@ function init_disk_enjoyUser_tree(rows_data){
var setting = {
callback : {
onClick : function(event, treeId, treeNode) {
//$('#' + treeNode.tId).find('.curSelectedNode').removeClass('curSelectedNode');
//如果是父节点时,则取消选中状态,但是要添加一个选中样式
if (treeNode.isParent) {
zTreeObj.cancelSelectedNode(treeNode);
$(event.target).addClass('curSelectedNode');
}
//查询
init_disk_enjoyUser_list_search();
}
},
data : {
simpleData : {
enable : true,
idKey : "USER_ID",
pIdKey : "PARENT_ID",
rootPId : 0
idKey : "UNIT_ID",
pIdKey : "PARENT_UNITID",
rootPId : "A"
},
key: {
name: "USER_NAME"
name: "NAME"
}
},
view : {
......@@ -1589,25 +1534,123 @@ function init_disk_enjoyUser_tree(rows_data){
//双击节点时,是否自动展开父节点的标识,true / false 分别表示双击节点 切换 / 不切换 展开状态
dblClickExpand : true,
//点击节点时,按下 Ctrl 或 Cmd 键是否允许取消选择操作。
autoCancelSelected : true,
autoCancelSelected : false,
//是否显示连线
showLine: false
}
};
// zTree 的数据属性,深入使用请参考 API 文档(zTreeNode 节点数据详解)
zTreeObj = $.fn.zTree.init($("#disk_enjoyUser_tree"), setting, ztreeData);
//展开根节点
/*function filter(node) {
return (node.pid == 0);
//展开根节点下面的第一层
function filter(node) {
return (node.UNIT_ID == 0);
}
var filter_nodes = zTreeObj.getNodesByFilter(filter); // 查找根节点集合
for (var i = 0; i < filter_nodes.length; i++) {
zTreeObj.expandNode(filter_nodes[i], true, true, true);
}*/
zTreeObj.expandNode(filter_nodes[i], true, false, true);
}
//去掉加载的效果
$('#disk_enjoyUser_tree').prev().remove();
}
//初始化某个单位的人员列表
function init_disk_enjoyUser_list(rows_data){
/*var infos = userchoiceModule.userchoiceDataAction.listUser().rowSet;
console.log(infos)*/
$('#disk_selectUser_list').bootstrapTable('destroy').bootstrapTable({
/* showColumns:true,
showToggle:true,
showRefresh:true,
search:true, */
url: ctx+"/userchoiceData_listUser", // 获取表格数据的url
/*data:infos,*/
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
/* striped: true, //表格显示条纹,默认为false */
sidePagination: "server", //分页方式:client客户端分页,server服务端分页(*)
responseHandler: function(res) {
return {
"total": res.total,//总页数
"rows": res.rowSet //数据
};
},//加载服务器数据之前的处理程序,可以用来格式化数据。 参数:res为从服务器请求到的数据。
pagination: true, // 在表格底部显示分页组件,默认false
pageList: [5,10,15,20], // 设置页面可以显示的数据条数
pageSize: 10, // 页面数据条数
pageNumber: 1, // 首页页码,
uniqueId:'UNIT_ID',
clickToSelect:true,//True to select checkbox or radiobox when the column is clicked.
queryParams:function(params){
var temp = { //这里的键的名字和控制器的变量名必须一直,这边改动,控制器也需要改成一样的
//limit: params.limit, //页面大小
//offset: params.offset, //页码
rows:this.pageSize,
FIELD_USER_NAME:$('#disk_enjoyUser_list_search_key').val(),
FIELD_UNIT_ID:$.fn.zTree.getZTreeObj("disk_enjoyUser_tree").getSelectedNodes()[0]?$.fn.zTree.getZTreeObj("disk_enjoyUser_tree").getSelectedNodes()[0].UUID:''
/* projectId: $("#projectId").val(),
requirement_Id:$("#requirement_Id").val(),
length: 6 */
};
return temp;
},
columns: [
{
checkbox: true, // 显示一个勾选框
align: 'center', // 居中显示
valign: 'middle'
},{
field: 'ID_NUMBER',
title: '人员账号',
align: 'left',
valign: 'middle'
}, {
field: 'REAL_NAME',
title: '姓名',
align: 'center',
valign: 'middle'/*,
order:'asc',
sortable:'true'*/
},{
field: 'USER_SEX',
title: '性别',
align: 'center',
valign: 'middle',
formatter: function (value, row, index) {
//0无性别,1为男,2为女
if(value=='1'){
return '男';
}
else if(value == '2'){
return '女';
}
else{
return '-';
}
}
},{
field: 'MOBILE',
title: '手机号',
align: 'center',
valign: 'middle'
},{
field: 'EMAIL',
title: '邮箱',
align: 'center',
valign: 'middle'
}
],
onLoadSuccess:function(){
//去掉加载的效果
$('.disk_selectUser_content>div').eq(1).children('div').children('img').parent('div').remove();
}
})
}
//选择人员的查询功能
function init_disk_enjoyUser_list_search(){
$("#disk_selectUser_list").bootstrapTable('selectPage',1);
}
//初始化文件的图片
......@@ -2475,80 +2518,61 @@ function disk_share_copy(){
//共享文件
function disk_enjoyFolder(handler){
//右键共享文件时,如果是不能点击时
if(handler&&$(handler).hasClass('disk_menu_noClick')){
return;
}
var rows;
//如果是列表时
if($('.disk_content_toggleBtn').data('toggleList')){
//如果是列表时
rows = $('#disk_content_list').bootstrapTable('getSelections');
}
else{
//如果是块状时
rows = $('.disk_content_lump').find('.disk_content_lump_click');
}
if(rows.length==0){
var txt = "请选择要共享的文件!!!";
var option = {
title: "共享提示",
btn:parseInt("0001",2)
}
window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.confirm,option);
return;
}
//获得选中的数据
var rows_data = [];
for(var i=0;i<rows.length;i++ ){
if($(rows[i]).data('lump_data')){
//获得块状的数据
rows_data.push($(rows[i]).data('lump_data'));
}
else{
//获得列表的数据
rows_data.push(rows[i]);
}
}
var strVar = "";
strVar += "<div style=\"width:268px;padding:0px;border-radius:5px;overflow:hidden;\">\n";
strVar += " <div class=\"disk_move_title\"><span>选择要共享的人<\/span><span onclick=\"$.fancybox.close()\" class=\"glyphicon glyphicon-remove\"><\/span><\/div>\n";
strVar += " <div class=\"disk_move_search\"><input id=\"disk_enjoy_key\" placeholder=\"搜索人员\" type=\"text\" ><span id=\"disk_enjoy_btn\">搜索</span><\/div>\n";
strVar += " <div id=\"disk_enjoyUser_tree\" style=\"height:220px;overflow:auto;\" class=\"ztree disk_move_tree\"><\/div>\n";
strVar += " <div class=\"disk_move_btn\">\n";
strVar += " <span>确定<\/span><span onclick=\"$.fancybox.close()\">取消<\/span>\n";
strVar += " <\/div>\n";
strVar += "<\/div>\n";
$.fancybox.open(strVar,{
//显示之前触发
beforeShow : function( instance, current ) {
//去掉fancybox原来的间距
/*$('.fancybox-opened').css('width','268px');*/
$('.fancybox-skin').css('padding','0');
},
//显示之后触发
afterShow : function( instance, current ){
//隐藏右上角的X
$('.fancybox-close').hide();
}
});
//确定按钮的操作
$('.disk_move_btn>span').eq(0).bind('click',function(){
disk_enjoyUser_save(rows_data);
})
//初始化文件目录
init_disk_enjoyUser_tree(rows_data);
//树的查询功能
$.jfbrother.fuzzySearch('disk_enjoyUser_tree','#disk_enjoy_key',true,true,'#disk_enjoy_btn');
disk_confirm(handler,'共享',null,function(list_rows,uuids,list_data){
var strVar = "";
strVar += "<div style=\"width:900px;padding:0px;border-radius:5px;overflow:hidden;\">\n";
strVar += " <div class=\"disk_move_title\"><span>选择人员<\/span><span onclick=\"$.fancybox.close()\" class=\"glyphicon glyphicon-remove\"><\/span><\/div> \n";
strVar += " <div class=\"col-md-12 disk_selectUser_content\">\n";
strVar += " <div class=\"col-md-3\">\n";
strVar += " <div><img src=\"custom/images/loading.gif\"/><\/div>\n";
strVar += " <div id=\"disk_enjoyUser_tree\" class=\"ztree disk_move_tree\"><\/div>\n";
strVar += " <\/div>\n";
strVar += " <div class=\"col-md-9\">\n";
strVar += " <div class=\"disk_selectUser_table_title\">\n";
strVar += " <input id=\"disk_enjoyUser_list_search_key\" type=\"text\" class=\"form-control\" placeholder=\"请输入关键字\" /><span onclick=\"init_disk_enjoyUser_list_search(this)\">查询<\/span><span>确定<\/span><label>至少要选择一个人员...<\/label>\n";
strVar += " <\/div>\n";
strVar += " <div><img src=\"custom/images/loading.gif\"/><\/div>\n";
strVar += " <div class=\"disk_selectUser_table\">\n";
strVar += " <table id=\"disk_selectUser_list\"><\/table>\n";
strVar += " <\/div>\n";
strVar += " <\/div> \n";
strVar += " <\/div>\n";
strVar += " <\/div>\n";
$.fancybox.open(strVar,{
//显示之前触发
beforeShow : function( instance, current ) {
//去掉fancybox原来的间距
$('.fancybox-skin').css('padding','0');
},
//显示之后触发
afterShow : function( instance, current ){
//隐藏右上角的X
$('.fancybox-close').hide();
//初始化单位的目录
init_disk_enjoyUser_tree(list_data);
//初始化某个单位的人员列表
init_disk_enjoyUser_list(list_data);
//搜索框
$('#disk_enjoyUser_list_search_key').bind('keydown',function(e){
var ev = document.all ? window.event : e;
if (ev.keyCode == 13) {
$(this).next().click();
}
})
$('#disk_enjoyUser_list_search_key').next().next().bind('click',function(){
disk_enjoyUser_save(list_data);
})
}
});
});
}
//我的分享码
......
......@@ -39,7 +39,7 @@ public class AttendanceBusinessImpl implements AttendanceBusiness {
entity.put("USER_ID", SessionUtil.getEmid());
}
if(entity.get("USER_NAME")==null){
entity.put("USER_NAME", SessionUtil.getEmname());
entity.put("USER_NAME", SessionUtil.getCode());
}
if(entity.get("DEPT_ID")==null){
entity.put("DEPT_ID", SessionUtil.getEmdepart());
......
......@@ -38,7 +38,7 @@ public class BgmkBusinessImpl implements BgmkBusiness {
entity.put("CREATE_TIME", new Date());
}
if(entity.get("USER_NAME")==null){
entity.put("USER_NAME", SessionUtil.getEmname());
entity.put("USER_NAME", SessionUtil.getCode());
}
if(entity.get("CREATOR_ID")==null){
entity.put("CREATOR_ID", SessionUtil.getCode());
......
......@@ -3,7 +3,7 @@
<mapper namespace="com.jw.app.business.bgmk.bgmkDAO">
<insert id="insert_bgmk" parameterType="map">
insert into C_T_WORK_BG(
insert into WORK_BG(
<trim prefix="" suffixOverrides=",">
<foreach collection="infoListKey" item="key">
${key},
......@@ -20,7 +20,7 @@
<update id="update_bgmk" parameterType="map">
<![CDATA[
update C_T_WORK_BG set
update WORK_BG set
]]>
<trim prefix="" suffixOverrides=",">
<foreach collection="info" item="info">
......@@ -36,7 +36,7 @@
<delete id="delete_bgmk" parameterType="list">
<![CDATA[
delete from C_T_WORK_BG where UUID IN
delete from WORK_BG where UUID IN
]]>
<foreach collection="list" item="UUID" open="(" separator=","
close=")">
......@@ -47,7 +47,7 @@
<select id="list_bgmk" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[
select f.*
from C_T_WORK_BG f where 1=1
from WORK_BG f where 1=1
]]>
<if test="UUID != null and UUID != ''">
and f.UUID = #{UUID}
......@@ -92,7 +92,7 @@
<select id="listCount_bgmk" parameterType="map" resultType="int">
<![CDATA[
select count(*) c from C_T_WORK_BG f where 1=1
select count(*) c from WORK_BG f where 1=1
]]>
<if test="UUID != null and UUID != ''">
and f.UUID = #{UUID}
......@@ -137,7 +137,7 @@
<select id="list_bgmk_employee" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[
select f.*
from C_T_WORK_BG f where 1=1
from WORK_BG f where 1=1
]]>
<if test="UUID != null and UUID != ''">
and f.UUID = #{UUID}
......@@ -182,7 +182,7 @@
<select id="listCount_bgmk_employee" parameterType="map" resultType="int">
<![CDATA[
select count(*) c from C_T_WORK_BG f where 1=1
select count(*) c from WORK_BG f where 1=1
]]>
<if test="UUID != null and UUID != ''">
and f.UUID = #{UUID}
......
package com.jw.app.business.friendlink;
import java.text.BreakIterator;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
......@@ -61,6 +62,7 @@ public class FriendLinkBusinessImpl implements FriendLinkBusiness {
int count = friendlinkDAO.list_count_friendlink(query);
if(count>=8){
info.put("ERROR", "-1");
throw new BusinessException("");
}
// 表示新增
info.put("UUID", UUID.randomUUID().toString());
......
......@@ -22,7 +22,7 @@
<select id="list_friendlink" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[
select * from b_t_ufp_friendlink t
select * from friendlink t
]]>
<include refid="where" />
ORDER BY t.sort
......@@ -30,14 +30,14 @@
<select id="list_count_friendlink" parameterType="map" resultType="int">
<![CDATA[
select count(*) from b_t_ufp_friendlink t
select count(*) from friendlink t
]]>
<include refid="where" />
ORDER BY t.sort
</select>
<insert id="insert_friendlink" parameterType="java.util.List">
insert into b_t_ufp_friendlink(
insert into friendlink(
<trim prefix="" suffixOverrides=",">
<foreach collection="list" item="field">
${field.key},
......@@ -53,7 +53,7 @@
</insert>
<update id="update_friendlink" parameterType="java.util.List">
update b_t_ufp_friendlink set
update friendlink set
<trim prefix="" suffixOverrides=",">
<foreach collection="list" item="field">
${field.key}=#{field.value},
......@@ -63,6 +63,6 @@
</update>
<delete id="delete_friendlink" parameterType="String">
delete from b_t_ufp_friendlink where UUID=#{uuid}
delete from friendlink where UUID=#{uuid}
</delete>
</mapper>
\ No newline at end of file
......@@ -22,7 +22,7 @@
<select id="list_notice" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[
select * from b_t_ufp_notice t
select * from notice t
]]>
<include refid="where" />
ORDER BY t.CREATE_TIME
......@@ -30,14 +30,14 @@
<select id="list_count_notice" parameterType="map" resultType="int">
<![CDATA[
select count(*) from b_t_ufp_notice t
select count(*) from notice t
]]>
<include refid="where" />
ORDER BY t.CREATE_TIME
</select>
<insert id="insert_notice" parameterType="java.util.List">
insert into b_t_ufp_notice(
insert into notice(
<trim prefix="" suffixOverrides=",">
<foreach collection="list" item="field">
${field.key},
......@@ -53,7 +53,7 @@
</insert>
<update id="update_notice" parameterType="java.util.List">
update b_t_ufp_notice set
update notice set
<trim prefix="" suffixOverrides=",">
<foreach collection="list" item="field">
${field.key}=#{field.value},
......@@ -63,6 +63,6 @@
</update>
<delete id="delete_notice" parameterType="String">
delete from b_t_ufp_notice where UUID=#{uuid}
delete from notice where UUID=#{uuid}
</delete>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment