Переглянути джерело

【增加】已毕业生管理:增加毕业信息统计,征集学生的毕业去向信息;

临城职教中职
dyy 2 роки тому
джерело
коміт
8488063fe7
13 змінених файлів з 1252 додано та 0 видалено
  1. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuGraduateStatisticController.cs
  2. +79
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.cshtml
  3. +153
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.js
  4. +56
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.cshtml
  5. +309
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.js
  6. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  7. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuGraduateStatisticMap.cs
  8. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  9. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticBLL.cs
  10. +135
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticEntity.cs
  11. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticIBLL.cs
  12. +191
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticService.cs
  13. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuGraduateStatisticController.cs Переглянути файл

@@ -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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-08-29 16:33
/// 描 述:毕业信息统计
/// </summary>
public class StuGraduateStatisticController : MvcControllerBase
{
private StuGraduateStatisticIBLL stuGraduateStatisticIBLL = new StuGraduateStatisticBLL();

#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 = stuGraduateStatisticIBLL.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 StuGraduateStatisticData = stuGraduateStatisticIBLL.GetStuGraduateStatisticEntity( keyValue );
var jsonData = new {
StuGraduateStatistic = StuGraduateStatisticData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
stuGraduateStatisticIBLL.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)
{
StuGraduateStatisticEntity entity = strEntity.ToObject<StuGraduateStatisticEntity>();
stuGraduateStatisticIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 79
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.cshtml Переглянути файл

@@ -0,0 +1,79 @@
@{
ViewBag.Title = "毕业信息统计";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="StuGraduateStatistic">
<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-6 lr-form-item" data-table="StuGraduateStatistic">
<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-6 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">性别<font face="宋体">*</font></div>
<div id="GenderNo" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">身份证号</div>
<input id="IdentityCardNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">学籍号</div>
<input id="StuCode" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">学号<font face="宋体">*</font></div>
<input id="ProvinceCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StuGraduateStatistic">
<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="StuGraduateStatistic">
<div class="lr-form-item-title">学制<font face="宋体">*</font></div>
<div id="EduSystem" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">班级<font face="宋体">*</font></div>
<div id="ClassNo" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">联系电话<font face="宋体">*</font></div>
<input id="mobile" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">毕业去向<font face="宋体">*</font></div>
<div id="GraduateGo" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">升入高校名称</div>
<input id="EnterUniversityName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">大学层次</div>
<div id="UniversityLevel"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">就业单位名称</div>
<input id="EmployerName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">就业单位所属省</div>
<div id="EmployerProvince"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">就业单位所属市</div>
<div id="EmployerCity"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">就业单位所属县</div>
<div id="EmployerCountry"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuGraduateStatistic">
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.js")

+ 153
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.js Переглянути файл

@@ -0,0 +1,153 @@
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-08-29 16:34
* 描 述:毕业信息统计
*/
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 () {
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' });
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#EduSystem').lrDataItemSelect({ code: 'EduSystem' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#GraduateGo').lrDataItemSelect({ code: 'GraduateGo' });
$('#UniversityLevel').lrDataItemSelect({ code: 'GraduateLevel' });
$('#EmployerProvince').lrDataSourceSelect({
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname',
select: function (item) {
if (item) {
$('#EmployerCity').lrselectRefresh({
url: top.$.rootUrl + "/DIC_CITY/GetListByProvinceCode",
param: { ProvinceCode: item.pcode },
value: 'CCODE',
text: 'CNAME'
});
} else {
$('#EmployerCity').lrselectRefresh({
url: "",
data: []
});
}
$('#EmployerCountry').lrselectRefresh({
url: "",
data: []
});
}
});
$('#EmployerCity').lrselect({
value: 'ccode', text: 'cname',
select: function (item) {
if (item) {
$('#EmployerCountry').lrselectRefresh({
url: top.$.rootUrl + "/DIC_AREA/GetAreasListByCityCode",
param: { cityCode: item.CCODE },
value: 'ACODE',
text: 'ANAME'
});
}
}
});
$('#EmployerCountry').lrselect({
value: 'ACODE', text: 'ANAME'
});
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/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/StuGraduateStatistic/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 56
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.cshtml Переглянути файл

@@ -0,0 +1,56 @@
@{
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>
<div id="MajorNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业去向</div>
<div id="GraduateGo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">大学层次</div>
<div id="UniversityLevel"></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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.js")

+ 309
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.js Переглянути файл

@@ -0,0 +1,309 @@
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-08-29 16:34
* 描 述:毕业信息统计
*/
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);
}, 300, 400);
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#GraduateGo').lrDataItemSelect({ code: 'GraduateGo' });
$('#UniversityLevel').lrDataItemSelect({ code: 'GraduateLevel' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/Form',
width: 800,
height: 600,
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/StuGraduateStatistic/Form?keyValue=' + keyValue,
width: 800,
height: 600,
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/StuGraduateStatistic/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/GetPageList',
headData: [
{ label: "学生编码", name: "StuNo", width: 100, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{ label: "身份证号", name: "IdentityCardNo", width: 150, align: "left" },
{ label: "学籍号", name: "StuCode", width: 100, align: "left" },
{ label: "学号", name: "ProvinceCode", width: 100, align: "left" },
{
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: 'majorno',
callback: function (_data) {
callback(_data['majorname']);
}
});
}
},
{
label: "学制", name: "EduSystem", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'EduSystem',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "班级", name: "ClassNo", width: 100, 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: "mobile", width: 100, align: "left" },
{
label: "毕业去向", name: "GraduateGo", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'GraduateGo',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "升入高校名称", name: "EnterUniversityName", width: 100, align: "left" },
{
label: "大学层次", name: "UniversityLevel", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'UniversityLevel',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "就业单位名称", name: "EmployerName", width: 100, align: "left" },
{
label: "就业单位所属省", name: "EmployerProvince", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE',
key: value,
keyId: 'pcode',
callback: function (_data) {
callback(_data['pname']);
}
});
}
},
{
label: "就业单位所属市", name: "EmployerCity", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY',
key: value,
keyId: 'ccode',
callback: function (_data) {
callback(_data['cname']);
}
});
}
},
{
label: "就业单位所属县(区)", name: "EmployerCountry", width: 150, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_AREA',
key: value,
keyId: 'acode',
callback: function (_data) {
callback(_data['aname']);
}
});
}
},
{ label: "备注", name: "Remark", 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();
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Переглянути файл

@@ -863,6 +863,7 @@
<Compile Include="Areas\PersonnelManagement\Controllers\TeachManagementController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\EvaluateTeachLearnController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\ClassPatrolController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuGraduateStatisticController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -1150,6 +1151,8 @@
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\StuTuition.js" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\Peichart.js" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\StatisticIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\StuGraduateStatistic\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\StuGraduateStatistic\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\StuGrant\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\StuGrant\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasicChange\Form.js" />
@@ -1224,6 +1227,7 @@
<Content Include="Areas\EducationalAdministration\Views\Exam_InvigilateTeacher\FormYearSemester.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Exam_InvigilateTeacher\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\ClassPlan\IndexSchool.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuGraduateStatistic\Form.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" />
@@ -6855,6 +6859,7 @@
<Content Include="Areas\PersonnelManagement\Views\ClassPatrol\Index.js" />
<Content Include="Areas\PersonnelManagement\Views\ClassPatrol\Form.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\ClassPatrol\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\StuGraduateStatistic\Index.cshtml" />
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuGraduateStatisticMap.cs Переглянути файл

@@ -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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-08-29 16:33
/// 描 述:毕业信息统计
/// </summary>
public class StuGraduateStatisticMap : EntityTypeConfiguration<StuGraduateStatisticEntity>
{
public StuGraduateStatisticMap()
{
#region 表、主键
//表
this.ToTable("STUGRADUATESTATISTIC");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj Переглянути файл

@@ -620,6 +620,7 @@
<Compile Include="PersonnelManagement\TeachManagementMap.cs" />
<Compile Include="PersonnelManagement\EvaluateTeachLearnMap.cs" />
<Compile Include="PersonnelManagement\ClassPatrolMap.cs" />
<Compile Include="EducationalAdministration\StuGraduateStatisticMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticBLL.cs Переглянути файл

@@ -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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-08-29 16:33
/// 描 述:毕业信息统计
/// </summary>
public class StuGraduateStatisticBLL : StuGraduateStatisticIBLL
{
private StuGraduateStatisticService stuGraduateStatisticService = new StuGraduateStatisticService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<StuGraduateStatisticEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return stuGraduateStatisticService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取StuGraduateStatistic表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public StuGraduateStatisticEntity GetStuGraduateStatisticEntity(string keyValue)
{
try
{
return stuGraduateStatisticService.GetStuGraduateStatisticEntity(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
{
stuGraduateStatisticService.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, StuGraduateStatisticEntity entity)
{
try
{
stuGraduateStatisticService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 135
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticEntity.cs Переглянути файл

@@ -0,0 +1,135 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-08-29 16:33
/// 描 述:毕业信息统计
/// </summary>
public class StuGraduateStatisticEntity
{
#region 实体成员
/// <summary>
/// Id
/// </summary>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 学号
/// </summary>
[Column("STUNO")]
public string StuNo { get; set; }
/// <summary>
/// 姓名
/// </summary>
[Column("STUNAME")]
public string StuName { get; set; }
/// <summary>
/// 性别
/// </summary>
[Column("GENDERNO")]
public bool? GenderNo { get; set; }
/// <summary>
/// 身份证号
/// </summary>
[Column("IDENTITYCARDNO")]
public string IdentityCardNo { get; set; }
/// <summary>
/// 学籍号
/// </summary>
[Column("STUCODE")]
public string StuCode { get; set; }
/// <summary>
/// 省编学号
/// </summary>
[Column("PROVINCECODE")]
public string ProvinceCode { get; set; }
/// <summary>
/// 专业
/// </summary>
[Column("MAJORNO")]
public string MajorNo { get; set; }
/// <summary>
/// 学制
/// </summary>
[Column("EDUSYSTEM")]
public string EduSystem { get; set; }
/// <summary>
/// 班级
/// </summary>
[Column("CLASSNO")]
public string ClassNo { get; set; }
/// <summary>
/// 联系电话
/// </summary>
[Column("MOBILE")]
public string mobile { get; set; }
/// <summary>
/// 毕业去向
/// </summary>
[Column("GRADUATEGO")]
public string GraduateGo { get; set; }
/// <summary>
/// 升入高校名称
/// </summary>
[Column("ENTERUNIVERSITYNAME")]
public string EnterUniversityName { get; set; }
/// <summary>
/// 大学层次(本科/专科)
/// </summary>
[Column("UNIVERSITYLEVEL")]
public string UniversityLevel { get; set; }
/// <summary>
/// 就业单位名称
/// </summary>
[Column("EMPLOYERNAME")]
public string EmployerName { get; set; }
/// <summary>
/// 就业单位所属省
/// </summary>
[Column("EMPLOYERPROVINCE")]
public string EmployerProvince { get; set; }
/// <summary>
/// 就业单位所属市
/// </summary>
[Column("EMPLOYERCITY")]
public string EmployerCity { get; set; }
/// <summary>
/// 就业单位所属县(区)
/// </summary>
[Column("EMPLOYERCOUNTRY")]
public string EmployerCountry { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column("REMARK")]
public string Remark { 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
}
}


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticIBLL.cs Переглянути файл

@@ -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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-08-29 16:33
/// 描 述:毕业信息统计
/// </summary>
public interface StuGraduateStatisticIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<StuGraduateStatisticEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取StuGraduateStatistic表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
StuGraduateStatisticEntity GetStuGraduateStatisticEntity(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, StuGraduateStatisticEntity entity);
#endregion

}
}

+ 191
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticService.cs Переглянути файл

@@ -0,0 +1,191 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-08-29 16:33
/// 描 述:毕业信息统计
/// </summary>
public class StuGraduateStatisticService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<StuGraduateStatisticEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.Id,
t.StuNo,
t.StuName,
t.GenderNo,
t.IdentityCardNo,
t.StuCode,
t.ProvinceCode,
t.MajorNo,
t.EduSystem,
t.ClassNo,
t.mobile,
t.GraduateGo,
t.EnterUniversityName,
t.UniversityLevel,
t.EmployerName,
t.EmployerProvince,
t.EmployerCity,
t.EmployerCountry
");
strSql.Append(" FROM StuGraduateStatistic 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["MajorNo"].IsEmpty())
{
dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String);
strSql.Append(" AND t.MajorNo = @MajorNo ");
}
if (!queryParam["ClassNo"].IsEmpty())
{
dp.Add("ClassNo",queryParam["ClassNo"].ToString(), DbType.String);
strSql.Append(" AND t.ClassNo = @ClassNo ");
}
if (!queryParam["GraduateGo"].IsEmpty())
{
dp.Add("GraduateGo",queryParam["GraduateGo"].ToString(), DbType.String);
strSql.Append(" AND t.GraduateGo = @GraduateGo ");
}
if (!queryParam["UniversityLevel"].IsEmpty())
{
dp.Add("UniversityLevel",queryParam["UniversityLevel"].ToString(), DbType.String);
strSql.Append(" AND t.UniversityLevel = @UniversityLevel ");
}
return this.BaseRepository("CollegeMIS").FindList<StuGraduateStatisticEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取StuGraduateStatistic表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public StuGraduateStatisticEntity GetStuGraduateStatisticEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<StuGraduateStatisticEntity>(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<StuGraduateStatisticEntity>(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, StuGraduateStatisticEntity 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

}
}

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj Переглянути файл

@@ -1906,6 +1906,10 @@
<Compile Include="PersonnelManagement\ClassPatrol\ClassPatrolService.cs" />
<Compile Include="PersonnelManagement\ClassPatrol\ClassPatrolBLL.cs" />
<Compile Include="PersonnelManagement\ClassPatrol\ClassPatrolIBLL.cs" />
<Compile Include="EducationalAdministration\StuGraduateStatistic\StuGraduateStatisticEntity.cs" />
<Compile Include="EducationalAdministration\StuGraduateStatistic\StuGraduateStatisticService.cs" />
<Compile Include="EducationalAdministration\StuGraduateStatistic\StuGraduateStatisticBLL.cs" />
<Compile Include="EducationalAdministration\StuGraduateStatistic\StuGraduateStatisticIBLL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


Завантаження…
Відмінити
Зберегти