diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs index 8334f91a6..34cc975ee 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs @@ -156,8 +156,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [HttpPost] [ValidateAntiForgeryToken] [AjaxOnly] - public ActionResult SaveForm(string keyValue, StuTransferInfoEntity entity) + public ActionResult SaveFormOfIn(string keyValue, string strEntity) { + StuTransferInfoEntity entity = strEntity.ToObject(); + entity.AnomalousType = "04"; + entity.ChangeReason = "转入"; stuTransferInfoIBLL.SaveEntity(keyValue, entity); return Success("保存成功!"); } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs index bfe4515e8..1feaa3f14 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs +++ b/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")] public string RecoverWriteMark { get; set; } /// - /// 修学年限 + /// 休学年限 /// /// [Column("SUSPENSIONPERIOD")] @@ -207,17 +207,69 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration [Column("SUSPENSIONENDTIME")] public DateTime? SuspensionEndTime { get; set; } /// - /// 转学前学校 + /// 是否已复学 0是 1否【休学】 /// /// - [Column("TRANSFERSCHOOL")] - public string TransferSchool { get; set; } + [Column("ISRETURNSCHOOL")] + public string IsReturnSchool { get; set; } /// - /// 转学前学号 + /// 转学前学校【转入】 /// /// - [Column("TRANSFERSTUNO")] - public string TransferStuNo { get; set; } + [Column("TRANSFERPRESCHOOL")] + public string TransferPreSchool { get; set; } + /// + /// 转学前年级【转入】 + /// + /// + [Column("TRANSFERPREGRADE")] + public string TransferPreGrade { get; set; } + /// + /// 转学前班级【转入】 + /// + /// + [Column("TRANSFERPRECLASS")] + public string TransferPreClass { get; set; } + /// + /// 转学前专业【转入】 + /// + /// + [Column("TRANSFERPREMAJOR")] + public string TransferPreMajor { get; set; } + /// + /// 转学前学号【转入】 + /// + /// + [Column("TRANSFERPRESTUNO")] + public string TransferPreStuNo { get; set; } + /// + /// 转学日期【转入】 + /// + /// + [Column("TRANSFERPREDATE")] + public DateTime? TransferPreDate { get; set; } + /// + /// 证件类型 + /// + /// + [Column("IDCARDTYPE")] + public string IdCardType { get; set; } + /// + /// 户口所在地 + /// + /// + [Column("RESIDENCEPLACE")] + public string ResidencePlace { get; set; } + /// + /// 籍贯 + /// + [Column("REGIONNO")] + public string RegionNo { get; set; } + /// + /// 是否住宿 + /// + [Column("ISINACCOMMODATION")] + public string IsInAccommodation { get; set; } /// /// 出身日期 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs index 17dcd9a7b..e3076a2cb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs +++ b/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 } } /// - /// + /// 审核 /// /// public void CheckEntity(string keyValue) @@ -352,227 +352,257 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration var upTrua = this.BaseRepository("CollegeMIS").FindEntity(x => x.ID == item); upTrua.CheckUserId = userInfo.userId; upTrua.CheckTime = DateTime.Now; + upTrua.F_EnabledMark = 1; UpStuTran.Add(upTrua); - var stulist = this.BaseRepository("CollegeMIS").FindEntity(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(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(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(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(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); //修改学籍异动信息 if (Stulist.Count > 0)//修改学籍信息