Bläddra i källkod

学籍异动审核方法拆分 专业留级,转出功能

新疆警官学校中职
ndbs 1 år sedan
förälder
incheckning
ed9feb78a6
1 ändrade filer med 248 tillägg och 389 borttagningar
  1. +248
    -389
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs

+ 248
- 389
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs Visa fil

@@ -411,7 +411,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
List<StuInfoBasicTranEntity> InStuinTran = new List<StuInfoBasicTranEntity>();
List<StuInfoBasicEntity> Stulist = new List<StuInfoBasicEntity>();
List<StuInfoBasicEntity> upStulist = new List<StuInfoBasicEntity>();
var StuEntity = new StuInfoBasicEntity();
var Id = keyValue.Split(',');
foreach (var item in Id)
{
@@ -427,208 +427,59 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration

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

#region 复制一份学生学籍表
copyStuInfoBasic(upTrua, stulist, InsertStuTran);
InStuinTran.Add(InsertStuTran);
#endregion

#region 学籍操作
if (upTrua.StuStatus == 0) //如果是保留学籍 修改学籍 否则删除学籍

StuEntity = new StuInfoBasicEntity
{
var StuEntity = new StuInfoBasicEntity();
//修改学籍表信息
StuEntity.StuId = upTrua.StuId;
StuEntity.StuNo = upTrua.StuNo;
StuEntity.StuName = upTrua.StuName;
StuEntity.ClassNo = upTrua.ClassNo;
StuEntity.MajorNo = upTrua.NewMajorNo;
StuEntity.DeptNo = upTrua.NewDeptNo;
StuEntity.Grade = upTrua.NewGrade;
StuEntity.EduSystem = upTrua.EduSystem;
StuId = upTrua.StuId,
StuNo = upTrua.StuNo,
StuName = upTrua.StuName,
ClassNo = upTrua.ClassNo,
MajorNo = upTrua.NewMajorNo,
DeptNo = upTrua.NewDeptNo,
Grade = upTrua.NewGrade,
EduSystem = upTrua.EduSystem
};

upStulist.Add(StuEntity);
#endregion

break;

case "02": //转校
case "05": //退学
case "06": //休学

#region 复制一份学生学籍表
copyStuInfoBasic(upTrua, stulist, InsertStuTran);
InStuinTran.Add(InsertStuTran);
#endregion

#region 学籍操作
if (upTrua.StuStatus == 1) //如果是保留学籍 修改学籍 否则删除学籍
{
StuEntity = new StuInfoBasicEntity
{
//修改学籍表信息
StuId = upTrua.StuId,
StuNo = upTrua.StuNo,
StuName = upTrua.StuName,
ClassNo = upTrua.ClassNo,
MajorNo = upTrua.NewMajorNo,
DeptNo = upTrua.NewDeptNo,
Grade = upTrua.NewGrade,
EduSystem = upTrua.EduSystem
};
upStulist.Add(StuEntity);
}
else
@@ -868,209 +719,29 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
break;
default:
#region 复制一份学生学籍表

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

#region 学籍操作
//删除学籍
db.Delete<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);
////删除学籍
//db.Delete<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);
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;
StuEntity = new StuInfoBasicEntity
{
//修改学籍表信息
StuId = upTrua.StuId,
StuNo = upTrua.StuNo,
StuName = upTrua.StuName,
ClassNo = upTrua.ClassNo,
MajorNo = upTrua.MajorNo,
DeptNo = upTrua.DeptNo,
Grade = upTrua.Grade,
EduSystem = upTrua.EduSystem
};
upStulist.Add(StuEntity);
}
else
{
//删除学籍
db.Delete<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);
}
#endregion

#region 删除用户表
@@ -1107,6 +778,194 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}

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

}


Laddar…
Avbryt
Spara