@@ -4,6 +4,7 @@ using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using DocumentFormat.OpenXml.Bibliography; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -157,6 +158,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
CdMajorEntity entity = strEntity.ToObject<CdMajorEntity>(); | |||
entity.SyncFlag = false; | |||
var model = cdMajorIBLL.GetCdMajorEntityByMajorNo(entity.MajorNo); | |||
if (!string.IsNullOrEmpty(entity.MajorDirector)) | |||
{ | |||
var isOccupy = cdMajorIBLL.GetCdMajorIsMajorDirector(keyValue, entity.MajorDirector); | |||
if (isOccupy) | |||
{ | |||
return Fail("该负责人已负责其他专业,请重新选择!"); | |||
} | |||
} | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
if (model != null) | |||
@@ -0,0 +1,117 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2024-11-14 17:04 | |||
/// 描 述:历史毕业生成绩查询 | |||
/// </summary> | |||
public class HistoryStuScoreController : MvcControllerBase | |||
{ | |||
private HistoryStuScoreIBLL historyStuScoreIBLL = new HistoryStuScoreBLL(); | |||
#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 = historyStuScoreIBLL.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 HistoryStuScoreData = historyStuScoreIBLL.GetHistoryStuScoreEntity( keyValue ); | |||
var jsonData = new { | |||
HistoryStuScore = HistoryStuScoreData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
historyStuScoreIBLL.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) | |||
{ | |||
HistoryStuScoreEntity entity = strEntity.ToObject<HistoryStuScoreEntity>(); | |||
historyStuScoreIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -17,6 +17,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
public class LessonInfoController : MvcControllerBase | |||
{ | |||
private LessonInfoIBLL lessonInfoIBLL = new LessonInfoBLL(); | |||
private CdMajorIBLL cdMajorIBLL = new CdMajorBLL(); | |||
private CdLessonTypeIBLL cdLessonTypeBll=new CdLessonTypeBLL(); | |||
private ArrangeLessonSyncIBLL arrangeLessonSyncIBLL = new ArrangeLessonSyncBLL(); | |||
#region 视图功能 | |||
@@ -43,6 +45,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
var user = LoginUserInfo.Get(); | |||
var major=cdMajorIBLL.GetCdMajorEntityByMajorDirector(user.enCode); | |||
ViewData["MajorDirector"]=major; | |||
var cdlesson = cdLessonTypeBll.GetCdLessonTypeEntityByCode("99"); | |||
ViewData["CdLessonType"] = cdlesson; | |||
return View(); | |||
} | |||
@@ -54,7 +61,29 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
#endregion | |||
#region 获取数据 | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult GetUserIsAdd() | |||
{ | |||
var user = LoginUserInfo.Get(); | |||
if (user.roleIds.Contains("d61e1853-cdee-4d49-a5e1-e230f1098e52")) | |||
{ | |||
//管理员角色不验证 | |||
return Success(new { state = true }); | |||
} | |||
if (user.roleIds.Contains("2a635d20-17e8-4014-bcad-ea7a1c92ea54")) | |||
{ | |||
//教务处角色不验证 | |||
return Success(new { state = true }); | |||
} | |||
if (user.Description.Equals("管理员")) | |||
{ | |||
//超级管理员不验证 | |||
return Success(new { state = true }); | |||
} | |||
var major = cdMajorIBLL.GetCdMajorEntityByMajorDirector(user.enCode); | |||
return major == null ? Success(new{state=false,msg= "该用户不是专业负责人不能添加课程" }) : Success(new { state = true }); | |||
} | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// <summary> | |||
@@ -65,7 +94,31 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = lessonInfoIBLL.GetPageList(paginationobj, queryJson); | |||
var user = LoginUserInfo.Get(); | |||
var queryParam = queryJson.ToJObject(); | |||
if (user.roleIds.Contains("d61e1853-cdee-4d49-a5e1-e230f1098e52")|| user.roleIds.Contains("2a635d20-17e8-4014-bcad-ea7a1c92ea54")|| user.Description.Equals("管理员")) | |||
{ | |||
} | |||
else | |||
{ | |||
var major = cdMajorIBLL.GetCdMajorEntityByMajorDirector(user.enCode); | |||
if (major!=null) | |||
{ | |||
queryParam["TeachMajorNo"] = major.MajorNo; | |||
} | |||
else | |||
{ | |||
return Success(new | |||
{ | |||
rows = "", | |||
total = 0, | |||
page = 0, | |||
records =0 | |||
}); | |||
} | |||
} | |||
var data = lessonInfoIBLL.GetPageList(paginationobj, queryParam.ToJson()); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
@@ -0,0 +1,38 @@ | |||
using Hangfire.Storage; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Web; | |||
using System.Web.Mvc; | |||
using Learun.Application.Base.SystemModule; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
public class StuInfoBasicStatsticsController : MvcControllerBase | |||
{ | |||
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); | |||
private DataItemIBLL dataItemBll=new DataItemBLL(); | |||
private CdMajorIBLL cdMajorIbll = new CdMajorBLL(); | |||
// GET: EducationalAdministration/StuInfoBasicStatstics | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetStatistics() | |||
{ | |||
var list = stuInfoBasicIBLL.GetAllStatistics().ToList(); | |||
var mzdic = dataItemBll.GetDetailList("National"); | |||
var zydic = cdMajorIbll.GetAllList(); | |||
return Success(new | |||
{ | |||
XB = list.GroupBy(x => x.GenderNo).Select(x => new { name = x.Key=="True"?"男":"女", value = x.Count() }).ToList(), | |||
MZ = list.GroupBy(x => x.NationalityNo).Select(x=>new{name= mzdic.FirstOrDefault(xx=>xx.F_ItemValue==x.Key)?.F_ItemName,value=x.Count()}).ToList(), | |||
ZY = list.GroupBy(x => x.MajorNo).Select(x=>new{name= zydic.FirstOrDefault(xx=>xx.MajorNo==x.Key)?.MajorName, value=x.Count()}).ToList() | |||
}); | |||
} | |||
} | |||
} |
@@ -0,0 +1,30 @@ | |||
@{ | |||
ViewBag.Title = "历史毕业生成绩查询"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" style="padding:0;line-height:38px;text-align:center;font-size:20px;font-weight:bold;color:#333;" > | |||
<span>历史毕业生成绩</span> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HistoryStuScore" > | |||
<div class="lr-form-item-title">姓名<font face="宋体">*</font></div> | |||
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HistoryStuScore" > | |||
<div class="lr-form-item-title">学号<font face="宋体">*</font></div> | |||
<input id="StuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HistoryStuScore" > | |||
<div class="lr-form-item-title">身份证号<font face="宋体">*</font></div> | |||
<input id="StuIdentity" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HistoryStuScore" > | |||
<div class="lr-form-item-title">性别<font face="宋体">*</font></div> | |||
<input id="Sex" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HistoryStuScore" > | |||
<div class="lr-form-item-title">总成绩</div> | |||
<input id="Sore" type="text" class="form-control" isvalid="yes" checkexpession="PositiveFloatintZero" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/HistoryStuScore/Form.js") |
@@ -0,0 +1,50 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2024-11-14 17:04 | |||
* 描 述:历史毕业生成绩查询 | |||
*/ | |||
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 () { | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/HistoryStuScore/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]); | |||
} | |||
} | |||
}); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = { | |||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/HistoryStuScore/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,48 @@ | |||
@{ | |||
ViewBag.Title = "历史毕业生成绩查询"; | |||
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="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="StuName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">学号</div> | |||
<input id="StuNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">身份证号</div> | |||
<input id="StuIdentity" type="text" class="form-control" /> | |||
</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_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_export" class="btn btn-default"><i class="fa fa-plus"></i> 导出</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/HistoryStuScore/Index.js") |
@@ -0,0 +1,98 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2024-11-14 17:04 | |||
* 描 述:历史毕业生成绩查询 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/HistoryStuScore/Form', | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/HistoryStuScore/Form?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/HistoryStuScore/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
// 导出 | |||
$('#lr_export').on('click', function () { | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/HistoryStuScore/GetPageList', | |||
headData: [ | |||
{ label: "姓名", name: "StuName", width: 100, align: "left"}, | |||
{ label: "学号", name: "StuNo", width: 100, align: "left"}, | |||
{ label: "身份证号", name: "StuIdentity", width: 100, align: "left"}, | |||
{ label: "性别", name: "Sex", width: 100, align: "left"}, | |||
{ label: "总成绩", name: "Sore", width: 100, align: "left"}, | |||
], | |||
mainId:'ID', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -1,8 +1,9 @@ | |||
@{ | |||
@using Learun.Application.TwoDevelopment.EducationalAdministration | |||
@{ | |||
ViewBag.Title = "课程信息管理"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" > | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程编号<font face="宋体">*</font></div> | |||
<input id="LessonNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
@@ -19,33 +20,54 @@ | |||
<div class="lr-form-item-title">系部</div> | |||
<div id="TeachDeptNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="TeachMajorNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程类型<font face="宋体">*</font></div> | |||
<div id="LessonTypeId" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
@{ | |||
if (ViewData["MajorDirector"] != null) | |||
{ | |||
var major = (CdMajorEntity)ViewData["MajorDirector"]; | |||
var lessonType = (CdLessonTypeEntity)ViewData["CdLessonType"]; | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | |||
<input id="TeachMajorNo" readonly="" value="@major.MajorNo" type="hidden"> | |||
<input readonly="" value="@major.MajorName" type="text" class="form-control"> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程类型<font face="宋体">*</font></div> | |||
<input id="LessonTypeId" readonly="" value="@lessonType.LTId" type="hidden"> | |||
<input readonly="" value="@lessonType.LessonTypeName" type="text" class="form-control"> | |||
</div> | |||
} | |||
else | |||
{ | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="TeachMajorNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程类型<font face="宋体">*</font></div> | |||
<div id="LessonTypeId" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
} | |||
} | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程简称</div> | |||
<input id="EnName" type="text" class="form-control"/> | |||
<input id="EnName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">学分</div> | |||
<input id="StudyScore" type="text" class="form-control"/> | |||
<input id="StudyScore" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">理论学时</div> | |||
<input id="WeekStudyHour" type="text" class="form-control"/> | |||
<input id="WeekStudyHour" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">实训学时</div> | |||
<input id="WeekPracticeHour" type="text" class="form-control"/> | |||
<input id="WeekPracticeHour" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">周学时</div> | |||
<input id="TotalStudyHour" type="text" class="form-control"/> | |||
<input id="TotalStudyHour" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">是否先修</div> | |||
@@ -56,9 +78,9 @@ | |||
<div id="BeforeLesson"></div> | |||
</div> | |||
@*<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">修读对象</div> | |||
<div id="WhoStudy"></div> | |||
</div>*@ | |||
<div class="lr-form-item-title">修读对象</div> | |||
<div id="WhoStudy"></div> | |||
</div>*@ | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程分类</div> | |||
<div id="LessonSortNo"></div> | |||
@@ -36,22 +36,25 @@ var bootstrap = function ($, learun) { | |||
$('#TeachDeptNo').lrselect({ | |||
value: 'deptno', text: 'deptname' | |||
}); | |||
$('#TeachMajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||
$('#LessonTypeId').lrDataSourceSelect({ | |||
code: 'CdLessonType', value: 'ltid', text: 'lessontypename', select: function (item) { | |||
if (item != null && item != undefined) { | |||
if (item.lessontypename === "公开课") { | |||
$("#TeachMajorNo").removeAttr("isvalid"); | |||
$("#TeachMajorNo").removeAttr("NotNull"); | |||
} else { | |||
$("#TeachMajorNo").removeAttr("isvalid"); | |||
$("#TeachMajorNo").removeAttr("NotNull"); | |||
//$("#TeachMajorNo").attr("isvalid", "yes"); | |||
//$("#TeachMajorNo").attr("checkexpession", "NotNull"); | |||
if (!$("#TeachMajorNo").attr("type")) { | |||
$('#TeachMajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||
$('#LessonTypeId').lrDataSourceSelect({ | |||
code: 'CdLessonType', value: 'ltid', text: 'lessontypename', select: function (item) { | |||
if (item != null && item != undefined) { | |||
if (item.lessontypename === "公开课") { | |||
$("#TeachMajorNo").removeAttr("isvalid"); | |||
$("#TeachMajorNo").removeAttr("NotNull"); | |||
} else { | |||
$("#TeachMajorNo").removeAttr("isvalid"); | |||
$("#TeachMajorNo").removeAttr("NotNull"); | |||
//$("#TeachMajorNo").attr("isvalid", "yes"); | |||
//$("#TeachMajorNo").attr("checkexpession", "NotNull"); | |||
} | |||
} | |||
} | |||
} | |||
}); | |||
}); | |||
} | |||
$('#HaveBeforeLesson').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
$('#BeforeLesson').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname' }); | |||
//$('#WhoStudy').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname' }); | |||
@@ -28,16 +28,33 @@ var bootstrap = function ($, learun) { | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/LessonInfo/Form', | |||
width: 1000, | |||
height: 800, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
$.ajax({ | |||
url: '/EducationalAdministration/LessonInfo/GetUserIsAdd', | |||
data: {}, | |||
type: "POST", | |||
dataType: "json", | |||
async: false, | |||
cache: false, | |||
success: function (res) { | |||
console.log(res.data) | |||
if (!res.data.state) { | |||
learun.alert.warning(res.data.msg); | |||
return; | |||
} else { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/LessonInfo/Form', | |||
width: 1000, | |||
height: 800, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
} | |||
}); | |||
}) | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
@@ -0,0 +1,168 @@ | |||
| |||
@{ | |||
ViewBag.Title = "学生学籍统计"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<h2 style="text-align:center">学生学籍统计</h2> | |||
<div style="padding: 20px;padding-top:50px; display: flex;"> | |||
<div id="Sex" style="height:500px;width:33%"></div> | |||
<div id="nation" style="height: 500px; width: 33%"></div> | |||
<div id="major" style="height: 500px; width: 33%"></div> | |||
</div> | |||
<script src="~/Content/echarts/echarts.js"></script> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasicStatstics/Index.js") | |||
<script> | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
$.ajax({ | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasicStatstics/GetStatistics', | |||
type: "GET", | |||
dataType: "json", | |||
async: true, | |||
success: function (res) { | |||
console.log(res) | |||
InitSex(res.data.XB) | |||
InitNation(res.data.MZ) | |||
InitMajor(res.data.ZY) | |||
} | |||
}) | |||
} | |||
function InitSex(data) { | |||
var chartDom = document.getElementById('Sex'); | |||
var myChart = echarts.init(chartDom); | |||
var option; | |||
option = { | |||
title: { | |||
text: '性别统计', | |||
left: 'center' | |||
}, | |||
tooltip: { | |||
trigger: 'item' | |||
}, | |||
legend: { | |||
orient: 'vertical', | |||
left: 'left' | |||
}, | |||
series: [ | |||
{ | |||
type: 'pie', | |||
radius: '50%', | |||
data: data, | |||
emphasis: { | |||
itemStyle: { | |||
shadowBlur: 10, | |||
shadowOffsetX: 0, | |||
shadowColor: 'rgba(0, 0, 0, 0.5)' | |||
} | |||
} | |||
} | |||
] | |||
}; | |||
option && myChart.setOption(option); | |||
} | |||
function InitNation(data) { | |||
var chartDom = document.getElementById('nation'); | |||
var myChart = echarts.init(chartDom); | |||
var option; | |||
option = { | |||
title: { | |||
text: '民族统计', | |||
left: 'center' | |||
}, | |||
tooltip: { | |||
trigger: 'axis', | |||
axisPointer: { | |||
type: 'shadow' | |||
} | |||
}, | |||
grid: { | |||
left: '3%', | |||
right: '4%', | |||
bottom: '3%', | |||
containLabel: true | |||
}, | |||
xAxis: [ | |||
{ | |||
type: 'category', | |||
data: data.map(item => item.name == null ?"无民族":item.name),//['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], | |||
axisTick: { | |||
alignWithLabel: true | |||
}, | |||
axisLabel: { | |||
interval: 0, | |||
} | |||
} | |||
], | |||
yAxis: [ | |||
{ | |||
type: 'value' | |||
} | |||
], | |||
series: [ | |||
{ | |||
name: '数量', | |||
type: 'bar', | |||
barWidth: '60%', | |||
data: data.map(item => item.value),//[10, 52, 200, 334, 390, 330, 220] | |||
} | |||
] | |||
}; | |||
option && myChart.setOption(option); | |||
} | |||
function InitMajor(data) { | |||
var chartDom = document.getElementById('major'); | |||
var myChart = echarts.init(chartDom); | |||
var option; | |||
option = { | |||
title: { | |||
text: '专业统计', | |||
left: 'center' | |||
}, | |||
tooltip: { | |||
trigger: 'axis', | |||
axisPointer: { | |||
type: 'shadow' | |||
} | |||
}, | |||
grid: { | |||
left: '3%', | |||
right: '4%', | |||
bottom: '3%', | |||
containLabel: true | |||
}, | |||
xAxis: [ | |||
{ | |||
type: 'category', | |||
data: data.map(item => item.name == null ?"无专业":item.name),//['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], | |||
axisTick: { | |||
alignWithLabel: true | |||
}, | |||
axisLabel: { | |||
interval: 0, | |||
} | |||
} | |||
], | |||
yAxis: [ | |||
{ | |||
type: 'value' | |||
} | |||
], | |||
series: [ | |||
{ | |||
name: '数量', | |||
type: 'bar', | |||
barWidth: '60%', | |||
data: data.map(item => item.value),//[10, 52, 200, 334, 390, 330, 220] | |||
} | |||
] | |||
}; | |||
option && myChart.setOption(option); | |||
} | |||
</script> |
@@ -0,0 +1,4 @@ | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
} |
@@ -23,8 +23,7 @@ | |||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir> | |||
<RestorePackages>true</RestorePackages> | |||
<UseGlobalApplicationHostFile /> | |||
<Use64BitIISExpress> | |||
</Use64BitIISExpress> | |||
<Use64BitIISExpress>false</Use64BitIISExpress> | |||
<SccProjectName> | |||
</SccProjectName> | |||
<SccLocalPath> | |||
@@ -361,6 +360,7 @@ | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuEncourgementTranController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuGrantController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuInfoBasicChangeController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuInfoBasicStatsticsController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuInfoSemsterController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuPunishmentTranController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassController.cs" /> | |||
@@ -902,6 +902,7 @@ | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreTranController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassTranController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassTwoTranController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\HistoryStuScoreController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -1228,6 +1229,7 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasicChange\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasicChange\FormView.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasicChange\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasicStatstics\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\SynPhotoForm.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateDiplomaReceiveForm.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\FormTran.js" /> | |||
@@ -1338,6 +1340,7 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\SynPhotoForm.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuCancelLeaveManagement\FormView.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuCancelLeaveManagement\Statistics.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasicStatstics\Index.cshtml" /> | |||
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | |||
@@ -7100,6 +7103,10 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwoTran\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwoTran\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwoTran\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\HistoryStuScore\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\HistoryStuScore\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\HistoryStuScore\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\HistoryStuScore\Form.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" /> | |||
@@ -0,0 +1,29 @@ | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Data.Entity.ModelConfiguration; | |||
namespace Learun.Application.Mapping | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2024-11-14 17:04 | |||
/// 描 述:历史毕业生成绩查询 | |||
/// </summary> | |||
public class HistoryStuScoreMap : EntityTypeConfiguration<HistoryStuScoreEntity> | |||
{ | |||
public HistoryStuScoreMap() | |||
{ | |||
#region 表、主键 | |||
//表 | |||
this.ToTable("HISTORYSTUSCORE"); | |||
//主键 | |||
this.HasKey(t => t.ID); | |||
#endregion | |||
#region 配置关系 | |||
#endregion | |||
} | |||
} | |||
} | |||
@@ -662,6 +662,7 @@ | |||
<Compile Include="EducationalAdministration\StuScoreTranMap.cs" /> | |||
<Compile Include="EducationalAdministration\StuScoreNotPassTranMap.cs" /> | |||
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTranMap.cs" /> | |||
<Compile Include="EducationalAdministration\HistoryStuScoreMap.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -175,6 +175,45 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
} | |||
public bool GetCdMajorIsMajorDirector(string keyValue, string enCode) | |||
{ | |||
try | |||
{ | |||
return cdMajorService.GetCdMajorIsMajorDirector(keyValue,enCode); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
public CdMajorEntity GetCdMajorEntityByMajorDirector(string enCode) | |||
{ | |||
try | |||
{ | |||
return cdMajorService.GetCdMajorEntityByMajorDirector(enCode); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
@@ -42,6 +42,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
/// <summary> | |||
/// <returns></returns> | |||
CdMajorEntity GetCdMajorEntityByMajorNo(string majorNo); | |||
/// <summary> | |||
/// 判断负责人是否已被绑定 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
/// <returns></returns> | |||
bool GetCdMajorIsMajorDirector(string keyValue,string enCode); | |||
/// <summary> | |||
/// 根据负责人编码获取专业信息 | |||
/// </summary> | |||
/// <param name="enCode"></param> | |||
/// <returns></returns> | |||
CdMajorEntity GetCdMajorEntityByMajorDirector(string enCode); | |||
#endregion | |||
@@ -289,6 +289,55 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 判断负责人是否已被绑定 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
/// <returns></returns> | |||
public bool GetCdMajorIsMajorDirector(string keyValue, string enCode) | |||
{ | |||
try | |||
{ | |||
var model= this.BaseRepository("CollegeMIS").FindEntity<CdMajorEntity>(x => x.MajorDirector == enCode); | |||
if (model == null) return false; | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
return true; | |||
} | |||
return model.ID!=keyValue; | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
public CdMajorEntity GetCdMajorEntityByMajorDirector(string enCode) | |||
{ | |||
try | |||
{ | |||
return BaseRepository("CollegeMIS").FindEntity<CdMajorEntity>(x => x.MajorDirector == enCode); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
public DataTable GetSqlTree() | |||
{ | |||
@@ -0,0 +1,125 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2024-11-14 17:04 | |||
/// 描 述:历史毕业生成绩查询 | |||
/// </summary> | |||
public class HistoryStuScoreBLL : HistoryStuScoreIBLL | |||
{ | |||
private HistoryStuScoreService historyStuScoreService = new HistoryStuScoreService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<HistoryStuScoreEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return historyStuScoreService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取HistoryStuScore表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public HistoryStuScoreEntity GetHistoryStuScoreEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return historyStuScoreService.GetHistoryStuScoreEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
historyStuScoreService.DeleteEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, HistoryStuScoreEntity entity) | |||
{ | |||
try | |||
{ | |||
historyStuScoreService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,70 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.ComponentModel.DataAnnotations.Schema; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2024-11-14 17:04 | |||
/// 描 述:历史毕业生成绩查询 | |||
/// </summary> | |||
public class HistoryStuScoreEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// 主键 | |||
/// </summary> | |||
[Column("ID")] | |||
public string ID { get; set; } | |||
/// <summary> | |||
/// 学生姓名 | |||
/// </summary> | |||
[Column("STUNAME")] | |||
public string StuName { get; set; } | |||
/// <summary> | |||
/// 学生学号 | |||
/// </summary> | |||
[Column("STUNO")] | |||
public string StuNo { get; set; } | |||
/// <summary> | |||
/// 学生身份证号 | |||
/// </summary> | |||
[Column("STUIDENTITY")] | |||
public string StuIdentity { get; set; } | |||
/// <summary> | |||
/// 学生性别 | |||
/// </summary> | |||
[Column("SEX")] | |||
public string Sex { get; set; } | |||
/// <summary> | |||
/// 学生总成绩 | |||
/// </summary> | |||
[Column("SORE")] | |||
public decimal? Sore { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.ID = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.ID = keyValue; | |||
} | |||
#endregion | |||
#region 扩展字段 | |||
#endregion | |||
} | |||
} | |||
@@ -0,0 +1,48 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2024-11-14 17:04 | |||
/// 描 述:历史毕业生成绩查询 | |||
/// </summary> | |||
public interface HistoryStuScoreIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<HistoryStuScoreEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取HistoryStuScore表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
HistoryStuScoreEntity GetHistoryStuScoreEntity(string keyValue); | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
void DeleteEntity(string keyValue); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
void SaveEntity(string keyValue, HistoryStuScoreEntity entity); | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,164 @@ | |||
using Dapper; | |||
using Learun.DataBase.Repository; | |||
using Learun.Util; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Data; | |||
using System.Text; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2024-11-14 17:04 | |||
/// 描 述:历史毕业生成绩查询 | |||
/// </summary> | |||
public class HistoryStuScoreService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">查询参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<HistoryStuScoreEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(@" | |||
t.ID, | |||
t.StuName, | |||
t.StuNo, | |||
t.StuIdentity, | |||
t.Sex, | |||
t.Sore | |||
"); | |||
strSql.Append(" FROM HistoryStuScore t "); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StuName"].IsEmpty()) | |||
{ | |||
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.StuName Like @StuName "); | |||
} | |||
if (!queryParam["StuNo"].IsEmpty()) | |||
{ | |||
dp.Add("StuNo", "%" + queryParam["StuNo"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.StuNo Like @StuNo "); | |||
} | |||
if (!queryParam["StuIdentity"].IsEmpty()) | |||
{ | |||
dp.Add("StuIdentity", "%" + queryParam["StuIdentity"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.StuIdentity Like @StuIdentity "); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<HistoryStuScoreEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取HistoryStuScore表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public HistoryStuScoreEntity GetHistoryStuScoreEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<HistoryStuScoreEntity>(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
this.BaseRepository("CollegeMIS").Delete<HistoryStuScoreEntity>(t=>t.ID == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
public void SaveEntity(string keyValue, HistoryStuScoreEntity entity) | |||
{ | |||
try | |||
{ | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.Modify(keyValue); | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
this.BaseRepository("CollegeMIS").Insert(entity); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -337,6 +337,26 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
} | |||
public IEnumerable<StuInfoBasicService.StuInfoStatisticsModel> GetAllStatistics() | |||
{ | |||
try | |||
{ | |||
return stuInfoBasicService.GetAllStatistics(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
public IEnumerable<StuInfoBasicEntity> GetAllList(string ChangeType) | |||
{ | |||
try | |||
@@ -1,6 +1,7 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
using static Learun.Application.TwoDevelopment.EducationalAdministration.StuInfoBasicService; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
@@ -114,6 +115,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
void GenerateAccout(); | |||
bool GetAny(); | |||
IEnumerable<StuInfoBasicEntity> GetAllList(); | |||
/// <summary> | |||
/// 获取统计 | |||
/// </summary> | |||
/// <returns></returns> | |||
IEnumerable<StuInfoStatisticsModel> GetAllStatistics(); | |||
IEnumerable<StuInfoBasicEntity> GetAllList(string ChangeType); | |||
IEnumerable<StuInfoBasicEntity> GetStuInfoByClassNo(string classNo); | |||
@@ -1436,6 +1436,21 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
public string ColumnName { get; set; } | |||
public string ColumnDescription { get; set; } | |||
} | |||
public class StuInfoStatisticsModel | |||
{ | |||
/// <summary> | |||
/// 民族 | |||
/// </summary> | |||
public string NationalityNo { get; set; } | |||
/// <summary> | |||
/// 性别 | |||
/// </summary> | |||
public string GenderNo { get; set; } | |||
/// <summary> | |||
/// 专业 | |||
/// </summary> | |||
public string MajorNo { get; set; } | |||
} | |||
public void GenerateAccout() | |||
{ | |||
UserRelationIBLL userRelationIBLL = new UserRelationBLL(); | |||
@@ -1622,6 +1637,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
} | |||
public IEnumerable<StuInfoStatisticsModel> GetAllStatistics() | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindList<StuInfoStatisticsModel>("select NationalityNo,GenderNo,MajorNo FROM StuInfoBasic"); | |||
} | |||
/// <summary> | |||
/// 班级不看学籍异动 | |||
/// </summary> | |||
@@ -2071,6 +2071,10 @@ | |||
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTran\StuScoreNotPassTwoTranService.cs" /> | |||
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTran\StuScoreNotPassTwoTranIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTran\StuScoreNotPassTwoTranBLL.cs" /> | |||
<Compile Include="EducationalAdministration\HistoryStuScore\HistoryStuScoreEntity.cs" /> | |||
<Compile Include="EducationalAdministration\HistoryStuScore\HistoryStuScoreService.cs" /> | |||
<Compile Include="EducationalAdministration\HistoryStuScore\HistoryStuScoreBLL.cs" /> | |||
<Compile Include="EducationalAdministration\HistoryStuScore\HistoryStuScoreIBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||