From d478f63a4041936469e99c6b2c8d583d2a8bb6d2 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Fri, 4 Jun 2021 16:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E9=80=9F?= =?UTF-8?q?=E5=BA=A6=E6=85=A2=EF=BC=8C=E8=A7=A3=E5=86=B3=E6=94=AF=E5=87=BA?= =?UTF-8?q?=E9=A2=84=E7=AE=97=E8=8E=B7=E5=8F=96=E5=88=97=E8=A1=A8=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Department/DepartmentBLL.cs | 2 +- .../Department/DepartmentService.cs | 29 +++++++++++++++ .../User/UserBLL.cs | 4 +-- .../User/UserService.cs | 32 ++++++++++++++++- .../Controllers/LGTypeController.cs | 8 +++-- .../Controllers/DepartmentController.cs | 7 ++-- .../Controllers/UserController.cs | 4 ++- .../Views/Home/AdminDefault/index.js | 2 +- .../Home/AdminDefault/indexNavigation.js | 2 +- .../Views/Home/AdminDesktop/Index.js | 35 +++++++++++-------- .../Views/Home/AdminTheme5/index.js | 2 +- .../Views/Home/AdminWindos/Index.js | 2 +- .../FD_PayManage/FD_PayManageService.cs | 4 +-- 13 files changed, 103 insertions(+), 30 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentBLL.cs b/Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentBLL.cs index 7f009dba0..aa53af153 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentBLL.cs @@ -435,7 +435,7 @@ namespace Learun.Application.Organization if (dic == null) { dic = new Dictionary(); - var list = departmentService.GetAllList(); + var list = departmentService.GetAllListForMap(); foreach (var item in list) { DepartmentModel model = new DepartmentModel() diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentService.cs b/Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentService.cs index a39762517..78f032405 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentService.cs @@ -78,6 +78,35 @@ namespace Learun.Application.Organization } } } + + + /// + /// 获取部门列表信息 部门映射 + /// + /// + public IEnumerable GetAllListForMap() + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(" F_CompanyId,F_ParentId,F_FullName,F_DepartmentId "); + strSql.Append(" FROM LR_Base_Department t WHERE t.F_EnabledMark = 1 AND t.F_DeleteMark = 0 "); + return this.BaseRepository().FindList(strSql.ToString()); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + /// /// 获取部门数据实体 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs index 1eaf7c10a..6ced86b93 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs @@ -685,7 +685,8 @@ namespace Learun.Application.Organization if (dic == null) { dic = new Dictionary(); - var list = userService.GetAllList(); + var list = userService.GetAllListForMap(); + string fileHeadImg = Config.GetValue("fileHeadImg"); foreach (var item in list) { UserModel model = new UserModel() @@ -698,7 +699,6 @@ namespace Learun.Application.Organization string img = ""; if (!string.IsNullOrEmpty(item.F_HeadIcon)) { - string fileHeadImg = Config.GetValue("fileHeadImg"); string fileImg = string.Format("{0}/{1}{2}", fileHeadImg, item.F_UserId, item.F_HeadIcon); if (DirFileHelper.IsExistFile(fileImg)) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs index 5d678cff0..71124bb8e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs @@ -154,7 +154,7 @@ namespace Learun.Application.Organization { try { - return this.BaseRepository().FindList(a =>a.F_Description == "教师"&&a.F_DeleteMark==1&&a.F_EnabledMark==1).ToList().Count() > 0 ? true : false; + return this.BaseRepository().FindList(a => a.F_Description == "教师" && a.F_DeleteMark == 1 && a.F_EnabledMark == 1).ToList().Count() > 0 ? true : false; } catch (Exception ex) { @@ -252,6 +252,36 @@ namespace Learun.Application.Organization } } } + + /// + /// 用户列表,全部 + /// + /// + public IEnumerable GetAllListForMap() + { + try + { + var fieldStr = @"t.F_CompanyId,t.F_DepartmentId,t.F_RealName,t.F_Mobile,t.F_HeadIcon, + t.F_UserId,t.F_Gender,t.F_Password, "; + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(fieldStr.Replace("t.F_Password,", "").Replace("t.F_Secretkey,", "")); + strSql.Append(" FROM LR_Base_User t WHERE t.F_DeleteMark = 0 ORDER BY t.F_CompanyId,t.F_DepartmentId,t.F_RealName "); + return this.BaseRepository().FindList(strSql.ToString()); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + /// /// 用户列表(导出Excel) /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_LGManager/Controllers/LGTypeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_LGManager/Controllers/LGTypeController.cs index 5fdbd2439..240ceca1a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_LGManager/Controllers/LGTypeController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_LGManager/Controllers/LGTypeController.cs @@ -1,4 +1,5 @@ -using Learun.Application.Language; +using System.Collections.Generic; +using Learun.Application.Language; using Learun.Util; using System.Web.Mvc; @@ -47,8 +48,9 @@ namespace Learun.Application.Web.Areas.LR_LGManager.Controllers [AjaxOnly] public ActionResult GetList(string queryJson) { - var data = lGTypeIBLL.GetList(queryJson); - return Success(data); + // var data = lGTypeIBLL.GetList(queryJson); + //return Success(data); + return Success(new List()); } /// /// 获取列表分页数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/DepartmentController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/DepartmentController.cs index fc10f0a1f..38319dbc2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/DepartmentController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/DepartmentController.cs @@ -1,4 +1,5 @@ -using Learun.Application.Organization; +using System.Collections.Generic; +using Learun.Application.Organization; using Learun.Util; using System.Linq; using System.Web.Mvc; @@ -17,6 +18,8 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers private DepartmentIBLL departmentIBLL = new DepartmentBLL(); private CompanyIBLL companyIBLL = new CompanyBLL(); + private static DepartmentIBLL departmentIBLL_static = new DepartmentBLL(); + private static Dictionary mapData= departmentIBLL_static.GetModelMap(); #region 获取视图 /// /// 主页 @@ -125,7 +128,7 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers [AjaxOnly] public ActionResult GetMap(string ver) { - var data = departmentIBLL.GetModelMap(); + var data = mapData;//departmentIBLL.GetModelMap(); string md5 = Md5Helper.Encrypt(data.ToJson(), 32); if (md5 == ver) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/UserController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/UserController.cs index e11189411..380395de7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/UserController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/UserController.cs @@ -27,6 +27,8 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers private Sys_DefaultPwdConfigIBLL sys_DefaultPwdConfigIBLL = new Sys_DefaultPwdConfigBLL(); + private static UserIBLL userIBLL_static = new UserBLL(); + private static Dictionary mapData = userIBLL_static.GetModelMap(); #region 获取视图 @@ -234,7 +236,7 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers [AjaxOnly] public ActionResult GetMap(string ver) { - var data = userIBLL.GetModelMap(); + var data = mapData;//userIBLL.GetModelMap(); string md5 = Md5Helper.Encrypt(data.ToJson(), 32); if (md5 == ver) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js index 27643b86a..03bdb7b54 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js @@ -1049,5 +1049,5 @@ var bootstrap = function ($, learun) { } }; - im.init(); + //im.init(); }; \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/indexNavigation.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/indexNavigation.js index e73667066..efde5675d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/indexNavigation.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/indexNavigation.js @@ -1015,5 +1015,5 @@ var bootstrap = function ($, learun) { } }; - im.init(); + //im.init(); }; \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js index 613a60191..a6d6539e2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js @@ -114,7 +114,7 @@ $(function () { var n = $(this).parents(".col-xs-6"); var o = n.attr("data-Id"); var p = $(this)[0].item; - + if (d[o].F_ItemUrl) { top.learun.frameTab.open({ F_ModuleId: "dtlist" + p.f_id, @@ -143,10 +143,10 @@ $(function () { F_UrlAddress: "/Utility/ListContentIndexLost?id=" + p.f_id }); } else { - top.learun.frameTab.open({ - F_ModuleId: "dtlist" + p.f_id, - F_FullName: p.f_title, - F_UrlAddress: "/Utility/ListContentIndex?id=" + p.f_id + top.learun.frameTab.open({ + F_ModuleId: "dtlist" + p.f_id, + F_FullName: p.f_title, + F_UrlAddress: "/Utility/ListContentIndex?id=" + p.f_id }) } @@ -306,17 +306,24 @@ $(function () { } } - $(".lr-desktop-panel").lrscroll(); - top.learun.clientdata.getAsync("desktop", { - callback: function (g) { - c(g.list || []); - e(g.target || []); - a(g.chart || []) - } + setTimeout(onload(), 10000); - }) - funopen(); + function onload() { + + $(".lr-desktop-panel").lrscroll(); + top.learun.clientdata.getAsync("desktop", + { + callback: function(g) { + c(g.list || []); + e(g.target || []); + a(g.chart || []); + } + + }); + funopen(); + } window.setInterval(funopen, 60000); + //window.clearInterval(t1); //消息提醒 function funopen() { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminTheme5/index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminTheme5/index.js index 00a113d19..658d56e02 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminTheme5/index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminTheme5/index.js @@ -747,5 +747,5 @@ var bootstrap = function ($, learun) { } }; - im.init(); + //im.init(); }; \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminWindos/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminWindos/Index.js index d18c64092..18363bfb6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminWindos/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminWindos/Index.js @@ -906,5 +906,5 @@ var bootstrap = function ($, learun) { } }; - im.init(); + //im.init(); }; \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs index e7d1dd9be..0108a3409 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs @@ -69,12 +69,12 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement t.PIncomeId, t.PAmount, t.PStatus, -t.PProcessId, +t.PProcessId, t.PDept, t.PTime "); strSql.Append(" FROM FD_PayManage t "); - strSql.Append(" WHERE 1=1 and PIsDelete<>1"); + strSql.Append(" WHERE 1=1 and PIsDelete<>1 "); var queryParam = queryJson.ToJObject(); // 虚拟参数 var dp = new DynamicParameters(new { });