@@ -14,16 +17,20 @@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_ChangeLog/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_ChangeLog/Index.js
index 7ff4fcd7a..a3cffab8a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_ChangeLog/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_ChangeLog/Index.js
@@ -45,6 +45,10 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
+ $('#StuChangeType').lrDataItemSelect({ code: 'StuChangeType' });
+ $('#StuID').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuid', text: 'stuname' });
+ $('#UpdateBy').lrDataSourceSelect({ code: 'BaseUser', value: 'f_account', text: 'f_realname' });
+
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -98,9 +102,35 @@ var bootstrap = function ($, learun) {
},
// 初始化列表
initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
+ $('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic_ChangeLog/GetPageList',
headData: [
+ {
+ label: "异动类型", name: "StuChangeType", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'StuChangeType',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "异动备注", name: "StuChangeRemark", width: 250, align: "left" },
+ {
+ label: "学生姓名", name: "StuID", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic',
+ key: value,
+ keyId: 'stuid',
+ callback: function (_data) {
+ callback(_data['stuname']);
+ }
+ });
+ }
+ },
{ label: "修改属性", name: "FieldName", width: 200, align: "left" },
{ label: "修改前", name: "BeforeChange", width: 200, align: "left" },
{ label: "修改后", name: "AfterChange", width: 200, align: "left" },
@@ -110,7 +140,7 @@ var bootstrap = function ($, learun) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
key: value,
- keyId: 'f_account',
+ keyId: 'f_userid',
callback: function (_data) {
callback(_data['f_realname']);
}
@@ -119,7 +149,6 @@ var bootstrap = function ($, learun) {
},
{ label: "修改时间", name: "UpdateTime", width: 200, align: "left" },
- { label: "数据主键", name: "StuID", width: 250, align: "left" },
],
mainId: 'ID',
isPage: true,
@@ -130,9 +159,18 @@ var bootstrap = function ($, learun) {
search: function (param) {
param = param || {};
- if ($("#StuID").val() != "" && $("#StuID").length > 0) {
- param.StuID = $("#StuID").val();
+
+ //赋值
+ if (stuId != "" && stuId != undefined && stuId != null) {
+ $('#StuID').lrselectSet(stuId);
+ $('#StuID').attr('readonly', 'readonly');
+ $('#StuID').parent().attr('display','none');
+ param.StuID = stuId;
+ } else {
+ $('#StuID').removeAttr('readonly');
+ $('#StuID').parent().attr('display', 'block');
}
+
param.StartTime = startTime;
param.EndTime = endTime;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs
index fa19beea7..a91cc5a86 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs
@@ -464,7 +464,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("STUDYMODALITY")]
public string StudyModality { get; set; }
///
- /// 学籍异动状态
+ /// 学籍异动状态(1表示不显示成绩)
///
///
[Column("CHANGESTATUS")]
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs
index 8eb9af102..63c57af88 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs
@@ -1064,17 +1064,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
public void SaveEntity(string keyValue, StuInfoBasicEntity entity)
{
+ var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
UserIBLL userIBLL = new UserBLL();
+ var loginUser = LoginUserInfo.Get();
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
- var oldEntity = this.BaseRepository("CollegeMIS").FindEntity
(keyValue);
+ var oldEntity = db.FindEntity(keyValue);
List list = new List();
- var loginUser = LoginUserInfo.Get();
- var tableInfos = this.BaseRepository("CollegeMIS").FindTable(@"SELECT t.[name] AS 表名,c.[name] AS 字段名,cast(ep.[value]
+ var tableInfos = db.FindTable(@"SELECT t.[name] AS 表名,c.[name] AS 字段名,cast(ep.[value]
as varchar(100)) AS [字段说明]
FROM sys.tables AS t
INNER JOIN sys.columns
@@ -1111,7 +1112,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
AfterChange = newValue.ToString(),
FieldName = columnName,
UpdateBy = loginUser.userId,
- UpdateTime = DateTime.Now
+ UpdateTime = DateTime.Now,
+ StuChangeType="09",
+ StuChangeRemark="点击学籍信息管理-修改按钮进行操作"
};
changeEntity.Create();
list.Add(changeEntity);
@@ -1121,7 +1124,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
if (list.Count > 0)
{
- this.BaseRepository("CollegeMIS").Insert(list);
+ db.Insert(list);
}
@@ -1142,37 +1145,55 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
userIBLL.SaveEntity(baseUser.F_UserId, baseUser);
}
- this.BaseRepository("CollegeMIS").Update(entity);
+ db.Update(entity);
}
else
{
entity.Create();
- if (entity.IsTran == "0")
+ if (entity.IsTran == "0")//转入/进
{
- StuInfoBasicChangeEntity stuinfoChange = new StuInfoBasicChangeEntity
+ //学籍异动表
+ //StuInfoBasicChangeEntity stuinfoChange = new StuInfoBasicChangeEntity
+ //{
+ // Id = Guid.NewGuid().ToString(),
+ // StuNo = entity.StuNo,
+ // StuName = entity.StuName,
+ // DeptNo = entity.DeptNo,
+ // MajorNo = entity.MajorNo,
+ // ClassNo = entity.ClassNo,
+ // StuChangeRemark = entity.Remark,
+ // NewDeptNo = entity.DeptNo,
+ // NewMajorNo = entity.MajorNo,
+ // NewClassNo = entity.ClassNo,
+ // CreateUserId = entity.StuNo,
+ // StuChangeType = "04",
+ // StuChangeReason = "10",
+ // CreateTime = DateTime.Now,
+ //};
+ //db.Insert(stuinfoChange);
+ //学籍异动日志表
+ var changeEntity = new StuInfoBasic_ChangeLogEntity
{
- Id = Guid.NewGuid().ToString(),
- StuNo = entity.StuNo,
- StuName = entity.StuName,
- DeptNo = entity.DeptNo,
- MajorNo = entity.MajorNo,
- ClassNo = entity.ClassNo,
- StuChangeRemark = entity.Remark,
- NewDeptNo = entity.DeptNo,
- NewMajorNo = entity.MajorNo,
- NewClassNo = entity.ClassNo,
- CreateUserId = entity.StuNo,
+ StuID = entity.StuId,
+ BeforeChange = "",
+ AfterChange = "",
+ FieldName = "",
+ UpdateBy = loginUser.userId,
+ UpdateTime = DateTime.Now,
StuChangeType = "04",
- StuChangeReason = "10",
- CreateTime = DateTime.Now,
+ StuChangeRemark = "点击学籍信息管理-异动转入按钮进行操作"
};
- this.BaseRepository("CollegeMIS").Insert(stuinfoChange);
+ changeEntity.Create();
+ db.Insert(changeEntity);
}
- this.BaseRepository("CollegeMIS").Insert(entity);
+ db.Insert(entity);
}
+
+ db.Commit();
}
catch (Exception ex)
{
+ db.Rollback();
if (ex is ExceptionEx)
{
throw;
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs
index b58c8c2b2..298b37876 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs
@@ -45,17 +45,17 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("CLASSNO")]
public string ClassNo { get; set; }
///
- /// StuChangeType
+ /// 异动类型(留级01,转出/校02,复学03,转入/进04,退学05,休学06,转班07,转专业08,学籍关键信息更改09)
///
[Column("STUCHANGETYPE")]
public string StuChangeType { get; set; }
///
- /// StuChangeReason
+ /// 异动原因
///
[Column("STUCHANGEREASON")]
public string StuChangeReason { get; set; }
///
- /// StuChangeRemark
+ /// 异动备注
///
[Column("STUCHANGEREMARK")]
public string StuChangeRemark { get; set; }
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs
index 17f8e9173..b0b62d8ac 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs
@@ -149,30 +149,215 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
+ var loginUserInfo = LoginUserInfo.Get();
+ var now = DateTime.Now;
+ var logList = new List();
var entity = db.FindEntity(x => x.Id == keyValue);
if (entity != null)
{
- //处理数据
- if (entity.StuChangeType == "01" || entity.StuChangeType == "03") //降级、转班、转专业
+ var stuInfoBasicEntity = db.FindEntity(x => x.StuNo == entity.StuNo);
+ if (stuInfoBasicEntity != null)
{
- //改信息;
- var classInfoEntity = db.FindEntity(x => x.ClassNo == entity.NewClassNo);
- if (classInfoEntity != null)
+ //处理数据
+ if (entity.StuChangeType == "01" || entity.StuChangeType == "07") //降级、转班、
{
- db.ExecuteBySql($"update StuInfoBasic set DeptNo='{entity.NewDeptNo}',MajorNo='{entity.NewMajorNo}',ClassNo='{entity.NewClassNo}',Grade='{classInfoEntity.Grade}' where StuNo='{entity.StuNo}' ");
+ if (stuInfoBasicEntity.ClassNo != entity.NewClassNo)
+ {
+ var classInfoEntity = db.FindEntity(x => x.ClassNo == entity.NewClassNo);
+ if (classInfoEntity != null)
+ {
+ if (stuInfoBasicEntity.Grade != classInfoEntity.Grade)
+ {
+ //增加异动日志表:年级
+ var logentity2 = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "年级",
+ BeforeChange = stuInfoBasicEntity.Grade,
+ AfterChange = classInfoEntity.Grade,
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity2.Create();
+ logList.Add(logentity2);
+ }
+ //改学籍信息表;
+ db.ExecuteBySql($"update StuInfoBasic set ClassNo='{entity.NewClassNo}',Grade='{classInfoEntity.Grade}' where StuNo='{entity.StuNo}' ");
+ //增加异动日志表:班级
+ var logentity = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "班级",
+ BeforeChange = entity.ClassNo,
+ AfterChange = entity.NewClassNo,
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity.Create();
+ logList.Add(logentity);
+ }
+ }
+
}
- }
- else if (entity.StuChangeType == "02" || entity.StuChangeType == "04") //退学、休学
- {
- //改信息;不显示成绩;
- db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=1 where StuNo='{entity.StuNo}' ");
- }
+ else if (entity.StuChangeType == "02" || entity.StuChangeType == "05" || entity.StuChangeType == "06") //转校、退学、休学、
+ {
+ //增加异动日志表:学籍异动状态
+ var logentity = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "学籍异动状态",
+ BeforeChange = stuInfoBasicEntity.ChangeStatus?.ToString(),
+ AfterChange = "1",
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity.Create();
+ logList.Add(logentity);
+ //改学籍信息(异动状态为1表示不显示成绩);
+ db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=1 where StuNo='{entity.StuNo}' ");
+ }
+ else if (entity.StuChangeType == "03") //复学
+ {
+ //增加异动日志表:学籍异动状态
+ var logentity = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "学籍异动状态",
+ BeforeChange = stuInfoBasicEntity.ChangeStatus?.ToString(),
+ AfterChange = "0",
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity.Create();
+ logList.Add(logentity);
+ //改学籍信息(异动状态为0表示显示成绩);
+ db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=null where StuNo='{entity.StuNo}' ");
+ }
+ else if (entity.StuChangeType == "08") //转专业、
+ {
+ if (stuInfoBasicEntity.MajorNo != entity.NewMajorNo)
+ {
+ var classInfoEntity2 = db.FindEntity(x => x.ClassNo == entity.NewClassNo);
+ if (classInfoEntity2 != null)
+ {
+ if (stuInfoBasicEntity.Grade != classInfoEntity2.Grade)
+ {
+ //增加异动日志表:年级
+ var logentity3 = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "年级",
+ BeforeChange = stuInfoBasicEntity.Grade,
+ AfterChange = classInfoEntity2.Grade,
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity3.Create();
+ logList.Add(logentity3);
+ }
+ //改学籍信息;
+ db.ExecuteBySql($"update StuInfoBasic set MajorNo='{entity.NewMajorNo}',ClassNo='{entity.NewClassNo}',Grade='{classInfoEntity2.Grade}' where StuNo='{entity.StuNo}' ");
+ //增加异动日志表:专业
+ var logentity = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "专业",
+ BeforeChange = entity.MajorNo,
+ AfterChange = entity.NewMajorNo,
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity.Create();
+ logList.Add(logentity);
+ //增加异动日志表:班级
+ var logentity2 = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "班级",
+ BeforeChange = entity.ClassNo,
+ AfterChange = entity.NewClassNo,
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity2.Create();
+ logList.Add(logentity2);
+ }
+ }
+ else
+ {
+ if (stuInfoBasicEntity.ClassNo != entity.NewClassNo)
+ {
+ var classInfoEntity2 = db.FindEntity(x => x.ClassNo == entity.NewClassNo);
+ if (classInfoEntity2 != null)
+ {
+ if (stuInfoBasicEntity.Grade != classInfoEntity2.Grade)
+ {
+ //增加异动日志表:年级
+ var logentity2 = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "年级",
+ BeforeChange = stuInfoBasicEntity.Grade,
+ AfterChange = classInfoEntity2.Grade,
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity2.Create();
+ logList.Add(logentity2);
+ }
+ //改学籍信息表;
+ db.ExecuteBySql($"update StuInfoBasic set MajorNo='{entity.NewMajorNo}',ClassNo='{entity.NewClassNo}',Grade='{classInfoEntity2.Grade}' where StuNo='{entity.StuNo}' ");
+ //增加异动日志表:班级
+ var logentity = new StuInfoBasic_ChangeLogEntity()
+ {
+ FieldName = "班级",
+ BeforeChange = entity.ClassNo,
+ AfterChange = entity.NewClassNo,
+ UpdateBy = loginUserInfo.userId,
+ UpdateTime = now,
+ StuID = stuInfoBasicEntity.StuId,
+ StuChangeType = entity.StuChangeType,
+ StuChangeRemark = entity.StuChangeRemark,
+ StuChangeId = entity.Id
+ };
+ logentity.Create();
+ logList.Add(logentity);
+ }
+ }
+ }
+ }
+ db.Insert(logList);
- //修改状态
- entity.CheckTime = DateTime.Now;
- entity.CheckUserId = LoginUserInfo.Get().account;
- entity.CheckStatus = 1;
- db.Update(entity);
+ //修改异动表:审批状态、审批人、
+ entity.CheckTime = now;
+ entity.CheckUserId = loginUserInfo.userId;
+ entity.CheckStatus = 1;
+ db.Update(entity);
+ }
}
db.Commit();
}
@@ -204,23 +389,31 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
if (entity != null)
{
//处理数据
- if (entity.StuChangeType == "01" || entity.StuChangeType == "02" || entity.StuChangeType == "03") //降级、转班、转专业
+ if (entity.StuChangeType == "01" || entity.StuChangeType == "07" || entity.StuChangeType == "08") //降级、转班、转专业、
{
- //改信息;
+ //改学籍信息;
var classInfoEntity = db.FindEntity(x => x.ClassNo == entity.ClassNo);
if (classInfoEntity != null)
{
db.ExecuteBySql($"update StuInfoBasic set DeptNo='{entity.DeptNo}',MajorNo='{entity.MajorNo}',ClassNo='{entity.ClassNo}',Grade='{classInfoEntity.Grade}' where StuNo='{entity.StuNo}' ");
}
}
- else if (entity.StuChangeType == "04" || entity.StuChangeType == "05") //退学、休学
+ else if (entity.StuChangeType == "02" || entity.StuChangeType == "05" || entity.StuChangeType == "06") //转校、退学、休学
{
- //改信息;显示成绩;
+ //改学籍信息(异动状态为null表示显示成绩);
db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=null where StuNo='{entity.StuNo}' ");
}
+ else if (entity.StuChangeType == "03") //复学
+ {
+ //改学籍信息(异动状态为1表示不显示成绩);
+ db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=1 where StuNo='{entity.StuNo}' ");
+ }
- //修改状态
+ //修改异动表:审批状态、审批人、
db.ExecuteBySql("update StuInfoBasicChange set CheckTime=null,CheckUserId=null,CheckStatus=0 where Id='" + keyValue + "' ");
+ //删除异动日志表:学籍异动主键id
+ db.ExecuteBySql("delete from StuInfoBasic_ChangeLog where StuChangeId='" + keyValue + "' ");
+
}
db.Commit();
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_ChangeLog/StuInfoBasic_ChangeLogEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_ChangeLog/StuInfoBasic_ChangeLogEntity.cs
index 38d1e0a44..474ad6ed7 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_ChangeLog/StuInfoBasic_ChangeLogEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_ChangeLog/StuInfoBasic_ChangeLogEntity.cs
@@ -51,6 +51,21 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("STUID")]
public string StuID { get; set; }
+ ///
+ /// 学籍异动类型(留级01,转出/校02,复学03,转入/进04,退学05,休学06,转班07,转专业08,学籍关键信息更改09)
+ ///
+ [Column("STUCHANGETYPE")]
+ public string StuChangeType { get; set; }
+ ///
+ /// 学籍异动备注
+ ///
+ [Column("STUCHANGEREMARK")]
+ public string StuChangeRemark { get; set; }
+ ///
+ /// StuInfoBasicChange主键
+ ///
+ [Column("STUCHANGEID")]
+ public string StuChangeId { get; set; }
#endregion
#region 扩展操作
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_ChangeLog/StuInfoBasic_ChangeLogService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_ChangeLog/StuInfoBasic_ChangeLogService.cs
index 335ab28f7..e5bfd65be 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_ChangeLog/StuInfoBasic_ChangeLogService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic_ChangeLog/StuInfoBasic_ChangeLogService.cs
@@ -29,16 +29,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
var strSql = new StringBuilder();
- strSql.Append("SELECT ");
- strSql.Append(@"
- t.ID,
- t.FieldName,
- t.BeforeChange,
- t.AfterChange,
- t.UpdateBy,
- t.UpdateTime,
- t.StuID
- ");
+ strSql.Append("SELECT t.*");
strSql.Append(" FROM StuInfoBasic_ChangeLog t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
@@ -57,7 +48,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
if (!queryParam["StuID"].IsEmpty())
{
- dp.Add("StuID", "" + queryParam["StuID"].ToString() + "", DbType.String);
+ dp.Add("StuID", queryParam["StuID"].ToString(), DbType.String);
strSql.Append(" AND t.StuID = @StuID ");
}
if (!queryParam["UpdateTime"].IsEmpty())
@@ -67,8 +58,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
if (!queryParam["UpdateBy"].IsEmpty())
{
- dp.Add("UpdateBy", "%" + queryParam["UpdateBy"].ToString() + "%", DbType.String);
- strSql.Append(" AND t.UpdateBy Like @UpdateBy ");
+ dp.Add("UpdateBy", queryParam["UpdateBy"].ToString(), DbType.String);
+ strSql.Append(" AND t.UpdateBy = @UpdateBy ");
}
return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination);
}
From 2bf275965cd6559607723eaa444e9e061c03892a Mon Sep 17 00:00:00 2001
From: ndbs
Date: Mon, 29 Aug 2022 11:30:20 +0800
Subject: [PATCH 09/13] =?UTF-8?q?app2.0=20=E5=85=AC=E6=96=87=E6=9F=A5?=
=?UTF-8?q?=E9=98=85=E6=89=8B=E6=9C=BA=E7=AB=AF=E8=A7=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Learun.Application.WebApi/Modules/Sys_ReceiveFileApi.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Sys_ReceiveFileApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Sys_ReceiveFileApi.cs
index 81017ca77..ecafe4c35 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Sys_ReceiveFileApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Sys_ReceiveFileApi.cs
@@ -77,7 +77,7 @@ namespace Learun.Application.WebApi
result = "/" + result.Substring(result.IndexOf("Resource"));
}
Sys_ReceiveFileData.Url = result;
-
+ Sys_ReceiveFileData.Contents = WebHelper.HtmlDecode(Sys_ReceiveFileData.Contents);
}
var jsonData = new
{
From 9c903c97685cbad103e69af70814d822457f371b Mon Sep 17 00:00:00 2001
From: ndbs
Date: Mon, 29 Aug 2022 11:34:56 +0800
Subject: [PATCH 10/13] =?UTF-8?q?app2.0=20=E6=94=B6=E4=BB=B6=E7=AE=B1?=
=?UTF-8?q?=E6=AD=A3=E6=96=87=E8=A7=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Modules/SYS_ReceiveMessageApi.cs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SYS_ReceiveMessageApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SYS_ReceiveMessageApi.cs
index 56f712ebb..53ac50bb5 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SYS_ReceiveMessageApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SYS_ReceiveMessageApi.cs
@@ -70,6 +70,10 @@ namespace Learun.Application.WebApi
{
string keyValue = this.GetReqData();
var SYS_ReceiveMessageData = sYS_ReceiveMessageIBLL.GetUrlSYS_ReceiveMessageEntity(keyValue);
+ if (SYS_ReceiveMessageData != null)
+ {
+ SYS_ReceiveMessageData.CONTENTS = WebHelper.HtmlDecode(SYS_ReceiveMessageData.CONTENTS);
+ }
var jsonData = new
{
SYS_ReceiveMessage = SYS_ReceiveMessageData,
From 3279a225bed6d355e64afb4faab9e936ff31ec21 Mon Sep 17 00:00:00 2001
From: ndbs
Date: Mon, 29 Aug 2022 11:55:58 +0800
Subject: [PATCH 11/13] =?UTF-8?q?app2.0=20=E6=A0=A1=E5=86=85=E9=80=9A?=
=?UTF-8?q?=E7=9F=A5=E5=85=AC=E5=91=8A=E5=AE=A1=E6=A0=B8=E6=AD=A3=E6=96=87?=
=?UTF-8?q?=E8=A7=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Learun.Application.WebApi/Modules/NewsApi.cs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs
index 30966dbde..d06470df0 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs
@@ -139,6 +139,10 @@ namespace Learun.Application.WebApi.Modules
F_SendPostId.Trim(',');
shlist.F_SendPostId = F_SendPostId;
}
+ if (!shlist.F_NewsContent.IsEmpty())
+ {
+ shlist.F_NewsContent = WebHelper.HtmlDecode(shlist.F_NewsContent);
+ }
return Success(shlist);
}
From 8c87926ccf9e19970db8903e92b3b02ab768fbaf Mon Sep 17 00:00:00 2001
From: dyy <807692433@qq.com>
Date: Mon, 29 Aug 2022 14:08:13 +0800
Subject: [PATCH 12/13] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?=
=?UTF-8?q?=E5=AD=A6=E7=B1=8D=E5=BC=82=E5=8A=A8=E7=AE=A1=E7=90=86=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Views/StuInfoBasicChange/Form.js | 26 ++++++++++++++++---
.../Views/StuInfoBasicChange/Index.js | 2 +-
.../Views/StuInfoBasic_ChangeLog/Index.js | 2 +-
.../StuInfoBasic/StuInfoBasicService.cs | 4 +--
4 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js
index 114114e35..6dfe0411e 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js
@@ -40,7 +40,13 @@ var bootstrap = function ($, learun) {
if (item.id === "01" || item.id === "07") { //留级、转班
$(".NewContainer").find('.contentDiv.zhuanban').removeAttr('readonly');
$("#NewDeptNo").lrselectSet($("#DeptNo").lrselectGet());
- $("#NewMajorNo").lrselectSet($("#MajorNo").lrselectGet());
+ var timer1 = setInterval(function () {
+ if ($("#NewDeptNo").lrselectGet()) {
+ $("#NewMajorNo").lrselectSet($("#MajorNo").lrselectGet());
+ console.log("系部赋值后,在赋值专业:" + $("#NewMajorNo").lrselectGet());
+ clearInterval(timer1);
+ }
+ }, 1000);
} else if (item.id === "02") {//转校
$(".NewContainer").find('.contentDiv').removeAttr("isvalid");
$(".NewContainer").find('.contentDiv').removeAttr("checkexpession");
@@ -55,8 +61,19 @@ var bootstrap = function ($, learun) {
$(".NewSchool").show();
} else if (item.id === "03") { //复学
$("#NewDeptNo").lrselectSet($("#DeptNo").lrselectGet());
- $("#NewMajorNo").lrselectSet($("#MajorNo").lrselectGet());
- $("#NewClassNo").lrselectSet($("#ClassNo").lrselectGet());
+ var timer2 = setInterval(function () {
+ if ($("#NewDeptNo").lrselectGet()) {
+ $("#NewMajorNo").lrselectSet($("#MajorNo").lrselectGet());
+ console.log("系部赋值后,在赋值专业:" + $("#NewMajorNo").lrselectGet());
+ clearInterval(timer2);
+ }
+ }, 1000);
+ var timer3 = setInterval(function () {
+ if ($("#NewMajorNo").lrselectGet()) {
+ $("#NewClassNo").lrselectSet($("#ClassNo").lrselectGet());
+ clearInterval(timer3);
+ }
+ }, 1000);
} else if (item.id === "04") { //转入/进
learun.alert.warning("异动转进请点击学籍信息管理-异动转入按钮!");
$("#StuNo").val("");
@@ -86,6 +103,7 @@ var bootstrap = function ($, learun) {
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#NewDeptNo').lrDataSourceSelect({
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (item) {
+ //console.log("选择的系部为:" + JSON.stringify(item));
if (item != null && item != undefined) {
$('#NewMajorNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
@@ -101,6 +119,7 @@ var bootstrap = function ($, learun) {
});
$('#NewMajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: function (item) {
+ //console.log("选择的专业为:" + JSON.stringify(item));
if (item != null && item != undefined) {
$('#NewClassNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
@@ -221,6 +240,7 @@ var bootstrap = function ($, learun) {
};
// 保存数据
acceptClick = function (callBack) {
+ //console.log($('body').lrGetFormData());
if (!$('body').lrValidform()) {
return false;
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.js
index bca4b9019..76ceab8f3 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.js
@@ -218,11 +218,11 @@ var bootstrap = function ($, learun) {
});
}
},
+ { label: "转出学校", name: "OutSchool", width: 200, align: "left" },
{ label: "创建时间", name: "CreateTime", width: 130, align: "left" },
{ label: "创建用户", name: "CreateUserId", width: 100, align: "left" },
{ label: "审核时间", name: "CheckTime", width: 130, align: "left" },
{ label: "审核用户", name: "CheckUserId", width: 100, align: "left" },
- { label: "转出学校", name: "OutSchool", width: 200, align: "left" },
{ label: "备注", name: "StuChangeRemark", width: 200, align: "left" },
{
label: "审核状态", name: "CheckStatus", width: 100, align: "left",
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_ChangeLog/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_ChangeLog/Index.js
index a3cffab8a..68171d647 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_ChangeLog/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_ChangeLog/Index.js
@@ -106,7 +106,7 @@ var bootstrap = function ($, learun) {
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic_ChangeLog/GetPageList',
headData: [
{
- label: "异动类型", name: "StuChangeType", width: 100, align: "left",
+ label: "异动类型", name: "StuChangeType", width: 150, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs
index 63c57af88..be484e3aa 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs
@@ -1073,9 +1073,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
entity.Modify(keyValue);
- var oldEntity = db.FindEntity(keyValue);
+ var oldEntity = this.BaseRepository("CollegeMIS").FindEntity(keyValue);
List list = new List();
- var tableInfos = db.FindTable(@"SELECT t.[name] AS 表名,c.[name] AS 字段名,cast(ep.[value]
+ var tableInfos = this.BaseRepository("CollegeMIS").FindTable(@"SELECT t.[name] AS 表名,c.[name] AS 字段名,cast(ep.[value]
as varchar(100)) AS [字段说明]
FROM sys.tables AS t
INNER JOIN sys.columns
From c4aa7eff3d6e2c1df94f6e9b845e45b39ea20412 Mon Sep 17 00:00:00 2001
From: ndbs
Date: Mon, 29 Aug 2022 14:41:03 +0800
Subject: [PATCH 13/13] =?UTF-8?q?=E5=8F=96=E6=B6=88=20=E7=99=BB=E5=BD=95?=
=?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E9=AA=8C=E8=AF=81=E4=B8=BA=E5=AF=86?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Learun.Application.Organization/User/UserBLL.cs | 10 +++++-----
.../Learun.Application.Web/Views/Login/Default.cshtml | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs
index e2293df0e..69cc88833 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs
@@ -1111,15 +1111,15 @@ namespace Learun.Application.Organization
else
{
string dbPassword = Md5Helper.Encrypt(DESEncrypt.Encrypt(password.ToLower(), userEntity.F_Secretkey).ToLower(), 32).ToLower();
- string phone = Md5Helper.Encrypt(userEntity.F_Mobile, 32).ToLower();
+ //string phone = Md5Helper.Encrypt(userEntity.F_Mobile, 32).ToLower();
if (dbPassword == userEntity.F_Password)
{
userEntity.LoginOk = true;
}
- else if (phone == password)
- {
- userEntity.LoginOk = true;
- }
+ //else if (phone == password)
+ //{
+ // userEntity.LoginOk = true;
+ //}
else
{
userEntity.LoginMsg = "密码和账户名不匹配!";
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default.cshtml
index 6afa2d93b..754ba1912 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default.cshtml
@@ -89,7 +89,7 @@