Bläddra i källkod

学籍异动审核方法修改

新疆警官学校中职
ndbs 1 år sedan
förälder
incheckning
5aacbe46d3
2 ändrade filer med 660 tillägg och 247 borttagningar
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs
  2. +659
    -247
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs Visa fil

@@ -337,6 +337,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
this.CreateTime = DateTime.Now;
this.CreateUserId = userInfo.userId;
this.F_EnabledMark = 0;//审核状态默认为未审核
this.IsReturnSchool = "1";
}
/// <summary>
/// 编辑调用


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

@@ -344,6 +344,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
List<StuTransferInfoEntity> UpStuTran = new List<StuTransferInfoEntity>();
List<StuInfoBasicTranEntity> InStuinTran = new List<StuInfoBasicTranEntity>();
List<StuInfoBasicEntity> Stulist = new List<StuInfoBasicEntity>();
List<StuInfoBasicEntity> upStulist = new List<StuInfoBasicEntity>();

var Id = keyValue.Split(',');
foreach (var item in Id)
@@ -354,262 +355,673 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
upTrua.CheckTime = DateTime.Now;
upTrua.F_EnabledMark = 1;
UpStuTran.Add(upTrua);
//判断异动类型:转入时,学籍表增加数据;其他时,...;
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//其他

var stulist = this.BaseRepository("CollegeMIS").FindEntity<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);
var InsertStuTran = new StuInfoBasicTranEntity();

switch (upTrua.AnomalousType)
{
var stulist = this.BaseRepository("CollegeMIS").FindEntity<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);

#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

};
db.Insert(InStuinTran);
#endregion

#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);
case "01": //留级
case "02": //转校
case "07": //转班
case "05": //退学
case "06": //休学
case "08": //转专业
#region 复制一份学生学籍表

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;

InStuinTran.Add(InsertStuTran);
#endregion

#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;
upStulist.Add(StuEntity);
}
else
{
//删除学籍
db.Delete<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);
}
#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

#endregion
break;
case "03": //复学
//学籍异动列表
if (upTrua.IsReturnSchool == "1")
{
upTrua.IsReturnSchool = "0";
if (upTrua.RecoverStuStatus == "0") //恢复学籍
{
//复学的学籍
var ReturnStu = this.BaseRepository("CollegeMIS").FindEntity<StuInfoBasicTranEntity>(x => x.StuId == upTrua.StuId);

#region 删除用户表
#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
addTruan.StuNo = ReturnStu.StuNo;
addTruan.StuCode = ReturnStu.StuCode;
addTruan.NoticeNo = ReturnStu.NoticeNo;
addTruan.GraduateYear = ReturnStu.GraduateYear;
addTruan.ksh = ReturnStu.ksh;
addTruan.DeptNo = upTrua.NewDeptNo;
addTruan.MajorNo = upTrua.NewMajorNo;
addTruan.MajorDetailNo = ReturnStu.MajorDetailNo;
addTruan.MajorDetailName = ReturnStu.MajorDetailName;
addTruan.Grade = upTrua.NewGrade;
addTruan.ClassNo = upTrua.NewClassNo;
addTruan.StuName = ReturnStu.StuName;
addTruan.SpellFull = ReturnStu.SpellFull;
addTruan.SpellBrief = ReturnStu.SpellBrief;
addTruan.GenderNo = ReturnStu.GenderNo;
addTruan.Birthday = ReturnStu.Birthday;
addTruan.PartyFaceNo = ReturnStu.PartyFaceNo;
addTruan.FamilyOriginNo = ReturnStu.FamilyOriginNo;
addTruan.NationalityNo = ReturnStu.NationalityNo;
addTruan.ProvinceNo = ReturnStu.ProvinceNo;
addTruan.RegionNo = ReturnStu.RegionNo;
addTruan.ResidenceNo = ReturnStu.ResidenceNo;
addTruan.TestStuSortNo = ReturnStu.TestStuSortNo;
addTruan.HealthStatusNo = ReturnStu.HealthStatusNo;
addTruan.WillNo = ReturnStu.WillNo;
addTruan.TestStuSubjectNo = ReturnStu.TestStuSubjectNo;
addTruan.GraduateNo = ReturnStu.GraduateNo;
addTruan.PlanFormNo = ReturnStu.PlanFormNo;
addTruan.IsThreeGood = ReturnStu.IsThreeGood;
addTruan.IsExcellent = ReturnStu.IsExcellent;
addTruan.IsNormalCadre = ReturnStu.IsNormalCadre;
addTruan.IsProvinceFirstThree = ReturnStu.IsProvinceFirstThree;
addTruan.OverseasChineseNo = ReturnStu.OverseasChineseNo;
addTruan.MatriculateSort = ReturnStu.MatriculateSort;
addTruan.ComeProvinceNo = ReturnStu.ComeProvinceNo;
addTruan.HighSchoolNo = ReturnStu.HighSchoolNo;
addTruan.HighSchoolName = ReturnStu.HighSchoolName;
addTruan.EntranceDate = ReturnStu.EntranceDate;
addTruan.Religion = ReturnStu.Religion;
addTruan.GoodAt = ReturnStu.GoodAt;
addTruan.IdentityCardNo = ReturnStu.IdentityCardNo;
addTruan.JoinPartyDate = ReturnStu.JoinPartyDate;
addTruan.JoinLeagueDate = ReturnStu.JoinLeagueDate;
addTruan.InSchoolAddress = ReturnStu.InSchoolAddress;
addTruan.InSchoolTelephone = ReturnStu.InSchoolTelephone;
addTruan.AbmormityMoveMark = ReturnStu.AbmormityMoveMark;
addTruan.AwardMark = ReturnStu.AwardMark;
addTruan.PunishMark = ReturnStu.PunishMark;
addTruan.LinkmanMark = ReturnStu.LinkmanMark;
addTruan.StuNoChangeMark = ReturnStu.StuNoChangeMark;
addTruan.FinishSchoolMark = ReturnStu.FinishSchoolMark;
addTruan.CurrentRegisterMark = ReturnStu.CurrentRegisterMark;
addTruan.FinishSchoolDate = ReturnStu.FinishSchoolDate;
addTruan.DiplomaNo = ReturnStu.DiplomaNo;
addTruan.DiplomaRemark = ReturnStu.DiplomaRemark;
addTruan.Remark = ReturnStu.Remark;
addTruan.RegisterDate = ReturnStu.RegisterDate;
addTruan.Photo = ReturnStu.Photo;
addTruan.TeachPlanNo = ReturnStu.TeachPlanNo;
addTruan.mobile = ReturnStu.mobile;
addTruan.EMail = ReturnStu.EMail;
addTruan.QQ = ReturnStu.QQ;
addTruan.FatherUnit = ReturnStu.FatherUnit;
addTruan.FatherName = ReturnStu.FatherName;
addTruan.FatherPhone = ReturnStu.FatherPhone;
addTruan.MatherName = ReturnStu.MatherName;
addTruan.MatherUnit = ReturnStu.MatherUnit;
addTruan.MatherPhone = ReturnStu.MatherPhone;
addTruan.username = ReturnStu.username;
addTruan.password = ReturnStu.password;
addTruan.MailAddress = ReturnStu.MailAddress;
addTruan.PostalCode = ReturnStu.PostalCode;
addTruan.InSchoolStatus = ReturnStu.InSchoolStatus;
addTruan.TransMark = ReturnStu.TransMark;
addTruan.ClassTutorNo = ReturnStu.ClassTutorNo;
addTruan.ResumeCheck = ReturnStu.ResumeCheck;
addTruan.PracStatus = ReturnStu.PracStatus;
addTruan.RegisterStatus = ReturnStu.RegisterStatus;
addTruan.PunishmentDate = ReturnStu.PunishmentDate;
addTruan.F_CityId = ReturnStu.F_CityId;
addTruan.F_CountyId = ReturnStu.F_CountyId;
addTruan.F_ProvinceId = ReturnStu.F_ProvinceId;
addTruan.F_SchoolId = ReturnStu.F_SchoolId;
addTruan.EduSystem = ReturnStu.EduSystem;
addTruan.StudyModality = ReturnStu.StudyModality;
addTruan.SyncFlag = ReturnStu.SyncFlag;
addTruan.ChangeStatus = ReturnStu.ChangeStatus;
addTruan.Balance = ReturnStu.Balance;
addTruan.HealthStatus = ReturnStu.HealthStatus;
addTruan.IdCardType = ReturnStu.IdCardType;
addTruan.EntranceWay = ReturnStu.EntranceWay;
addTruan.StudyingWay = ReturnStu.StudyingWay;
addTruan.CountryNo = ReturnStu.CountryNo;
addTruan.MarriageStatus = ReturnStu.MarriageStatus;
addTruan.TrainInterval = ReturnStu.TrainInterval;
addTruan.IsTrailChildren = ReturnStu.IsTrailChildren;
addTruan.StuPlaceCode = ReturnStu.StuPlaceCode;
addTruan.BirthPlaceCode = ReturnStu.BirthPlaceCode;
addTruan.NativePlaceCode = ReturnStu.NativePlaceCode;
addTruan.ResidencePlaceCode = ReturnStu.ResidencePlaceCode;
addTruan.BelongPolice = ReturnStu.BelongPolice;
addTruan.StuLivePlaceType = ReturnStu.StuLivePlaceType;
addTruan.StuOrigin = ReturnStu.StuOrigin;
addTruan.RecruitObject = ReturnStu.RecruitObject;
addTruan.PoorIsRecord = ReturnStu.PoorIsRecord;
addTruan.RecruitWay = ReturnStu.RecruitWay;
addTruan.RecruitCooperateType = ReturnStu.RecruitCooperateType;
addTruan.AdmissionNo = ReturnStu.AdmissionNo;
addTruan.ExamScore = ReturnStu.ExamScore;
addTruan.RecruitCooperateForm = ReturnStu.RecruitCooperateForm;
addTruan.RecruitCooperateSchoolNo = ReturnStu.RecruitCooperateSchoolNo;
addTruan.SchoolOutsidePlace = ReturnStu.SchoolOutsidePlace;
addTruan.PieceCultivateWay = ReturnStu.PieceCultivateWay;
addTruan.EnglishName = ReturnStu.EnglishName;
addTruan.OneMembership = ReturnStu.OneMembership;
addTruan.OneIsGuardian = ReturnStu.OneIsGuardian;
addTruan.OneBirthday = ReturnStu.OneBirthday;
addTruan.OneIdCardType = ReturnStu.OneIdCardType;
addTruan.OneIdCardNo = ReturnStu.OneIdCardNo;
addTruan.OneNationalityNo = ReturnStu.OneNationalityNo;
addTruan.OnePartyFaceNo = ReturnStu.OnePartyFaceNo;
addTruan.OneHealthStatus = ReturnStu.OneHealthStatus;
addTruan.OneJob = ReturnStu.OneJob;
addTruan.OnePosition = ReturnStu.OnePosition;
addTruan.TwoMembership = ReturnStu.TwoMembership;
addTruan.TwoIsGuardian = ReturnStu.TwoIsGuardian;
addTruan.TwoBirthday = ReturnStu.TwoBirthday;
addTruan.TwoIdCardType = ReturnStu.TwoIdCardType;
addTruan.TwoIdCardNo = ReturnStu.TwoIdCardNo;
addTruan.TwoNationalityNo = ReturnStu.TwoNationalityNo;
addTruan.TwoPartyFaceNo = ReturnStu.TwoPartyFaceNo;
addTruan.TwoHealthStatus = ReturnStu.TwoHealthStatus;
addTruan.TwoJob = ReturnStu.TwoJob;
addTruan.TwoPosition = ReturnStu.TwoPosition;
addTruan.ProvinceCode = ReturnStu.ProvinceCode;
addTruan.Guardian = ReturnStu.Guardian;
addTruan.GuardianPhone = ReturnStu.GuardianPhone;
addTruan.GuardianType = ReturnStu.GuardianType;
addTruan.IsSingle = ReturnStu.IsSingle;
addTruan.IsLeft = ReturnStu.IsLeft;
addTruan.IsDisability = ReturnStu.IsDisability;
addTruan.IsRunSchool = ReturnStu.IsRunSchool;
addTruan.IsDdifficulty = ReturnStu.IsDdifficulty;
addTruan.FiveYear = ReturnStu.FiveYear;
addTruan.InternshipStatus = ReturnStu.InternshipStatus;
addTruan.IsRestudy = ReturnStu.IsRestudy;
addTruan.MajorDetailSpell = ReturnStu.MajorDetailSpell;
addTruan.OneName = ReturnStu.OneName;
addTruan.TwoName = ReturnStu.TwoName;
addTruan.OtherContact = ReturnStu.OtherContact;
addTruan.OneMobile = ReturnStu.OneMobile;
addTruan.TwoMobile = ReturnStu.TwoMobile;
addTruan.ReturnBooksStatus = ReturnStu.ReturnBooksStatus;
addTruan.ReturnBooksDate = ReturnStu.ReturnBooksDate;
addTruan.EmployAgreeStatus = ReturnStu.EmployAgreeStatus;
addTruan.EmployAgreeDate = ReturnStu.EmployAgreeDate;
addTruan.FeeSettleStatus = ReturnStu.FeeSettleStatus;
addTruan.FeeSettleDate = ReturnStu.FeeSettleDate;
addTruan.CheckOutStatus = ReturnStu.CheckOutStatus;
addTruan.CheckOutDate = ReturnStu.CheckOutDate;
addTruan.CardDeregistrateStatus = ReturnStu.CardDeregistrateStatus;
addTruan.CardDeregistrateDate = ReturnStu.CardDeregistrateDate;
addTruan.DiplomaReceiveStatus = ReturnStu.DiplomaReceiveStatus;
addTruan.DiplomaReceiveDate = ReturnStu.DiplomaReceiveDate;
addTruan.FileTransferStatus = ReturnStu.FileTransferStatus;
addTruan.FileTransferDate = ReturnStu.FileTransferDate;
addTruan.TissueStatus = ReturnStu.TissueStatus;
addTruan.TissueDate = ReturnStu.TissueDate;
addTruan.DiplomaReceiveSign = ReturnStu.DiplomaReceiveSign;
addTruan.DiplomaReceiveIdcard = ReturnStu.DiplomaReceiveIdcard;
addTruan.DiplomaReceiveRemark = ReturnStu.DiplomaReceiveRemark;
addTruan.CheckMark = "0";
Stulist.Add(addTruan);
#endregion
}
if (upTrua.RecoverWriteMark == "0") //恢复账号
{
db1.ExecuteBySql(" update LR_Base_User set F_DeleteMark0 where F_EnCode='" + upTrua.StuNo + "' and F_Account ='" + upTrua.StuNo + "'and F_RealName='" + upTrua.StuName + "' and F_IdentityCardNo ='" + upTrua.IdentityCardNo + "' ");
UpStuTran.Add(upTrua); //修改学籍异动表 为复学
}
}
break;
case "04": //转入
#region 学籍表加数据
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);
#endregion
break;
default:
#region 复制一份学生学籍表

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;

InStuinTran.Add(InsertStuTran);
#endregion

#region 学籍操作
//删除学籍
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;
upStulist.Add(StuEntity);
}
else
{
//删除学籍
db.Delete<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId);
}
#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

break;
}
}
db.Insert(InStuinTran); //学籍异动记录
db.Update(UpStuTran); //修改学籍异动信息
if (Stulist.Count > 0)//修改学籍信息
{
//修改学籍
db.Update(Stulist);
}
db.Insert(Stulist); //学籍
db.Update(upStulist); //修改学籍

db.Commit();
db1.Commit();


Laddar…
Avbryt
Spara