Ver código fonte

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

长阳分支推送专用
dyy 2 anos atrás
pai
commit
506beb7b2b
2 arquivos alterados com 11 adições e 0 exclusões
  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 Ver arquivo

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


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

@@ -1127,6 +1127,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dormitory.StudentID = "";
dormitory.StuName = "";
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);


Carregando…
Cancelar
Salvar