Преглед на файлове

【修改】学籍信息管理:增加“生成新生信息”功能;

西昌分支
dyy преди 2 месеца
родител
ревизия
d76d03178b
променени са 7 файла, в които са добавени 90 реда и са изтрити 2 реда
  1. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml
  3. +10
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js
  4. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.js
  5. +21
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs
  6. +6
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs
  7. +37
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs

+ 14
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs Целия файл

@@ -537,6 +537,20 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
stuInfoBasicIBLL.SyncMajor();
return Success("同步成功");
}

/// <summary>
/// 生成新生信息
/// </summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult GenerateFreshInfo(string grade)
{
stuInfoBasicIBLL.GenerateFreshInfo(grade);
return Success("生成成功");
}


#endregion
}
}

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml Целия файл

@@ -55,6 +55,7 @@
<a id="lr_printInfo" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;学生简历表</a>
<a id="lr_syn" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 同步系部</a>
<a id="lr_synmajor" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 同步专业</a>
<a id="lr_generateFresh" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 生成新生信息</a>

</div>
</div>


+ 10
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js Целия файл

@@ -229,6 +229,16 @@ var bootstrap = function ($, learun) {
});
});

//生成新生信息
$('#lr_generateFresh').on('click', function () {
learun.prompt('请输入新生年级:例如24', function (value, index, elem) {
if (value) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GenerateFreshInfo', { grade: value }, function () {

});
}
});
});
},
// 初始化列表
initGird: function () {


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.js Целия файл

@@ -245,6 +245,7 @@ var bootstrap = function ($, learun) {
}
},
{ label: '身份证号', name: 'IdentityCardNo', width: 150, align: "left" },
{ label: '联系电话', name: 'telephone', width: 100, align: "left" },
{
label: '民族', name: 'NationalityNo', width: 80, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {


+ 21
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs Целия файл

@@ -396,6 +396,27 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
/// <summary>
/// 生成新生信息
/// </summary>
public void GenerateFreshInfo(string grade)
{
try
{
stuInfoBasicService.GenerateFreshInfo(grade);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

public void UpdateAccount()
{


+ 6
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs Целия файл

@@ -28,7 +28,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <returns></returns>
StuInfoBasicEntity GetStuInfoBasicEntity(string keyValue);
List<CdMajorEntity> GetMajorInfoWithGraduation();
void CreateGraduateNoByMajor(string CityCode,string SchoolCode,string MajorList);
void CreateGraduateNoByMajor(string CityCode, string SchoolCode, string MajorList);
StuInfoBasicEntity GetStuNoByAccount(string keyValue);

List<string> GetSaveClassStudents(string account);
@@ -48,7 +48,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 审核全部
/// </summary>
void CheckAll();
void AllowGraduate(string stuNo,string status);
void AllowGraduate(string stuNo, string status);
void SynPhoto();
/// <summary>
/// 删除实体数据
@@ -79,5 +79,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
IEnumerable<StuInfoBasicEntity> GetStuInfoByClassNo(string classNo);
void SyncDept();
void SyncMajor();
/// <summary>
/// 生成新生信息
/// </summary>
void GenerateFreshInfo(string grade);
}
}

+ 37
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs Целия файл

@@ -961,5 +961,42 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
/// <summary>
/// 生成新生信息
/// </summary>
public void GenerateFreshInfo(string grade)
{
try
{
var strSql = $@"insert into StuInfoFresh(ID, NoticeNo, ksh, StuNo, StuName, GenderNo, Birthday, ClassNo, DeptNo, MajorNo, MajorDetailNok,
MajorDetailName, PartyFaceNo, FamilyOriginNo, NationalityNo, ResidenceNo, TestStuSortNo, HealthStatusNo, WillNo,
TestStuSubjectNo, GraduateNo, PlanFormNo, IsThreeGood, IsExcellent, IsNormalCadre, IsProvinceFirstThree, OverseasChineseNo,
MatriculateSort, ProvinceNo, HighSchoolNo, RegionNo, Remark, IdentityCardNo, HighSchoolName,
GoodAt, telephone, MailAddress, Grade, ArriveDate, RegisterStatus, Photo,
CreateUserId,DepositBank, BankCard, BankLocation)
(
select NEWID(),NoticeNo,ksh,StuNo,StuName,GenderNo,Birthday,ClassNo,DeptNo,MajorNo,MajorDetailNo,
MajorDetailName,PartyFaceNo,FamilyOriginNo,NationalityNo,ResidenceNo,TestStuSortNo,HealthStatusNo,
WillNo,TestStuSubjectNo,GraduateNo,PlanFormNo,IsThreeGood,IsExcellent,IsNormalCadre,
IsProvinceFirstThree,OverseasChineseNo,MatriculateSort,ProvinceNo,HighSchoolNo,RegionNo,Remark,
IdentityCardNo,HighSchoolName,GoodAt,mobile,MailAddress,Grade,RegisterDate,RegisterStatus,Photo,
'{LoginUserInfo.Get().userId}',DepositBank,BankCard,BankLocation
from StuInfoBasic bb where bb.Grade='{grade}'
and bb.StuNo not in (select ff.StuNo from StuInfoFresh ff where ff.StuNo is not null)
)";
this.BaseRepository("CollegeMIS").ExecuteBySql(strSql);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
}
}

Зареждане…
Отказ
Запис