Преглед изворни кода

公告发布查询条件查询失败

临城职教中职
ndbs пре 2 година
родитељ
комит
7280c3307a
3 измењених фајлова са 9 додато и 4 уклоњено
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.cshtml
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js
  3. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/DepartmentReleasePermissions/DepartmentReleasePermissionsService.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.cshtml Прегледај датотеку

@@ -11,8 +11,8 @@
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">部门</div>
<div id="DepartmentID"></div>
<div class="lr-form-item-title">教师</div>
<div id="UserID"></div>
</div>
</div>
</div>


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js Прегледај датотеку

@@ -19,7 +19,7 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#DepartmentID').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' });
$('#UserID').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -124,7 +124,7 @@ var bootstrap = function ($, learun) {
},
search: function (param) {
param = param || {};
param.DepartmentID = departmentId;
//param.DepartmentID = departmentId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/DepartmentReleasePermissions/DepartmentReleasePermissionsService.cs Прегледај датотеку

@@ -46,6 +46,11 @@ namespace Learun.Application.TwoDevelopment.Permission
dp.Add("DepartmentID",queryParam["DepartmentID"].ToString(), DbType.String);
strSql.Append(" AND t.DepartmentID = @DepartmentID ");
}
if (!queryParam["UserID"].IsEmpty())
{
dp.Add("UserID", queryParam["UserID"].ToString(), DbType.String);
strSql.Append(" AND t.UserID = @UserID ");
}
return this.BaseRepository().FindList<DepartmentReleasePermissionsEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)


Loading…
Откажи
Сачувај