Pārlūkot izejas kodu

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

西昌分支
dyy pirms 2 mēnešiem
vecāks
revīzija
d76d03178b
7 mainītis faili ar 90 papildinājumiem un 2 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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);
}
}
}
}
}

Notiek ielāde…
Atcelt
Saglabāt