Kaynağa Gözat

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

怀来职教中心中职
dyy 1 yıl önce
ebeveyn
işleme
2a014d867d
2 değiştirilmiş dosya ile 11 ekleme ve 3 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet