@@ -0,0 +1,166 @@ | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Web.Mvc; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-01-04 15:03 | |||
/// 描 述:学籍异动列表 | |||
/// </summary> | |||
public class StuTransferInfoController : MvcControllerBase | |||
{ | |||
private StuTransferInfoIBLL stuTransferInfoIBLL = new StuTransferInfoBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult MajorIndex() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 休学复学 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult RestAgainIndex() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 退学页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult DropOutIndex() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 转入转出页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult InAndOutIndex() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 审核页 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult CheckIndex() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetList(string queryJson) | |||
{ | |||
var data = stuTransferInfoIBLL.GetList(queryJson); | |||
return Success(data); | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = stuTransferInfoIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var data = stuTransferInfoIBLL.GetEntity(keyValue); | |||
return Success(data); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
stuTransferInfoIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue, StuTransferInfoEntity entity) | |||
{ | |||
stuTransferInfoIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,175 @@ | |||
@{ | |||
ViewBag.Title = "学籍异动列表"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">ID<font face="宋体">*</font></div> | |||
<input id="ID" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学号<font face="宋体">*</font></div> | |||
<input id="StuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">姓名<font face="宋体">*</font></div> | |||
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">性别<font face="宋体">*</font></div> | |||
<input id="Gender" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">身份证号<font face="宋体">*</font></div> | |||
<input id="IdentityCardNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div> | |||
<input id="AnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">异动原因<font face="宋体">*</font></div> | |||
<input id="ChangeReason" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">原班级<font face="宋体">*</font></div> | |||
<input id="ClassNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">原专业<font face="宋体">*</font></div> | |||
<input id="MajorNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">原系部<font face="宋体">*</font></div> | |||
<input id="DeptNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">年级<font face="宋体">*</font></div> | |||
<input id="Grade" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学制<font face="宋体">*</font></div> | |||
<input id="EduSystem" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">入班日期<font face="宋体">*</font></div> | |||
<input id="LeaveDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">离班日期<font face="宋体">*</font></div> | |||
<input id="EnteDate" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">现班级<font face="宋体">*</font></div> | |||
<input id="NewClassNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">现专业<font face="宋体">*</font></div> | |||
<input id="NewMajorNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">现系部<font face="宋体">*</font></div> | |||
<input id="NewDeptNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">现年级<font face="宋体">*</font></div> | |||
<input id="NewGrade" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">现学制<font face="宋体">*</font></div> | |||
<input id="NewEduSystem" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">创建时间<font face="宋体">*</font></div> | |||
<input id="CreateTime" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">创建用户<font face="宋体">*</font></div> | |||
<input id="CreateUserId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">审核时间<font face="宋体">*</font></div> | |||
<input id="CheckTime" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">审核用户<font face="宋体">*</font></div> | |||
<input id="CheckUserId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">审核状态0否1是<font face="宋体">*</font></div> | |||
<input id="F_EnabledMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否保留学籍 0是 1否<font face="宋体">*</font></div> | |||
<input id="StuStatus" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否注销账号 0否 1是<font face="宋体">*</font></div> | |||
<input id="F_WriteMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否恢复学籍 0是 1否<font face="宋体">*</font></div> | |||
<input id="RecoverStuStatus" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">是否恢复账号 0否 1是<font face="宋体">*</font></div> | |||
<input id="RecoverWriteMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">修学年限<font face="宋体">*</font></div> | |||
<input id="SuspensionPeriod" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">休学开始时间<font face="宋体">*</font></div> | |||
<input id="SuspensionBeginTime" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">休学结束时间<font face="宋体">*</font></div> | |||
<input id="SuspensionEndTime" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">转学前学校<font face="宋体">*</font></div> | |||
<input id="TransferSchool" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">转学前学号<font face="宋体">*</font></div> | |||
<input id="TransferStuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">出身日期<font face="宋体">*</font></div> | |||
<input id="Birthday" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">民族<font face="宋体">*</font></div> | |||
<input id="NationalityNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">省<font face="宋体">*</font></div> | |||
<input id="F_ProvinceId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">市<font face="宋体">*</font></div> | |||
<input id="F_CityId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">县/区<font face="宋体">*</font></div> | |||
<input id="F_CountyId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">联系电话<font face="宋体">*</font></div> | |||
<input id="Mobile" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">家庭地址<font face="宋体">*</font></div> | |||
<input id="MailAddress" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">转出学校<font face="宋体">*</font></div> | |||
<input id="OutSchool" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">备注<font face="宋体">*</font></div> | |||
<input id="Remark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/Form.js") |
@@ -0,0 +1,38 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-01-04 15:03 | |||
* 描 述:学籍异动列表 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var selectedRow = learun.frameTab.currentIframe().selectedRow; | |||
var page = { | |||
init: function () { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
}, | |||
initData: function () { | |||
if (!!selectedRow) { | |||
$('#form').lrSetFormData(selectedRow); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('#form').lrValidform()) { | |||
return false; | |||
} | |||
var postData = $('#form').lrGetFormData(); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,60 @@ | |||
@{ | |||
ViewBag.Title = "学籍异动列表"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle"> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">异动类型</div> | |||
<div id="AnomalousType"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="StuName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">班级</div> | |||
<div id="ClassNo"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">申请人</div> | |||
<div id="CreateUserId"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">审核人</div> | |||
<div id="CheckUserId"></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> | |||
<div id="StuStatus"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js") |
@@ -0,0 +1,299 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-01-04 15:03 | |||
* 描 述:学籍异动列表 | |||
*/ | |||
var selectedRow; | |||
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); | |||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); | |||
$('#ClassNo').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }, | |||
value: "classno", | |||
text: "classname" | |||
}); | |||
$('#CheckUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); | |||
$('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); | |||
$('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/GetPageList', | |||
headData: [ | |||
{ label: '姓名', name: 'StuName', width: 100, align: "left" }, | |||
{ label: '学号', name: 'StuNo', width: 140, align: "left" }, | |||
//{ label: '性别', name: 'Gender', width: 200, align: "left" }, | |||
{ label: '身份证号', name: 'IdentityCardNo', width: 160, align: "left" }, | |||
{ | |||
label: '异动类型', name: 'AnomalousType', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'StuChangeType', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '异动原因', name: 'ChangeReason', width: 300, align: "left" }, | |||
{ | |||
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: '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: '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: 'Grade', width: 60, 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: 'LeaveDate', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ | |||
label: '离班日期', name: 'EnteDate', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ | |||
label: '现班级', name: 'NewClassNo', 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: 'NewMajorNo', 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: 'NewDeptNo', 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: 'NewGrade', width: 60, align: "left" }, | |||
{ | |||
label: '创建时间', name: 'CreateTime', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ | |||
label: '创建用户', name: 'CreateUserId', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', | |||
key: value, | |||
keyId: 'f_userid', | |||
callback: function (_data) { | |||
callback(_data['f_realname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '审核时间', name: 'CheckTime', width: 200, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ | |||
label: '审核用户', name: 'CheckUserId', width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', | |||
key: value, | |||
keyId: 'f_userid', | |||
callback: function (_data) { | |||
callback(_data['f_realname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '审核状态', name: 'F_EnabledMark', width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>"; | |||
} | |||
}, | |||
{ | |||
label: '是否保留学籍', name: 'StuStatus', width: 80, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否注销账号', name: 'F_WriteMark', width: 80, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否恢复学籍', name: 'RecoverStuStatus', width: 80, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '是否恢复账号', name: 'RecoverWriteMark', width: 80, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: '修学年限', name: 'SuspensionPeriod', width: 200, align: "left" }, | |||
{ | |||
label: '休学开始时间', name: 'SuspensionBeginTime', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ | |||
label: '休学结束时间', name: 'SuspensionEndTime', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ label: '转学前学校', name: 'TransferSchool', width: 150, align: "left" }, | |||
{ label: '转学前学号', name: 'TransferStuNo', width: 100, align: "left" }, | |||
{ | |||
label: '出身日期', name: 'Birthday', width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ label: '民族', name: 'NationalityNo', width: 80, align: "left" }, | |||
{ label: '省', name: 'Province', width: 100, align: "left" }, | |||
{ label: '市', name: 'City', width: 100, align: "left" }, | |||
{ label: '县/区', name: 'County', width: 100, align: "left" }, | |||
{ label: '联系电话', name: 'Mobile', width: 100, align: "left" }, | |||
{ label: '家庭地址', name: 'MailAddress', width: 200, align: "left" }, | |||
{ label: '转出学校', name: 'OutSchool', width: 100, align: "left" }, | |||
{ label: '备注', name: 'Remark', width: 500, align: "left" }, | |||
], | |||
mainId: 'ID', | |||
isPage: true, | |||
rows: 100, | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,59 @@ | |||
@{ | |||
ViewBag.Title = "学籍异动列表"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">系部</div> | |||
<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="Grade"></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-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> | |||
<input id="IdentityCardNo" type="text" class="form-control" /> | |||
</div> | |||
<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="StuCode" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js") |
@@ -0,0 +1,566 @@ | |||
var refreshGirdData; | |||
var StuId; | |||
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); | |||
}, 450, 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) { | |||
var Grades = $("#Grade").lrselectGet(); | |||
if (Grades != null && Grades != "" && Grades != "undefined") { | |||
if (item) { | |||
$('#ClassNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 AND Grade='" + Grades + "' order by classno desc" } | |||
}); | |||
} else { | |||
$('#ClassNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } | |||
}); | |||
} | |||
} else { | |||
if (item) { | |||
$('#ClassNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 order by classno desc" } | |||
}); | |||
} else { | |||
$('#ClassNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } | |||
}); | |||
} | |||
} | |||
} | |||
}); | |||
$('#Grade').lrselect({ | |||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', | |||
value: "value", | |||
text: "text", | |||
select: function (item) { | |||
var MajorNos = $("#MajorNo").lrselectGet(); | |||
if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { | |||
if (item) { | |||
$('#ClassNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { | |||
strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc" | |||
} | |||
}); | |||
} else { | |||
$('#ClassNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } | |||
}); | |||
} | |||
} else { | |||
if (item) { | |||
$('#ClassNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { | |||
strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc" | |||
} | |||
}); | |||
} else { | |||
$('#ClassNo').lrselectRefresh({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } | |||
}); | |||
} | |||
} | |||
} | |||
}); | |||
$('#ClassNo').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }, | |||
value: "classno", | |||
text: "classname" | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
//查看 | |||
$('#lr_view').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StuId'); | |||
if (learun.checkrow(keyValue)) { | |||
if (keyValue.indexOf(',') != -1) { | |||
learun.alert.warning("只能选择一条记录进行查看!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '查看', | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/FormView?keyValue=' + keyValue, | |||
width: 1162, | |||
height: 600, | |||
btn: null | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGridLei({ | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList', | |||
headData: [ | |||
//{ | |||
// 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", ishide: true, }, | |||
{ label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, }, | |||
{ label: "学号", name: "ProvinceCode", width: 100, align: "left" }, | |||
{ label: "姓名", name: "StuName", width: 100, align: "left" }, | |||
{ | |||
label: "性别", name: "GenderNo", width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "男" : "女"; | |||
} | |||
}, | |||
{ | |||
label: "出生日期", name: "Birthday", width: 100, align: "left", ishide: true, | |||
formatter: function (value) { | |||
return learun.formatDate(value, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" }, | |||
{ | |||
label: "民族", name: "NationalityNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'National', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
//{ | |||
// 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) { | |||
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: "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: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | |||
// learun.clientdata.getAsync('dataItem', { | |||
// key: value, | |||
// code: 'QRCodeHealthStatus', | |||
// callback: function (_data) { | |||
// callback(_data.text); | |||
// } | |||
// }); | |||
// } | |||
//}, | |||
//{ | |||
// label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | |||
// learun.clientdata.getAsync('dataItem', { | |||
// key: value, | |||
// code: 'StudyModality', | |||
// callback: function (_data) { | |||
// callback(_data.text); | |||
// } | |||
// }); | |||
// } | |||
//}, | |||
//{ 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: "mobile", width: 100, align: "left" }, | |||
{ label: "户口所在地", name: "FatherUnit", width: 100, align: "left" }, | |||
{ label: "档案所在地", name: "MatherUnit", width: 100, align: "left" }, | |||
//{ | |||
// 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: "Photo", width: 80, align: "center", | |||
// formatter: function (cellvalue) { | |||
// 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, }, | |||
], | |||
mainId: 'StuId', | |||
isPage: true, | |||
rows: 100, | |||
isMultiselect: true, | |||
//onSelectRow: function (rowdata) { | |||
// if (rowdata.CheckMark == "1") { | |||
// $("#check").hide(); | |||
// $("#uncheck").show(); | |||
// $("#lr_edit").hide(); | |||
// $("#lr_delete").hide(); | |||
// } else { | |||
// $("#uncheck").hide(); | |||
// $("#check").show(); | |||
// $("#lr_edit").show(); | |||
// $("#lr_delete").show(); | |||
// } | |||
//} | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -892,6 +892,7 @@ | |||
<Compile Include="Areas\EducationalAdministration\Controllers\PeopleSportsActivitiesController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\CompetitionManagementController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\CompetitionScoreController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\StuTransferInfoController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -1359,6 +1360,7 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\StuScore\GraduateScoreQueryAllIndex.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndexTeacher.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndex.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\MajorIndex.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuVolunteerPhone\server.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\FormMajor.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuVolunteer\FormGenerate.js" /> | |||
@@ -7037,6 +7039,8 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\CompetitionScore\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\CompetitionScore\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\CompetitionScore\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\Index.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" /> | |||
@@ -8025,6 +8029,7 @@ | |||
<Content Include="Content\excel\SalarySheetImport.xls" /> | |||
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\ImportForm.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexPrint.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\MajorIndex.cshtml" /> | |||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | |||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | |||
<Content Include="Views\Login\Default-beifen.cshtml" /> | |||
@@ -0,0 +1,29 @@ | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Data.Entity.ModelConfiguration; | |||
namespace Learun.Application.Mapping | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-01-04 15:03 | |||
/// 描 述:学籍异动列表 | |||
/// </summary> | |||
public class StuTransferInfoMap : EntityTypeConfiguration<StuTransferInfoEntity> | |||
{ | |||
public StuTransferInfoMap() | |||
{ | |||
#region 表、主键 | |||
//表 | |||
this.ToTable("STUTRANSFERINFO"); | |||
//主键 | |||
this.HasKey(t => t.ID); | |||
#endregion | |||
#region 配置关系 | |||
#endregion | |||
} | |||
} | |||
} | |||
@@ -650,6 +650,7 @@ | |||
<Compile Include="EducationalAdministration\PeopleSportsActivitiesMap.cs" /> | |||
<Compile Include="EducationalAdministration\CompetitionManagementMap.cs" /> | |||
<Compile Include="EducationalAdministration\CompetitionScoreMap.cs" /> | |||
<Compile Include="EducationalAdministration\StuTransferInfoMap.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -0,0 +1,148 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-01-04 15:03 | |||
/// 描 述:学籍异动列表 | |||
/// </summary> | |||
public class StuTransferInfoBLL : StuTransferInfoIBLL | |||
{ | |||
private StuTransferInfoService stuTransferInfoService = new StuTransferInfoService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<StuTransferInfoEntity> GetList( string queryJson ) | |||
{ | |||
try | |||
{ | |||
return stuTransferInfoService.GetList(queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<StuTransferInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return stuTransferInfoService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public StuTransferInfoEntity GetEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return stuTransferInfoService.GetEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
stuTransferInfoService.DeleteEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
public void SaveEntity(string keyValue, StuTransferInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
stuTransferInfoService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,290 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.ComponentModel.DataAnnotations.Schema; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-01-04 15:03 | |||
/// 描 述:学籍异动列表 | |||
/// </summary> | |||
public class StuTransferInfoEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// ID | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ID")] | |||
public string ID { get; set; } | |||
/// <summary> | |||
/// 学号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("STUNO")] | |||
public string StuNo { get; set; } | |||
/// <summary> | |||
/// 姓名 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("STUNAME")] | |||
public string StuName { get; set; } | |||
/// <summary> | |||
/// 性别 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("GENDER")] | |||
public bool? Gender { get; set; } | |||
/// <summary> | |||
/// 身份证号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("IDENTITYCARDNO")] | |||
public string IdentityCardNo { get; set; } | |||
/// <summary> | |||
/// 异动类型 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ANOMALOUSTYPE")] | |||
public string AnomalousType { get; set; } | |||
/// <summary> | |||
/// 异动原因 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CHANGEREASON")] | |||
public string ChangeReason { get; set; } | |||
/// <summary> | |||
/// 原班级 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CLASSNO")] | |||
public string ClassNo { get; set; } | |||
/// <summary> | |||
/// 原专业 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MAJORNO")] | |||
public string MajorNo { get; set; } | |||
/// <summary> | |||
/// 原系部 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("DEPTNO")] | |||
public string DeptNo { get; set; } | |||
/// <summary> | |||
/// 年级 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("GRADE")] | |||
public string Grade { get; set; } | |||
/// <summary> | |||
/// 学制 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("EDUSYSTEM")] | |||
public string EduSystem { get; set; } | |||
/// <summary> | |||
/// 入班日期 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("LEAVEDATE")] | |||
public DateTime? LeaveDate { get; set; } | |||
/// <summary> | |||
/// 离班日期 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ENTEDATE")] | |||
public string EnteDate { get; set; } | |||
/// <summary> | |||
/// 现班级 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("NEWCLASSNO")] | |||
public string NewClassNo { get; set; } | |||
/// <summary> | |||
/// 现专业 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("NEWMAJORNO")] | |||
public string NewMajorNo { get; set; } | |||
/// <summary> | |||
/// 现系部 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("NEWDEPTNO")] | |||
public string NewDeptNo { get; set; } | |||
/// <summary> | |||
/// 现年级 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("NEWGRADE")] | |||
public string NewGrade { get; set; } | |||
/// <summary> | |||
/// 现学制 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("NEWEDUSYSTEM")] | |||
public string NewEduSystem { get; set; } | |||
/// <summary> | |||
/// 创建时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CREATETIME")] | |||
public DateTime? CreateTime { get; set; } | |||
/// <summary> | |||
/// 创建用户 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CREATEUSERID")] | |||
public string CreateUserId { get; set; } | |||
/// <summary> | |||
/// 审核时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CHECKTIME")] | |||
public DateTime? CheckTime { get; set; } | |||
/// <summary> | |||
/// 审核用户 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CHECKUSERID")] | |||
public string CheckUserId { get; set; } | |||
/// <summary> | |||
/// 审核状态0否1是 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("F_ENABLEDMARK")] | |||
public int? F_EnabledMark { get; set; } | |||
/// <summary> | |||
/// 是否保留学籍 0是 1否 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("STUSTATUS")] | |||
public int? StuStatus { get; set; } | |||
/// <summary> | |||
/// 是否注销账号 0否 1是 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("F_WRITEMARK")] | |||
public int? F_WriteMark { get; set; } | |||
/// <summary> | |||
/// 是否恢复学籍 0是 1否 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("RECOVERSTUSTATUS")] | |||
public string RecoverStuStatus { get; set; } | |||
/// <summary> | |||
/// 是否恢复账号 0否 1是 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("RECOVERWRITEMARK")] | |||
public string RecoverWriteMark { get; set; } | |||
/// <summary> | |||
/// 修学年限 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("SUSPENSIONPERIOD")] | |||
public string SuspensionPeriod { get; set; } | |||
/// <summary> | |||
/// 休学开始时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("SUSPENSIONBEGINTIME")] | |||
public DateTime? SuspensionBeginTime { get; set; } | |||
/// <summary> | |||
/// 休学结束时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("SUSPENSIONENDTIME")] | |||
public DateTime? SuspensionEndTime { get; set; } | |||
/// <summary> | |||
/// 转学前学校 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("TRANSFERSCHOOL")] | |||
public string TransferSchool { get; set; } | |||
/// <summary> | |||
/// 转学前学号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("TRANSFERSTUNO")] | |||
public string TransferStuNo { get; set; } | |||
/// <summary> | |||
/// 出身日期 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("BIRTHDAY")] | |||
public DateTime? Birthday { get; set; } | |||
/// <summary> | |||
/// 民族 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("NATIONALITYNO")] | |||
public string NationalityNo { get; set; } | |||
/// <summary> | |||
/// 省 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PROVINCE")] | |||
public string Province { get; set; } | |||
/// <summary> | |||
/// 市 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("CITY")] | |||
public string City { get; set; } | |||
/// <summary> | |||
/// 县/区 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("COUNTY")] | |||
public string County { get; set; } | |||
/// <summary> | |||
/// 联系电话 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MOBILE")] | |||
public string Mobile { get; set; } | |||
/// <summary> | |||
/// 家庭地址 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("MAILADDRESS")] | |||
public string MailAddress { get; set; } | |||
/// <summary> | |||
/// 转出学校 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("OUTSCHOOL")] | |||
public string OutSchool { get; set; } | |||
/// <summary> | |||
/// 备注 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("REMARK")] | |||
public string Remark { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.ID = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.ID = keyValue; | |||
} | |||
#endregion | |||
} | |||
} | |||
@@ -0,0 +1,55 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-01-04 15:03 | |||
/// 描 述:学籍异动列表 | |||
/// </summary> | |||
public interface StuTransferInfoIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<StuTransferInfoEntity> GetList( string queryJson ); | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<StuTransferInfoEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
StuTransferInfoEntity GetEntity(string keyValue); | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
void DeleteEntity(string keyValue); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
void SaveEntity(string keyValue, StuTransferInfoEntity entity); | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,202 @@ | |||
using Dapper; | |||
using Learun.DataBase.Repository; | |||
using Learun.Util; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Data; | |||
using System.Text; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-01-04 15:03 | |||
/// 描 述:学籍异动列表 | |||
/// </summary> | |||
public class StuTransferInfoService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">条件参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<StuTransferInfoEntity> GetList(string queryJson) | |||
{ | |||
try | |||
{ | |||
//参考写法 | |||
//var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
//var dp = new DynamicParameters(new { }); | |||
//dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT t.* "); | |||
strSql.Append(" FROM StuTransferInfo t "); | |||
return this.BaseRepository("CollegeMIS").FindList<StuTransferInfoEntity>(strSql.ToString()); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取列表分页数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">条件参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<StuTransferInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT t.* "); | |||
strSql.Append(" FROM StuTransferInfo t "); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["AnomalousType"].IsEmpty()) | |||
{ | |||
dp.Add("AnomalousType", queryParam["AnomalousType"].ToString(), DbType.String); | |||
strSql.Append(" AND t.AnomalousType = @AnomalousType "); | |||
} | |||
if (!queryParam["StuName"].IsEmpty()) | |||
{ | |||
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.StuName like @StuName "); | |||
} | |||
if (!queryParam["ClassNo"].IsEmpty()) | |||
{ | |||
dp.Add("ClassNo", queryParam["ClassNo"].ToString(), DbType.String); | |||
strSql.Append(" AND t.ClassNo = @ClassNo "); | |||
} | |||
if (!queryParam["ClassNo"].IsEmpty()) | |||
{ | |||
dp.Add("CheckUserId", queryParam["CheckUserId"].ToString(), DbType.String); | |||
strSql.Append(" AND t.CheckUserId = @CheckUserId "); | |||
} | |||
if (!queryParam["CheckUserId"].IsEmpty()) | |||
{ | |||
dp.Add("CheckUserId", queryParam["CheckUserId"].ToString(), DbType.String); | |||
strSql.Append(" AND t.CheckUserId = @CheckUserId "); | |||
} | |||
if (!queryParam["StuStatus"].IsEmpty()) | |||
{ | |||
dp.Add("StuStatus", queryParam["StuStatus"].ToString(), DbType.String); | |||
strSql.Append(" AND t.StuStatus = @StuStatus "); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<StuTransferInfoEntity>(strSql.ToString(), pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public StuTransferInfoEntity GetEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
this.BaseRepository("CollegeMIS").Delete<StuTransferInfoEntity>(t => t.ID == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
/// </summary> | |||
public void SaveEntity(string keyValue, StuTransferInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.Modify(keyValue); | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
this.BaseRepository("CollegeMIS").Insert(entity); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -2023,6 +2023,10 @@ | |||
<Compile Include="EducationalAdministration\CompetitionScore\CompetitionScoreService.cs" /> | |||
<Compile Include="EducationalAdministration\CompetitionScore\CompetitionScoreBLL.cs" /> | |||
<Compile Include="EducationalAdministration\CompetitionScore\CompetitionScoreIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\StuTransferInfo\StuTransferInfoEntity.cs" /> | |||
<Compile Include="EducationalAdministration\StuTransferInfo\StuTransferInfoService.cs" /> | |||
<Compile Include="EducationalAdministration\StuTransferInfo\StuTransferInfoIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\StuTransferInfo\StuTransferInfoBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||