Browse Source

【修改】归档:清空宿舍时清空房间入住人数;毕业证生成:列表加身份证号;

长阳分支推送专用
dyy 2 years ago
parent
commit
506beb7b2b
2 changed files with 11 additions and 0 deletions
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.js
  2. +10
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.js View File

@@ -79,6 +79,7 @@ var bootstrap = function ($, learun) {
headData: [ headData: [
{ label: "学号", name: "StuNo", width: 150, align: "left" }, { label: "学号", name: "StuNo", width: 150, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" }, { label: "姓名", name: "StuName", width: 100, align: "left" },
{ label: "身份证号", name: "IdentityCardNo", width: 150, align: "left" },
{ {
label: "性别", name: "GenderNo", width: 80, align: "left", label: "性别", name: "GenderNo", width: 80, align: "left",
formatter: function (cellvalue) { formatter: function (cellvalue) {


+ 10
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs View File

@@ -1127,6 +1127,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dormitory.StudentID = ""; dormitory.StudentID = "";
dormitory.StuName = ""; dormitory.StuName = "";
db.Update(dormitory); db.Update(dormitory);
//宿舍上一级房间,入住人数-1
var room = db.FindEntity<Acc_DormitoryBuildEntity>(x => x.ID == dormitory.ParentID);
if (room != null)
{
if (room.CheckInStu.HasValue && room.CheckInStu.Value>0)
{
room.CheckInStu--;
db.Update(room);
}
}
} }
//班级置为已毕业班级 //班级置为已毕业班级
var classInfo = db.FindEntity<ClassInfoEntity>(x => x.ClassNo == item.ClassNo); var classInfo = db.FindEntity<ClassInfoEntity>(x => x.ClassNo == item.ClassNo);


Loading…
Cancel
Save