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 3f1cecaa2..919e1c0b1 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs
@@ -271,11 +271,11 @@ namespace Learun.Application.Organization
/// 查询关键词
/// 0 教师 1学生
///
- public List GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp)
+ public List GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp, string F_EnabledMark)
{
try
{
- return (List)userService.GetPageList(companyId, departmentId, pagination, keyword, tp);
+ return (List)userService.GetPageList(companyId, departmentId, pagination, keyword, tp, F_EnabledMark);
}
catch (Exception ex)
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserIBLL.cs
index 49626515a..cabee8b6f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserIBLL.cs
@@ -58,7 +58,7 @@ namespace Learun.Application.Organization
/// 查询关键词
/// 0 教师 1学生
///
- List GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp);
+ List GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp, string F_EnabledMark);
///
/// 用户列表(导出Excel)
///
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 7e1da8b36..711475e03 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs
@@ -178,7 +178,7 @@ namespace Learun.Application.Organization
///
/// 类型 0学生 1 教师
///
- public IEnumerable GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp)
+ public IEnumerable GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp, string F_EnabledMark)
{
try
{
@@ -208,8 +208,12 @@ namespace Learun.Application.Organization
keyword = "%" + keyword + "%";
strSql.Append(" AND( t.F_Account like @keyword or t.F_RealName like @keyword or t.F_Mobile like @keyword ) ");
}
-
- return this.BaseRepository().FindList(strSql.ToString(), new { companyId, departmentId, keyword }, pagination);
+ if (!string.IsNullOrEmpty(F_EnabledMark))
+ {
+ strSql.Append(" AND t.F_EnabledMark=@F_EnabledMark ");
+ }
+
+ return this.BaseRepository().FindList(strSql.ToString(), new { companyId, departmentId, keyword, F_EnabledMark }, pagination);
}
catch (Exception ex)
{
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 fdd1fa58e..52c3ee2ef 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
@@ -90,13 +90,14 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
/// 公司主键
/// 部门主键
/// 0 教师 1学生
+ /// 状态:0禁用 1正常
///
[HttpGet]
[AjaxOnly]
- public ActionResult GetPageList(string pagination, string keyword, string companyId, string departmentId, string tp)
+ public ActionResult GetPageList(string pagination, string keyword, string companyId, string departmentId, string tp, string F_EnabledMark)
{
Pagination paginationobj = pagination.ToObject();
- var data = userIBLL.GetPageList(companyId, departmentId, paginationobj, keyword, tp);
+ var data = userIBLL.GetPageList(companyId, departmentId, paginationobj, keyword, tp, F_EnabledMark);
var jsonData = new
{
rows = data,
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.cshtml
index 41155f532..7e23be5aa 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.cshtml
@@ -23,6 +23,9 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.js
index 74b4bd965..e8057a1f8 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.js
@@ -22,9 +22,13 @@ var bootstrap = function ($, learun) {
// 查询
$('#btn_Search').on('click', function () {
var keyword = $('#txt_Keyword').val();
- page.search({ keyword: keyword });
+ var F_EnabledMark = $('#F_EnabledMark').lrselectGet();
+ page.search({ keyword: keyword, F_EnabledMark: F_EnabledMark });
+ });
+ $('#F_EnabledMark').lrselect({
+ placeholder: '请选择状态',
+ data: [{ id: '1', text: "正常" }, { id: '0', text: "禁用" }]
});
-
// 部门选择
$('#department_select').lrselect({
type: 'tree',
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.cshtml
index b9e38b54f..acbcd74b2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.cshtml
@@ -23,6 +23,9 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.js
index 6f52cf414..50546bd31 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.js
@@ -15,7 +15,12 @@ var bootstrap = function ($, learun) {
// 查询
$('#btn_Search').on('click', function () {
var keyword = $('#txt_Keyword').val();
- page.search({ keyword: keyword });
+ var F_EnabledMark = $('#F_EnabledMark').lrselectGet();
+ page.search({ keyword: keyword, F_EnabledMark: F_EnabledMark });
+ });
+ $('#F_EnabledMark').lrselect({
+ placeholder: '请选择状态',
+ data: [{ id: '1', text: "正常" }, { id: '0', text: "禁用" }]
});
// 系选择
$('#department_select').lrselect({
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_WebChatModule/Controllers/OrganizeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_WebChatModule/Controllers/OrganizeController.cs
index d4a7410cc..8ea13d267 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_WebChatModule/Controllers/OrganizeController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_WebChatModule/Controllers/OrganizeController.cs
@@ -189,7 +189,7 @@ namespace Learun.Application.Web.Areas.LR_WebChatModule.Controllers
{
Pagination paginationobj = pagination.ToObject();
//获取内部系统人员列表
- var data = userIBLL.GetPageList(companyId, departmentId, paginationobj, keyword,"");
+ var data = userIBLL.GetPageList(companyId, departmentId, paginationobj, keyword, "", "");
//获取微信员工列表
var wxData = GetUserList("1", 1);
if (wxData.errcode != 0)