Browse Source

【增加】学生毕业离校:毕业生归档、办理离校手续等相关手续;修改毕业学生管理;

临城职教中职
dyy 2 years ago
parent
commit
f09597bc71
29 changed files with 3549 additions and 223 deletions
  1. +156
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs
  2. +5
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Graduate.cshtml
  3. +57
    -26
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Graduate.js
  4. +61
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.cshtml
  5. +180
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.js
  6. +61
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.cshtml
  7. +180
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.js
  8. +61
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.cshtml
  9. +179
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.js
  10. +61
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.cshtml
  11. +180
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.js
  12. +61
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.cshtml
  13. +180
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.js
  14. +61
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.cshtml
  15. +180
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.js
  16. +61
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.cshtml
  17. +180
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js
  18. +20
    -8
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.cshtml
  19. +397
    -15
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.js
  20. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndex.js
  21. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  22. +7
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoEntity.cs
  23. +140
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs
  24. +86
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs
  25. +31
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs
  26. +393
    -27
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs
  27. +474
    -132
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateEntity.cs
  28. +67
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateService.cs
  29. +15
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs

+ 156
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs View File

@@ -81,6 +81,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View();
}
/// <summary>
/// 毕业归档
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult Graduate()
{
@@ -188,6 +192,71 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
return View(stuInfoBasicEntity);
}

/// <summary>
/// 离校手续-图书资料归还
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult GraduateReturnBooks()
{
return View();
}
/// <summary>
/// 离校手续-就业协议备案
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult GraduateEmployAgree()
{
return View();
}
/// <summary>
/// 离校手续-学杂费结算
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult GraduateFeeSettle()
{
return View();
}
/// <summary>
/// 离校手续-办理退住手续
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult GraduateCheckOut()
{
return View();
}
/// <summary>
/// 离校手续-校园卡注销
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult GraduateCardDeregistrate()
{
return View();
}
/// <summary>
/// 离校手续-毕业证领取
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult GraduateDiplomaReceive()
{
return View();
}
/// <summary>
/// 离校手续-档案与组织关系转出
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult GraduateFileTransfer()
{
return View();
}


#endregion


@@ -344,10 +413,94 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
[HttpPost]
[AjaxOnly]

public ActionResult GetCard(string keyValue)
public ActionResult GetCard(string keyValue,string status)
{
stuInfoBasicIBLL.GetCard(keyValue);
return Success("领取成功");
stuInfoBasicIBLL.GetCard(keyValue,status);
return Success("操作成功");
}

/// <summary>
/// 图书资料归还
/// </summary>
/// <param name="keyValue">学生id</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]

public ActionResult IsReturnBooks(string keyValue, string status)
{
stuInfoBasicIBLL.IsReturnBooks(keyValue, status);
return Success("操作成功");
}

/// <summary>
/// 就业协议备案
/// </summary>
/// <param name="keyValue">学生id</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]

public ActionResult IsEmployAgree(string keyValue, string status)
{
stuInfoBasicIBLL.IsEmployAgree(keyValue, status);
return Success("操作成功");
}

/// <summary>
/// 学杂费结算
/// </summary>
/// <param name="keyValue">学生id</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]

public ActionResult IsFeeSettle(string keyValue, string status)
{
stuInfoBasicIBLL.IsFeeSettle(keyValue, status);
return Success("操作成功");
}

/// <summary>
/// 办理退住手续
/// </summary>
/// <param name="keyValue">学生id</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]

public ActionResult IsCheckOut(string keyValue, string status)
{
stuInfoBasicIBLL.IsCheckOut(keyValue, status);
return Success("操作成功");
}

/// <summary>
/// 校园卡注销
/// </summary>
/// <param name="keyValue">学生id</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]

public ActionResult IsCardDeregistrate(string keyValue, string status)
{
stuInfoBasicIBLL.IsCardDeregistrate(keyValue, status);
return Success("操作成功");
}

/// <summary>
/// 档案与组织关系转出
/// </summary>
/// <param name="keyValue">学生id</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]

public ActionResult IsFileTransfer(string keyValue, string status)
{
stuInfoBasicIBLL.IsFileTransfer(keyValue, status);
return Success("操作成功");
}
/// <summary>
/// 学生毕业归档


+ 5
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Graduate.cshtml View File

@@ -1,6 +1,8 @@
@{
ViewBag.Title = "学生学籍";
Layout = "~/Views/Shared/_Index.cshtml";
/**/

ViewBag.Title = "学生学籍";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout ">
<div class="lr-layout-center">
@@ -42,12 +44,11 @@
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class="lr-layout-tool-right" style="height:60px;">
<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">
<a id="lr_getcard" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;领证</a>
<a id="lr_store" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;归档</a>
</div>
</div>


+ 57
- 26
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Graduate.js View File

@@ -39,7 +39,7 @@ var bootstrap = function ($, learun) {
});
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#FinishSchoolMark').lrselect({
data: [{ text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
data: [{ text: "已毕业", value: "2" },{ text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
text: "text",
value: "value"
})
@@ -47,26 +47,16 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () {
location.reload();
});
$('#lr_getcard').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认领取毕业证!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
})
//归档
$('#lr_store').on('click', function () {
learun.layerConfirm('1.毕业生归档必须在6-8月份进行; <br> 2.归档后的学生信息如:操行、奖惩、成绩、毕业证书等只有通过毕业生信息管理才能查询或打印;<br> 3.毕业学生的账户将自动取消;<br> 4.学生所占的床位也将自动退掉;<br> 5.学生所在的班级置为已毕业班级;<br> 6.归档操作后不可撤消,请谨慎操作!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/StuStore', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
learun.layerConfirm('1.毕业生归档必须在6-8月份进行; <br> 2.归档后的学生信息如:操行、奖惩、成绩、毕业证书等只有通过毕业生信息管理才能查询或打印;<br> 3.毕业学生的账户将自动取消;<br> 4.学生所占的床位也将自动退掉;<br> 5.学生所在的班级置为已毕业班级;<br> 6.归档操作后不可撤消,请谨慎操作!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/StuStore', { }, function () {
refreshGirdData();
});
}
});
})

},
@@ -75,10 +65,10 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 100, align: "left" },
{ label: "学号", name: "StuNo", width: 130, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 80, align: "left",
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
@@ -122,7 +112,7 @@ var bootstrap = function ($, learun) {
});
}
},
{ label: "年级", name: "Grade", width: 100, align: "left" },
{ label: "年级", name: "Grade", width: 50, align: "left" },
{
label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
@@ -134,6 +124,7 @@ var bootstrap = function ($, learun) {
});
}
},
{ label: "毕业证书号", name: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
@@ -141,15 +132,55 @@ var bootstrap = function ($, learun) {
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {

return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业证", name: "DiplomaNo", width: 100, align: "left" },
{ label: "毕业时间", name: "FinishSchoolDate", width: 100, align: "left" },
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "图书资料归还状态", name: "ReturnBooksStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已归还" : "未归还"
}
},
{ label: "图书资料归还时间", name: "ReturnBooksDate", width: 130, align: "left" },
{
label: "就业协议备案状态", name: "EmployAgreeStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已备案" : "未备案"
}
},
{ label: "就业协议备案时间", name: "EmployAgreeDate", width: 130, align: "left" },
{
label: "学杂费结算状态", name: "FeeSettleStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已结算" : "未结算"
}
},
{ label: "学杂费结算时间", name: "FeeSettleDate", width: 130, align: "left" },
{
label: "办理退住手续状态", name: "CheckOutStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已办理" : "未办理"
}
},
{ label: "办理退住手续时间", name: "CheckOutDate", width: 130, align: "left" },
{
label: "校园卡注销状态", name: "CardDeregistrateStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已注销" : "未注销"
}
},
{ label: "校园卡注销时间", name: "CardDeregistrateDate", width: 130, align: "left" },
{
label: "毕业证领取状态", name: "DiplomaReceiveStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已领取" : "未领取"
}
},
{ label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 130, align: "left" },
{
label: "档案与组织关系转出状态", name: "FileTransferStatus", width: 150, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已转出" : "未转出"
}
},
{ label: "档案与组织关系转出时间", name: "FileTransferDate", width: 150, align: "left" },
],
mainId: 'StuId',
isPage: true,


+ 61
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.cshtml View File

@@ -0,0 +1,61 @@
@{
/**/

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-6 lr-form-item">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 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="Grade" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo"></div>
</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="FinishSchoolMark"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right" style="height:60px;">
<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">
<a id="lr_cardderegistrate" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;校园卡注销</a>
<a id="lr_cancelcardderegistrate" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;取消校园卡注销</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.js")

+ 180
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.js View File

@@ -0,0 +1,180 @@
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);
}, 290, 400);
$('#DeptNo').lrDataSourceSelect({
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
var deptno = "";
if (val) {
deptno = val.deptno;
}
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
text: "MajorName",
value: "MajorNo"
})
}
});
$('#MajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
function (val) {
var majorNo = '';
if (val) {
majorNo = val.MajorNo;
}
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo,
text: "ClassName",
value: "ClassNo"
})
}
});
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#FinishSchoolMark').lrselect({
data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
text: "text",
value: "value"
})
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
//校园卡注销
$('#lr_cardderegistrate').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认注销校园卡!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCardDeregistrate', { keyValue: keyValue,status:'1' }, function () {
refreshGirdData();
});
}
});
}
})
//取消校园卡注销
$('#lr_cancelcardderegistrate').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消注销校园卡!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCardDeregistrate', { keyValue: keyValue, status: '0' }, function () {
refreshGirdData();
});
}
});
}
})

},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 130, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
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: 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: "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: "Grade", width: 50, align: "left" },
{
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: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
return '待准许';
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {
return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "校园卡注销状态", name: "CardDeregistrateStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已注销" : "未注销"
}
},
{ label: "校园卡注销时间", name: "CardDeregistrateDate", width: 100, align: "left" },
],
mainId: 'StuId',
isPage: true,
isMultiselect: true,

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 61
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.cshtml View File

@@ -0,0 +1,61 @@
@{
/**/

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-6 lr-form-item">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 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="Grade" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo"></div>
</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="FinishSchoolMark"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right" style="height:60px;">
<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">
<a id="lr_checkout" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;办理退住手续</a>
<a id="lr_cancelcheckout" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;取消办理退住手续</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.js")

+ 180
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.js View File

@@ -0,0 +1,180 @@
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);
}, 290, 400);
$('#DeptNo').lrDataSourceSelect({
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
var deptno = "";
if (val) {
deptno = val.deptno;
}
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
text: "MajorName",
value: "MajorNo"
})
}
});
$('#MajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
function (val) {
var majorNo = '';
if (val) {
majorNo = val.MajorNo;
}
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo,
text: "ClassName",
value: "ClassNo"
})
}
});
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#FinishSchoolMark').lrselect({
data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
text: "text",
value: "value"
})
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
//办理退住手续
$('#lr_checkout').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认办理退住手续!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCheckOut', { keyValue: keyValue,status:'1' }, function () {
refreshGirdData();
});
}
});
}
})
//取消办理退住手续
$('#lr_cancelcheckout').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消办理退住手续!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCheckOut', { keyValue: keyValue, status: '0' }, function () {
refreshGirdData();
});
}
});
}
})

},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 130, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
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: 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: "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: "Grade", width: 50, align: "left" },
{
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: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
return '待准许';
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {
return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "办理退住手续状态", name: "CheckOutStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已办理" : "未办理"
}
},
{ label: "办理退住手续时间", name: "CheckOutDate", width: 100, align: "left" },
],
mainId: 'StuId',
isPage: true,
isMultiselect: true,

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 61
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.cshtml View File

@@ -0,0 +1,61 @@
@{
/**/

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-6 lr-form-item">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 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="Grade" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo"></div>
</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="FinishSchoolMark"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right" style="height:60px;">
<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">
<a id="lr_getcard" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;毕业证领取</a>
<a id="lr_cancelgetcard" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;取消毕业证领取</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.js")

+ 179
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.js View File

@@ -0,0 +1,179 @@
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);
}, 290, 400);
$('#DeptNo').lrDataSourceSelect({
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
var deptno = "";
if (val) {
deptno = val.deptno;
}
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
text: "MajorName",
value: "MajorNo"
})
}
});
$('#MajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
function (val) {
var majorNo = '';
if (val) {
majorNo = val.MajorNo;
}
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo,
text: "ClassName",
value: "ClassNo"
})
}
});
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#FinishSchoolMark').lrselect({
data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
text: "text",
value: "value"
})
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
//毕业证领取
$('#lr_getcard').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认领取毕业证!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue,status:'1' }, function () {
refreshGirdData();
});
}
});
}
})
//取消毕业证领取
$('#lr_cancelgetcard').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消领取毕业证!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue, status: '0' }, function () {
refreshGirdData();
});
}
});
}
})
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 130, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
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: 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: "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: "Grade", width: 50, align: "left" },
{
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: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
return '待准许';
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {
return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "毕业证领取状态", name: "DiplomaReceiveStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已领取" : "未领取"
}
},
{ label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 100, align: "left" },
],
mainId: 'StuId',
isPage: true,
isMultiselect: true,

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 61
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.cshtml View File

@@ -0,0 +1,61 @@
@{
/**/

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-6 lr-form-item">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 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="Grade" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo"></div>
</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="FinishSchoolMark"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right" style="height:60px;">
<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">
<a id="lr_employagree" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;就业协议备案</a>
<a id="lr_cancelemployagree" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;取消就业协议备案</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.js")

+ 180
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.js View File

@@ -0,0 +1,180 @@
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);
}, 290, 400);
$('#DeptNo').lrDataSourceSelect({
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
var deptno = "";
if (val) {
deptno = val.deptno;
}
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
text: "MajorName",
value: "MajorNo"
})
}
});
$('#MajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
function (val) {
var majorNo = '';
if (val) {
majorNo = val.MajorNo;
}
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo,
text: "ClassName",
value: "ClassNo"
})
}
});
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#FinishSchoolMark').lrselect({
data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
text: "text",
value: "value"
})
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
//就业协议备案
$('#lr_employagree').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认备案就业协议!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsEmployAgree', { keyValue: keyValue,status:'1' }, function () {
refreshGirdData();
});
}
});
}
})
//取消就业协议备案
$('#lr_cancelemployagree').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消备案就业协议!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsEmployAgree', { keyValue: keyValue, status: '0' }, function () {
refreshGirdData();
});
}
});
}
})

},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 130, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
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: 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: "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: "Grade", width: 50, align: "left" },
{
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: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
return '待准许';
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {
return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "就业协议备案状态", name: "EmployAgreeStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已备案" : "未备案"
}
},
{ label: "就业协议备案时间", name: "EmployAgreeDate", width: 100, align: "left" },
],
mainId: 'StuId',
isPage: true,
isMultiselect: true,

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 61
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.cshtml View File

@@ -0,0 +1,61 @@
@{
/**/

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-6 lr-form-item">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 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="Grade" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo"></div>
</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="FinishSchoolMark"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right" style="height:60px;">
<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">
<a id="lr_feesettle" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;学杂费结算</a>
<a id="lr_cancelfeesettle" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;取消学杂费结算</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.js")

+ 180
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.js View File

@@ -0,0 +1,180 @@
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);
}, 290, 400);
$('#DeptNo').lrDataSourceSelect({
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
var deptno = "";
if (val) {
deptno = val.deptno;
}
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
text: "MajorName",
value: "MajorNo"
})
}
});
$('#MajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
function (val) {
var majorNo = '';
if (val) {
majorNo = val.MajorNo;
}
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo,
text: "ClassName",
value: "ClassNo"
})
}
});
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#FinishSchoolMark').lrselect({
data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
text: "text",
value: "value"
})
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
//学杂费结算
$('#lr_feesettle').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认结算学杂费!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFeeSettle', { keyValue: keyValue,status:'1' }, function () {
refreshGirdData();
});
}
});
}
})
//取消学杂费结算
$('#lr_cancelfeesettle').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消结算学杂费!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFeeSettle', { keyValue: keyValue, status: '0' }, function () {
refreshGirdData();
});
}
});
}
})

},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 130, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
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: 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: "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: "Grade", width: 50, align: "left" },
{
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: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
return '待准许';
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {
return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "学杂费结算状态", name: "FeeSettleStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已结算" : "未结算"
}
},
{ label: "学杂费结算时间", name: "FeeSettleDate", width: 100, align: "left" },
],
mainId: 'StuId',
isPage: true,
isMultiselect: true,

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 61
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.cshtml View File

@@ -0,0 +1,61 @@
@{
/**/

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-6 lr-form-item">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 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="Grade" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo"></div>
</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="FinishSchoolMark"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right" style="height:60px;">
<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">
<a id="lr_filetransfer" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;档案与组织关系转出</a>
<a id="lr_cancelfiletransfer" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;取消档案与组织关系转出</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.js")

+ 180
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.js View File

@@ -0,0 +1,180 @@
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);
}, 290, 400);
$('#DeptNo').lrDataSourceSelect({
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
var deptno = "";
if (val) {
deptno = val.deptno;
}
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
text: "MajorName",
value: "MajorNo"
})
}
});
$('#MajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
function (val) {
var majorNo = '';
if (val) {
majorNo = val.MajorNo;
}
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo,
text: "ClassName",
value: "ClassNo"
})
}
});
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#FinishSchoolMark').lrselect({
data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
text: "text",
value: "value"
})
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
//档案与组织关系转出
$('#lr_filetransfer').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认转出档案与组织关系!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFileTransfer', { keyValue: keyValue,status:'1' }, function () {
refreshGirdData();
});
}
});
}
})
//取消档案与组织关系转出
$('#lr_cancelfiletransfer').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消转出档案与组织关系!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFileTransfer', { keyValue: keyValue, status: '0' }, function () {
refreshGirdData();
});
}
});
}
})

},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 130, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
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: 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: "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: "Grade", width: 50, align: "left" },
{
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: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
return '待准许';
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {
return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "档案与组织关系转出状态", name: "FileTransferStatus", width: 150, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已转出" : "未转出"
}
},
{ label: "档案与组织关系转出时间", name: "FileTransferDate", width: 100, align: "left" },
],
mainId: 'StuId',
isPage: true,
isMultiselect: true,

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 61
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.cshtml View File

@@ -0,0 +1,61 @@
@{
/**/

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-6 lr-form-item">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 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="Grade" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo"></div>
</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="FinishSchoolMark"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right" style="height:60px;">
<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">
<a id="lr_returnbooks" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;图书资料归还</a>
<a id="lr_cancelreturnbooks" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;取消图书资料归还</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js")

+ 180
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js View File

@@ -0,0 +1,180 @@
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);
}, 290, 400);
$('#DeptNo').lrDataSourceSelect({
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) {
var deptno = "";
if (val) {
deptno = val.deptno;
}
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno,
text: "MajorName",
value: "MajorNo"
})
}
});
$('#MajorNo').lrDataSourceSelect({
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select:
function (val) {
var majorNo = '';
if (val) {
majorNo = val.MajorNo;
}
$('#ClassNo').lrselectRefresh({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo,
text: "ClassName",
value: "ClassNo"
})
}
});
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#FinishSchoolMark').lrselect({
data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }],
text: "text",
value: "value"
})
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
//图书资料归还
$('#lr_returnbooks').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认归还图书资料!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsReturnBooks', { keyValue: keyValue,status:'1' }, function () {
refreshGirdData();
});
}
});
}
})
//取消图书资料归还
$('#lr_cancelreturnbooks').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('StuId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认取消归还图书资料!', function (res) {
if (res) {
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsReturnBooks', { keyValue: keyValue, status: '0' }, function () {
refreshGirdData();
});
}
});
}
})

},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 130, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
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: 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: "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: "Grade", width: 50, align: "left" },
{
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: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
return '待准许';
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {
return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "图书资料归还状态", name: "ReturnBooksStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已归还" : "未归还"
}
},
{ label: "图书资料归还时间", name: "ReturnBooksDate", width: 100, align: "left" },
],
mainId: 'StuId',
isPage: true,
isMultiselect: true,

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 20
- 8
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.cshtml View File

@@ -10,14 +10,6 @@
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 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>
<div id="DeptNo"></div>
@@ -30,6 +22,26 @@
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">年级</div>
<div id="Grade"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="GenderNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">民族</div>
<div id="NationalityNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">身份证号</div>
<input id="IdentityCardNo" type="text" class="form-control" />
</div>
</div>
</div>
</div>


+ 397
- 15
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.js View File

@@ -9,10 +9,66 @@ var bootstrap = function ($, learun) {
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
}, 300, 400);
$('#DeptNo').lrselect({
allowSearch: true,
value: "deptno",
text: "deptname",
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
select: function (item) {
if (item) {
$('#MajorNo').lrselectRefresh({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" }
});
} else {
$('#MajorNo').lrselectRefresh({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
param: { strWhere: "1=1 AND CheckMark=1" }
});
}

}
});
$('#MajorNo').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
value: "majorno",
text: "majorname",
param: { strWhere: "1=1 AND CheckMark=1" },
select: function (item) {
if (item) {
$('#ClassNo').lrselectRefresh({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" }
});
} else {
$('#ClassNo').lrselectRefresh({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: "1=1 AND CheckMark=1" }
});
}
}
});
$('#ClassNo').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: "1=1 AND CheckMark=1" },
value: "classno",
text: "classname"
});
$('#Grade').lrselect({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
value: "value",
text: "text",
});
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' });
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' });
$('#FiveYear').lrDataItemSelect({ code: 'PieceCultivateWay' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -22,11 +78,18 @@ var bootstrap = function ($, learun) {
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoGraduate/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 100, align: "left" },
{
label: "审核状态", name: "CheckMark", width: 80, align: "center",
formatter: function (cellvalue) {
return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
}
},
{ label: "学生编号", name: "StuNo", width: 100, align: "left" },
{ label: "学籍号", name: "StuCode", width: 100, align: "left" },
{ label: "学号", name: "ProvinceCode", width: 100, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 80, align: "left",
@@ -34,7 +97,12 @@ var bootstrap = function ($, learun) {
return cellvalue == true ? "男" : "女";
}
},
{ label: "出生日期", name: "Birthday", width: 100, align: "left" },
{
label: "出生日期", name: "Birthday", width: 100, align: "left",
formatter: function (value) {
return learun.formatDate(value, 'yyyy-MM-dd');
}
},
{ label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
{
label: "民族", name: "NationalityNo", width: 100, align: "left",
@@ -48,6 +116,19 @@ var bootstrap = function ($, learun) {
});
}
},
{
label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'PolityStatus',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "年级", name: "Grade", width: 100, align: "left" },
{
label: "系所", name: "DeptNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
@@ -87,7 +168,6 @@ var bootstrap = function ($, learun) {
});
}
},
{ label: "年级", name: "Grade", width: 100, align: "left" },
{
label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
@@ -122,21 +202,323 @@ var bootstrap = function ($, learun) {
}
},
{ label: "报到日期", name: "RegisterDate", width: 100, align: "left" },
{ label: "入学方式", name: "EntranceWay", width: 100, align: "left" },
{ label: "入学年月", name: "EntranceDate", width: 100, align: "left" },
{ label: "余额", name: "Balance", width: 100, align: "left" },
{ label: "通信地址", name: "MailAddress", width: 100, align: "left" },
{ label: "家庭地址", name: "MailAddress", width: 100, align: "left" },
{ label: "联系电话", name: "mobile", width: 100, align: "left" },
{ label: "户口所在地", name: "FatherUnit", width: 100, align: "left" },
{ label: "档案所在地", name: "MatherUnit", width: 100, align: "left" },
{
label: "异动状态", name: "AbmormityMoveMark", width: 80, align: "center",
formatter: function (cellvalue) {
return cellvalue == "1" ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
label: "五年一贯制", name: "FiveYear", width: 100, align: "left"
, formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'PieceCultivateWay',
callback: function (_data) {
callback(_data.text);
}
});
}
},
//{
// label: "异动状态", name: "AbmormityMoveMark", width: 80, align: "center",
// formatter: function (cellvalue) {
// return cellvalue == "1" ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
// }
//},
{
label: "审核状态", name: "CheckMark", width: 80, align: "center",
label: "是否上传头像", name: "Photo", width: 80, align: "center",
formatter: function (cellvalue) {
return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
if (cellvalue != null && cellvalue != "" && cellvalue != undefined) {
return cellvalue = "<span class=\"label label-success\">是</span>";
} else {
return cellvalue = "<span class=\"label label-danger\">否</span>";
}
}
}
},
{ label: "拼音", name: "SpellFull", width: 100, align: "left", ishide: true },
{ label: "就读方式", name: "StudyingWay", width: 100, align: "left", ishide: true },
{
label: "国籍", name: "CountryNo", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'BCdCountry',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "港澳台侨外", name: "OverseasChineseNo", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'BCdOverseasChinese',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "婚姻状况", name: "MarriageStatus", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'BCdOverseasChinese',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "乘火车区间", name: "TrainInterval", width: 100, align: "left", ishide: true, },
{ label: "是否随迁子女", name: "IsTrailChildren", width: 100, align: "left", ishide: true, },
{ label: "生源地行政区划码", name: "StuPlaceCode", width: 100, align: "left", ishide: true, },
{ label: "出生地行政区划码", name: "BirthPlaceCode", width: 100, align: "left", ishide: true, },
{ label: "籍贯地行政区划码", name: "NativePlaceCode", width: 100, align: "left", ishide: true, },
{ label: "所属派出所", name: "BelongPolice", width: 100, align: "left", ishide: true, },
{ label: "户口所在地行政区划码", name: "ResidencePlaceCode", width: 100, align: "left", ishide: true, },
{ label: "是否农户", name: "ResidenceNo", width: 100, align: "left", ishide: true, },
{
label: "学生居住地类型", name: "StuLivePlaceType", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'StuLivePlaceType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "健康状况", name: "HealthStatusNo", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'StuHealthType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "学生来源", name: "StuOrigin", width: 100, align: "left", ishide: true, },
{ label: "招生对象", name: "RecruitObject", width: 100, align: "left", ishide: true, },
{ label: "贫困户否建档立卡贫困户", name: "PoorIsRecord", width: 100, align: "left", ishide: true, },
{
label: "招生方式", name: "RecruitWay", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'RecruitWay',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "联招合作类型", name: "RecruitCooperateType", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'RecruitCooperateType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "准考证号", name: "AdmissionNo", width: 100, align: "left", ishide: true, },
{ label: "考生号", name: "ksh", width: 100, align: "left", ishide: true, },
{ label: "考试总分", name: "ExamScore", width: 100, align: "left", ishide: true, },
{ label: "联招合作办学形式", name: "RecruitCooperateForm", width: 100, align: "left", ishide: true, },
{ label: "联招合作学校代码", name: "RecruitCooperateSchoolNo", width: 100, align: "left", ishide: true, },
{ label: "校外教学点", name: "SchoolOutsidePlace", width: 100, align: "left", ishide: true, },
{ label: "英文姓名", name: "EnglishName", width: 100, align: "left", ishide: true, },
{ label: "家庭邮政编码", name: "PostalCode", width: 100, align: "left", ishide: true, },
{ label: "其他联系方式", name: "OtherContact", width: 100, align: "left", ishide: true, },
{ label: "成员1姓名", name: "OneName", width: 100, align: "left", ishide: true, },
{ label: "成员1联系电话", name: "OneMobile", width: 100, align: "left", ishide: true },
{
label: "成员1关系", name: "OneMembership", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'GuardianType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "成员1是否监护人", name: "OneIsGuardian", width: 100, align: "left", ishide: true, },
{
label: "成员1出生年月", name: "OneBirthday", width: 100, align: "left", ishide: true,
formatter: function (value) {
return learun.formatDate(value, 'yyyy-MM-dd');
}
},
{
label: "成员1身份证件类型", name: "OneIdCardType", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'IdCardType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "成员1身份证件号", name: "OneIdCardNo", width: 100, align: "left", ishide: true, },
{
label: "成员1民族", name: "OneNationalityNo", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'National',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "成员1健康状况", name: "OneHealthStatus", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'EpiHealth',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "成员1工作或学习单位", name: "OneJob", width: 100, align: "left", ishide: true, },
{ label: "成员2姓名", name: "TwoName", width: 100, align: "left", ishide: true, },
{ label: "成员2联系电话", name: "TwoMobile", width: 100, align: "left", ishide: true },
{
label: "成员2关系", name: "TwoMembership", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'GuardianType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "成员2是否监护人", name: "TwoIsGuardian", width: 100, align: "left", ishide: true, },
{
label: "成员2出生年月", name: "TwoBirthday", width: 100, align: "left", ishide: true,
formatter: function (value) {
return learun.formatDate(value, 'yyyy-MM-dd');
}
},
{
label: "成员2身份证件类型", name: "TwoIdCardType", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'IdCardType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "成员2身份证件号", name: "TwoIdCardNo", width: 100, align: "left", ishide: true, },
{
label: "成员2民族", name: "TwoNationalityNo", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'National',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "成员2健康状况", name: "TwoHealthStatus", width: 100, align: "left", ishide: true,
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'EpiHealth',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "成员2工作或学习单位", name: "TwoJob", width: 100, align: "left", ishide: true, },
{ label: "成员2职务", name: "TwoPosition", width: 100, align: "left", ishide: true, },
{ label: "毕业证书号", name: "DiplomaNo", width: 100, align: "left" },
{
label: '毕业状态', name: 'FinishSchoolMark', width: 100, align: "left", formatter: function (val) {
if (val == '0') {
return '待准许';
} else if (val == "1") {
return '准许毕业';
} else if (val == '2') {
return '已毕业';
} else {
return '待准许';
}
}
},
{ label: "毕业时间", name: "FinishSchoolDate", width: 130, align: "left" },
{
label: "图书资料归还状态", name: "ReturnBooksStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已归还" : "未归还"
}
},
{ label: "图书资料归还时间", name: "ReturnBooksDate", width: 130, align: "left" },
{
label: "就业协议备案状态", name: "EmployAgreeStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已备案" : "未备案"
}
},
{ label: "就业协议备案时间", name: "EmployAgreeDate", width: 130, align: "left" },
{
label: "学杂费结算状态", name: "FeeSettleStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已结算" : "未结算"
}
},
{ label: "学杂费结算时间", name: "FeeSettleDate", width: 130, align: "left" },
{
label: "办理退住手续状态", name: "CheckOutStatus", width: 120, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已办理" : "未办理"
}
},
{ label: "办理退住手续时间", name: "CheckOutDate", width: 130, align: "left" },
{
label: "校园卡注销状态", name: "CardDeregistrateStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已注销" : "未注销"
}
},
{ label: "校园卡注销时间", name: "CardDeregistrateDate", width: 130, align: "left" },
{
label: "毕业证领取状态", name: "DiplomaReceiveStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已领取" : "未领取"
}
},
{ label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 130, align: "left" },
{
label: "档案与组织关系转出状态", name: "FileTransferStatus", width: 150, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已转出" : "未转出"
}
},
{ label: "档案与组织关系转出时间", name: "FileTransferDate", width: 150, align: "left" },
],
mainId: 'StuId',
isPage: true,


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndex.js View File

@@ -138,6 +138,7 @@ var bootstrap = function ($, learun) {
}
},
{ label: '是否有补考', name: 'IsNoPass', width: 100, align: "left" },
{ label: '由系统判定学生毕业项目达标的状态', name: 'GraduateStandardStateBySystem', width: 100, align: "left" },
];

$("#gridtable")[0].dfop = undefined;


+ 14
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -1106,6 +1106,13 @@
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasicChange\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\FormTran.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\FormOfDC.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateDiplomaReceive.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateFileTransfer.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateCardDeregistrate.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateCheckOut.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateFeeSettle.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateEmployAgree.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateReturnBooks.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\Graduate.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\CreateGraduateNo.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\CreateGraduateNoForm.js" />
@@ -1121,6 +1128,13 @@
<Content Include="Areas\EducationalAdministration\Views\ArrangeLessonTerm\IndexLessonTermStu.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\ArrangeLessonTerm\IndexLessonTermTeach.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\ClassInfo\FormArrange.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateReturnBooks.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateEmployAgree.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateFeeSettle.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateCheckOut.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateCardDeregistrate.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateFileTransfer.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\GraduateDiplomaReceive.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" />


+ 7
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoEntity.cs View File

@@ -92,7 +92,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
public bool? SyncFlag { get; set; }

/// <summary>
/// 班级状态
/// 班级类型
/// </summary>
[Column("CLASSTYPE")]
public string ClassType { get; set; }
@@ -101,6 +101,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
[Column("ISSEPARATE")]
public bool? IsSeparate { get; set; }

/// <summary>
/// 班级状态(0未毕业班级,1已毕业班级)
/// </summary>
[Column("CLASSSTATUS")]
public string ClassStatus { get; set; }
#endregion

#region 扩展操作


+ 140
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs View File

@@ -381,11 +381,149 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void GetCard(string keyValue)
public void GetCard(string keyValue,string status)
{
try
{
stuInfoBasicService.GetCard(keyValue);
stuInfoBasicService.GetCard(keyValue,status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 图书资料归还
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsReturnBooks(string keyValue, string status)
{
try
{
stuInfoBasicService.IsReturnBooks(keyValue, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 就业协议备案
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsEmployAgree(string keyValue, string status)
{
try
{
stuInfoBasicService.IsEmployAgree(keyValue, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 学杂费结算
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsFeeSettle(string keyValue, string status)
{
try
{
stuInfoBasicService.IsFeeSettle(keyValue, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 办理退住手续
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsCheckOut(string keyValue, string status)
{
try
{
stuInfoBasicService.IsCheckOut(keyValue, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 校园卡注销
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsCardDeregistrate(string keyValue, string status)
{
try
{
stuInfoBasicService.IsCardDeregistrate(keyValue, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 档案与组织关系转出
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsFileTransfer(string keyValue, string status)
{
try
{
stuInfoBasicService.IsFileTransfer(keyValue, status);
}
catch (Exception ex)
{


+ 86
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs View File

@@ -297,7 +297,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("STUNOCHANGEMARK")]
public string StuNoChangeMark { get; set; }
/// <summary>
/// 毕业标志
/// 毕业标志(0待准许,1准许毕业,2已毕业,)
/// </summary>
[Column("FINISHSCHOOLMARK")]
public string FinishSchoolMark { get; set; }
@@ -799,6 +799,91 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
[Column("TWOMOBILE")]
public string TwoMobile { get; set; }

/// <summary>
/// 图书资料归还状态
/// </summary>
/// <returns></returns>
[Column("RETURNBOOKSSTATUS")]
public string ReturnBooksStatus { get; set; }
/// <summary>
/// 图书资料归还时间
/// </summary>
/// <returns></returns>
[Column("RETURNBOOKSDATE")]
public DateTime? ReturnBooksDate { get; set; }
/// <summary>
/// 就业协议备案状态
/// </summary>
/// <returns></returns>
[Column("EMPLOYAGREESTATUS")]
public string EmployAgreeStatus { get; set; }
/// <summary>
/// 就业协议备案时间
/// </summary>
/// <returns></returns>
[Column("EMPLOYAGREEDATE")]
public DateTime? EmployAgreeDate { get; set; }
/// <summary>
/// 学杂费结算状态
/// </summary>
/// <returns></returns>
[Column("FEESETTLESTATUS")]
public string FeeSettleStatus { get; set; }
/// <summary>
/// 学杂费结算时间
/// </summary>
/// <returns></returns>
[Column("FEESETTLEDATE")]
public DateTime? FeeSettleDate { get; set; }
/// <summary>
/// 办理退住手续状态
/// </summary>
/// <returns></returns>
[Column("CHECKOUTSTATUS")]
public string CheckOutStatus { get; set; }
/// <summary>
/// 办理退住手续时间
/// </summary>
/// <returns></returns>
[Column("CHECKOUTDATE")]
public DateTime? CheckOutDate { get; set; }
/// <summary>
/// 校园卡注销状态
/// </summary>
/// <returns></returns>
[Column("CARDDEREGISTRATESTATUS")]
public string CardDeregistrateStatus { get; set; }
/// <summary>
/// 校园卡注销时间
/// </summary>
/// <returns></returns>
[Column("CARDDEREGISTRATEDATE")]
public DateTime? CardDeregistrateDate { get; set; }
/// <summary>
/// 毕业证领取状态
/// </summary>
/// <returns></returns>
[Column("DIPLOMARECEIVESTATUS")]
public string DiplomaReceiveStatus { get; set; }
/// <summary>
/// 毕业证领取时间
/// </summary>
/// <returns></returns>
[Column("DIPLOMARECEIVEDATE")]
public DateTime? DiplomaReceiveDate { get; set; }
/// <summary>
/// 档案与组织关系转出状态
/// </summary>
/// <returns></returns>
[Column("FILETRANSFERSTATUS")]
public string FileTransferStatus { get; set; }
/// <summary>
/// 档案与组织关系转出状态时间
/// </summary>
/// <returns></returns>
[Column("FILETRANSFERDATE")]
public DateTime? FileTransferDate { get; set; }
#endregion

#region 扩展操作


+ 31
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs View File

@@ -59,7 +59,37 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 领取毕业证
/// </summary>
/// <param name="keyValue"></param>
void GetCard(string keyValue);
void GetCard(string keyValue,string status);
/// <summary>
/// 图书资料归还
/// </summary>
/// <param name="keyValue"></param>
void IsReturnBooks(string keyValue, string status);
/// <summary>
/// 就业协议备案
/// </summary>
/// <param name="keyValue"></param>
void IsEmployAgree(string keyValue, string status);
/// <summary>
/// 学杂费结算
/// </summary>
/// <param name="keyValue"></param>
void IsFeeSettle(string keyValue, string status);
/// <summary>
/// 办理退住手续
/// </summary>
/// <param name="keyValue"></param>
void IsCheckOut(string keyValue, string status);
/// <summary>
/// 校园卡注销
/// </summary>
/// <param name="keyValue"></param>
void IsCardDeregistrate(string keyValue, string status);
/// <summary>
/// 档案与组织关系转出
/// </summary>
/// <param name="keyValue"></param>
void IsFileTransfer(string keyValue, string status);
void StuStore();




+ 393
- 27
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs View File

@@ -512,18 +512,364 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void GetCard(string keyValue)
public void GetCard(string keyValue,string status)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (status == "1")//领取
{
var now = DateTime.Now;
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET DiplomaReceiveStatus='{status}',DiplomaReceiveDate='{now}' WHERE StuId='{item}'";
db.ExecuteBySql(sql);

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
//判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间;
var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and FileTransferStatus='1' ";
db.ExecuteBySql(sql2);
}
}
else
{

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET DiplomaReceiveStatus='{status}',DiplomaReceiveDate=null WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断毕业状态是否为已毕业,若是,则毕业状态修改为准许毕业,毕业时间为空;
var sql2 = $"UPDATE StuInfoBasic SET FinishSchoolMark='1',FinishSchoolDate=null WHERE StuId='{item}' and FinishSchoolMark='2' ";
db.ExecuteBySql(sql2);
}
}

db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 图书资料归还
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsReturnBooks(string keyValue, string status)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (status == "1")//归还
{
var now = DateTime.Now;
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET ReturnBooksStatus='{status}',ReturnBooksDate='{now}' WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间;
var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' ";
db.ExecuteBySql(sql2);
}
}
else
{

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET ReturnBooksStatus='{status}',ReturnBooksDate=null WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断毕业状态是否为已毕业,若是,则毕业状态修改为准许毕业,毕业时间为空;
var sql2 = $"UPDATE StuInfoBasic SET FinishSchoolMark='1',FinishSchoolDate=null WHERE StuId='{item}' and FinishSchoolMark='2' ";
db.ExecuteBySql(sql2);
}
}

db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 就业协议备案
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsEmployAgree(string keyValue, string status)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (status == "1")//备案
{
var now = DateTime.Now;
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET EmployAgreeStatus='{status}',EmployAgreeDate='{now}' WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间;
var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' ";
db.ExecuteBySql(sql2);
}
}
else
{

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET EmployAgreeStatus='{status}',EmployAgreeDate=null WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断毕业状态是否为已毕业,若是,则毕业状态修改为准许毕业,毕业时间为空;
var sql2 = $"UPDATE StuInfoBasic SET FinishSchoolMark='1',FinishSchoolDate=null WHERE StuId='{item}' and FinishSchoolMark='2' ";
db.ExecuteBySql(sql2);
}
}

db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 学杂费结算
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsFeeSettle(string keyValue, string status)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (status == "1")//结算
{
var now = DateTime.Now;
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET FeeSettleStatus='{status}',FeeSettleDate='{now}' WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间;
var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' ";
db.ExecuteBySql(sql2);
}
}
else
{

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET FeeSettleStatus='{status}',FeeSettleDate=null WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断毕业状态是否为已毕业,若是,则毕业状态修改为准许毕业,毕业时间为空;
var sql2 = $"UPDATE StuInfoBasic SET FinishSchoolMark='1',FinishSchoolDate=null WHERE StuId='{item}' and FinishSchoolMark='2' ";
db.ExecuteBySql(sql2);
}
}

db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 办理退住手续
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsCheckOut(string keyValue, string status)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (status == "1")//办理
{
var now = DateTime.Now;
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET CheckOutStatus='{status}',CheckOutDate='{now}' WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间;
var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' ";
db.ExecuteBySql(sql2);
}
}
else
{
var sql = $"UPDATE dbo.StuInfoBasic SET FinishSchoolMark='2',FinishSchoolDate=GETDATE() WHERE StuId='{item}'";
db.ExecuteBySql(sql);

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET CheckOutStatus='{status}',CheckOutDate=null WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断毕业状态是否为已毕业,若是,则毕业状态修改为准许毕业,毕业时间为空;
var sql2 = $"UPDATE StuInfoBasic SET FinishSchoolMark='1',FinishSchoolDate=null WHERE StuId='{item}' and FinishSchoolMark='2' ";
db.ExecuteBySql(sql2);
}
}

db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 校园卡注销
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsCardDeregistrate(string keyValue, string status)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (status == "1")//注销
{
var now = DateTime.Now;
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET CardDeregistrateStatus='{status}',CardDeregistrateDate='{now}' WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间;
var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' ";
db.ExecuteBySql(sql2);
}
}
else
{

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET CardDeregistrateStatus='{status}',CardDeregistrateDate=null WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断毕业状态是否为已毕业,若是,则毕业状态修改为准许毕业,毕业时间为空;
var sql2 = $"UPDATE StuInfoBasic SET FinishSchoolMark='1',FinishSchoolDate=null WHERE StuId='{item}' and FinishSchoolMark='2' ";
db.ExecuteBySql(sql2);
}
}

db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 档案与组织关系转出
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void IsFileTransfer(string keyValue, string status)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
if (status == "1")//转出
{
var now = DateTime.Now;
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET FileTransferStatus='{status}',FileTransferDate='{now}' WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间;
var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' ";
db.ExecuteBySql(sql2);
}
}
else
{

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var sql = $"UPDATE StuInfoBasic SET FileTransferStatus='{status}',FileTransferDate=null WHERE StuId='{item}'";
db.ExecuteBySql(sql);

//判断毕业状态是否为已毕业,若是,则毕业状态修改为准许毕业,毕业时间为空;
var sql2 = $"UPDATE StuInfoBasic SET FinishSchoolMark='1',FinishSchoolDate=null WHERE StuId='{item}' and FinishSchoolMark='2' ";
db.ExecuteBySql(sql2);
}
}

db.Commit();
}
catch (Exception ex)
@@ -545,32 +891,40 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <returns></returns>
public void StuStore()
{
/*
1.毕业生归档必须在6-8月份进行; <br>
2.归档后的学生信息如:操行、奖惩、成绩、毕业证书等只有通过毕业生信息管理才能查询或打印;<br>
3.毕业学生的账户将自动取消;<br>
4.学生所占的床位也将自动退掉;<br>
5.学生所在的班级置为已毕业班级;<br>
6.归档操作后不可撤消,请谨慎操作!
*/

var db = this.BaseRepository("CollegeMIS").BeginTrans();
var adb = this.BaseRepository().BeginTrans();
try
{
//归档前提为已经领取毕业证的学生
var stuInfos = db
.FindList<StuInfoBasicEntity>(a => a.FinishSchoolMark == "2");
//归档前提为毕业标志为2(已毕业)的学生
var stuInfos = db.FindList<StuInfoBasicEntity>(a => a.FinishSchoolMark == "2");
foreach (var item in stuInfos)
{
var StuInfoType = typeof(StuInfoBasicEntity);
var PropertyInfoStuInfo = StuInfoType.GetProperties();
var GraduateEntity = new StuInfoGraduateEntity();
var typegraduate = typeof(StuInfoGraduateEntity);
var PropertyInfoGraduate = typegraduate.GetProperties();
foreach (var itemStuInfo in PropertyInfoStuInfo)
{
var objStuInfoType = itemStuInfo.GetValue(StuInfoType);
foreach (var itemGraduate in PropertyInfoGraduate)
{
if (itemGraduate.Name == itemStuInfo.Name)
{
itemGraduate.SetValue(GraduateEntity, objStuInfoType, null);
}
}
//var StuInfoType = typeof(StuInfoBasicEntity);
//var PropertyInfoStuInfo = StuInfoType.GetProperties();
//var GraduateEntity = new StuInfoGraduateEntity();
//var typegraduate = typeof(StuInfoGraduateEntity);
//var PropertyInfoGraduate = typegraduate.GetProperties();
//foreach (var itemStuInfo in PropertyInfoStuInfo)
//{
// var objStuInfoType = itemStuInfo.GetValue(StuInfoType);
// foreach (var itemGraduate in PropertyInfoGraduate)
// {
// if (itemGraduate.Name == itemStuInfo.Name)
// {
// itemGraduate.SetValue(GraduateEntity, objStuInfoType, null);
// }
// }

}
//}

var accountInfo = adb.FindEntity<UserEntity>(a => a.F_Account == item.StuNo);
if (accountInfo != null)
@@ -579,17 +933,29 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
adb.Delete(accountInfo);
}
//清空宿舍信息
var dormitory = db
.FindEntity<Acc_DormitoryBuildEntity>(a => a.StudentID == item.StuId);
var dormitory = db.FindEntity<Acc_DormitoryBuildEntity>(a => a.StudentID == item.StuId);
if (dormitory != null)
{
dormitory.StudentID = "";
dormitory.StuName = "";
db.Update(dormitory);
}
//班级置为已毕业班级
var classInfo = db.FindEntity<ClassInfoEntity>(x => x.ClassNo == item.ClassNo);
if (classInfo != null && classInfo.ClassStatus != "1")
{
classInfo.ClassStatus = "1";
db.Update(classInfo);
}
//删除学籍表信息
db.Delete(item);
db.Insert(GraduateEntity);
//增加学生毕业表信息
var addSql = $"insert into StuInfoGraduate select * from StuInfoBasic where StuId='{item.StuId}'";
db.ExecuteBySql(addSql);
//db.Insert(GraduateEntity);
}
db.Commit();
adb.Commit();
}
catch (Exception ex)
{


+ 474
- 132
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateEntity.cs
File diff suppressed because it is too large
View File


+ 67
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateService.cs View File

@@ -159,9 +159,74 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(fieldSql);
strSql.Append("SELECT t.* ");
strSql.Append(" FROM StuInfoGraduate t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["StuNo"].IsEmpty())
{
dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String);
strSql.Append(" AND t.StuNo = @StuNo ");
}
if (!queryParam["StuName"].IsEmpty())
{
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.StuName Like @StuName ");
}
if (!queryParam["DeptNo"].IsEmpty())
{
dp.Add("DeptNo", "" + queryParam["DeptNo"].ToString() + "", DbType.String);
strSql.Append(" AND t.DeptNo=@DeptNo ");
}
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["Grade"].IsEmpty())
{
dp.Add("Grade", "" + queryParam["Grade"].ToString() + "", DbType.String);
strSql.Append(" AND t.Grade=@Grade ");
}
if (!queryParam["GenderNo"].IsEmpty())
{
dp.Add("GenderNo", "" + queryParam["GenderNo"].ToString() + "", DbType.String);
strSql.Append(" AND t.GenderNo=@GenderNo ");
}
if (!queryParam["IdentityCardNo"].IsEmpty())
{
dp.Add("IdentityCardNo", "%" + queryParam["IdentityCardNo"].ToString() + "%", DbType.String);
strSql.Append(" AND t.IdentityCardNo Like @IdentityCardNo ");
}
if (!queryParam["NationalityNo"].IsEmpty())
{
dp.Add("NationalityNo", "" + queryParam["NationalityNo"].ToString() + "", DbType.String);
strSql.Append(" AND t.NationalityNo = @NationalityNo ");
}
if (!queryParam["FinishSchoolMark"].IsEmpty())
{
dp.Add("FinishSchoolMark", "" + queryParam["FinishSchoolMark"].ToString() + "", DbType.String);
if (queryParam["FinishSchoolMark"].ToString() == "0")
{
strSql.Append(" AND (t.FinishSchoolMark is null or t.FinishSchoolMark='0') ");
}
else
{
strSql.Append(" AND t.FinishSchoolMark=@FinishSchoolMark ");
}
}
if (!queryParam["Remark"].IsEmpty())
{
dp.Add("Remark", "%" + queryParam["Remark"].ToString() + "%", DbType.String);
strSql.Append(" AND t.Remark Like @Remark ");
}
return this.BaseRepository("CollegeMIS").FindList<StuInfoGraduateEntity>(strSql.ToString(), pagination);
}
catch (Exception ex)


+ 15
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs View File

@@ -1427,17 +1427,29 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad
var stuInfo = this.BaseRepository("CollegeMIS")
.FindEntity<StuInfoBasicEntity>(a => a.StuNo == stuNo);

//补考数量
var notpass1 = this.BaseRepository("CollegeMIS")
.FindList<StuScoreNotPassEntity>(a => a.StuNo == stuNo).Count();
//二次补考数量
var notpass2 = this.BaseRepository("CollegeMIS")
.FindList<StuScoreNotPassTwoEntity>(a => a.StuNo == stuNo).Count();
//二次补考成绩小于60分的数量
var notpass2Low = this.BaseRepository("CollegeMIS").FindList<StuScoreNotPassTwoEntity>(x => x.StuNo == stuNo && x.Score < 60).Count();
//由系统判定学生毕业项目达标的状态(开启“存在二次补考成绩小于60分则未达标”的判定条件)
var standardState = "已达标";

//TODO:待开发毕业判定条件管理


if ((notpass1 + notpass2) > 0)
{
var result = new
{
StuNo = stuInfo?.StuNo,
StuName = stuInfo?.StuName,
IsNoPass = "是",
IsNoPass = "是",//是否有补考
IsNotPassTwoScoreLow = notpass2Low > 0 ? "是" : "否",//二次补考成绩是否小于60分
GraduateStandardStateBySystem = standardState,//由系统判定学生毕业项目达标的状态
FinishSchoolMark = stuInfo?.FinishSchoolMark
};
return result;
@@ -1449,6 +1461,8 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad
StuNo = stuInfo?.StuNo,
StuName = stuInfo?.StuName,
IsNoPass = "否",
IsNotPassTwoScoreLow = "否",
GraduateStandardStateBySystem = standardState,
FinishSchoolMark = stuInfo?.FinishSchoolMark
};
return result;


Loading…
Cancel
Save