@@ -435,7 +435,7 @@ namespace Learun.Application.Organization | |||||
if (dic == null) | if (dic == null) | ||||
{ | { | ||||
dic = new Dictionary<string, DepartmentModel>(); | dic = new Dictionary<string, DepartmentModel>(); | ||||
var list = departmentService.GetAllList(); | |||||
var list = departmentService.GetAllListForMap(); | |||||
foreach (var item in list) | foreach (var item in list) | ||||
{ | { | ||||
DepartmentModel model = new DepartmentModel() | DepartmentModel model = new DepartmentModel() | ||||
@@ -78,6 +78,35 @@ namespace Learun.Application.Organization | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 获取部门列表信息 部门映射 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public IEnumerable<DepartmentEntity> 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<DepartmentEntity>(strSql.ToString()); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取部门数据实体 | /// 获取部门数据实体 | ||||
/// </summary> | /// </summary> | ||||
@@ -685,7 +685,8 @@ namespace Learun.Application.Organization | |||||
if (dic == null) | if (dic == null) | ||||
{ | { | ||||
dic = new Dictionary<string, UserModel>(); | dic = new Dictionary<string, UserModel>(); | ||||
var list = userService.GetAllList(); | |||||
var list = userService.GetAllListForMap(); | |||||
string fileHeadImg = Config.GetValue("fileHeadImg"); | |||||
foreach (var item in list) | foreach (var item in list) | ||||
{ | { | ||||
UserModel model = new UserModel() | UserModel model = new UserModel() | ||||
@@ -698,7 +699,6 @@ namespace Learun.Application.Organization | |||||
string img = ""; | string img = ""; | ||||
if (!string.IsNullOrEmpty(item.F_HeadIcon)) | 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); | string fileImg = string.Format("{0}/{1}{2}", fileHeadImg, item.F_UserId, item.F_HeadIcon); | ||||
if (DirFileHelper.IsExistFile(fileImg)) | if (DirFileHelper.IsExistFile(fileImg)) | ||||
{ | { | ||||
@@ -154,7 +154,7 @@ namespace Learun.Application.Organization | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return this.BaseRepository().FindList<UserEntity>(a =>a.F_Description == "教师"&&a.F_DeleteMark==1&&a.F_EnabledMark==1).ToList().Count() > 0 ? true : false; | |||||
return this.BaseRepository().FindList<UserEntity>(a => a.F_Description == "教师" && a.F_DeleteMark == 1 && a.F_EnabledMark == 1).ToList().Count() > 0 ? true : false; | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -252,6 +252,36 @@ namespace Learun.Application.Organization | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 用户列表,全部 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public IEnumerable<UserEntity> 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<UserEntity>(strSql.ToString()); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 用户列表(导出Excel) | /// 用户列表(导出Excel) | ||||
/// </summary> | /// </summary> | ||||
@@ -1,4 +1,5 @@ | |||||
using Learun.Application.Language; | |||||
using System.Collections.Generic; | |||||
using Learun.Application.Language; | |||||
using Learun.Util; | using Learun.Util; | ||||
using System.Web.Mvc; | using System.Web.Mvc; | ||||
@@ -47,8 +48,9 @@ namespace Learun.Application.Web.Areas.LR_LGManager.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetList(string queryJson) | 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<LGTypeEntity>()); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 获取列表分页数据 | /// 获取列表分页数据 | ||||
@@ -1,4 +1,5 @@ | |||||
using Learun.Application.Organization; | |||||
using System.Collections.Generic; | |||||
using Learun.Application.Organization; | |||||
using Learun.Util; | using Learun.Util; | ||||
using System.Linq; | using System.Linq; | ||||
using System.Web.Mvc; | using System.Web.Mvc; | ||||
@@ -17,6 +18,8 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers | |||||
private DepartmentIBLL departmentIBLL = new DepartmentBLL(); | private DepartmentIBLL departmentIBLL = new DepartmentBLL(); | ||||
private CompanyIBLL companyIBLL = new CompanyBLL(); | private CompanyIBLL companyIBLL = new CompanyBLL(); | ||||
private static DepartmentIBLL departmentIBLL_static = new DepartmentBLL(); | |||||
private static Dictionary<string, DepartmentModel> mapData= departmentIBLL_static.GetModelMap(); | |||||
#region 获取视图 | #region 获取视图 | ||||
/// <summary> | /// <summary> | ||||
/// 主页 | /// 主页 | ||||
@@ -125,7 +128,7 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetMap(string ver) | public ActionResult GetMap(string ver) | ||||
{ | { | ||||
var data = departmentIBLL.GetModelMap(); | |||||
var data = mapData;//departmentIBLL.GetModelMap(); | |||||
string md5 = Md5Helper.Encrypt(data.ToJson(), 32); | string md5 = Md5Helper.Encrypt(data.ToJson(), 32); | ||||
if (md5 == ver) | if (md5 == ver) | ||||
{ | { | ||||
@@ -27,6 +27,8 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers | |||||
private Sys_DefaultPwdConfigIBLL sys_DefaultPwdConfigIBLL = new Sys_DefaultPwdConfigBLL(); | private Sys_DefaultPwdConfigIBLL sys_DefaultPwdConfigIBLL = new Sys_DefaultPwdConfigBLL(); | ||||
private static UserIBLL userIBLL_static = new UserBLL(); | |||||
private static Dictionary<string, UserModel> mapData = userIBLL_static.GetModelMap(); | |||||
#region 获取视图 | #region 获取视图 | ||||
@@ -234,7 +236,7 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetMap(string ver) | public ActionResult GetMap(string ver) | ||||
{ | { | ||||
var data = userIBLL.GetModelMap(); | |||||
var data = mapData;//userIBLL.GetModelMap(); | |||||
string md5 = Md5Helper.Encrypt(data.ToJson(), 32); | string md5 = Md5Helper.Encrypt(data.ToJson(), 32); | ||||
if (md5 == ver) | if (md5 == ver) | ||||
{ | { | ||||
@@ -1049,5 +1049,5 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
im.init(); | |||||
//im.init(); | |||||
}; | }; |
@@ -1015,5 +1015,5 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
im.init(); | |||||
//im.init(); | |||||
}; | }; |
@@ -114,7 +114,7 @@ $(function () { | |||||
var n = $(this).parents(".col-xs-6"); | var n = $(this).parents(".col-xs-6"); | ||||
var o = n.attr("data-Id"); | var o = n.attr("data-Id"); | ||||
var p = $(this)[0].item; | var p = $(this)[0].item; | ||||
if (d[o].F_ItemUrl) { | if (d[o].F_ItemUrl) { | ||||
top.learun.frameTab.open({ | top.learun.frameTab.open({ | ||||
F_ModuleId: "dtlist" + p.f_id, | F_ModuleId: "dtlist" + p.f_id, | ||||
@@ -143,10 +143,10 @@ $(function () { | |||||
F_UrlAddress: "/Utility/ListContentIndexLost?id=" + p.f_id | F_UrlAddress: "/Utility/ListContentIndexLost?id=" + p.f_id | ||||
}); | }); | ||||
} else { | } 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.setInterval(funopen, 60000); | ||||
//window.clearInterval(t1); | //window.clearInterval(t1); | ||||
//消息提醒 | //消息提醒 | ||||
function funopen() { | function funopen() { | ||||
@@ -747,5 +747,5 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
im.init(); | |||||
//im.init(); | |||||
}; | }; |
@@ -906,5 +906,5 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
im.init(); | |||||
//im.init(); | |||||
}; | }; |
@@ -69,12 +69,12 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement | |||||
t.PIncomeId, | t.PIncomeId, | ||||
t.PAmount, | t.PAmount, | ||||
t.PStatus, | t.PStatus, | ||||
t.PProcessId, | |||||
t.PProcessId, | |||||
t.PDept, | t.PDept, | ||||
t.PTime | t.PTime | ||||
"); | "); | ||||
strSql.Append(" FROM FD_PayManage t "); | 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 queryParam = queryJson.ToJObject(); | ||||
// 虚拟参数 | // 虚拟参数 | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||