Explorar el Código

【修改】教学业务档案:优化;

怀来职教中心中职
dyy hace 1 año
padre
commit
2a014d867d
Se han modificado 2 ficheros con 11 adiciones y 3 borrados
  1. +6
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js
  2. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs

+ 6
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherServiceInfo/Index.js Ver fichero

@@ -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) });
}
};


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherServiceInfo/TeacherServiceInfoService.cs Ver fichero

@@ -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<TeacherServiceInfoEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)


Cargando…
Cancelar
Guardar