Kaynağa Gözat

接口 学生课表查看详情页

新疆警官学校中职
ndbs 2 yıl önce
ebeveyn
işleme
a10dc19018
1 değiştirilmiş dosya ile 19 ekleme ve 1 silme
  1. +19
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuLeaveManagement/StuLeaveManagementService.cs

+ 19
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuLeaveManagement/StuLeaveManagementService.cs Dosyayı Görüntüle

@@ -195,7 +195,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{ {
try try
{ {
return this.BaseRepository("CollegeMIS").FindEntity<StuLeaveManagementEntity>(keyValue);
var data = this.BaseRepository("CollegeMIS").FindEntity<StuLeaveManagementEntity>(keyValue);
if (data != null)
{
var studentlist = this.BaseRepository("CollegeMIS").FindList<StuInfoBasicEntity>(x => x.StuNo == data.CreateUserNo).FirstOrDefault();
if (studentlist != null)
{
data.DeptNo = studentlist.DeptNo;
data.MajorNo = studentlist.MajorNo;
data.ClassNo = studentlist.ClassNo;
data.CreateUserName = studentlist.StuName;
}
var classlist = this.BaseRepository("CollegeMIS").FindList<ClassInfoEntity>(x =>x.ClassNo == data.ClassNo).FirstOrDefault();
if (classlist!=null)
{
data.ClassDiredctorNo = classlist.ClassDiredctorNo;
data.ClassTutorNo = classlist.ClassTutorNo;
}
}
return data;
} }
catch (Exception ex) catch (Exception ex)
{ {


Yükleniyor…
İptal
Kaydet