@@ -16,7 +16,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
/// </summary> | /// </summary> | ||||
public class StuEncourgementTranController : MvcControllerBase | public class StuEncourgementTranController : MvcControllerBase | ||||
{ | { | ||||
private StuEncourgementIBLL stuEncourgementIBLL = new StuEncourgementBLL(); | |||||
private StuEncourgementTranIBLL stuEncourgementTranIBLL = new StuEncourgementTranBLL(); | |||||
#region 视图功能 | #region 视图功能 | ||||
@@ -88,7 +88,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
public ActionResult GetPageList(string pagination, string queryJson) | public ActionResult GetPageList(string pagination, string queryJson) | ||||
{ | { | ||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | Pagination paginationobj = pagination.ToObject<Pagination>(); | ||||
var data = stuEncourgementIBLL.GetPageList(paginationobj, queryJson); | |||||
var data = stuEncourgementTranIBLL.GetPageList(paginationobj, queryJson); | |||||
var jsonData = new | var jsonData = new | ||||
{ | { | ||||
rows = data, | rows = data, | ||||
@@ -107,7 +107,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetPageListOne(string queryJson) | public ActionResult GetPageListOne(string queryJson) | ||||
{ | { | ||||
var data = stuEncourgementIBLL.GetPageList(queryJson); | |||||
var data = stuEncourgementTranIBLL.GetPageList(queryJson); | |||||
var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.DeptNo, x.Num }).Select(x => new | var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.DeptNo, x.Num }).Select(x => new | ||||
{ | { | ||||
AcademicYearNo = x.Key.AcademicYearNo, | AcademicYearNo = x.Key.AcademicYearNo, | ||||
@@ -126,7 +126,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetPageListTwo(string queryJson) | public ActionResult GetPageListTwo(string queryJson) | ||||
{ | { | ||||
var data = stuEncourgementIBLL.GetPageList(queryJson); | |||||
var data = stuEncourgementTranIBLL.GetPageList(queryJson); | |||||
var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.DeptNo, x.Grade, x.Num }).Select(x => new | var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.DeptNo, x.Grade, x.Num }).Select(x => new | ||||
{ | { | ||||
AcademicYearNo = x.Key.AcademicYearNo, | AcademicYearNo = x.Key.AcademicYearNo, | ||||
@@ -146,7 +146,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetPageListThree(string queryJson) | public ActionResult GetPageListThree(string queryJson) | ||||
{ | { | ||||
var data = stuEncourgementIBLL.GetPageList(queryJson); | |||||
var data = stuEncourgementTranIBLL.GetPageList(queryJson); | |||||
var data1 = data.GroupBy(x => new | var data1 = data.GroupBy(x => new | ||||
{ | { | ||||
x.AcademicYearNo, | x.AcademicYearNo, | ||||
@@ -177,7 +177,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetPageListStu(string queryJson) | public ActionResult GetPageListStu(string queryJson) | ||||
{ | { | ||||
var data = stuEncourgementIBLL.GetPageList(queryJson); | |||||
var data = stuEncourgementTranIBLL.GetPageList(queryJson); | |||||
var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.StuNo, x.StuName, x.Num }).Select(x => new | var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.StuNo, x.StuName, x.Num }).Select(x => new | ||||
{ | { | ||||
AcademicYearNo = x.Key.AcademicYearNo, | AcademicYearNo = x.Key.AcademicYearNo, | ||||
@@ -197,7 +197,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetFormData(string keyValue) | public ActionResult GetFormData(string keyValue) | ||||
{ | { | ||||
var StuEncourgementData = stuEncourgementIBLL.GetStuEncourgementEntity(keyValue); | |||||
var StuEncourgementData = stuEncourgementTranIBLL.GetStuEncourgementEntity(keyValue); | |||||
var jsonData = new | var jsonData = new | ||||
{ | { | ||||
StuEncourgement = StuEncourgementData, | StuEncourgement = StuEncourgementData, | ||||
@@ -217,7 +217,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult DeleteForm(string keyValue) | public ActionResult DeleteForm(string keyValue) | ||||
{ | { | ||||
stuEncourgementIBLL.DeleteEntity(keyValue); | |||||
stuEncourgementTranIBLL.DeleteEntity(keyValue); | |||||
return Success("删除成功!"); | return Success("删除成功!"); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
@@ -230,8 +230,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult SaveForm(string keyValue, string strEntity) | public ActionResult SaveForm(string keyValue, string strEntity) | ||||
{ | { | ||||
StuEncourgementEntity entity = strEntity.ToObject<StuEncourgementEntity>(); | |||||
stuEncourgementIBLL.SaveEntity(keyValue, entity); | |||||
StuEncourgementTranEntity entity = strEntity.ToObject<StuEncourgementTranEntity>(); | |||||
stuEncourgementTranIBLL.SaveEntity(keyValue, entity); | |||||
return Success("保存成功!"); | return Success("保存成功!"); | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -22,20 +22,7 @@ var bootstrap = function ($, learun) { | |||||
url: top.$.rootUrl + '/LogisticsManagement/APStuHealthRecordsTran/GetPageList', | url: top.$.rootUrl + '/LogisticsManagement/APStuHealthRecordsTran/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ | { | ||||
label: "申请人", name: "PStuNo", 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: 'stuno', | |||||
callback: function (_data) { | |||||
callback(_data['stuname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "系", name: "PDeptNo", width: 100, align: "left", | |||||
label: "系", name: "DeptNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | ||||
@@ -48,7 +35,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
label: "专业", name: "PMajorNo", width: 100, align: "left", | |||||
label: "专业", name: "MajorNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | ||||
@@ -61,7 +48,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
label: "班级", name: "PClassNo", width: 100, align: "left", | |||||
label: "班级", name: "ClassNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', | ||||
@@ -73,31 +60,21 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "预约时间", name: "PTime", width: 100, align: "left" }, | |||||
{ | { | ||||
label: "预约老师", name: "PEmpNo", width: 100, align: "left", | |||||
label: "学生", name: "Stuno", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Psychology', | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | |||||
key: value, | key: value, | ||||
keyId: 'f_account', | |||||
keyId: 'stuno', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_realname']); | |||||
callback(_data['stuname']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
label: "预约成功", name: "PAgreee", width: 100, align: "left", | |||||
formatter(val) { | |||||
if (val === 'true') { | |||||
return '成功'; | |||||
} else { | |||||
return '待处理'; | |||||
} | |||||
} | |||||
}, | |||||
{ label: "备注", name: "Remark", width: 100, align: "left" }, | |||||
{ label: "描述", name: "Remark", width: 100, align: "left" }, | |||||
], | ], | ||||
mainId: 'ID', | mainId: 'ID', | ||||
isPage: true | isPage: true | ||||
@@ -106,7 +83,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.StuNo = StuNo; | |||||
param.Stuno = StuNo; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
}; | }; | ||||
@@ -346,6 +346,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
//历史数据 | //历史数据 | ||||
InsertEntity.StuId = item.StuId; | InsertEntity.StuId = item.StuId; | ||||
InsertEntity.ReturnSchoolId = item.ID; | InsertEntity.ReturnSchoolId = item.ID; | ||||
InsertEntity.StuTranId = item.StuTranId; | |||||
InsertEntity.StuNo = item.StuNo; | InsertEntity.StuNo = item.StuNo; | ||||
InsertEntity.StuName = item.StuName; | InsertEntity.StuName = item.StuName; | ||||
InsertEntity.Gender = item.Gender; | InsertEntity.Gender = item.Gender; | ||||
@@ -452,7 +453,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
foreach (var itemScore in StuScoreHistory) | foreach (var itemScore in StuScoreHistory) | ||||
{ | { | ||||
//插入新数据 | //插入新数据 | ||||
db.ExecuteBySql(" insert into StuScoreTran select * from StuScore where Scoreid = '" + itemScore.ScoreId + "' and Scoreid not in ('" + itemScore.ScoreId + "')"); | |||||
db.ExecuteBySql(" insert into StuScoreTran select * from StuScore where Scoreid = '" + itemScore.ScoreId + "'"); | |||||
//删除旧数据 | //删除旧数据 | ||||
db.Delete<StuScoreEntity>(x => x.ScoreId == itemScore.ScoreId); | db.Delete<StuScoreEntity>(x => x.ScoreId == itemScore.ScoreId); | ||||
} | } | ||||
@@ -466,7 +467,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
foreach (var entity in StuSelectLessonListHistory) | foreach (var entity in StuSelectLessonListHistory) | ||||
{ | { | ||||
//插入新数据 | //插入新数据 | ||||
db.ExecuteBySql("insert into StuSelectLessonListTran select * from StuSelectLessonList where SelectId='" + entity.SelectId + "' and SelectId not in ('" + entity.SelectId + "')"); | |||||
db.ExecuteBySql("insert into StuSelectLessonListTran select * from StuSelectLessonList where SelectId='" + entity.SelectId + "'"); | |||||
//删除旧数据 | //删除旧数据 | ||||
db.Delete<StuSelectLessonListEntity>(x => x.SelectId == entity.SelectId); | db.Delete<StuSelectLessonListEntity>(x => x.SelectId == entity.SelectId); | ||||
} | } | ||||
@@ -480,7 +481,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
foreach (var entity in StuSelectLessonListOfElectiveHistory) | foreach (var entity in StuSelectLessonListOfElectiveHistory) | ||||
{ | { | ||||
//插入新数据 | //插入新数据 | ||||
db.ExecuteBySql("insert into StuSelectLessonListOfElectiveTran select * from StuSelectLessonListOfElective where Id='" + entity.Id + "' and Id not in ('" + entity.Id + "')"); | |||||
db.ExecuteBySql("insert into StuSelectLessonListOfElectiveTran select * from StuSelectLessonListOfElective where Id='" + entity.Id + "'"); | |||||
//修改旧数据:报名成功时,选课表中报名成功人数字段减一; | //修改旧数据:报名成功时,选课表中报名成功人数字段减一; | ||||
if (entity.Status == 2) | if (entity.Status == 2) | ||||
{ | { | ||||
@@ -499,7 +500,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
foreach (var itemScore in StuScoreNotPassHistory) | foreach (var itemScore in StuScoreNotPassHistory) | ||||
{ | { | ||||
db.ExecuteBySql(" insert into StuScoreNotPassTran select * from StuScoreNotPass where Scoreid = '" + itemScore.ScoreId + "' and Scoreid not in ('" + itemScore.ScoreId + "')"); | |||||
db.ExecuteBySql(" insert into StuScoreNotPassTran select * from StuScoreNotPass where Scoreid = '" + itemScore.ScoreId + "'"); | |||||
//删除旧数据 | //删除旧数据 | ||||
db.Delete<StuScoreNotPassTranEntity>(x => x.ScoreId == itemScore.ScoreId); | db.Delete<StuScoreNotPassTranEntity>(x => x.ScoreId == itemScore.ScoreId); | ||||
} | } | ||||
@@ -514,7 +515,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
foreach (var itemScore in StuScoreNotPassTwoHistory) | foreach (var itemScore in StuScoreNotPassTwoHistory) | ||||
{ | { | ||||
//插入数据 | //插入数据 | ||||
db.ExecuteBySql(" insert into StuScoreNotPassTwoTran select * from StuScoreNotPassTwo where Scoreid = '" + itemScore.ScoreId + "' and Scoreid not in ('" + itemScore.ScoreId + "')"); | |||||
db.ExecuteBySql(" insert into StuScoreNotPassTwoTran select * from StuScoreNotPassTwo where Scoreid = '" + itemScore.ScoreId + "'"); | |||||
//删除旧数据 | //删除旧数据 | ||||
db.Delete<StuScoreNotPassTwoTranEntity>(x => x.ScoreId == itemScore.ScoreId); | db.Delete<StuScoreNotPassTwoTranEntity>(x => x.ScoreId == itemScore.ScoreId); | ||||
} | } | ||||
@@ -526,9 +527,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
foreach (var items in ScholarshipHistory) | foreach (var items in ScholarshipHistory) | ||||
{ | { | ||||
db.ExecuteBySql(" insert into ScholarshipTran select * from ScholarshipAudit where id = '" + items.Id + "' and Id not in ('" + items.Id + "')"); | |||||
db.ExecuteBySql(" insert into ScholarshipTran select * from ScholarshipAudit where id = '" + items.Id + "' "); | |||||
// 删除旧数据 | // 删除旧数据 | ||||
db.Delete<ScholarshipxjEntity>(x => x.Id == items.Id); | |||||
//db.Delete<ScholarshipxjEntity>(x => x.Id == items.Id); | |||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -538,9 +539,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
foreach (var items in AspHistory) | foreach (var items in AspHistory) | ||||
{ | { | ||||
db.ExecuteBySql(" insert into APStuHealthRecordsTran select * from APStuHealthRecords where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); | |||||
db.ExecuteBySql(" insert into APStuHealthRecordsTran select * from APStuHealthRecords where ID = '" + items.ID + "'"); | |||||
// 删除旧数据 | // 删除旧数据 | ||||
db.Delete<APStuHealthRecordsEntity>(x => x.ID == items.ID); | |||||
//db.Delete<APStuHealthRecordsEntity>(x => x.ID == items.ID); | |||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -550,9 +551,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
foreach (var items in MSRIntentionHistory) | foreach (var items in MSRIntentionHistory) | ||||
{ | { | ||||
db.ExecuteBySql(" insert into MSRIntentionManagementTran select * from MSRIntentionManagement where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); | |||||
db.ExecuteBySql(" insert into MSRIntentionManagementTran select * from MSRIntentionManagement where ID = '" + items.ID + "'"); | |||||
// 删除旧数据 | // 删除旧数据 | ||||
db.Delete<MSRIntentionManagementEntity>(x => x.ID == items.ID); | |||||
//db.Delete<MSRIntentionManagementEntity>(x => x.ID == items.ID); | |||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -562,9 +563,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
foreach (var items in MSRMilitaryRecordHistory) | foreach (var items in MSRMilitaryRecordHistory) | ||||
{ | { | ||||
db.ExecuteBySql(" insert into MSRMilitaryRecordTran select * from MSRMilitaryRecord where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); | |||||
db.ExecuteBySql(" insert into MSRMilitaryRecordTran select * from MSRMilitaryRecord where ID = '" + items.ID + "'"); | |||||
// 删除旧数据 | // 删除旧数据 | ||||
db.Delete<MSRMilitaryRecordEntity>(x => x.ID == items.ID); | |||||
//db.Delete<MSRMilitaryRecordEntity>(x => x.ID == items.ID); | |||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -574,9 +575,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
foreach (var items in MSRMilitaryServiceRegistrationHistory) | foreach (var items in MSRMilitaryServiceRegistrationHistory) | ||||
{ | { | ||||
db.ExecuteBySql(" insert into MSRMilitaryServiceRegistrationTran select * from MSRMilitaryServiceRegistration where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); | |||||
db.ExecuteBySql(" insert into MSRMilitaryServiceRegistrationTran select * from MSRMilitaryServiceRegistration where ID = '" + items.ID + "'"); | |||||
// 删除旧数据 | // 删除旧数据 | ||||
db.Delete<MSRMilitaryRecordEntity>(x => x.ID == items.ID); | |||||
//db.Delete<MSRMilitaryRecordEntity>(x => x.ID == items.ID); | |||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -586,9 +587,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
foreach (var items in StuEncourgementHistory) | foreach (var items in StuEncourgementHistory) | ||||
{ | { | ||||
db.ExecuteBySql(" insert into StuEncourgementTran select * from StuEncourgement where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); | |||||
db.ExecuteBySql(" insert into StuEncourgementTran select * from StuEncourgement where ID = '" + items.ID + "'"); | |||||
// 删除旧数据 | // 删除旧数据 | ||||
db.Delete<StuEncourgementEntity>(x => x.ID == items.ID); | |||||
//db.Delete<StuEncourgementEntity>(x => x.ID == items.ID); | |||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -598,9 +599,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
foreach (var items in StuPunishmentHistory) | foreach (var items in StuPunishmentHistory) | ||||
{ | { | ||||
db.ExecuteBySql(" insert into StuPunishmentTran select * from StuPunishment where ID = '" + items.Id + "' and ID not in ('" + items.Id + "')"); | |||||
db.ExecuteBySql(" insert into StuPunishmentTran select * from StuPunishment where ID = '" + items.Id + "'"); | |||||
// 删除旧数据 | // 删除旧数据 | ||||
db.Delete<StuPunishmentEntity>(x => x.Id == items.Id); | |||||
//db.Delete<StuPunishmentEntity>(x => x.Id == items.Id); | |||||
} | } | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -674,7 +675,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
upTrua.F_EnabledMark = 1; | upTrua.F_EnabledMark = 1; | ||||
upTrua.CheckTime = DateTime.Now; | upTrua.CheckTime = DateTime.Now; | ||||
upTrua.CheckUserId = userInfo.userId; | upTrua.CheckUserId = userInfo.userId; | ||||
//修改关联休学记录的 IsReturnSchool = 1 | //修改关联休学记录的 IsReturnSchool = 1 | ||||
db.ExecuteBySql(" update StuTransferInfo set IsReturnSchool = 1 where ID = '" + upTrua.ReturnSchoolId + "'"); | db.ExecuteBySql(" update StuTransferInfo set IsReturnSchool = 1 where ID = '" + upTrua.ReturnSchoolId + "'"); | ||||