Przeglądaj źródła

【修改】教师/学生用户管理:增加状态查询;

塔里木分支
dyy 3 miesięcy temu
rodzic
commit
6c84242f6e
9 zmienionych plików z 32 dodań i 12 usunięć
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserIBLL.cs
  3. +7
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs
  4. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/UserController.cs
  5. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.cshtml
  6. +6
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.js
  7. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.cshtml
  8. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.js
  9. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_WebChatModule/Controllers/OrganizeController.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs Wyświetl plik

@@ -271,11 +271,11 @@ namespace Learun.Application.Organization
/// <param name="keyword">查询关键词</param>
/// <param name="tp">0 教师 1学生</param>
/// <returns></returns>
public List<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp)
public List<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp, string F_EnabledMark)
{
try
{
return (List<UserEntity>)userService.GetPageList(companyId, departmentId, pagination, keyword, tp);
return (List<UserEntity>)userService.GetPageList(companyId, departmentId, pagination, keyword, tp, F_EnabledMark);
}
catch (Exception ex)
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserIBLL.cs Wyświetl plik

@@ -58,7 +58,7 @@ namespace Learun.Application.Organization
/// <param name="keyword">查询关键词</param>
/// <param name="tp">0 教师 1学生</param>
/// <returns></returns>
List<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp);
List<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp, string F_EnabledMark);
/// <summary>
/// 用户列表(导出Excel)
/// </summary>


+ 7
- 3
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs Wyświetl plik

@@ -178,7 +178,7 @@ namespace Learun.Application.Organization
/// <param name="keyword"></param>
/// <param name="tp">类型 0学生 1 教师</param>
/// <returns></returns>
public IEnumerable<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp)
public IEnumerable<UserEntity> 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<UserEntity>(strSql.ToString(), new { companyId, departmentId, keyword }, pagination);
if (!string.IsNullOrEmpty(F_EnabledMark))
{
strSql.Append(" AND t.F_EnabledMark=@F_EnabledMark ");
}

return this.BaseRepository().FindList<UserEntity>(strSql.ToString(), new { companyId, departmentId, keyword, F_EnabledMark }, pagination);
}
catch (Exception ex)
{


+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/UserController.cs Wyświetl plik

@@ -90,13 +90,14 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
/// <param name="companyId">公司主键</param>
/// <param name="departmentId">部门主键</param>
/// <param name="tp">0 教师 1学生</param>
/// <param name="F_EnabledMark">状态:0禁用 1正常</param>
/// <returns></returns>
[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<Pagination>();
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,


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.cshtml Wyświetl plik

@@ -23,6 +23,9 @@
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" />
</div>
<div class="lr-layout-tool-item" style="width: 160px;">
<div id="F_EnabledMark" style="border-radius: 4px;"></div>
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;<span class="lrlt">查询</span></a>
</div>


+ 6
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/Index.js Wyświetl plik

@@ -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',


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.cshtml Wyświetl plik

@@ -23,6 +23,9 @@
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" />
</div>
<div class="lr-layout-tool-item" style="width: 160px;">
<div id="F_EnabledMark" style="border-radius: 4px;"></div>
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;<span class="lrlt">查询</span></a>
</div>


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/User/StudentIndex.js Wyświetl plik

@@ -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({


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_WebChatModule/Controllers/OrganizeController.cs Wyświetl plik

@@ -189,7 +189,7 @@ namespace Learun.Application.Web.Areas.LR_WebChatModule.Controllers
{
Pagination paginationobj = pagination.ToObject<Pagination>();
//获取内部系统人员列表
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)


Ładowanie…
Anuluj
Zapisz