Просмотр исходного кода

【增加】学籍异动-转入:实体增加字段;增加申请方法、审核方法;

新疆警官学校中职
dyy 1 год назад
Родитель
Сommit
a8f96b21f0
3 измененных файлов: 305 добавлений и 220 удалений
  1. +4
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs
  2. +59
    -7
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs
  3. +242
    -212
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs

+ 4
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs Просмотреть файл

@@ -156,8 +156,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
[HttpPost] [HttpPost]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
[AjaxOnly] [AjaxOnly]
public ActionResult SaveForm(string keyValue, StuTransferInfoEntity entity)
public ActionResult SaveFormOfIn(string keyValue, string strEntity)
{ {
StuTransferInfoEntity entity = strEntity.ToObject<StuTransferInfoEntity>();
entity.AnomalousType = "04";
entity.ChangeReason = "转入";
stuTransferInfoIBLL.SaveEntity(keyValue, entity); stuTransferInfoIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!"); return Success("保存成功!");
} }


+ 59
- 7
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs Просмотреть файл

@@ -189,7 +189,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("RECOVERWRITEMARK")] [Column("RECOVERWRITEMARK")]
public string RecoverWriteMark { get; set; } public string RecoverWriteMark { get; set; }
/// <summary> /// <summary>
/// 学年限
/// 学年限
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("SUSPENSIONPERIOD")] [Column("SUSPENSIONPERIOD")]
@@ -207,17 +207,69 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("SUSPENSIONENDTIME")] [Column("SUSPENSIONENDTIME")]
public DateTime? SuspensionEndTime { get; set; } public DateTime? SuspensionEndTime { get; set; }
/// <summary> /// <summary>
/// 转学前学校
/// 是否已复学 0是 1否【休学】
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("TRANSFERSCHOOL")]
public string TransferSchool { get; set; }
[Column("ISRETURNSCHOOL")]
public string IsReturnSchool { get; set; }
/// <summary> /// <summary>
/// 转学前学
/// 转学前学校【转入】
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[Column("TRANSFERSTUNO")]
public string TransferStuNo { get; set; }
[Column("TRANSFERPRESCHOOL")]
public string TransferPreSchool { get; set; }
/// <summary>
/// 转学前年级【转入】
/// </summary>
/// <returns></returns>
[Column("TRANSFERPREGRADE")]
public string TransferPreGrade { get; set; }
/// <summary>
/// 转学前班级【转入】
/// </summary>
/// <returns></returns>
[Column("TRANSFERPRECLASS")]
public string TransferPreClass { get; set; }
/// <summary>
/// 转学前专业【转入】
/// </summary>
/// <returns></returns>
[Column("TRANSFERPREMAJOR")]
public string TransferPreMajor { get; set; }
/// <summary>
/// 转学前学号【转入】
/// </summary>
/// <returns></returns>
[Column("TRANSFERPRESTUNO")]
public string TransferPreStuNo { get; set; }
/// <summary>
/// 转学日期【转入】
/// </summary>
/// <returns></returns>
[Column("TRANSFERPREDATE")]
public DateTime? TransferPreDate { get; set; }
/// <summary>
/// 证件类型
/// </summary>
/// <returns></returns>
[Column("IDCARDTYPE")]
public string IdCardType { get; set; }
/// <summary>
/// 户口所在地
/// </summary>
/// <returns></returns>
[Column("RESIDENCEPLACE")]
public string ResidencePlace { get; set; }
/// <summary>
/// 籍贯
/// </summary>
[Column("REGIONNO")]
public string RegionNo { get; set; }
/// <summary>
/// 是否住宿
/// </summary>
[Column("ISINACCOMMODATION")]
public string IsInAccommodation { get; set; }
/// <summary> /// <summary>
/// 出身日期 /// 出身日期
/// </summary> /// </summary>


+ 242
- 212
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs Просмотреть файл

@@ -331,7 +331,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
} }
} }
/// <summary> /// <summary>
///
/// 审核
/// </summary> /// </summary>
/// <param name="keyValue"></param> /// <param name="keyValue"></param>
public void CheckEntity(string keyValue) public void CheckEntity(string keyValue)
@@ -352,227 +352,257 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
var upTrua = this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => x.ID == item); var upTrua = this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => x.ID == item);
upTrua.CheckUserId = userInfo.userId; upTrua.CheckUserId = userInfo.userId;
upTrua.CheckTime = DateTime.Now; upTrua.CheckTime = DateTime.Now;
upTrua.F_EnabledMark = 1;
UpStuTran.Add(upTrua); UpStuTran.Add(upTrua);
var stulist = this.BaseRepository("CollegeMIS").FindEntity<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);

#region 复制一份学生学籍表
var InsertStuTran = new StuInfoBasicTranEntity
//判断异动类型:转入时,学籍表增加数据;其他时,...;
if (upTrua.AnomalousType == "04")//转入
{
//学籍表加数据
var stuInfoBasicEntity = new StuInfoBasicEntity();
stuInfoBasicEntity.Create();
stuInfoBasicEntity.StuNo = upTrua.StuNo;
stuInfoBasicEntity.StuName = upTrua.StuName;
stuInfoBasicEntity.DeptNo = upTrua.DeptNo;
stuInfoBasicEntity.MajorNo = upTrua.MajorNo;
stuInfoBasicEntity.Grade = upTrua.Grade;
stuInfoBasicEntity.ClassNo = upTrua.ClassNo;
stuInfoBasicEntity.GenderNo = upTrua.Gender;
stuInfoBasicEntity.Birthday = upTrua.Birthday;
stuInfoBasicEntity.NationalityNo = upTrua.NationalityNo;
stuInfoBasicEntity.RegionNo = upTrua.RegionNo;
stuInfoBasicEntity.EntranceDate = upTrua.LeaveDate;
stuInfoBasicEntity.IdentityCardNo = upTrua.IdentityCardNo;
stuInfoBasicEntity.mobile = upTrua.Mobile;
stuInfoBasicEntity.FatherUnit = upTrua.ResidencePlace;
stuInfoBasicEntity.MailAddress = upTrua.MailAddress;
stuInfoBasicEntity.F_SchoolId = this.BaseRepository().FindEntity<CompanyEntity>(x => x.F_DeleteMark == 0 && x.F_EnabledMark == 1)?.F_CompanyId;
stuInfoBasicEntity.IdCardType = upTrua.IdCardType;
db.Insert(stuInfoBasicEntity);
}
else//其他
{ {
StuNo = stulist.StuNo,
StuCode = stulist.StuCode,
NoticeNo = stulist.NoticeNo,
GraduateYear = stulist.GraduateYear,
ksh = stulist.ksh,
DeptNo = stulist.DeptNo,
MajorNo = stulist.MajorNo,
MajorDetailNo = stulist.MajorDetailNo,
MajorDetailName = stulist.MajorDetailName,
Grade = stulist.Grade,
ClassNo = stulist.ClassNo,
StuName = stulist.StuName,
SpellFull = stulist.SpellFull,
SpellBrief = stulist.SpellBrief,
GenderNo = stulist.GenderNo,
Birthday = stulist.Birthday,
PartyFaceNo = stulist.PartyFaceNo,
FamilyOriginNo = stulist.FamilyOriginNo,
NationalityNo = stulist.NationalityNo,
ProvinceNo = stulist.ProvinceNo,
RegionNo = stulist.RegionNo,
ResidenceNo = stulist.ResidenceNo,
TestStuSortNo = stulist.TestStuSortNo,
HealthStatusNo = stulist.HealthStatusNo,
WillNo = stulist.WillNo,
TestStuSubjectNo = stulist.TestStuSubjectNo,
GraduateNo = stulist.GraduateNo,
PlanFormNo = stulist.PlanFormNo,
IsThreeGood = stulist.IsThreeGood,
IsExcellent = stulist.IsExcellent,
IsNormalCadre = stulist.IsNormalCadre,
IsProvinceFirstThree = stulist.IsProvinceFirstThree,
OverseasChineseNo = stulist.OverseasChineseNo,
MatriculateSort = stulist.MatriculateSort,
ComeProvinceNo = stulist.ComeProvinceNo,
HighSchoolNo = stulist.HighSchoolNo,
HighSchoolName = stulist.HighSchoolName,
EntranceDate = stulist.EntranceDate,
Religion = stulist.Religion,
GoodAt = stulist.GoodAt,
IdentityCardNo = stulist.IdentityCardNo,
JoinPartyDate = stulist.JoinPartyDate,
JoinLeagueDate = stulist.JoinLeagueDate,
InSchoolAddress = stulist.InSchoolAddress,
InSchoolTelephone = stulist.InSchoolTelephone,
AbmormityMoveMark = stulist.AbmormityMoveMark,
AwardMark = stulist.AwardMark,
PunishMark = stulist.PunishMark,
LinkmanMark = stulist.LinkmanMark,
StuNoChangeMark = stulist.StuNoChangeMark,
FinishSchoolMark = stulist.FinishSchoolMark,
CurrentRegisterMark = stulist.CurrentRegisterMark,
FinishSchoolDate = stulist.FinishSchoolDate,
DiplomaNo = stulist.DiplomaNo,
DiplomaRemark = stulist.DiplomaRemark,
Remark = stulist.Remark,
RegisterDate = stulist.RegisterDate,
Photo = stulist.Photo,
TeachPlanNo = stulist.TeachPlanNo,
CheckMark = stulist.CheckMark,
mobile = stulist.mobile,
EMail = stulist.EMail,
QQ = stulist.QQ,
FatherUnit = stulist.FatherUnit,
FatherName = stulist.FatherName,
FatherPhone = stulist.FatherPhone,
MatherName = stulist.MatherName,
MatherUnit = stulist.MatherUnit,
MatherPhone = stulist.MatherPhone,
username = stulist.username,
password = stulist.password,
MailAddress = stulist.MailAddress,
PostalCode = stulist.PostalCode,
InSchoolStatus = stulist.InSchoolStatus,
TransMark = stulist.TransMark,
ClassTutorNo = stulist.ClassTutorNo,
ResumeCheck = stulist.ResumeCheck,
PracStatus = stulist.PracStatus,
RegisterStatus = stulist.RegisterStatus,
PunishmentDate = stulist.PunishmentDate,
F_CityId = stulist.F_CityId,
F_CountyId = stulist.F_CountyId,
F_ProvinceId = stulist.F_ProvinceId,
F_SchoolId = stulist.F_SchoolId,
EduSystem = stulist.EduSystem,
StudyModality = stulist.StudyModality,
SyncFlag = stulist.SyncFlag,
ChangeStatus = stulist.ChangeStatus,
Balance = stulist.Balance,
HealthStatus = stulist.HealthStatus,
IdCardType = stulist.IdCardType,
EntranceWay = stulist.EntranceWay,
StudyingWay = stulist.StudyingWay,
CountryNo = stulist.CountryNo,
MarriageStatus = stulist.MarriageStatus,
TrainInterval = stulist.TrainInterval,
IsTrailChildren = stulist.IsTrailChildren,
StuPlaceCode = stulist.StuPlaceCode,
BirthPlaceCode = stulist.BirthPlaceCode,
NativePlaceCode = stulist.NativePlaceCode,
ResidencePlaceCode = stulist.ResidencePlaceCode,
BelongPolice = stulist.BelongPolice,
StuLivePlaceType = stulist.StuLivePlaceType,
StuOrigin = stulist.StuOrigin,
RecruitObject = stulist.RecruitObject,
PoorIsRecord = stulist.PoorIsRecord,
RecruitWay = stulist.RecruitWay,
RecruitCooperateType = stulist.RecruitCooperateType,
AdmissionNo = stulist.AdmissionNo,
ExamScore = stulist.ExamScore,
RecruitCooperateForm = stulist.RecruitCooperateForm,
RecruitCooperateSchoolNo = stulist.RecruitCooperateSchoolNo,
SchoolOutsidePlace = stulist.SchoolOutsidePlace,
PieceCultivateWay = stulist.PieceCultivateWay,
EnglishName = stulist.EnglishName,
OneMembership = stulist.OneMembership,
OneIsGuardian = stulist.OneIsGuardian,
OneBirthday = stulist.OneBirthday,
OneIdCardType = stulist.OneIdCardType,
OneIdCardNo = stulist.OneIdCardNo,
OneNationalityNo = stulist.OneNationalityNo,
OnePartyFaceNo = stulist.OnePartyFaceNo,
OneHealthStatus = stulist.OneHealthStatus,
OneJob = stulist.OneJob,
OnePosition = stulist.OnePosition,
TwoMembership = stulist.TwoMembership,
TwoIsGuardian = stulist.TwoIsGuardian,
TwoBirthday = stulist.TwoBirthday,
TwoIdCardType = stulist.TwoIdCardType,
TwoIdCardNo = stulist.TwoIdCardNo,
TwoNationalityNo = stulist.TwoNationalityNo,
TwoPartyFaceNo = stulist.TwoPartyFaceNo,
TwoHealthStatus = stulist.TwoHealthStatus,
TwoJob = stulist.TwoJob,
TwoPosition = stulist.TwoPosition,
ProvinceCode = stulist.ProvinceCode,
Guardian = stulist.Guardian,
GuardianPhone = stulist.GuardianPhone,
GuardianType = stulist.GuardianType,
IsSingle = stulist.IsSingle,
IsLeft = stulist.IsLeft,
IsDisability = stulist.IsDisability,
IsRunSchool = stulist.IsRunSchool,
IsDdifficulty = stulist.IsDdifficulty,
FiveYear = stulist.FiveYear,
InternshipStatus = stulist.InternshipStatus,
IsRestudy = stulist.IsRestudy,
MajorDetailSpell = stulist.MajorDetailSpell,
OneName = stulist.OneName,
TwoName = stulist.TwoName,
OtherContact = stulist.OtherContact,
OneMobile = stulist.OneMobile,
TwoMobile = stulist.TwoMobile,
ReturnBooksStatus = stulist.ReturnBooksStatus,
ReturnBooksDate = stulist.ReturnBooksDate,
EmployAgreeStatus = stulist.EmployAgreeStatus,
EmployAgreeDate = stulist.EmployAgreeDate,
FeeSettleStatus = stulist.FeeSettleStatus,
FeeSettleDate = stulist.FeeSettleDate,
CheckOutStatus = stulist.CheckOutStatus,
CheckOutDate = stulist.CheckOutDate,
CardDeregistrateStatus = stulist.CardDeregistrateStatus,
CardDeregistrateDate = stulist.CardDeregistrateDate,
DiplomaReceiveStatus = stulist.DiplomaReceiveStatus,
DiplomaReceiveDate = stulist.DiplomaReceiveDate,
FileTransferStatus = stulist.FileTransferStatus,
FileTransferDate = stulist.FileTransferDate,
TissueStatus = stulist.TissueStatus,
TissueDate = stulist.TissueDate,
DiplomaReceiveSign = stulist.DiplomaReceiveSign,
DiplomaReceiveIdcard = stulist.DiplomaReceiveIdcard,
DiplomaReceiveRemark = stulist.DiplomaReceiveRemark,
//异动状态,时间,原因
AnomalousType = upTrua.AnomalousType,
ChangeReason = upTrua.ChangeReason,
TranDateTime = DateTime.Now
var stulist = this.BaseRepository("CollegeMIS").FindEntity<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);


};
db.Insert(InStuinTran);
#endregion
#region 复制一份学生学籍表
var InsertStuTran = new StuInfoBasicTranEntity
{
StuNo = stulist.StuNo,
StuCode = stulist.StuCode,
NoticeNo = stulist.NoticeNo,
GraduateYear = stulist.GraduateYear,
ksh = stulist.ksh,
DeptNo = stulist.DeptNo,
MajorNo = stulist.MajorNo,
MajorDetailNo = stulist.MajorDetailNo,
MajorDetailName = stulist.MajorDetailName,
Grade = stulist.Grade,
ClassNo = stulist.ClassNo,
StuName = stulist.StuName,
SpellFull = stulist.SpellFull,
SpellBrief = stulist.SpellBrief,
GenderNo = stulist.GenderNo,
Birthday = stulist.Birthday,
PartyFaceNo = stulist.PartyFaceNo,
FamilyOriginNo = stulist.FamilyOriginNo,
NationalityNo = stulist.NationalityNo,
ProvinceNo = stulist.ProvinceNo,
RegionNo = stulist.RegionNo,
ResidenceNo = stulist.ResidenceNo,
TestStuSortNo = stulist.TestStuSortNo,
HealthStatusNo = stulist.HealthStatusNo,
WillNo = stulist.WillNo,
TestStuSubjectNo = stulist.TestStuSubjectNo,
GraduateNo = stulist.GraduateNo,
PlanFormNo = stulist.PlanFormNo,
IsThreeGood = stulist.IsThreeGood,
IsExcellent = stulist.IsExcellent,
IsNormalCadre = stulist.IsNormalCadre,
IsProvinceFirstThree = stulist.IsProvinceFirstThree,
OverseasChineseNo = stulist.OverseasChineseNo,
MatriculateSort = stulist.MatriculateSort,
ComeProvinceNo = stulist.ComeProvinceNo,
HighSchoolNo = stulist.HighSchoolNo,
HighSchoolName = stulist.HighSchoolName,
EntranceDate = stulist.EntranceDate,
Religion = stulist.Religion,
GoodAt = stulist.GoodAt,
IdentityCardNo = stulist.IdentityCardNo,
JoinPartyDate = stulist.JoinPartyDate,
JoinLeagueDate = stulist.JoinLeagueDate,
InSchoolAddress = stulist.InSchoolAddress,
InSchoolTelephone = stulist.InSchoolTelephone,
AbmormityMoveMark = stulist.AbmormityMoveMark,
AwardMark = stulist.AwardMark,
PunishMark = stulist.PunishMark,
LinkmanMark = stulist.LinkmanMark,
StuNoChangeMark = stulist.StuNoChangeMark,
FinishSchoolMark = stulist.FinishSchoolMark,
CurrentRegisterMark = stulist.CurrentRegisterMark,
FinishSchoolDate = stulist.FinishSchoolDate,
DiplomaNo = stulist.DiplomaNo,
DiplomaRemark = stulist.DiplomaRemark,
Remark = stulist.Remark,
RegisterDate = stulist.RegisterDate,
Photo = stulist.Photo,
TeachPlanNo = stulist.TeachPlanNo,
CheckMark = stulist.CheckMark,
mobile = stulist.mobile,
EMail = stulist.EMail,
QQ = stulist.QQ,
FatherUnit = stulist.FatherUnit,
FatherName = stulist.FatherName,
FatherPhone = stulist.FatherPhone,
MatherName = stulist.MatherName,
MatherUnit = stulist.MatherUnit,
MatherPhone = stulist.MatherPhone,
username = stulist.username,
password = stulist.password,
MailAddress = stulist.MailAddress,
PostalCode = stulist.PostalCode,
InSchoolStatus = stulist.InSchoolStatus,
TransMark = stulist.TransMark,
ClassTutorNo = stulist.ClassTutorNo,
ResumeCheck = stulist.ResumeCheck,
PracStatus = stulist.PracStatus,
RegisterStatus = stulist.RegisterStatus,
PunishmentDate = stulist.PunishmentDate,
F_CityId = stulist.F_CityId,
F_CountyId = stulist.F_CountyId,
F_ProvinceId = stulist.F_ProvinceId,
F_SchoolId = stulist.F_SchoolId,
EduSystem = stulist.EduSystem,
StudyModality = stulist.StudyModality,
SyncFlag = stulist.SyncFlag,
ChangeStatus = stulist.ChangeStatus,
Balance = stulist.Balance,
HealthStatus = stulist.HealthStatus,
IdCardType = stulist.IdCardType,
EntranceWay = stulist.EntranceWay,
StudyingWay = stulist.StudyingWay,
CountryNo = stulist.CountryNo,
MarriageStatus = stulist.MarriageStatus,
TrainInterval = stulist.TrainInterval,
IsTrailChildren = stulist.IsTrailChildren,
StuPlaceCode = stulist.StuPlaceCode,
BirthPlaceCode = stulist.BirthPlaceCode,
NativePlaceCode = stulist.NativePlaceCode,
ResidencePlaceCode = stulist.ResidencePlaceCode,
BelongPolice = stulist.BelongPolice,
StuLivePlaceType = stulist.StuLivePlaceType,
StuOrigin = stulist.StuOrigin,
RecruitObject = stulist.RecruitObject,
PoorIsRecord = stulist.PoorIsRecord,
RecruitWay = stulist.RecruitWay,
RecruitCooperateType = stulist.RecruitCooperateType,
AdmissionNo = stulist.AdmissionNo,
ExamScore = stulist.ExamScore,
RecruitCooperateForm = stulist.RecruitCooperateForm,
RecruitCooperateSchoolNo = stulist.RecruitCooperateSchoolNo,
SchoolOutsidePlace = stulist.SchoolOutsidePlace,
PieceCultivateWay = stulist.PieceCultivateWay,
EnglishName = stulist.EnglishName,
OneMembership = stulist.OneMembership,
OneIsGuardian = stulist.OneIsGuardian,
OneBirthday = stulist.OneBirthday,
OneIdCardType = stulist.OneIdCardType,
OneIdCardNo = stulist.OneIdCardNo,
OneNationalityNo = stulist.OneNationalityNo,
OnePartyFaceNo = stulist.OnePartyFaceNo,
OneHealthStatus = stulist.OneHealthStatus,
OneJob = stulist.OneJob,
OnePosition = stulist.OnePosition,
TwoMembership = stulist.TwoMembership,
TwoIsGuardian = stulist.TwoIsGuardian,
TwoBirthday = stulist.TwoBirthday,
TwoIdCardType = stulist.TwoIdCardType,
TwoIdCardNo = stulist.TwoIdCardNo,
TwoNationalityNo = stulist.TwoNationalityNo,
TwoPartyFaceNo = stulist.TwoPartyFaceNo,
TwoHealthStatus = stulist.TwoHealthStatus,
TwoJob = stulist.TwoJob,
TwoPosition = stulist.TwoPosition,
ProvinceCode = stulist.ProvinceCode,
Guardian = stulist.Guardian,
GuardianPhone = stulist.GuardianPhone,
GuardianType = stulist.GuardianType,
IsSingle = stulist.IsSingle,
IsLeft = stulist.IsLeft,
IsDisability = stulist.IsDisability,
IsRunSchool = stulist.IsRunSchool,
IsDdifficulty = stulist.IsDdifficulty,
FiveYear = stulist.FiveYear,
InternshipStatus = stulist.InternshipStatus,
IsRestudy = stulist.IsRestudy,
MajorDetailSpell = stulist.MajorDetailSpell,
OneName = stulist.OneName,
TwoName = stulist.TwoName,
OtherContact = stulist.OtherContact,
OneMobile = stulist.OneMobile,
TwoMobile = stulist.TwoMobile,
ReturnBooksStatus = stulist.ReturnBooksStatus,
ReturnBooksDate = stulist.ReturnBooksDate,
EmployAgreeStatus = stulist.EmployAgreeStatus,
EmployAgreeDate = stulist.EmployAgreeDate,
FeeSettleStatus = stulist.FeeSettleStatus,
FeeSettleDate = stulist.FeeSettleDate,
CheckOutStatus = stulist.CheckOutStatus,
CheckOutDate = stulist.CheckOutDate,
CardDeregistrateStatus = stulist.CardDeregistrateStatus,
CardDeregistrateDate = stulist.CardDeregistrateDate,
DiplomaReceiveStatus = stulist.DiplomaReceiveStatus,
DiplomaReceiveDate = stulist.DiplomaReceiveDate,
FileTransferStatus = stulist.FileTransferStatus,
FileTransferDate = stulist.FileTransferDate,
TissueStatus = stulist.TissueStatus,
TissueDate = stulist.TissueDate,
DiplomaReceiveSign = stulist.DiplomaReceiveSign,
DiplomaReceiveIdcard = stulist.DiplomaReceiveIdcard,
DiplomaReceiveRemark = stulist.DiplomaReceiveRemark,
//异动状态,时间,原因
AnomalousType = upTrua.AnomalousType,
ChangeReason = upTrua.ChangeReason,
TranDateTime = DateTime.Now


#region 学籍操作
};
db.Insert(InStuinTran);
#endregion


if (upTrua.StuStatus == 0) //如果是保留学籍 修改学籍 否则删除学籍
{
var StuEntity = new StuInfoBasicEntity();
//修改学籍表信息
StuEntity.StuId = upTrua.StuId;
StuEntity.StuNo = upTrua.StuNo;
StuEntity.StuName = upTrua.StuName;
StuEntity.ClassNo = upTrua.ClassNo;
StuEntity.MajorNo = upTrua.MajorNo;
StuEntity.DeptNo = upTrua.DeptNo;
StuEntity.Grade = upTrua.Grade;
StuEntity.EduSystem = upTrua.EduSystem;
Stulist.Add(StuEntity);
}
else
{
//删除学籍
db.Delete<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);
#region 学籍操作


}
if (upTrua.StuStatus == 0) //如果是保留学籍 修改学籍 否则删除学籍
{
var StuEntity = new StuInfoBasicEntity();
//修改学籍表信息
StuEntity.StuId = upTrua.StuId;
StuEntity.StuNo = upTrua.StuNo;
StuEntity.StuName = upTrua.StuName;
StuEntity.ClassNo = upTrua.ClassNo;
StuEntity.MajorNo = upTrua.MajorNo;
StuEntity.DeptNo = upTrua.DeptNo;
StuEntity.Grade = upTrua.Grade;
StuEntity.EduSystem = upTrua.EduSystem;
Stulist.Add(StuEntity);
}
else
{
//删除学籍
db.Delete<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);


#endregion
}


#region 删除用户表
#endregion


//是注销学籍,删除学籍
if (upTrua.F_WriteMark == 0)
{
db1.ExecuteBySql(" update LR_Base_User set F_DeleteMark=1 where F_EnCode='" + upTrua.StuNo + "' and F_Account ='" + upTrua.StuNo + "'and F_RealName='" + upTrua.StuName + "' and F_IdentityCardNo ='" + upTrua.IdentityCardNo + "' ");
}
#endregion
#region 删除用户表


//是注销学籍,删除学籍
if (upTrua.F_WriteMark == 0)
{
db1.ExecuteBySql(" update LR_Base_User set F_DeleteMark=1 where F_EnCode='" + upTrua.StuNo + "' and F_Account ='" + upTrua.StuNo + "'and F_RealName='" + upTrua.StuName + "' and F_IdentityCardNo ='" + upTrua.IdentityCardNo + "' ");
}
#endregion

}
} }
db.Update(UpStuTran); //修改学籍异动信息 db.Update(UpStuTran); //修改学籍异动信息
if (Stulist.Count > 0)//修改学籍信息 if (Stulist.Count > 0)//修改学籍信息


Загрузка…
Отмена
Сохранить