diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js index c39007c3b..63a4641f3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js @@ -102,10 +102,12 @@ var bootstrap = function ($, learun) { { label: "创建用户", name: "CreateUser", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('user', { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', key: value, + keyId: 'f_userid', callback: function (_data) { - callback(_data.name); + callback(_data['f_realname']); } }); } @@ -117,7 +119,7 @@ var bootstrap = function ($, learun) { } }, { - label: "附件", name: "Path", width: 100, align: "left", formatter: function (cellvalue) { + label: "档案", name: "Path", width: 100, align: "left", formatter: function (cellvalue) { return !!cellvalue ? "已上传" : "未上传"; } }, @@ -132,6 +134,7 @@ var bootstrap = function ($, learun) { }, search: function (param) { param = param || {}; + param.CreateUser = learun.clientdata.get(['userinfo']).userId; $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs index 215f065d5..dd9c567a1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs @@ -53,6 +53,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration dp.Add("ServiceType", queryParam["ServiceType"].ToString(), DbType.String); strSql.Append(" AND t.ServiceType = @ServiceType "); } + if (!queryParam["CreateUser"].IsEmpty()) + { + dp.Add("CreateUser", queryParam["CreateUser"].ToString(), DbType.String); + strSql.Append(" AND t.CreateUser = @CreateUser "); + } return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination); } catch (Exception ex)