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