@@ -148,6 +148,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
/// 排考数据同步 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public async Task<ActionResult> AsyncArrangeExamDataNew(ArrangeLessonTermEntity entity) | |||
{ | |||
var data = await arrangeExamTermIBLL.AsyncArrangeExamDataNew(entity); | |||
return Success(data); | |||
} | |||
[HttpGet] | |||
[AjaxOnly] | |||
public async Task<ActionResult> AsyncArrangeExamData() | |||
@@ -0,0 +1,229 @@ | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Threading.Tasks; | |||
using System.Web.Mvc; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2021-12-08 12:19 | |||
/// 描 述:排考2021新 | |||
/// </summary> | |||
public class ArrangeExamTermNewController : MvcControllerBase | |||
{ | |||
private ArrangeExamTermNewIBLL arrangeExamTermNewIBLL = new ArrangeExamTermNewBLL(); | |||
private ArrangeExamTermBLL arrangeExamTermIBLL = new ArrangeExamTermBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult IndexForLesson() | |||
{ | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult IndexItem() | |||
{ | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult IndexForClass() | |||
{ | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult SyncByConditionForm() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
public ActionResult IndexTeach() | |||
{ | |||
return View(); | |||
} | |||
public ActionResult IndexStudent() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetList( string queryJson ) | |||
{ | |||
var data = arrangeExamTermNewIBLL.GetList(queryJson); | |||
return Success(data); | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = arrangeExamTermNewIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageListForLesson(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = arrangeExamTermNewIBLL.GetPageListForLesson(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetItemPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = arrangeExamTermNewIBLL.GetItemPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageListForClass(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = arrangeExamTermNewIBLL.GetPageListForClass(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var data = arrangeExamTermNewIBLL.GetEntity(keyValue); | |||
return Success(data); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
arrangeExamTermNewIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue,ArrangeExamTermNewEntity entity) | |||
{ | |||
arrangeExamTermNewIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 排考数据同步 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public async Task<ActionResult> AsyncArrangeExamDataNew(ArrangeLessonTermEntity entity) | |||
{ | |||
var data = await arrangeExamTermIBLL.AsyncArrangeExamDataNew(entity); | |||
return Success(data); | |||
} | |||
[HttpGet] | |||
public ActionResult GetClassTree() | |||
{ | |||
return Success(arrangeExamTermNewIBLL.GetClassTree()); | |||
} | |||
public ActionResult GetLessonData() | |||
{ | |||
return Success(arrangeExamTermNewIBLL.GetClassTree()); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -94,6 +94,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
return Success(data); | |||
} | |||
///// <summary> | |||
///// 获取树形数据 | |||
///// </summary> | |||
///// <param name="parentId">父级id</param> | |||
///// <returns></returns> | |||
//[HttpGet] | |||
//[AjaxOnly] | |||
//public ActionResult GetTree(string parentId) | |||
//{ | |||
// var data = cdDeptIBLL.GetTree(parentId); | |||
// return JsonResult(data); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
@@ -102,6 +102,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取树形数据 | |||
/// </summary> | |||
/// <param name="parentId">父级id</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetTree(string parentId) | |||
{ | |||
var data = cdMajorIBLL.GetTree(parentId); | |||
return JsonResult(data); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
@@ -0,0 +1,183 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
using System.Linq; | |||
using DocumentFormat.OpenXml.Office.CustomUI; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2019-08-21 17:28 | |||
/// 描 述:成绩比例设置 | |||
/// </summary> | |||
public class ClassPlanController : MvcControllerBase | |||
{ | |||
private ClassPlanIBLL classPlanIBLL = new ClassPlanBLL(); | |||
private ClassInfoIBLL classInfoIBLL = new ClassInfoBLL(); | |||
private TeachClassIBLL teachClassIBLL = new TeachClassBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = classPlanIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var ClassPlanData = classPlanIBLL.GetClassPlanEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
ClassPlan = ClassPlanData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
classPlanIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="strEntity">实体</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
OpenLessonPlanEntity entity = strEntity.ToObject<OpenLessonPlanEntity>(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.AmendDate = DateTime.Now; | |||
} | |||
entity.State = 0; | |||
entity.IsAllowEdit = true; | |||
entity.MakeDate = DateTime.Now; | |||
var model = classPlanIBLL.GetRepetitions(entity.F_SchoolId, entity.AcademicYearNo, entity.Semester, entity.MajorNo, entity.Grade, entity.LessonNo); | |||
if (model != null) | |||
{ | |||
if (keyValue != model.ID.ToString()) | |||
{ | |||
return Fail("此课程已重复!不可再次添加此课程"); | |||
} | |||
} | |||
classPlanIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
/// <summary> | |||
/// 排课 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult CourseArranging(string keyValue) | |||
{ | |||
var entity = classPlanIBLL.GetListById(keyValue); | |||
List<TeachClassEntity> TeachList = new List<TeachClassEntity>(); | |||
for (int i = 0; i < entity.Count; i++) | |||
{ | |||
var lessonList = classInfoIBLL.GetAllClass(). | |||
Where(x => x.MajorNo == entity[i].MajorNo && x.Grade == entity[i].Grade) | |||
.OrderBy(x => x.ClassNo).Select(x => x.ClassNo).ToList(); | |||
if (lessonList.Count > 0) | |||
{ | |||
for (int j = 0; j < lessonList.Count; j++) | |||
{ | |||
TeachClassEntity TeachEntity = new TeachClassEntity(); | |||
TeachEntity.TeachClassNo = lessonList[j]; | |||
TeachEntity.AcademicYearNo = entity[i].AcademicYearNo; | |||
TeachEntity.MajorNo = entity[i].MajorNo; | |||
TeachEntity.Grade = entity[i].Grade; | |||
TeachEntity.Semester = entity[i].Semester; | |||
TeachEntity.LessonNo = entity[i].LessonNo; | |||
TeachEntity.StuNum = entity[i].StuNum; | |||
TeachEntity.LessonSortNo = entity[i].LessonSortNo; | |||
TeachEntity.F_SchoolId = entity[i].F_SchoolId; | |||
TeachList.Add(TeachEntity); | |||
} | |||
} | |||
else | |||
{ | |||
return Fail("排课失败!暂无排课班级"); | |||
} | |||
} | |||
teachClassIBLL.SaveEntityList(TeachList); | |||
classPlanIBLL.SaveEntityList(keyValue, entity); | |||
return Success("排课成功"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,280 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
using System.Linq; | |||
using DocumentFormat.OpenXml.Office.CustomUI; | |||
using List = DocumentFormat.OpenXml.Office2010.ExcelAc.List; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2019-08-21 17:28 | |||
/// 描 述:设置教师 | |||
/// </summary> | |||
public class ClassPlanTeachController : MvcControllerBase | |||
{ | |||
private TeachClassIBLL teachClassIBLL = new TeachClassBLL(); | |||
private StuSelectLessonListIBLL StuSelectLesson = new StuSelectLessonListBLL(); | |||
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult TeachForm() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult TeachFormQZ() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = teachClassIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var ClassPlanData = teachClassIBLL.GetTeachClassEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
ClassPlan = ClassPlanData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
teachClassIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="strEntity">实体</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
TeachClassEntity entity = strEntity.ToObject<TeachClassEntity>(); | |||
teachClassIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
/// <summary> | |||
/// 设置教师 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult SetTeach(string keyValue, string EmpNo) | |||
{ | |||
var entityList = teachClassIBLL.GetTeachListById(keyValue); | |||
List<StuSelectLessonListEntity> TeachList = new List<StuSelectLessonListEntity>(); | |||
for (int i = 0; i < entityList.Count; i++) | |||
{ | |||
var stuDataList = stuInfoBasicIBLL.GetAllList().Where(s => | |||
s.MajorNo == entityList[i].MajorNo | |||
&& s.F_SchoolId == entityList[i].F_SchoolId | |||
&& s.ClassNo == entityList[i].TeachClassNo | |||
).ToList(); | |||
if (stuDataList.Count > 0) | |||
{ | |||
for (int j = 0; j < stuDataList.Count; j++) | |||
{ | |||
StuSelectLessonListEntity TeachEntity = new StuSelectLessonListEntity(); | |||
TeachEntity.StuNo = stuDataList[j].StuNo; | |||
TeachEntity.MajorNo = entityList[i].MajorNo; | |||
TeachEntity.ClassNo = stuDataList[j].ClassNo; | |||
TeachEntity.GenderNo = stuDataList[j].GenderNo == true ? "0" : "1"; | |||
TeachEntity.MajorDetailNo = entityList[i].MajorDetailNo; | |||
TeachEntity.MajorDetailName = entityList[i].MajorDetailName; | |||
TeachEntity.StuName = stuDataList[j].StuName; | |||
TeachEntity.AcademicYearNo = entityList[i].AcademicYearNo; | |||
TeachEntity.Semester = entityList[i].Semester; | |||
TeachEntity.OpenLessonDeptNo = entityList[i].DeptNo; | |||
TeachEntity.OpenLessonMajorNo = entityList[i].MajorNo; | |||
TeachEntity.LessonNo = entityList[i].LessonNo; | |||
TeachEntity.PartCode = entityList[i].PartCode; | |||
TeachEntity.OrdinaryScoreScale = 0; | |||
TeachEntity.TermInScoreScale = 0; | |||
TeachEntity.TermEndScoreScale = 0; | |||
TeachEntity.OtherScoreScale = 0; | |||
TeachEntity.TeachClassNo = entityList[i].TeachClassNo; | |||
TeachEntity.LessonSortNo = entityList[i].LessonSortNo; | |||
TeachEntity.StuSortNo = entityList[i].LessonSortNo; | |||
TeachEntity.Grade = entityList[i].Grade; | |||
TeachEntity.StudyScore = 2; | |||
TeachEntity.TotalStudyHour = 2; | |||
TeachEntity.IsInEffect = "1"; | |||
TeachEntity.IsPitchOn = "1"; | |||
TeachEntity.F_SchoolId = entityList[i].F_SchoolId; | |||
TeachEntity.CheckMark = "1"; | |||
TeachEntity.InsertTime = DateTime.Now; | |||
TeachList.Add(TeachEntity); | |||
} | |||
} | |||
else | |||
{ | |||
return Fail("设置失败,未发现相关学生!"); | |||
} | |||
} | |||
StuSelectLesson.SaveEntityList(TeachList); | |||
teachClassIBLL.UpEmpNo(keyValue, EmpNo); //更改当前教师 | |||
return Success("设置成功!"); | |||
} | |||
public ActionResult QzSetTeach(string keyValue, string EmpNo) | |||
{ | |||
var entityList = teachClassIBLL.GetTeachListById(keyValue); | |||
string Nid = ""; | |||
if (entityList.Count > 0) | |||
{ | |||
for (int i = 0; i < entityList.Count; i++) | |||
{ | |||
List<string> ssList = StuSelectLesson.GetAllList().Where( | |||
y => y.MajorNo == entityList[i].MajorNo | |||
&& y.F_SchoolId == entityList[i].F_SchoolId | |||
&& y.ClassNo == entityList[i].TeachClassNo | |||
&& y.LessonNo == entityList[i].LessonNo | |||
&& y.CheckMark == "1" | |||
).Select(x => x.SelectId.ToString()).ToList(); | |||
Nid += string.Join(",", ssList) + ","; | |||
} | |||
} | |||
Nid = Nid.TrimEnd(','); | |||
StuSelectLesson.DeleteEntity(Nid); | |||
List<StuSelectLessonListEntity> TeachList = new List<StuSelectLessonListEntity>(); | |||
for (int i = 0; i < entityList.Count; i++) | |||
{ | |||
var stuDataList = stuInfoBasicIBLL.GetAllList().Where(s => | |||
s.MajorNo == entityList[i].MajorNo | |||
&& s.F_SchoolId == entityList[i].F_SchoolId | |||
&& s.ClassNo == entityList[i].TeachClassNo | |||
).ToList(); | |||
if (stuDataList.Count > 0) | |||
{ | |||
for (int j = 0; j < stuDataList.Count; j++) | |||
{ | |||
StuSelectLessonListEntity TeachEntity = new StuSelectLessonListEntity(); | |||
TeachEntity.StuNo = stuDataList[j].StuNo; | |||
TeachEntity.MajorNo = entityList[i].MajorNo; | |||
TeachEntity.ClassNo = stuDataList[j].ClassNo; | |||
TeachEntity.MajorDetailNo = entityList[i].MajorDetailNo; | |||
TeachEntity.MajorDetailName = entityList[i].MajorDetailName; | |||
TeachEntity.StuName = stuDataList[j].StuName; | |||
TeachEntity.GenderNo = stuDataList[j].GenderNo == true ? "0" : "1"; | |||
TeachEntity.AcademicYearNo = entityList[i].AcademicYearNo; | |||
TeachEntity.Semester = entityList[i].Semester; | |||
TeachEntity.OpenLessonDeptNo = entityList[i].DeptNo; | |||
TeachEntity.OpenLessonMajorNo = entityList[i].MajorNo; | |||
TeachEntity.LessonNo = entityList[i].LessonNo; | |||
TeachEntity.PartCode = entityList[i].PartCode; | |||
TeachEntity.OrdinaryScoreScale = 0; | |||
TeachEntity.TermInScoreScale = 0; | |||
TeachEntity.TermEndScoreScale = 0; | |||
TeachEntity.OtherScoreScale = 0; | |||
TeachEntity.TeachClassNo = entityList[i].TeachClassNo; | |||
TeachEntity.LessonSortNo = entityList[i].LessonSortNo; | |||
TeachEntity.StuSortNo = entityList[i].LessonSortNo; | |||
TeachEntity.Grade = entityList[i].Grade; | |||
TeachEntity.StudyScore = 2; | |||
TeachEntity.TotalStudyHour = 2; | |||
TeachEntity.IsInEffect = "1"; | |||
TeachEntity.IsPitchOn = "1"; | |||
TeachEntity.F_SchoolId = entityList[i].F_SchoolId; | |||
TeachEntity.InsertTime = DateTime.Now; | |||
TeachList.Add(TeachEntity); | |||
} | |||
} | |||
else | |||
{ | |||
return Fail("设置失败,未发现相关学生!"); | |||
} | |||
} | |||
StuSelectLesson.SaveEntityList(TeachList); | |||
teachClassIBLL.UpEmpNo(keyValue, EmpNo); //更改当前教师 | |||
return Success("设置成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,63 @@ | |||
@{ | |||
ViewBag.Title = "排考2021新"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">AETId<font face="宋体">*</font></div> | |||
<input id="AETId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">AcademicYearNo<font face="宋体">*</font></div> | |||
<input id="AcademicYearNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">Semester<font face="宋体">*</font></div> | |||
<input id="Semester" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">ExamDate<font face="宋体">*</font></div> | |||
<input id="ExamDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">ExamTime<font face="宋体">*</font></div> | |||
<input id="ExamTime" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">ClassNo<font face="宋体">*</font></div> | |||
<input id="ClassNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">ClassName<font face="宋体">*</font></div> | |||
<input id="ClassName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">LessonNo<font face="宋体">*</font></div> | |||
<input id="LessonNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">LessonName<font face="宋体">*</font></div> | |||
<input id="LessonName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">EmpNo<font face="宋体">*</font></div> | |||
<input id="EmpNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">EmpName<font face="宋体">*</font></div> | |||
<input id="EmpName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">ClassRoomNo<font face="宋体">*</font></div> | |||
<input id="ClassRoomNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">ClassRoomName<font face="宋体">*</font></div> | |||
<input id="ClassRoomName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">F_SchoolId<font face="宋体">*</font></div> | |||
<input id="F_SchoolId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeExamTermNew/Form.js") |
@@ -0,0 +1,38 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-12-08 12:19 | |||
* 描 述:排考2021新 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var selectedRow = learun.frameTab.currentIframe().selectedRow; | |||
var page = { | |||
init: function () { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
}, | |||
initData: function () { | |||
if (!!selectedRow) { | |||
$('#form').lrSetFormData(selectedRow); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('#form').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,39 @@ | |||
@{ | |||
ViewBag.Title = "排考2021新"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="AcademicYearNo" type="lrselect" class="lr-select lr-selectLittle" style="width: 80px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="Semester" type="lrselect" class="lr-select lr-selectLittle" style="width: 80px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch" class="datetime"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> 查询</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_arrange" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 排考数据同步</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeExamTermNew/Index.js") |
@@ -0,0 +1,125 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-12-08 12:19 | |||
* 描 述:排考2021新 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var datebegin = ''; | |||
var dateend = ''; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('.datetime').each(function () { | |||
$(this).lrdate({ | |||
dfdata: [ | |||
{ name: '清空', begin: function () { return '' }, end: function () { return '' } }, | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
dfvalue: '0', | |||
selectfn: function (begin, end) { | |||
datebegin = begin; | |||
dateend = end; | |||
} | |||
}); | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
page.search({ AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet(), LessonNo: $('#LessonNo').lrselectGet()}); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
//排考数据同步 | |||
$('#lr_arrange').on('click', function () { | |||
learun.layerForm({ | |||
id: 'SyncByConditionForm', | |||
title: '按条件同步排考数据', | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/SyncByConditionForm', | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "学年", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//学期 | |||
$('#Semester').lrselect({ | |||
placeholder: "学期", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//课程 | |||
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname', placeholder:'请选择课程' }); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetPageList', | |||
headData: [ | |||
{ label: '学年', name: 'AcademicYearNo', width: 80, align: "left" }, | |||
{ label: '学期', name: 'Semester', width: 80, align: "left" }, | |||
{ | |||
label: '考试日期', name: 'ExamDate', width: 100, align: "left", formatter: function (v) { | |||
return learun.formatDate(v, "yyyy-MM-dd"); | |||
} | |||
}, | |||
{ label: '考试时间', name: 'ExamTime', width: 100, align: "left" }, | |||
//{ label: '班级编号', name: 'ClassNo', width: 200, align: "left" }, | |||
//{ label: '班级名称', name: 'ClassName', width: 200, align: "left" }, | |||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | |||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | |||
{ label: '教师编号', name: 'EmpNo', width: 100, align: "left" }, | |||
{ label: '教师姓名', name: 'EmpName', width: 100, align: "left" }, | |||
{ label: '教室编号', name: 'ClassRoomNo', width: 100, align: "left" }, | |||
{ label: '教室名称', name: 'ClassRoomName', width: 100, align: "left" } | |||
], | |||
mainId: 'AETId', | |||
sidx: 'ExamTime asc, LessonNo asc,ClassRoomNo asc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = datebegin; | |||
param.EndTime = dateend; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,51 @@ | |||
@{ | |||
ViewBag.Title = "排考2021新"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout lr-layout-left-center"> | |||
<div class="lr-layout-left"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title lrlt ">班级信息</div> | |||
<div id="dataTree" class="lr-layout-body"></div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title"> | |||
<span id="titleinfo" class="lrlt">班级信息</span> | |||
</div> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="AcademicYearNo" type="lrselect" class="lr-select lr-selectLittle" style="width: 80px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="Semester" type="lrselect" class="lr-select lr-selectLittle" style="width: 80px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="ClassRoomNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="EmpNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch" class="datetime"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> 查询</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeExamTermNew/IndexForClass.js") |
@@ -0,0 +1,132 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-12-08 12:19 | |||
* 描 述:排考2021新 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var datebegin = ''; | |||
var dateend = ''; | |||
var ClassNo = ''; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
// 初始化左侧树形数据 | |||
$('#dataTree').lrtree({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetClassTree', | |||
nodeClick: function (item) { | |||
ClassNo = item.id; | |||
page.search({ ClassNo: item.id }); | |||
} | |||
}); | |||
$('.datetime').each(function () { | |||
$(this).lrdate({ | |||
dfdata: [ | |||
{ name: '清空', begin: function () { return '' }, end: function () { return '' } }, | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
dfvalue: '0', | |||
selectfn: function (begin, end) { | |||
datebegin = begin; | |||
dateend = end; | |||
} | |||
}); | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
page.search({ ClassNo: ClassNo, AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet(), LessonNo: $('#LessonNo').lrselectGet(), ClassRoomNo: $('#ClassRoomNo').lrselectGet(), EmpNo: $('#EmpNo').lrselectGet() }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "学年", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//学期 | |||
$('#Semester').lrselect({ | |||
placeholder: "学期", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//课程 | |||
//$('#LessonNo').lrselect({ | |||
// placeholder: "请选择课程", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo', | |||
// value: 'value', | |||
// text: 'text' | |||
//}); | |||
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname', placeholder: '请选择课程' }); | |||
$('#ClassRoomNo').lrDataSourceSelect({ code: 'ClassRoomInfo', value: 'classroomno', text: 'classroomname', placeholder: '请选择教室' }); | |||
$('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname', placeholder: '请选择教师' }); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetPageListForClass', | |||
headData: [ | |||
{ label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | |||
{ label: '学期', name: 'Semester', width: 60, align: "left" }, | |||
{ label: '考试日期', name: 'ExamDate', width: 100, align: "left", formatter: function (v) { | |||
return learun.formatDate(v, "yyyy-MM-dd"); | |||
} }, | |||
{ label: '考试时间', name: 'ExamTime', width: 120, align: "left" }, | |||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | |||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | |||
{ label: '监考教师编号', name: 'EmpNo', width: 150, align: "left" }, | |||
{ label: '监考教师姓名', name: 'EmpName', width: 150, align: "left" }, | |||
{ label: '教室编号', name: 'ClassRoomNo', width: 100, align: "left" }, | |||
{ label: '教室名称', name: 'ClassRoomName', width: 100, align: "left" }, | |||
{ label: '班级名称', name: 'ClassName', width: 100, align: "left" }, | |||
{ label: '班级人数', name: 'ClassStuNum', width: 60, align: "left" }, | |||
{ label: '学号范围', name: 'StuNoRange', width: 200, align: "left" } | |||
], | |||
mainId: 'AETId', | |||
sidx: 'examdate,examtime,lessonno,classroomname ', | |||
sord:'asc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = datebegin; | |||
param.EndTime = dateend; | |||
console.log(param); | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,39 @@ | |||
@{ | |||
ViewBag.Title = "排考2021新"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="AcademicYearNo" type="lrselect" class="lr-select lr-selectLittle" style="width: 80px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="Semester" type="lrselect" class="lr-select lr-selectLittle" style="width: 80px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch" class="datetime"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> 查询</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_arrange" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 排考数据同步</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeExamTermNew/IndexForLesson.js") |
@@ -0,0 +1,119 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-12-08 12:19 | |||
* 描 述:排考2021新 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var datebegin = ''; | |||
var dateend = ''; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('.datetime').each(function () { | |||
$(this).lrdate({ | |||
dfdata: [ | |||
{ name: '清空', begin: function () { return '' }, end: function () { return '' } }, | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
dfvalue: '0', | |||
selectfn: function (begin, end) { | |||
datebegin = begin; | |||
dateend = end; | |||
} | |||
}); | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
page.search({ AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet(), LessonNo: $('#LessonNo').lrselectGet()}); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
//排考数据同步 | |||
$('#lr_arrange').on('click', function () { | |||
learun.layerForm({ | |||
id: 'SyncByConditionForm', | |||
title: '按条件同步排考数据', | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/SyncByConditionForm', | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "学年", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//学期 | |||
$('#Semester').lrselect({ | |||
placeholder: "学期", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//课程 | |||
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname', placeholder:'请选择课程' }); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetPageListForLesson', | |||
headData: [ | |||
{ label: '学年', name: 'AcademicYearNo', width: 80, align: "left" }, | |||
{ label: '学期', name: 'Semester', width: 80, align: "left" }, | |||
{ | |||
label: '考试日期', name: 'ExamDate', width: 100, align: "left", formatter: function (v) { | |||
return learun.formatDate(v, "yyyy-MM-dd"); | |||
} | |||
}, | |||
{ label: '考试时间', name: 'ExamTime', width: 100, align: "left" }, | |||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | |||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" } | |||
], | |||
mainId: 'AETId', | |||
sidx: 'ExamDate ,ExamTime,LessonNo', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = datebegin; | |||
param.EndTime = dateend; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,51 @@ | |||
@{ | |||
ViewBag.Title = "排考2021新"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout lr-layout-left-center"> | |||
<div class="lr-layout-left"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title lrlt ">班级信息</div> | |||
<div id="dataTree" class="lr-layout-body"></div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title"> | |||
<span id="titleinfo" class="lrlt">班级信息</span> | |||
</div> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="AcademicYearNo" type="lrselect" class="lr-select lr-selectLittle" style="width: 80px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="Semester" type="lrselect" class="lr-select lr-selectLittle" style="width: 80px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="ClassRoomNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="EmpNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch" class="datetime"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> 查询</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeExamTermNew/IndexItem.js") |
@@ -0,0 +1,130 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-12-08 12:19 | |||
* 描 述:排考2021新 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var datebegin = ''; | |||
var dateend = ''; | |||
var ClassNo = ''; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
// 初始化左侧树形数据 | |||
$('#dataTree').lrtree({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetClassTree', | |||
nodeClick: function (item) { | |||
ClassNo = item.id; | |||
page.search({ ClassNo: item.id }); | |||
} | |||
}); | |||
$('.datetime').each(function () { | |||
$(this).lrdate({ | |||
dfdata: [ | |||
{ name: '清空', begin: function () { return '' }, end: function () { return '' } }, | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
dfvalue: '0', | |||
selectfn: function (begin, end) { | |||
datebegin = begin; | |||
dateend = end; | |||
} | |||
}); | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
page.search({ ClassNo: ClassNo, AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet(), LessonNo: $('#LessonNo').lrselectGet(), ClassRoomNo: $('#ClassRoomNo').lrselectGet(), EmpNo: $('#EmpNo').lrselectGet() }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "学年", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//学期 | |||
$('#Semester').lrselect({ | |||
placeholder: "学期", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//课程 | |||
//$('#LessonNo').lrselect({ | |||
// placeholder: "请选择课程", | |||
// allowSearch: true, | |||
// url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo', | |||
// value: 'value', | |||
// text: 'text' | |||
//}); | |||
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname', placeholder: '请选择课程' }); | |||
$('#ClassRoomNo').lrDataSourceSelect({ code: 'ClassRoomInfo', value: 'classroomno', text: 'classroomname', placeholder: '请选择教室' }); | |||
$('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname', placeholder: '请选择教师' }); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetItemPageList', | |||
headData: [ | |||
{ label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | |||
{ label: '学期', name: 'Semester', width: 60, align: "left" }, | |||
{ label: '考试日期', name: 'ExamDate', width: 120, align: "left" }, | |||
{ label: '考试时间', name: 'ExamTime', width: 120, align: "left" }, | |||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | |||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | |||
{ label: '监考教师编号', name: 'EmpNo', width: 150, align: "left" }, | |||
{ label: '监考教师姓名', name: 'EmpName', width: 150, align: "left" }, | |||
{ label: '教室编号', name: 'ClassRoomNo', width: 100, align: "left" }, | |||
{ label: '教室名称', name: 'ClassRoomName', width: 100, align: "left" }, | |||
{ label: '班级名称', name: 'ClassName', width: 100, align: "left" }, | |||
{ label: '学生编号', name: 'StuNo', width: 100, align: "left" }, | |||
{ label: '学生姓名', name: 'StuName', width: 200, align: "left" }, | |||
{ label: '座位编号', name: 'SitNumber', width: 100, aligndd: "left" } | |||
], | |||
mainId: 'AETId', | |||
sidx: 'ExamDate asc, LessonNo asc,ClassRoomNo asc,ClassNo asc,SitNumber asc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = datebegin; | |||
param.EndTime = dateend; | |||
console.log(param); | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,36 @@ | |||
@{ | |||
ViewBag.Title = "排考2021新"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="ClassRoomNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="EmpNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch" class="datetime"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> 查询</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeExamTermNew/IndexStudent.js") |
@@ -0,0 +1,100 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-12-08 12:19 | |||
* 描 述:排考2021新 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var datebegin = ''; | |||
var dateend = ''; | |||
var ClassNo = ''; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('.datetime').each(function () { | |||
$(this).lrdate({ | |||
dfdata: [ | |||
{ name: '清空', begin: function () { return '' }, end: function () { return '' } }, | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
dfvalue: '0', | |||
selectfn: function (begin, end) { | |||
datebegin = begin; | |||
dateend = end; | |||
} | |||
}); | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
page.search({ ClassNo: ClassNo, AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet(), LessonNo: $('#LessonNo').lrselectGet(), ClassRoomNo: $('#ClassRoomNo').lrselectGet(), EmpNo: $('#EmpNo').lrselectGet() }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname', placeholder: '请选择课程' }); | |||
$('#ClassRoomNo').lrDataSourceSelect({ code: 'ClassRoomInfo', value: 'classroomno', text: 'classroomname', placeholder: '请选择教室' }); | |||
$('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname', placeholder: '请选择教师' }); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetItemPageList', | |||
headData: [ | |||
{ label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | |||
{ label: '学期', name: 'Semester', width: 60, align: "left" }, | |||
{ label: '考试日期', name: 'ExamDate', width: 120, align: "left" }, | |||
{ label: '考试时间', name: 'ExamTime', width: 120, align: "left" }, | |||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | |||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | |||
{ label: '监考教师编号', name: 'EmpNo', width: 150, align: "left" }, | |||
{ label: '监考教师姓名', name: 'EmpName', width: 150, align: "left" }, | |||
{ label: '教室编号', name: 'ClassRoomNo', width: 100, align: "left" }, | |||
{ label: '教室名称', name: 'ClassRoomName', width: 100, align: "left" }, | |||
{ label: '班级名称', name: 'ClassName', width: 100, align: "left" }, | |||
{ label: '学生编号', name: 'StuNo', width: 100, align: "left" }, | |||
{ label: '学生姓名', name: 'StuName', width: 200, align: "left" }, | |||
{ label: '座位编号', name: 'SitNumber', width: 100, aligndd: "left" } | |||
], | |||
mainId: 'AETId', | |||
sidx: 'ExamDate asc, LessonNo asc,ClassRoomNo asc,ClassNo asc,SitNumber asc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = datebegin; | |||
param.EndTime = dateend; | |||
var loginInfo = learun.clientdata.get(['userinfo']); | |||
param.StuNo = loginInfo.account; | |||
console.log(param.StuNo); | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,33 @@ | |||
@{ | |||
ViewBag.Title = "排考2021新"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="LessonNo" type="lrselect" class="lr-select" style="width: 200px;"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch" class="datetime"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> 查询</a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
@*<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_arrange" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 排考数据同步</a> | |||
</div>*@ | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeExamTermNew/IndexTeach.js") |
@@ -0,0 +1,111 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-12-08 12:19 | |||
* 描 述:排考2021新 | |||
*/ | |||
var selectedRow; | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var datebegin = ''; | |||
var dateend = ''; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('.datetime').each(function () { | |||
$(this).lrdate({ | |||
dfdata: [ | |||
{ name: '清空', begin: function () { return '' }, end: function () { return '' } }, | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
dfvalue: '0', | |||
selectfn: function (begin, end) { | |||
datebegin = begin; | |||
dateend = end; | |||
} | |||
}); | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
page.search({ AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet(), LessonNo: $('#LessonNo').lrselectGet()}); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "学年", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//学期 | |||
$('#Semester').lrselect({ | |||
placeholder: "学期", | |||
allowSearch: false, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//课程 | |||
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname', placeholder:'请选择课程' }); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetPageList', | |||
headData: [ | |||
{ | |||
label: '考试日期', name: 'ExamDate', width: 200, align: "left", formatter: function (v) { | |||
return learun.formatDate(v, "yyyy-MM-dd"); | |||
} | |||
}, | |||
{ label: '考试时间', name: 'ExamTime', width: 200, align: "left" }, | |||
{ label: '课程编号', name: 'LessonNo', width: 200, align: "left" }, | |||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | |||
{ label: '教师编号', name: 'EmpNo', width: 200, align: "left" }, | |||
{ label: '教师姓名', name: 'EmpName', width: 200, align: "left" }, | |||
{ label: '教室编号', name: 'ClassRoomNo', width: 200, align: "left" }, | |||
{ label: '教室名称', name: 'ClassRoomName', width: 200, align: "left" } | |||
], | |||
mainId: 'AETId', | |||
sidx: 'ExamDate asc,ExamTime asc,LessonNo asc,ClassRoomNo asc', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = datebegin; | |||
param.EndTime = dateend; | |||
var loginInfo = learun.clientdata.get(['userinfo']); | |||
param.EmpNo = loginInfo.account; | |||
console.log(param.EmpNo,111); | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,19 @@ | |||
@{ | |||
ViewBag.Title = "按条件同步排考数据"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">校区<font face="宋体">*</font></div> | |||
<div id="F_SchoolId" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">学年<font face="宋体">*</font></div> | |||
<div id="AcademicYearNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">学期<font face="宋体">*</font></div> | |||
<div id="Semester" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeExamTermNew/SyncByConditionForm.js") |
@@ -0,0 +1,55 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-02-27 11:05 | |||
* 描 述:按条件同步排考数据 | |||
*/ | |||
var acceptClick; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.bind(); | |||
//page.initData(); | |||
}, | |||
bind: function () { | |||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | |||
//学年 | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "请选择学年", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//学期 | |||
$('#Semester').lrselect({ | |||
placeholder: "请选择学期", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
}, | |||
initData: function () { | |||
//if (!!selectedRow) { | |||
// $('#form').lrSetFormData(selectedRow); | |||
//} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('#form').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/AsyncArrangeExamDataNew', postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -15,5 +15,9 @@ | |||
<div class="lr-form-item-title">学期<font face="宋体">*</font></div> | |||
<div id="Semester" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">同步内容<font face="宋体">*</font></div> | |||
<div id="SyncType" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ArrangeLessonTerm/SyncByConditionForm.js") |
@@ -30,6 +30,12 @@ var bootstrap = function ($, learun) { | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
$('#SyncType').lrselect({ | |||
placeholder: "请选择同步内容", | |||
data: [{ text: "课表", value: "1" }, { text: "开课计划", value: "2" }], | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
}, | |||
initData: function () { | |||
//if (!!selectedRow) { | |||
@@ -0,0 +1,100 @@ | |||
@{ | |||
ViewBag.Title = "开课计划"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-4 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">学校<font face="宋体">*</font></div> | |||
<div id="F_SchoolId" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">学年<font face="宋体">*</font></div> | |||
<div id="AcademicYearNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">学期<font face="宋体">*</font></div> | |||
<div id="Semester" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | |||
<div id="MajorNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">年级<font face="宋体">*</font></div> | |||
<div id="Grade" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">课程<font face="宋体">*</font></div> | |||
<div id="LessonNo" isvalid="yes" checkexpession="NotNull"></div> | |||
<input id="LessonName" type="hidden" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">课程细类码</div> | |||
<div id="LessonSortDetailNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan" style="display: none; "> | |||
<div class="lr-form-item-title">开合课</div> | |||
<input id="StuSortNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">拟开教学班数</div> | |||
<input id="TeachClassNum" type="text" class="form-control" isvalid="yes" checkexpession="NumOrNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">人数</div> | |||
<input id="StuNum" type="text" class="form-control" isvalid="yes" checkexpession="NumOrNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">周课时</div> | |||
<input id="WeekLessonHour" type="text" class="form-control" isvalid="yes" checkexpession="NumOrNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">教室课时</div> | |||
<input id="WeekHourClassroom" type="text" class="form-control" checkexpession="NumOrNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">上机课时</div> | |||
<input id="PracticeHour" type="text" class="form-control" checkexpession="NumOrNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">起始周次</div> | |||
<input id="StartWeek" type="text" class="form-control" icheckexpession="NumOrNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">结束周次</div> | |||
<input id="EndWeek" type="text" class="form-control" checkexpession="NumOrNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">学分</div> | |||
<input id="StudyScore" type="text" class="form-control" checkexpession="NumOrNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="ClassPlan"> | |||
<div class="lr-form-item-title">备注</div> | |||
<textarea id="Remark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
<div class="col-xs-2 lr-form-item" data-table="ClassPlan" style="display: none; "> | |||
<div class="lr-form-item-title">考核方式码</div> | |||
<input id="CheckStyleNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-2 lr-form-item" data-table="ClassPlan" style="display: none; "> | |||
<div class="lr-form-item-title">成绩记录方式</div> | |||
<input id="ScoreRecordStyleNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-2 lr-form-item" data-table="ClassPlan" style="display: none; "> | |||
<div class="lr-form-item-title">审查标记</div> | |||
<input id="CheckMarkDept" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-2 lr-form-item" data-table="ClassPlan" style="display: none; "> | |||
<div class="lr-form-item-title">审查标记</div> | |||
<input id="CheckMark" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-2 lr-form-item" data-table="ClassPlan" style="display: none; "> | |||
<div class="lr-form-item-title">实践课教室类型</div> | |||
<input id="ClassroomType" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="ClassPlan" style="display: none; "> | |||
<div class="lr-form-item-title">理论课教室类型</div> | |||
<input id="ClassroomPracticeType" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ClassPlan/Form.js") |
@@ -0,0 +1,87 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-11-29 11:43 | |||
* 描 述:开课计划 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "请选择学年", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
$('#LessonSortDetailNo').lrDataSourceSelect({ code: 'CdLessonSortDetail', value: 'lessonsortdetailno', text: 'lessonsortdetailname' }); | |||
//年级 | |||
$('#Grade').lrselect({ | |||
placeholder: "请选择年级", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetGradeData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
$('#Semester').lrDataItemSelect({ code: 'Semester' }); | |||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||
$('#LessonNo').lrselect({ | |||
placeholder: "请选择课程", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
$('#TeachDeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/ClassPlan/GetFormData?keyValue=' + keyValue, function (data) { | |||
for (var id in data) { | |||
if (!!data[id].length && data[id].length > 0) { | |||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||
} | |||
else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
} | |||
}); | |||
} | |||
$('#StuSortNo').val('02'); | |||
$('#LessonSortNo').val('2'); | |||
$('#CheckStyleNo').val('1'); | |||
$('#ScoreRecordStyleNo').val('1'); | |||
$('#CheckMark').val('1'); | |||
$('#ClassroomType').val('1'); | |||
$('#ClassroomPracticeType').val('99'); | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var nName = $("#LessonNo").find(".lr-select-placeholder").text(); | |||
var Narray= nName.split("("); | |||
$("#LessonName").val(Narray[0]); | |||
var postData = { | |||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/ClassPlan/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,62 @@ | |||
@{ | |||
ViewBag.Title = "开课计划"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout lr-layout-left-center" id="lr_layout"> | |||
<div class="lr-layout-left"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title lrlt ">学校信息</div> | |||
<div id="cdmajorTree" class="lr-layout-body"></div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title"> | |||
<span id="titleinfo" class="lrlt">未选择学校</span> - <span class="lrlt">专业信息</span> | |||
</div> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">学校</div> | |||
<div id="F_SchoolId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学年</div> | |||
<div id="AcademicYearNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学期</div> | |||
<div id="Semester"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">年级</div> | |||
<div id="Grade"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">课程</div> | |||
<div id="LessonNo"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_courses" class="btn btn-default"><i class="fa fa-print"></i> 排课</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ClassPlan/Index.js") |
@@ -0,0 +1,280 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-11-29 11:43 | |||
* 描 述:开课计划 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var cdmajorname = ''; | |||
var page = { | |||
init: function () { | |||
page.inittree(); | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 250, 400); | |||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "请选择学年", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//年级 | |||
$('#Grade').lrselect({ | |||
placeholder: "请选择年级", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetGradeData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
$('#Semester').lrDataItemSelect({ code: 'Semester' }); | |||
$("#MajorNo").lrselect(); | |||
$('#LessonNo').lrselect({ | |||
placeholder: "请选择课程", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo', | |||
value: 'value', | |||
text: 'text', | |||
maxHeight: 200 | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/ClassPlan/Form', | |||
width: 800, | |||
height: 450, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
if (keyValue.indexOf(',') != -1) { | |||
learun.alert.warning("只能选择一条记录进行编辑!"); | |||
return; | |||
} | |||
var state = $('#gridtable').jfGridValue('State'); | |||
if (state == 0) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/ClassPlan/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 450, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} else { | |||
learun.layerConfirm('是否确认修改,修改后可能会造成不可弥补的错误!!!', function (res) { | |||
if (res) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/ClassPlan/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 450, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
} | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var state = $('#gridtable').jfGridValue('State').split(','); | |||
var allEmpty = true; | |||
for (var i = 0; i < state.length; i++) { | |||
if (state[i] != 0) { | |||
allEmpty = false; | |||
} | |||
} | |||
if (allEmpty) { | |||
learun.layerConfirm('是否确认删除该项!', | |||
function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/ClassPlan/DeleteForm', | |||
{ keyValue: keyValue }, | |||
function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} else { | |||
learun.layerConfirm('是否确认删除该项,删除数据后不可恢复!!!', function (item) { | |||
if (item) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/ClassPlan/DeleteForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
} | |||
}); | |||
//排课 | |||
$('#lr_courses').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var state = $('#gridtable').jfGridValue('State').split(','); | |||
var allEmpty = true; | |||
for (var i = 0; i < state.length; i++) { | |||
if (state[i] != 0) { | |||
allEmpty = false; | |||
} | |||
} | |||
if (allEmpty) { | |||
learun.layerConfirm('确定要进行排课么!', | |||
function (res) { | |||
if (res) { | |||
learun.postForm( | |||
top.$.rootUrl + '/EducationalAdministration/ClassPlan/CourseArranging', | |||
{ keyValue: keyValue }, | |||
function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} else { | |||
learun.alert.warning("不嫩选择已排课的课程计划"); | |||
} | |||
} | |||
}); | |||
}, | |||
inittree: function () { | |||
$('#cdmajorTree').lrtree({ | |||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetTree', | |||
param: { parentId: '0' }, | |||
nodeClick: page.treeNodeClick | |||
}); | |||
//$('#cdmajorTree').lrtreeSet('setValue', '53298b7a-404c-4337-aa7f-80b2a4ca6681'); | |||
}, | |||
treeNodeClick: function (item) { | |||
cdmajorname = item.id; | |||
$('#titleinfo').text(item.text); | |||
page.search(); | |||
var NMajorNo = item.id; | |||
if (NMajorNo != null && NMajorNo != "" && NMajorNo != undefined) { | |||
$('#MajorNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
param: { strWhere: " 1=1 and CheckMark=1 and majorno in (" + NMajorNo + ")" }, | |||
value: "majorno", | |||
text: "majorname", | |||
maxHeight: 200 | |||
}); | |||
} else { | |||
$('#MajorNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
param: { strWhere: " 1=1 and CheckMark=1 and majorno ='' " }, | |||
value: "majorno", | |||
text: "majorname", | |||
maxHeight: 200 | |||
}); | |||
} | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ClassPlan/GetPageList', | |||
headData: [ | |||
{ | |||
label: "校区", name: "F_SchoolId", width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', | |||
key: value, | |||
keyId: 'f_companyid', | |||
callback: function (_data) { | |||
callback(_data['f_fullname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "学年", name: "AcademicYearNo", width: 80, align: "left" }, | |||
{ | |||
label: "学期", name: "Semester", width: 50, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'Semester', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "专业", name: "MajorNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "年级", name: "Grade", width: 50, align: "left" }, | |||
{ label: "课程编码", name: "LessonNo", width: 200, align: "left" }, | |||
{ label: "课程名称", name: "LessonName", width: 200, align: "left" }, | |||
{ | |||
label: "状态", name: "State", width: 100, align: "left", | |||
formatter: function (cellvalue, row) { | |||
if (cellvalue == 0) { | |||
return '<span class=\"label label-warning\">未排课</span>'; | |||
} if (cellvalue == 1) { | |||
return '<span class=\"label label-success\">已排课</span>'; | |||
} | |||
} | |||
}, | |||
{ label: "拟开教学班数", name: "TeachClassNum", width: 100, align: "left" }, | |||
{ label: "人数", name: "StuNum", width: 80, align: "left" }, | |||
{ label: "周课时", name: "WeekLessonHour", width: 80, align: "left" }, | |||
{ label: "教室课时", name: "WeekHourClassroom", width: 80, align: "left" }, | |||
{ label: "上机课时", name: "PracticeHour", width: 80, align: "left" }, | |||
{ label: "起始周次", name: "StartWeek", width: 80, align: "left" }, | |||
{ label: "结束周次", name: "EndWeek", width: 80, align: "left" }, | |||
{ label: "学分", name: "StudyScore", width: 80, align: "left" }, | |||
{ label: "备注", name: "Remark", width: 100, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
sidx: 'MakeDate desc', | |||
isMultiselect: true, | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.MajorNo = cdmajorname; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,60 @@ | |||
@{ | |||
ViewBag.Title = "开课计划"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout lr-layout-left-center" id="lr_layout"> | |||
<div class="lr-layout-left"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title lrlt ">学校信息</div> | |||
<div id="cdmajorTree" class="lr-layout-body"></div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title"> | |||
<span id="titleinfo" class="lrlt">未选择学校</span> - <span class="lrlt">专业信息</span> | |||
</div> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">学校</div> | |||
<div id="F_SchoolId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学年</div> | |||
<div id="AcademicYearNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学期</div> | |||
<div id="Semester"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">年级</div> | |||
<div id="Grade"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">课程</div> | |||
<div id="LessonNo"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_teach" class="btn btn-default"><i class="fa fa-plus"></i> 设置教师</a> | |||
<a id="lr_qzteach" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 强制设置教师</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.js") |
@@ -0,0 +1,262 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-11-29 11:43 | |||
* 描 述:开课计划 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var cdmajorname = ''; | |||
var page = { | |||
init: function () { | |||
page.inittree(); | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 250, 400); | |||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "请选择学年", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//年级 | |||
$('#Grade').lrselect({ | |||
placeholder: "请选择年级", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetGradeData', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
$('#Semester').lrDataItemSelect({ code: 'Semester' }); | |||
$("#MajorNo").lrselect(); | |||
$('#LessonNo').lrselect({ | |||
placeholder: "请选择课程", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo', | |||
value: 'value', | |||
text: 'text', | |||
maxHeight: 200 | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/ClassPlanTeach/TeachForm', | |||
width: 800, | |||
height: 450, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 设置教师 | |||
$('#lr_teach').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var empno = $('#gridtable').jfGridValue('EmpNo').split(','); | |||
var allEmpty = true; | |||
for (var i = 0; i < empno.length; i++) { | |||
if (empno[i] != '') { | |||
allEmpty = false; | |||
} | |||
} | |||
if (allEmpty) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '设置教师', | |||
url: top.$.rootUrl + '/EducationalAdministration/ClassPlanTeach/TeachForm?keyValue=' + keyValue, | |||
width: 400, | |||
height: 300, | |||
callBack: function (id) { | |||
return top[id].acceptClick(); | |||
} | |||
}); | |||
} else { | |||
learun.alert.warning("所选班级已设置教师,不可重复设置!!!"); | |||
} | |||
} | |||
}); | |||
// 强制设置教师 | |||
$('#lr_qzteach').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '强制设置教师', | |||
url: top.$.rootUrl + | |||
'/EducationalAdministration/ClassPlanTeach/TeachFormQZ?keyValue=' + | |||
keyValue, | |||
width: 400, | |||
height: 300, | |||
callBack: function (id) { | |||
return top[id].acceptClick(); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
inittree: function () { | |||
$('#cdmajorTree').lrtree({ | |||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetTree', | |||
param: { parentId: '0' }, | |||
nodeClick: page.treeNodeClick | |||
}); | |||
//$('#cddeptTree').lrtreeSet('setValue', '53298b7a-404c-4337-aa7f-80b2a4ca6681'); | |||
}, | |||
treeNodeClick: function (item) { | |||
cdmajorname = item.id; | |||
$('#titleinfo').text(item.text); | |||
page.search(); | |||
var NMajorNo = item.id; | |||
if (NMajorNo != null && NMajorNo != "" && NMajorNo != undefined) { | |||
$('#MajorNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
param: { strWhere: " 1=1 and CheckMark=1 and majorno in (" + NMajorNo + ")" }, | |||
value: "majorno", | |||
text: "majorname", | |||
maxHeight: 200 | |||
}); | |||
} else { | |||
$('#MajorNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||
param: { strWhere: " 1=1 and CheckMark=1 and majorno ='' " }, | |||
value: "majorno", | |||
text: "majorname", | |||
maxHeight: 200 | |||
}); | |||
} | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ClassPlanTeach/GetPageList', | |||
headData: [ | |||
{ | |||
label: "校区", name: "F_SchoolId", width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', | |||
key: value, | |||
keyId: 'f_companyid', | |||
callback: function (_data) { | |||
callback(_data['f_fullname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "学年", name: "AcademicYearNo", width: 80, align: "left" }, | |||
{ | |||
label: "学期", name: "Semester", width: 50, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'Semester', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "系部", name: "DeptNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: value, | |||
keyId: 'deptno', | |||
callback: function (_data) { | |||
callback(_data['deptname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "专业", name: "MajorNo", width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
key: value, | |||
keyId: 'majorno', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "年级", name: "Grade", width: 50, align: "left" }, | |||
{ | |||
label: "课程", name: "LessonNo", width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'ClassLessonPlan', | |||
key: value, | |||
keyId: 'lessonno', | |||
callback: function (_data) { | |||
callback(_data['lessonname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "人数", name: "StuNum", width: 80, align: "left" }, | |||
{ label: "上机课时", name: "PracticeHour", width: 80, align: "left" }, | |||
{ label: "课程区别码", name: "PartCode", width: 80, align: "left" }, | |||
{ | |||
label: "班级", name: "TeachClassNo", width: 110, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', | |||
key: value, | |||
keyId: 'classno', | |||
callback: function (_data) { | |||
callback(_data['classname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "教师", name: "EmpNo", width: 80, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata', | |||
key: value, | |||
keyId: 'f_encode', | |||
callback: function (_data) { | |||
callback(_data['f_realname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "合上班", name: "RelatedClassNo", width: 80, align: "left" }, | |||
{ label: "拟开教学班数", name: "LessonSortNo", width: 100, align: "left" }, | |||
{ label: "备注", name: "Remark", width: 100, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
sidx: 'ID desc', | |||
isMultiselect: true, | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.MajorNo = cdmajorname; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,11 @@ | |||
@{ | |||
ViewBag.Title = "开课计划"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="ClassPlanTeach"> | |||
<div class="lr-form-item-title">教师<font face="宋体">*</font></div> | |||
<div id="EmpNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ClassPlanTeach/TeachForm.js") |
@@ -0,0 +1,32 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-11-29 11:43 | |||
* 描 述:开课计划 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname' }); | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
var EmpNo = postData.EmpNo; | |||
console.log(EmpNo); | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/ClassPlanTeach/SetTeach', { keyValue: keyValue, EmpNo: EmpNo}, function () { | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,11 @@ | |||
@{ | |||
ViewBag.Title = "开课计划"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="ClassPlanTeach"> | |||
<div class="lr-form-item-title">教师<font face="宋体">*</font></div> | |||
<div id="EmpNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ClassPlanTeach/TeachFormQZ.js") |
@@ -0,0 +1,32 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-11-29 11:43 | |||
* 描 述:开课计划 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname' }); | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
var EmpNo = postData.EmpNo; | |||
console.log(EmpNo); | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/ClassPlanTeach/QZSetTeach', { keyValue: keyValue, EmpNo: EmpNo}, function () { | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -315,12 +315,15 @@ | |||
<Compile Include="Areas\AssetManagementSystem\Controllers\Ass_SupplierController.cs" /> | |||
<Compile Include="Areas\AssetManagementSystem\Controllers\Ass_UserChangeInfoController.cs" /> | |||
<Compile Include="Areas\AssetManagementSystem\Controllers\Ass_WarningController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\ArrangeExamTermNewController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\ArrangeLessonSyncController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\ArrangeLessonTermAttemperController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\AwardAndPunishmentController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\AwardPunishInfoController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\CertificateManageController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\CertificateResultController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\ClassPlanController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\ClassPlanTeachController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\EvaCodeOfContuctController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\EvaDormitoryInteriorController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\EvaHygieveController.cs" /> | |||
@@ -950,6 +953,22 @@ | |||
<Content Include="Areas\AssetManagementSystem\Views\Ass_UserChangeInfo\Index.js" /> | |||
<Content Include="Areas\AssetManagementSystem\Views\Ass_Warning\Form.js" /> | |||
<Content Include="Areas\AssetManagementSystem\Views\Ass_Warning\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForClass.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForClass.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForLesson.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForLesson.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexStudent.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexStudent.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexTeach.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexTeach.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeLessonSync\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeLessonSync\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ArrangeLessonTermAttemper\Form.js" /> | |||
@@ -973,6 +992,11 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\CertificateResult\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\CertificateResult\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassInfo\FormType.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\TeachForm.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\TeachFormQZ.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlan\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlan\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\EADateArrange\InitByConditionForm.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormModify.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormEdit.js" /> | |||
@@ -6584,6 +6608,92 @@ | |||
<Content Include="Areas\PersonnelManagement\Views\FD_BudgetFile\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\FD_BudgetFile\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\FD_BudgetFile\Form.js" /> | |||
<Content Include="zhsjEchart\basics.html" /> | |||
<Content Include="zhsjEchart\css\bootstrap.css" /> | |||
<Content Include="zhsjEchart\css\common.css" /> | |||
<Content Include="zhsjEchart\css\font-awesome.css" /> | |||
<Content Include="zhsjEchart\css\index.css" /> | |||
<Content Include="zhsjEchart\css\map.css" /> | |||
<Content Include="zhsjEchart\css\style.css" /> | |||
<Content Include="zhsjEchart\education.html" /> | |||
<Content Include="zhsjEchart\fonts\fontawesome-webfont.svg" /> | |||
<Content Include="zhsjEchart\images\1.jpg" /> | |||
<Content Include="zhsjEchart\images\baSec1-1.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-10.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-11.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-12.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-13.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-14.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-15.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-16.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-2.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-3.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-4.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-5.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-6.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-7.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-8.png" /> | |||
<Content Include="zhsjEchart\images\baSec1-9.png" /> | |||
<Content Include="zhsjEchart\images\baSecBg1.png" /> | |||
<Content Include="zhsjEchart\images\baSecBg2.png" /> | |||
<Content Include="zhsjEchart\images\bg.jpg" /> | |||
<Content Include="zhsjEchart\images\inSec1-1.png" /> | |||
<Content Include="zhsjEchart\images\inSec1-2.png" /> | |||
<Content Include="zhsjEchart\images\inSec1-2s.png" /> | |||
<Content Include="zhsjEchart\images\inSec1-3.png" /> | |||
<Content Include="zhsjEchart\images\inSec1-3s.png" /> | |||
<Content Include="zhsjEchart\images\inSec1-4.png" /> | |||
<Content Include="zhsjEchart\images\inSec1-4s.png" /> | |||
<Content Include="zhsjEchart\images\inSec1-5.png" /> | |||
<Content Include="zhsjEchart\images\inSec1-6.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-1.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-10.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-11.jpg" /> | |||
<Content Include="zhsjEchart\images\inSec2-12.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-2.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-3.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-4.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-5.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-6.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-7.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-8.png" /> | |||
<Content Include="zhsjEchart\images\inSec2-9.png" /> | |||
<Content Include="zhsjEchart\images\noData.png" /> | |||
<Content Include="zhsjEchart\images\qjkj.ico" /> | |||
<Content Include="zhsjEchart\images\woSec1-1.png" /> | |||
<Content Include="zhsjEchart\images\woSec1-2.png" /> | |||
<Content Include="zhsjEchart\images\woSec1-3.png" /> | |||
<Content Include="zhsjEchart\images\woSec1-4.png" /> | |||
<Content Include="zhsjEchart\images\woSec1-5.png" /> | |||
<Content Include="zhsjEchart\images\woSec1-6.png" /> | |||
<Content Include="zhsjEchart\images\woSec1-7.png" /> | |||
<Content Include="zhsjEchart\images\woSec1-8.png" /> | |||
<Content Include="zhsjEchart\js\basics.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts-en.common.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts-en.common.min.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts-en.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts-en.min.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts-en.simple.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts-en.simple.min.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts.common.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts.common.min.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts.min.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts.simple.js" /> | |||
<Content Include="zhsjEchart\js\dist\echarts.simple.min.js" /> | |||
<Content Include="zhsjEchart\js\dist\extension\bmap.js" /> | |||
<Content Include="zhsjEchart\js\dist\extension\bmap.min.js" /> | |||
<Content Include="zhsjEchart\js\dist\extension\dataTool.js" /> | |||
<Content Include="zhsjEchart\js\dist\extension\dataTool.min.js" /> | |||
<Content Include="zhsjEchart\js\echarts.js" /> | |||
<Content Include="zhsjEchart\js\education.js" /> | |||
<Content Include="zhsjEchart\js\index - 副本.js" /> | |||
<Content Include="zhsjEchart\js\jquery.min.js" /> | |||
<Content Include="zhsjEchart\js\main.js" /> | |||
<Content Include="zhsjEchart\js\mui.js" /> | |||
<Content Include="zhsjEchart\js\vue.js" /> | |||
<Content Include="zhsjEchart\js\worker.js" /> | |||
<Content Include="zhsjEchart\worker.html" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" /> | |||
@@ -7430,6 +7540,11 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\AwardPunishInfo\AwardIndex.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\AwardPunishInfo\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\AwardPunishInfo\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\TeachForm.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\TeachFormQZ.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlan\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\ClassPlan\Index.cshtml" /> | |||
<None Include="Areas\EducationalAdministration\Views\SchoolNews\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\StuTuition.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\IsHelpForm.cshtml" /> | |||
@@ -7564,6 +7679,15 @@ | |||
<None Include="Properties\PublishProfiles\FolderProfile4.pubxml" /> | |||
<None Include="Properties\PublishProfiles\learunadms6.1.pubxml" /> | |||
<Content Include="Views\Utility\ListContentIndexLost.cshtml" /> | |||
<Content Include="zhsjEchart\fonts\fontawesome-webfont.eot" /> | |||
<Content Include="zhsjEchart\fonts\fontawesome-webfont.ttf" /> | |||
<Content Include="zhsjEchart\fonts\fontawesome-webfont.woff" /> | |||
<Content Include="zhsjEchart\fonts\fontawesome-webfont.woff2" /> | |||
<Content Include="zhsjEchart\fonts\FontAwesome.otf" /> | |||
<Content Include="zhsjEchart\js\dist\echarts-en.js.map" /> | |||
<Content Include="zhsjEchart\js\dist\echarts.js.map" /> | |||
<Content Include="zhsjEchart\js\dist\extension\bmap.js.map" /> | |||
<Content Include="zhsjEchart\js\dist\extension\dataTool.js.map" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<WCFMetadata Include="Connected Services\" /> | |||
@@ -176,22 +176,28 @@ | |||
success: function (res) { | |||
if (res.code == 200) { | |||
if (source == "noLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
window.location.href = "/SSOSystem/Index"; | |||
} else if (source == "NoLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
window.location.href = "/SSOSystem/DragModelOne"; | |||
} else { | |||
if (res.data.pwd == true) { | |||
if (res.data.pwdtip == true) { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdpwdtip=true"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdpwdtip=true"; | |||
window.location.href = "/Home/Index?pwdpwdtip=true"; | |||
} else { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||
window.location.href ="/Home/Index?pwd=true"; | |||
} | |||
} | |||
else { | |||
if (res.data.pwdtip == true) { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true"; | |||
window.location.href ="/Home/Index?pwdtip=true"; | |||
} else { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
window.location.href = "/Home/Index"; | |||
} | |||
//window.location.href = "/Home/Index"; | |||
} | |||
@@ -162,12 +162,31 @@ | |||
success: function (res) { | |||
if (res.code == 200) { | |||
if (source == "noLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
window.location.href = "/SSOSystem/Index"; | |||
} else if (source == "NoLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
window.location.href = "/SSOSystem/DragModelOne"; | |||
} else { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
if (res.data.pwd == true) { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdpwdtip=true"; | |||
window.location.href = "/Home/Index?pwdpwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||
window.location.href = "/Home/Index?pwd=true"; | |||
} | |||
} | |||
else { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true"; | |||
window.location.href = "/Home/Index?pwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
window.location.href = "/Home/Index"; | |||
} | |||
//window.location.href = "/Home/Index"; | |||
} | |||
} | |||
} | |||
else if (res.code == 400) { | |||
@@ -163,12 +163,31 @@ | |||
success: function (res) { | |||
if (res.code == 200) { | |||
if (source == "noLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
window.location.href = "/SSOSystem/Index"; | |||
} else if (source == "NoLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
window.location.href = "/SSOSystem/DragModelOne"; | |||
} else { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
if (res.data.pwd == true) { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdpwdtip=true"; | |||
window.location.href = "/Home/Index?pwdpwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||
window.location.href = "/Home/Index?pwd=true"; | |||
} | |||
} | |||
else { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true"; | |||
window.location.href = "/Home/Index?pwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
window.location.href = "/Home/Index"; | |||
} | |||
//window.location.href = "/Home/Index"; | |||
} | |||
} | |||
} | |||
else if (res.code == 400) { | |||
@@ -163,12 +163,31 @@ | |||
success: function (res) { | |||
if (res.code == 200) { | |||
if (source == "noLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
window.location.href = "/SSOSystem/Index"; | |||
} else if (source == "NoLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
} else { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
window.location.href = "/SSOSystem/DragModelOne"; | |||
} else { | |||
if (res.data.pwd == true) { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdpwdtip=true"; | |||
window.location.href = "/Home/Index?pwdpwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||
window.location.href = "/Home/Index?pwd=true"; | |||
} | |||
} | |||
else { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true"; | |||
window.location.href = "/Home/Index?pwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
window.location.href = "/Home/Index"; | |||
} | |||
//window.location.href = "/Home/Index"; | |||
} | |||
} | |||
} | |||
else if (res.code == 400) { | |||
@@ -163,12 +163,30 @@ | |||
if (res.code == 200) { | |||
if (source == "noLogin") { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
window.location.href = "/SSOSystem/Index"; | |||
} else if (source == "NoLogin") { | |||
window.location.href = "/Home/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
window.location.href = "/SSOSystem/DragModelOne"; | |||
} else { | |||
window.location.href = "/Home/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
if (res.data.pwd == true) { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdpwdtip=true"; | |||
window.location.href = "/Home/Index?pwdpwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||
window.location.href = "/Home/Index?pwd=true"; | |||
} | |||
} | |||
else { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true"; | |||
window.location.href = "/Home/Index?pwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
window.location.href = "/Home/Index"; | |||
} | |||
//window.location.href = "/Home/Index"; | |||
} | |||
} | |||
} | |||
else if (res.code == 400) { | |||
@@ -163,12 +163,31 @@ | |||
success: function (res) { | |||
if (res.code == 200) { | |||
if (source == "noLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
window.location.href = "/SSOSystem/Index"; | |||
} else if (source == "NoLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
window.location.href = "/SSOSystem/DragModelOne"; | |||
} else { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
if (res.data.pwd == true) { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdpwdtip=true"; | |||
window.location.href = "/Home/Index?pwdpwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||
window.location.href = "/Home/Index?pwd=true"; | |||
} | |||
} | |||
else { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true"; | |||
window.location.href = "/Home/Index?pwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
window.location.href = "/Home/Index"; | |||
} | |||
//window.location.href = "/Home/Index"; | |||
} | |||
} | |||
} | |||
else if (res.code == 400) { | |||
@@ -161,14 +161,32 @@ | |||
dataType: "json", | |||
success: function (res) { | |||
if (res.code == 200) { | |||
lrPage.logining(false); | |||
if (source == "noLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||
window.location.href = "/SSOSystem/Index"; | |||
} else if (source == "NoLogin") { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; | |||
window.location.href = "/SSOSystem/DragModelOne"; | |||
} else { | |||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
if (res.data.pwd == true) { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdpwdtip=true"; | |||
window.location.href = "/Home/Index?pwdpwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||
window.location.href = "/Home/Index?pwd=true"; | |||
} | |||
} | |||
else { | |||
if (res.data.pwdtip == true) { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwdtip=true"; | |||
window.location.href = "/Home/Index?pwdtip=true"; | |||
} else { | |||
//window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||
window.location.href = "/Home/Index"; | |||
} | |||
//window.location.href = "/Home/Index"; | |||
} | |||
} | |||
} | |||
else if (res.code == 400) { | |||
@@ -23,7 +23,7 @@ | |||
<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_金隅;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_金隅;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<!--金隅--> | |||
<add name="paikeDbString" connectionString="Data Source=10.30.0.11;Database=paike;User ID=root;Password=123456;" providerName="MySql.Data.MySqlClient" /><!--金隅--> | |||
<!--<add name="BaseDb" connectionString="Server=192.168.100.224;Initial Catalog=adms7ultimate2;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=192.168.100.224;Initial Catalog=CollegeMIS;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=192.168.100.224;Initial Catalog=Hangfire;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" />--> | |||
@@ -0,0 +1,296 @@ | |||
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
<meta charset="UTF-8"> | |||
<title>智慧校园数据分析</title> | |||
<link rel="shortcut icon" href="images/qjkj.ico" /> | |||
<link rel="stylesheet" type="text/css" href="css/font-awesome.css"> | |||
<link rel="stylesheet" type="text/css" href="css/common.css"> | |||
<link rel="stylesheet" type="text/css" href="css/index.css"> | |||
<!--自适应--> | |||
<script src="js/jquery.min.js"></script> | |||
<script src="js/main.js"></script> | |||
<script src="js/basics.js"></script> | |||
<script src="js/dist/echarts.js"></script> | |||
</head> | |||
<body> | |||
<div class="warpper"> | |||
<!-- / index_sec1 --> | |||
<div class="index_sec index_sec1"> | |||
<div class="inSec1Box"> | |||
<a href="education.html" class="inSec1Con"> | |||
<img class="inSec1Img1" src="images/inSec1-2.png" alt=""> | |||
<img class="inSec1Img2" src="images/inSec1-2s.png" alt=""> | |||
<span>教务系统数据</span> | |||
</a> | |||
<a href="basics.html" class="inSec1Con active"> | |||
<img class="inSec1Img1" src="images/inSec1-3.png" alt=""> | |||
<img class="inSec1Img2" src="images/inSec1-3s.png" alt=""> | |||
<span>系统基础数据</span> | |||
</a> | |||
<img src="images/inSec1-6.png" alt=""> | |||
<a href="worker.html" class="inSec1Con"> | |||
<img class="inSec1Img1" src="images/inSec1-4.png" alt=""> | |||
<img class="inSec1Img2" src="images/inSec1-4s.png" alt=""> | |||
<span>学工系统数据</span> | |||
</a> | |||
<div class="inSec1Con" style="width:239px;"></div> | |||
</div> | |||
<div class="inSec1TimeBox"> | |||
<img src="images/inSec1-5.png" alt=""> | |||
<div class="inSecTime"></div> | |||
<div class="semesterBox"> | |||
<div>第 <b></b> 学期 </div> | |||
<div><b></b> 学年</div> | |||
</div> | |||
</div> | |||
</div> | |||
<!-- / index_sec1 --> | |||
<!-- / index_sec2 --> | |||
<div class="index_sec index_sec2"> | |||
<div class="inSec2Row commonClear"> | |||
<div class="baSec2Col3"> | |||
<div class="baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>OA新闻</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baSec2OaBox"> | |||
<div class="baSec2NumBox"> | |||
<img src="images/baSec1-1.png" alt=""> | |||
<div class="BaSec2NumT"></div> | |||
<div class="inSec2NumTxt">新闻公告数量</div> | |||
</div> | |||
<div class="baEchartBox"> | |||
<div id="inSec2Oa"></div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>OA邮件</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baSec2MailBox"> | |||
<div class="baSec2NumBox"> | |||
<img src="images/baSec1-2.png" alt=""> | |||
<div class="BaSec2NumT"></div> | |||
<div class="inSec2NumTxt">内部邮件数量</div> | |||
</div> | |||
<div class="baEchartBox"> | |||
<div id="echartsMail"></div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>OA公文</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baSec2offBox"> | |||
<div class="baSec2NumBox"> | |||
<img src="images/baSec1-3.png" alt=""> | |||
<div class="BaSec2NumT"></div> | |||
<div class="inSec2NumTxt">校内公文数量</div> | |||
</div> | |||
<div class="baEchartBox"> | |||
<div id="echartsOffic"></div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Box baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>OA云盘</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baSec2DiskBox"> | |||
<div class="baSec2NumBox"> | |||
<img src="images/baSec1-4.png" alt=""> | |||
<div class="BaSec2NumT"></div> | |||
<div class="inSec2NumTxt">校内云盘数量</div> | |||
</div> | |||
<div class="baEchartBox"> | |||
<div id="echartsDisk"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="baSec2Col4"> | |||
<div class="baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>系统登录及操作</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baLoginBox"> | |||
<div class="baLoginCon"> | |||
<div class="baLoginImg"><img src="images/baSec1-5.png" alt=""></div> | |||
<div> | |||
<div class="baLoginT"></div> | |||
<div class="baLoginTxt">在线总人数</div> | |||
</div> | |||
</div> | |||
<div class="baLoginCon"> | |||
<div class="baLoginImg"><img src="images/baSec1-6.png" alt=""></div> | |||
<div> | |||
<div class="baLoginT"></div> | |||
<div class="baLoginTxt">系统登录次数</div> | |||
</div> | |||
</div> | |||
<div class="baLoginCon"> | |||
<div class="baLoginImg"><img src="images/baSec1-7.png" alt=""></div> | |||
<div> | |||
<div class="baLoginT"></div> | |||
<div class="baLoginTxt">系统操作次数</div> | |||
</div> | |||
</div> | |||
<div class="baLoginCons"></div> | |||
</div> | |||
</div> | |||
<div class="baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>使用模块排行</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baRankBox"></div> | |||
</div> | |||
<div class="baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>系统基础数据</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baDataBox commonClear"> | |||
<div class="baDataPerson"> | |||
<div> | |||
<div id="baDataTeach"></div> | |||
<div class="baDataPerBox"> | |||
<div class="baDataPerT"></div> | |||
<div>教师总人数</div> | |||
</div> | |||
</div> | |||
<div> | |||
<div id="baDataStudent"></div> | |||
<div class="baDataPerBox"> | |||
<div class="baDataPerT"></div> | |||
<div>学生总人数</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="baDataClass"> | |||
<div id="baDataClass"></div> | |||
<div class="baDataClassBox"> | |||
<div class="baDataClassT"></div> | |||
<div>课程总数</div> | |||
</div> | |||
</div> | |||
<div id="baDataRoom"> | |||
<div class="baDataRoomBox"> | |||
<div class="baDataRoomBox1"></div> | |||
<div class="baDataRoomBox2"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
<div class="baDataLine"></div> | |||
</div> | |||
<div class="baDataRoomCon baDataRoomCon1"> | |||
<div class="baDataRoomT"></div> | |||
<div class="">班级总数</div> | |||
</div> | |||
<div class="baDataRoomCon baDataRoomCon2"> | |||
<div class="baDataRoomT"></div> | |||
<div class="">教室总数</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="baSec2Col3"> | |||
<div class="baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>办事大厅</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baHallBox"> | |||
<div> | |||
<img src="images/baSec1-12.png" alt=""> | |||
<div class="baHallNum"></div> | |||
<div class="baHallTxt">系统流程统计</div> | |||
</div> | |||
<div> | |||
<img src="images/baSec1-13.png" alt=""> | |||
<div class="baHallNum"></div> | |||
<div class="baHallTxt">运转中的流程</div> | |||
</div> | |||
<div> | |||
<img src="images/baSec1-14.png" alt=""> | |||
<div class="baHallNum"></div> | |||
<div class="baHallTxt">流程使用次数</div> | |||
</div> | |||
<div></div> | |||
</div> | |||
</div> | |||
<div class="baSec2Box baSec2ProBox"> | |||
<div class="inSeec2Title"> | |||
<span>流程占比</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div id="baProBox"> | |||
</div> | |||
</div> | |||
<div class="baSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>流程使用排行</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="baPhBox"> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<!-- / index_sec2 --> | |||
</div> | |||
</body> | |||
</html> |
@@ -0,0 +1,185 @@ | |||
@charset "utf-8"; | |||
/* CSS Document */ | |||
body,html{ | |||
font-size:14px; | |||
font-family: "Microsoft YaHei", "微软雅黑" !important; | |||
color:#666; | |||
padding: 0; | |||
margin: 0; | |||
} | |||
*{ | |||
box-sizing:border-box; | |||
} | |||
/*body{ overflow:hidden;} */ | |||
ul{ | |||
margin:0px; | |||
padding:0px; | |||
list-style:none; | |||
} | |||
li{ | |||
list-style:none; | |||
} | |||
ul li a{ | |||
display:block; | |||
} | |||
a{ | |||
text-decoration:none; | |||
color:#666; | |||
outline:none; | |||
} | |||
input{ | |||
border:1px solid #ccc; | |||
outline:none; | |||
} | |||
textarea{ | |||
border:1px solid #ccc; | |||
outline:none; | |||
} | |||
form{ | |||
margin:0px; | |||
padding:0px; | |||
} | |||
table{ | |||
cellspacing:0px; | |||
cellpadding:0px; | |||
} | |||
img{ | |||
border:none; | |||
} | |||
a,img{border:0;} | |||
.clear{ | |||
clear:both; | |||
} | |||
.clearfix{ | |||
*zoom:1; | |||
} | |||
.clearfix:after{ | |||
content: ''; | |||
display: block; | |||
clear: both; | |||
} | |||
a{outline:none !important;} | |||
img{border:0 none;} | |||
::selection { | |||
background: #000; | |||
color: #fff; | |||
} | |||
.commonClear:after,.commonClear:before{ | |||
content: ''; | |||
display: block; | |||
width: 100%; | |||
clear: both; | |||
} | |||
.warpper{ | |||
min-width: 1900px; | |||
padding: 7px 0; | |||
background:url('../images/bg.jpg'); | |||
background-size:100% 100%; | |||
-moz-background-size:100% 100%; | |||
-webkit-background-size:100% 100%; | |||
-o-background-size:100% 100%; | |||
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='../images/bg.jpg', sizingMethod='scale'); | |||
} | |||
.index_sec1{ | |||
position: relative; | |||
height: 100px; | |||
line-height: 0 | |||
} | |||
.inSec1Box{ | |||
text-align: center; | |||
} | |||
.inSec1Box > *{ | |||
display: inline-block; | |||
vertical-align: middle; | |||
} | |||
.inSec1Box img{ | |||
height: 100px; | |||
} | |||
.inSec1Con{ | |||
position: relative; | |||
} | |||
.inSec1Con span{ | |||
position: absolute; | |||
left: 0; | |||
top: 0; | |||
bottom: 0; | |||
margin: auto; | |||
height: 26px; | |||
line-height: 26px; | |||
font-size: 20px; | |||
color: #2865D4; | |||
font-weight: bold; | |||
transition:all 0.3s; | |||
-moz-transition:all 0.3s; | |||
-ms-transition:all 0.3s; | |||
-o-transition:all 0.3s; | |||
-webkit-transition:all 0.3s; | |||
} | |||
.inSec1Con:first-child span{ | |||
right: 30px; | |||
} | |||
.inSec1Con:nth-child(2) span{ | |||
right: 48px; | |||
} | |||
.inSec1Con:nth-child(4) span{ | |||
right: -40px; | |||
} | |||
.inSec1Con.active span,.inSec1Con:hover span{ | |||
color: #64B7FE; | |||
} | |||
.inSec1Con img{ | |||
display: block; | |||
} | |||
.inSec1Box .inSec1Img2{ | |||
display: none; | |||
} | |||
.inSec1Con:hover .inSec1Img2,.inSec1Con.active .inSec1Img2{ | |||
display: block; | |||
} | |||
.inSec1Con:hover .inSec1Img1,.inSec1Con.active .inSec1Img1{ | |||
display: none; | |||
} | |||
.inSec1Con:first-child{ | |||
margin-right: -73px; | |||
} | |||
.inSec1Box > img{ | |||
margin: 0 -74px; | |||
} | |||
.inSec1TimeBox{ | |||
position: absolute; | |||
right: 0; | |||
top: 0; | |||
height: 100%; | |||
} | |||
.inSec1TimeBox > img{ | |||
height: 100%; | |||
} | |||
.inSec1TimeBox > div{ | |||
position: absolute; | |||
height: 50px; | |||
top: 0; | |||
bottom: 0; | |||
margin: auto; | |||
} | |||
.inSecTime{ | |||
color: #64B7FE; | |||
line-height: 24px; | |||
padding-top: 1px; | |||
right: 15px; | |||
text-align: center; | |||
} | |||
.semesterBox{ | |||
font-size: 16px; | |||
color: #64B7FE; | |||
padding-top: 1px; | |||
line-height: 24px; | |||
text-align: center; | |||
right: 160px; | |||
} |
@@ -0,0 +1,273 @@ | |||
html,body{ | |||
height: 100%; | |||
width: 100%; | |||
} | |||
.data{ | |||
width: 100%; | |||
height: 100%; | |||
background: url('../img/map_bg.png') center; | |||
min-width: 1366px; | |||
} | |||
.data>.data-title{ | |||
width: 100%; | |||
height: 105px; | |||
padding: 30px 0 35px 0; | |||
box-sizing: border-box; | |||
} | |||
.data>.data-title>.title-center{ | |||
width: 440px; | |||
height: 40px; | |||
box-sizing: border-box; | |||
border-right: 5px solid #0089ff; | |||
border-left: 5px solid #0089ff; | |||
background: url("../img/title.png") no-repeat; | |||
} | |||
.data>.data-title>.title-left, | |||
.data>.data-title>.title-right{ | |||
width:calc(50% - 220px); | |||
height: 3px; | |||
background: #0089ff; | |||
margin-top: 18px; | |||
} | |||
.data>.data-content{ | |||
width: 100%; | |||
height:calc(100% - 105px); | |||
padding:0 20px 20px 20px ; | |||
box-sizing: border-box; | |||
} | |||
.data>.data-content>.con-left{ | |||
width: 23.4375%; | |||
height: 100%; | |||
} | |||
.data>.data-content>.con-left>.left-top{ | |||
width: 100%; | |||
height:calc(75% - 20px); | |||
margin-bottom: 20px; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info{ | |||
height:62%; | |||
width: 100%; | |||
border: 1px solid #20558b; | |||
/*border-radius: 4px;*/ | |||
box-sizing: border-box; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-title{ | |||
width: 158px; | |||
height: 43px; | |||
background: url('../img/info-title.png') no-repeat; | |||
position: absolute; | |||
top: -22px; | |||
left:50%; | |||
margin-left: -74px; | |||
color:#fff; | |||
font-size: 18px; | |||
font-weight: 600; | |||
line-height: 43px; | |||
text-align: center; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main{ | |||
width: 100%; | |||
height: 80% ; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main>div{ | |||
width: 275px; | |||
height: 25%; | |||
background: url('../img/info-text.png') no-repeat; | |||
margin: 8px auto; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main>div.info-1{ | |||
margin-top: 40px; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main .info-img{ | |||
width: 100px; | |||
height: 60px; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main .info-img>img{ | |||
position: absolute; | |||
top: 50%; | |||
left: 50%; | |||
margin-left: -24px; | |||
margin-top: -24px; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main .info-text{ | |||
width: 175px; | |||
height: 70px; | |||
padding-left: 30px; | |||
padding-top: 16px; | |||
box-sizing: border-box; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main .info-text>p:nth-child(1){ | |||
color:#fff; | |||
font-weight: 600; | |||
font-size: 14px; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main>.info-1> .info-text>p:nth-child(2){ | |||
font-weight: 600; | |||
color:#ffff44; | |||
font-size: 22px; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main>.info-2> .info-text>p:nth-child(2){ | |||
font-weight: 600; | |||
color:#25f3e6; | |||
font-size: 22px; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main>.info-3> .info-text>p:nth-child(2){ | |||
font-weight: 600; | |||
color:#f84a4a; | |||
font-size: 22px; | |||
} | |||
.data>.data-content>.con-left>.left-top>.info>.info-main>.info-4> .info-text>p:nth-child(2){ | |||
font-weight: 600; | |||
color:#f5c847; | |||
font-size: 22px; | |||
} | |||
.data>.data-content>.con-left>.left-top>.top-bottom{ | |||
height:calc(38% - 20px); | |||
width: 100%; | |||
background-color: rgba(0,24,106,0.5); | |||
margin-top: 20px; | |||
border: 1px solid #20558b; | |||
box-sizing: border-box; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-left>.left-bottom{ | |||
width: 100%; | |||
height: 25%; | |||
background-color: rgba(0,24,106,0.5); | |||
border: 1px solid #20558b; | |||
box-sizing: border-box; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-center{ | |||
width: 53.125%; | |||
height: 100%; | |||
padding:0 20px; | |||
box-sizing: border-box; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-center>.map-num{ | |||
width: 500px; | |||
height: 120px; | |||
position: absolute; | |||
top: 15px; | |||
left:50px; | |||
z-index: 1000; | |||
} | |||
.data>.data-content>.con-center>.map-num>p{ | |||
font-size: 18px; | |||
font-weight: 600; | |||
color:#fff; | |||
} | |||
.data>.data-content>.con-center>.map-num span{ | |||
display: inline-block; | |||
width: 45px; | |||
height: 65px; | |||
text-align: center; | |||
line-height: 65px; | |||
background-color: #0089ff; | |||
color:#fff; | |||
font-size: 68px; | |||
font-weight: 600; | |||
font-family: "LcdD"; | |||
margin-top: 15px; | |||
} | |||
.data>.data-content>.con-center>.map-num span:nth-child(2), | |||
.data>.data-content>.con-center>.map-num span:nth-child(6){ | |||
background-color: transparent; | |||
width: 30px; | |||
} | |||
.data>.data-content>.con-center>.cen-top{ | |||
width: 100%; | |||
height:calc(75% - 20px); | |||
margin-bottom: 20px; | |||
/*background-color: rgba(0,24,106,0.3);*/ | |||
/*border: 1px solid #0089ff;*/ | |||
/*border-radius: 4px;*/ | |||
/*box-sizing: border-box;*/ | |||
} | |||
.data>.data-content>.con-center>.cen-bottom{ | |||
width: 100%; | |||
height: 25%; | |||
background-color: rgba(0,24,106,0.5); | |||
border: 1px solid #20558b; | |||
box-sizing: border-box; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-right{ | |||
width: 23.4375%; | |||
height: 100%; | |||
} | |||
.data>.data-content>.con-right>.right-top{ | |||
width: 100%; | |||
height: 32%; | |||
background-color: rgba(0,24,106,0.5); | |||
border: 1px solid #20558b; | |||
box-sizing: border-box; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-right>.right-center{ | |||
width: 100%; | |||
height:calc(36% - 40px); | |||
margin: 20px 0; | |||
background-color: rgba(0,24,106,0.5); | |||
border: 1px solid #20558b; | |||
box-sizing: border-box; | |||
position: relative; | |||
} | |||
.data>.data-content>.con-right>.right-bottom{ | |||
width: 100%; | |||
height:32%; | |||
background-color: rgba(0,24,106,0.5); | |||
border: 1px solid #20558b; | |||
box-sizing: border-box; | |||
position: relative; | |||
} | |||
.data>.data-content .title{ | |||
height: 35px; | |||
line-height: 35px; | |||
width: 100%; | |||
color:#fff; | |||
font-weight: 600; | |||
padding-left: 15px; | |||
box-sizing: border-box; | |||
} | |||
.data>.data-content .charts{ | |||
width: 100%; | |||
height:calc(100% - 35px); | |||
} | |||
.data>.data-content img.bj-1{ | |||
position: absolute; | |||
left:-1px; | |||
top:-1px; | |||
} | |||
.data>.data-content img.bj-2{ | |||
position: absolute; | |||
right:-1px; | |||
top:-1px; | |||
} | |||
.data>.data-content img.bj-3{ | |||
position: absolute; | |||
right:-1px; | |||
bottom:-1px; | |||
} | |||
.data>.data-content img.bj-4{ | |||
position: absolute; | |||
left:-1px; | |||
bottom:-1px; | |||
} |
@@ -0,0 +1,361 @@ | |||
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
<meta charset="UTF-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |||
<meta name="renderer" content="webkit"> | |||
<link rel="shortcut icon" href="images/qjkj.ico" /> | |||
<title>智慧校园数据分析</title> | |||
<link rel="stylesheet" type="text/css" href="css/font-awesome.css"> | |||
<link rel="stylesheet" type="text/css" href="css/common.css"> | |||
<link rel="stylesheet" type="text/css" href="css/index.css"> | |||
<!--自适应--> | |||
<script src="js/jquery.min.js"></script> | |||
<script src="js/main.js"></script> | |||
<script src="js/education.js"></script> | |||
<script src="js/dist/echarts.js"></script> | |||
<script src="js/vue.js"></script> | |||
</head> | |||
<body> | |||
<div class="warpper"> | |||
<!-- / index_sec1 --> | |||
<div class="index_sec index_sec1"> | |||
<div class="inSec1Box"> | |||
<a href="education.html" class="inSec1Con active"> | |||
<img class="inSec1Img1" src="images/inSec1-2.png" alt=""> | |||
<img class="inSec1Img2" src="images/inSec1-2s.png" alt=""> | |||
<span>教务系统数据</span> | |||
</a> | |||
<a href="basics.html" class="inSec1Con"> | |||
<img class="inSec1Img1" src="images/inSec1-3.png" alt=""> | |||
<img class="inSec1Img2" src="images/inSec1-3s.png" alt=""> | |||
<span>系统基础数据</span> | |||
</a> | |||
<img src="images/inSec1-6.png" alt=""> | |||
<a href="worker.html" class="inSec1Con"> | |||
<img class="inSec1Img1" src="images/inSec1-4.png" alt=""> | |||
<img class="inSec1Img2" src="images/inSec1-4s.png" alt=""> | |||
<span>学工系统数据</span> | |||
</a> | |||
<div class="inSec1Con" style="width:239px;"></div> | |||
</div> | |||
<div class="inSec1TimeBox"> | |||
<img src="images/inSec1-5.png" alt=""> | |||
<div class="inSecTime"></div> | |||
<div class="semesterBox"> | |||
<div>第 <b></b> 学期 </div> | |||
<div><b></b> 学年</div> | |||
</div> | |||
</div> | |||
</div> | |||
<!-- / index_sec1 --> | |||
<!-- / index_sec2 --> | |||
<div class="index_sec index_sec2"> | |||
<div class="inSec2Row commonClear"> | |||
<div class="inSec2Col4"> | |||
<div class="inSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>本学期排课</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="inSec2Con commonClear inSec2PkBox"> | |||
<div class="inSec2NumBox"> | |||
<div class="inSec2Num"> | |||
<img src="images/inSec2-3.png" alt=""> | |||
<div> | |||
<div class="inSec2NumT finish"></div> | |||
<div>已完成排课</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Num"> | |||
<img src="images/inSec2-4.png" alt=""> | |||
<div> | |||
<div class="inSec2NumT noFinish"></div> | |||
<div>未完成排课</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2EchartBox"> | |||
<div id="inSec2Pk"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Col8"> | |||
<div class="inSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>选修课</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="inSec2Con commonClear inSec2XxBox"> | |||
<div class="inSec2NumBox"> | |||
<div class="inSec2Num"> | |||
<img src="images/inSec2-6.png" alt=""> | |||
<div> | |||
<div class="inSec2NumT finish"></div> | |||
<div>选修课数量</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Num"> | |||
<img src="images/inSec2-5.png" alt=""> | |||
<div> | |||
<div class="inSec2NumT noFinish"></div> | |||
<div>选修课报名人数</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2EchartBox"> | |||
<div id="inSec2Xx"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Row commonClear"> | |||
<div class="inSec2Col4"> | |||
<div class="inSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>本学期成绩录入</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="inSec2Con commonClear inSec2LrBox"> | |||
<div class="inSec2NumBox"> | |||
<div class="inSec2Num"> | |||
<img src="images/inSec2-8.png" alt=""> | |||
<div> | |||
<div class="inSec2NumT finish"></div> | |||
<div>已完成录入</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Num"> | |||
<img src="images/inSec2-7.png" alt=""> | |||
<div> | |||
<div class="inSec2NumT noFinish"></div> | |||
<div>未完成录入</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2EchartBox"> | |||
<div id="inSec2Lr"> | |||
<div class="inSec2LrEacher commonClear"> | |||
<div class="inSec2LrEacherCon"> | |||
<div class="lrZhe"></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
</div> | |||
<div class="inSec2LrEacherCon"> | |||
<div class="lrZhe"></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
<div></div> | |||
</div> | |||
<div class="inSec2LrTxt inSec2LrTxt1"><span></span> 已完成录入</div> | |||
<div class="inSec2LrTxt inSec2LrTxt2"><span></span> 未完成录入</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Col7"> | |||
<div class="inSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>全校课时统计</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="inSec2Con commonClear inSec2KsBox"> | |||
<div class="inSec2NumBox"> | |||
<div class="inSec2KsImg"><img src="images/inSec2-9.png" alt=""></div> | |||
<div class="inSec2KsTxt"> | |||
<div></div>全校课时总数 | |||
</div> | |||
</div> | |||
<div class="inSec2EchartBox"> | |||
<div id="inSec2Ks"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Col5 inSec2Ranking"> | |||
<div class="inSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>教师工作量排行</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="inSec2RTop"> | |||
<!-- <div class="inSec2RTopBox"> | |||
<div class="inSec2RTopImg"> | |||
<div><img src="images/inSec2-11.jpg" alt=""></div> | |||
</div> | |||
<div class="inSec2RTopNum">NO.2</div> | |||
<div class="inSec2Teacher">张老师</div> | |||
<div class="inSec2Class">220课时</div> | |||
</div> --> | |||
</div> | |||
<div class="inSec2RLine"><img src="images/inSec2-12.png" alt=""></div> | |||
<ul class="inSec2RList"> | |||
<!-- <li> | |||
<div class="inSec2RLImg"> | |||
<div><img src="images/inSec2-11.jpg" alt=""></div> | |||
</div> | |||
<span>NO.5</span> | |||
<div class="inSec2RListT">张老师</div> | |||
<span>220课时</span> | |||
</li> --> | |||
</ul> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Row commonClear"> | |||
<div class="inSec2Col4"> | |||
<div class="inSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>本学期补考</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="inSec2Con commonClear inSec2BkBox"> | |||
<div id="inSec2Bkl"></div> | |||
<div id="inSec2Bkrs"> | |||
<canvas width="200" height="200" style=""></canvas> | |||
<div class="inSec2BkrsTxt"> | |||
<div class="inSec2BkrsNum"></div> | |||
<div>本学期补考人数</div> | |||
<div>占全校 <span class="inSec2BkrsNumB"></span></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="inSec2Col7"> | |||
<div class="inSec2Box"> | |||
<div class="inSeec2Title"> | |||
<span>教学工作安排</span> <img src="images/inSec2-2.png" alt=""> | |||
</div> | |||
<div class="inSec2Con commonClear inSec2JxBox"> | |||
<ul class="inSec2JxList inSec2JxFirst"> | |||
<li> </li> | |||
<li>工作名称</li> | |||
<li>学年</li> | |||
<li>学期</li> | |||
<li>开始时间</li> | |||
<li>截止时间</li> | |||
<li>审核标志</li> | |||
</ul> | |||
<div class="inSec2JxCon"> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<!-- / index_sec2 --> | |||
</div> | |||
</body> | |||
</html> |