|
|
|
@ -354,7 +354,11 @@ namespace TeacherExt.Controllers
|
|
|
|
|
where (person.IsUsed && person.BureauId == model.bureau_id)
|
|
|
|
|
orderby person.BureauId, person.CreateAt
|
|
|
|
|
select new { organ2.Name, person = person };
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
var nations = this.GetNation();
|
|
|
|
|
var titles = this.GetTitle();
|
|
|
|
|
var politics = this.GetPolitics();
|
|
|
|
|
var postTypes = this.GetPostType();
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
var style = NPOIHelper.CreateStyle(sheet, fontName: "宋体", fontSize: 11);
|
|
|
|
@ -372,7 +376,6 @@ namespace TeacherExt.Controllers
|
|
|
|
|
.ToList();
|
|
|
|
|
var rowIndex = 0;
|
|
|
|
|
var colIndex = -1;
|
|
|
|
|
var nations = this.GetNation();
|
|
|
|
|
for (int i = 0; i < list.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
var teacher = list[i];
|
|
|
|
@ -385,7 +388,7 @@ namespace TeacherExt.Controllers
|
|
|
|
|
row.Export("A", headers, () => teacher.DisplayOrder)?.SetCell(++colIndex, style, teacher.DisplayOrder);
|
|
|
|
|
row.Export("B", headers, () => teacher.OrganName)?.SetCell(++colIndex, style, teacher.OrganName);
|
|
|
|
|
row.Export("C", headers, () => teacher.RealName)?.SetCell(++colIndex, style, teacher.RealName);
|
|
|
|
|
row.Export("D", headers, () => teacher.Sex)?.SetCell(++colIndex, style, teacher.Sex);
|
|
|
|
|
row.Export("D", headers, () => teacher.Sex)?.SetCell(++colIndex, style,teacher.Sex);
|
|
|
|
|
row.Export("E", headers, () => teacher.Birthday)?.SetCell(++colIndex, style, teacher.Birthday);
|
|
|
|
|
row.Export("F", headers, () => teacher.Age)?.SetCell(++colIndex, style, teacher.Age);
|
|
|
|
|
row.Export("G", headers, () => teacher.Nation)?.SetCell(++colIndex, style, nations.GetText(teacher.Nation));
|
|
|
|
@ -397,16 +400,16 @@ namespace TeacherExt.Controllers
|
|
|
|
|
row.Export("M", headers, () => teacher.CurrentJobStart)?.SetCell(++colIndex, style, teacher.CurrentJobStart);
|
|
|
|
|
row.Export("N", headers, () => teacher.JobAgeYear)?.SetCell(++colIndex, style, teacher.JobAgeYear, teacher.WorkingTime.HasValue);
|
|
|
|
|
row.Export("O", headers, () => teacher.JobAgeMonth)?.SetCell(++colIndex, style, teacher.JobAgeMonth, teacher.WorkingTime.HasValue);
|
|
|
|
|
row.Export("P", headers, () => teacher.Politics)?.SetCell(++colIndex, style, teacher.Politics);
|
|
|
|
|
row.Export("P", headers, () => teacher.Politics)?.SetCell(++colIndex, style,politics.GetText( teacher.Politics));
|
|
|
|
|
row.Export("Q", headers, () => teacher.JoinPartyDate)?.SetCell(++colIndex, style, teacher.JoinPartyDate);
|
|
|
|
|
row.Export("R", headers, () => teacher.MaxTitle)?.SetCell(++colIndex, style, teacher.MaxTitle);
|
|
|
|
|
row.Export("R", headers, () => teacher.MaxTitle)?.SetCell(++colIndex, style,titles.GetText(teacher.MaxTitle));
|
|
|
|
|
row.Export("S", headers, () => teacher.MaxTitleStart)?.SetCell(++colIndex, style, teacher.MaxTitleStart);
|
|
|
|
|
row.Export("T", headers, () => teacher.JobAsMaxTitleDate)?.SetCell(++colIndex, style, teacher.JobAsMaxTitleDate, teacher.IsJobAsMaxTitle.HasValue && teacher.IsJobAsMaxTitle.Value);
|
|
|
|
|
row.Export("U", headers, () => teacher.JobAsNotMaxTitleReason)?.SetCell(++colIndex, style, teacher.JobAsNotMaxTitleReason, teacher.IsJobAsMaxTitle.HasValue && !teacher.IsJobAsMaxTitle.Value);
|
|
|
|
|
row.Export("V", headers, () => teacher.NotMaxTitle)?.SetCell(++colIndex, style, teacher.NotMaxTitle, teacher.IsJobAsMaxTitle.HasValue && !teacher.IsJobAsMaxTitle.Value);
|
|
|
|
|
row.Export("V", headers, () => teacher.NotMaxTitle)?.SetCell(++colIndex, style,titles.GetText(teacher.NotMaxTitle), teacher.IsJobAsMaxTitle.HasValue && !teacher.IsJobAsMaxTitle.Value);
|
|
|
|
|
row.Export("W", headers, () => teacher.NotMaxTitleStart)?.SetCell(++colIndex, style, teacher.NotMaxTitleStart, teacher.IsJobAsMaxTitle.HasValue && !teacher.IsJobAsMaxTitle.Value);
|
|
|
|
|
row.Export("X", headers, () => teacher.JobAsNotMaxTitleDate)?.SetCell(++colIndex, style, teacher.JobAsNotMaxTitleDate, teacher.IsJobAsMaxTitle.HasValue && !teacher.IsJobAsMaxTitle.Value);
|
|
|
|
|
row.Export("Y", headers, () => teacher.PostType)?.SetCell(++colIndex, style, teacher.PostType);
|
|
|
|
|
row.Export("Y", headers, () => teacher.PostType)?.SetCell(++colIndex, style, postTypes.GetText(teacher.PostType));
|
|
|
|
|
row.Export("Z", headers, () => teacher.PostGrade)?.SetCell(++colIndex, style, teacher.PostGrade);
|
|
|
|
|
|
|
|
|
|
row.Export("AA", headers, () => teacher.CurrentPostGradeStart)?.SetCell(++colIndex, style, teacher.CurrentPostGradeStart);
|
|
|
|
@ -450,18 +453,18 @@ namespace TeacherExt.Controllers
|
|
|
|
|
{
|
|
|
|
|
ViewData.SelectList(o => model.Nation, () => this.GetNation(model.Nation));
|
|
|
|
|
ViewData.SelectList(o => model.Politics, () => this.GetPolitics(model.Politics));
|
|
|
|
|
ViewData.SelectList(o => model.MaxTitle, () => this.GetTitle(model.MaxTitle));
|
|
|
|
|
ViewData.SelectList(o => model.NotMaxTitle, () => this.GetTitle(model.MaxTitle));
|
|
|
|
|
//
|
|
|
|
|
ViewData.SelectList(o => model.Nationality, () => this.GetSelectListFromDirectory("NATIONALITY", model.Nationality));
|
|
|
|
|
ViewData.SelectList(o => model.UserType, () => this.GetSelectListFromDirectory("PERSON_STATUS", model.UserType));
|
|
|
|
|
ViewData.SelectList(o => model.PostType, () => this.GetSelectListFromDirectory("POST_CATEGORY", model.PostType));
|
|
|
|
|
ViewData.SelectList(o => model.PostType, () => this.GetPostType(model.PostType));
|
|
|
|
|
ViewData.SelectList(o => model.MaritalStatus, () => this.GetSelectListFromDirectory("MARITAL_STATUS", model.MaritalStatus));
|
|
|
|
|
ViewData.SelectList(o => model.MaxTitle, () => this.GetSelectListFromDirectory("PROFESSIONAL_TITLE", model.MaxTitle));
|
|
|
|
|
ViewData.SelectList(o => model.MaxDegree, () => this.GetSelectListFromDirectory("DEGREE", model.MaxDegree));
|
|
|
|
|
ViewData.SelectList(o => model.FirstEducation, () => this.GetSelectListFromDirectory("DEGREE", model.FirstEducation));
|
|
|
|
|
ViewData.SelectList(o => model.MaxEducation, () => this.GetSelectListFromDirectory("DEGREE", model.MaxEducation));
|
|
|
|
|
ViewData.SelectList(o => model.Position, () => this.GetSelectListFromDirectory("ADMINISTRATIVE_POST", model.Position));
|
|
|
|
|
//
|
|
|
|
|
ViewData.SelectList(o => model.NotMaxTitle, () => this.GetSelectListFromDirectory("PROFESSIONAL_TITLE", model.MaxTitle));
|
|
|
|
|
ViewData.SelectList(o => model.FullTimeSchoolEducation, () => this.GetSelectListFromDirectory("DEGREE", model.MaxDegree));
|
|
|
|
|
ViewData.SelectList(o => model.JobTimeSchoolEducation, () => this.GetSelectListFromDirectory("DEGREE", model.MaxDegree));
|
|
|
|
|
////
|
|
|
|
@ -513,58 +516,34 @@ namespace TeacherExt.Controllers
|
|
|
|
|
// }.ToSelectList(selected);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
private SelectList GetSex(string selected)
|
|
|
|
|
private SelectList GetSex(object selected=null)
|
|
|
|
|
{
|
|
|
|
|
return new string[] {
|
|
|
|
|
"男",
|
|
|
|
|
"女",
|
|
|
|
|
}.ToSelectList(selected);
|
|
|
|
|
return this.GetSelectListFromDirectory("SEX2", selected);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private SelectList GetNation(string selected = null)
|
|
|
|
|
private SelectList GetNation(object selected = null)
|
|
|
|
|
{
|
|
|
|
|
return this.GetSelectListFromDirectory("ETHNIC_GROUP", selected);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private SelectList GetPolitics(object selected)
|
|
|
|
|
private SelectList GetPolitics(object selected = null)
|
|
|
|
|
{
|
|
|
|
|
return this.GetSelectListFromDirectory("POLITICALSTATUS", selected);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//private SelectList GetTitle(string selected)
|
|
|
|
|
//{
|
|
|
|
|
// return new string[] {
|
|
|
|
|
// "正高级教师",
|
|
|
|
|
// "高级教师",
|
|
|
|
|
// "一级教师",
|
|
|
|
|
// "二级教师",
|
|
|
|
|
// "未评",
|
|
|
|
|
// "工勤",
|
|
|
|
|
// }.ToSelectList(selected);
|
|
|
|
|
//}
|
|
|
|
|
private SelectList GetTitle(object selected = null)
|
|
|
|
|
{
|
|
|
|
|
return this.GetSelectListFromDirectory("PROFESSIONAL_TITLE", selected);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//private SelectList GetPost(string selected)
|
|
|
|
|
//{
|
|
|
|
|
// return new string[] {
|
|
|
|
|
// "专技岗位",
|
|
|
|
|
// "管理岗位",
|
|
|
|
|
// "工勤岗位",
|
|
|
|
|
// }.ToSelectList(selected);
|
|
|
|
|
//}
|
|
|
|
|
private SelectList GetPostType(object selected = null)
|
|
|
|
|
{
|
|
|
|
|
return this.GetSelectListFromDirectory("POST_CATEGORY", selected);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private SelectList GetPostGrade(string selected)
|
|
|
|
|
private SelectList GetPostGrade(object selected=null)
|
|
|
|
|
{
|
|
|
|
|
return new string[] {
|
|
|
|
|
"四级",
|
|
|
|
|
"五级",
|
|
|
|
|
"六级",
|
|
|
|
|
"七级",
|
|
|
|
|
"八级",
|
|
|
|
|
"九级",
|
|
|
|
|
"十级",
|
|
|
|
|
"十一级",
|
|
|
|
|
"十二级",
|
|
|
|
|
}.ToSelectList(selected);
|
|
|
|
|
return this.GetSelectListFromDirectory("POSTGRADE2", selected);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private SelectList GetEducationGrade(string selected)
|
|
|
|
|