@@ -28,10 +28,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 表单页 转入 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | [HttpGet] | ||||
public ActionResult Form() | public ActionResult Form() | ||||
{ | { | ||||
@@ -47,7 +43,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 休学复学 | |||||
/// 休学 | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[HttpGet] | [HttpGet] | ||||
@@ -55,6 +51,16 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 复学 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public ActionResult ReturnIndex() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 退学页 | /// 退学页 | ||||
/// </summary> | /// </summary> | ||||
@@ -69,7 +75,16 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[HttpGet] | [HttpGet] | ||||
public ActionResult InAndOutIndex() | |||||
public ActionResult IntoIndex() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 转入转出页 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult RolloffIndex() | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
@@ -82,6 +97,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 审核页 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult CheckForm() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -0,0 +1,15 @@ | |||||
@{ | |||||
ViewBag.Title = "学籍异动列表审核"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">审核状态<font face="宋体">*</font></div> | |||||
<div id="F_EnabledMark" isvalid="yes"></div> | |||||
</div> | |||||
<div class="col-xs-12 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" readonly/> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/CheckForm.js") |
@@ -0,0 +1,43 @@ | |||||
/* * 版 本 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 page = { | |||||
init: function () { | |||||
page.initData(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
$('#F_EnabledMark').lrselect({ | |||||
data: [{ text: "同意", value: "1" }, { text: "作废", value: "2" }], | |||||
text: "text", | |||||
value: "value" | |||||
}); | |||||
$('#CheckUserId')[0].lrvalue = learun.clientdata.get(['userinfo']).userId; | |||||
$('#CheckUserId').val(learun.clientdata.get(['userinfo']).realName); | |||||
}, | |||||
initData: function () { | |||||
} | |||||
}; | |||||
// 保存数据 | |||||
acceptClick = function (callBack) { | |||||
if (!$('#form').lrValidform()) { | |||||
return false; | |||||
} | |||||
var postData = $('#form').lrGetFormData(); | |||||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/CheckForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -29,6 +29,12 @@ var bootstrap = function ($, learun) { | |||||
$('#CheckUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); | $('#CheckUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); | ||||
$('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); | $('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); | ||||
$('#F_EnabledMark').lrDataItemSelect({ code: 'YesOrNoInt' }); | $('#F_EnabledMark').lrDataItemSelect({ code: 'YesOrNoInt' }); | ||||
$('#F_EnabledMark').lrselect({ | |||||
data: [{ text: "作废", value: "0" }, { text: "未审核", value: "1" }, { text: "已审核", value: "2" }], | |||||
text: "text", | |||||
value: "value" | |||||
}) | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -41,16 +47,23 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_check').on('click', function () { | $('#lr_check').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
var CheckMark = $('#gridtable').jfGridValue('CheckMark'); | |||||
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); | |||||
if (CheckMark.indexOf('1') != -1) { | if (CheckMark.indexOf('1') != -1) { | ||||
learun.alert.warning("选中记录中包含已审核项目,已审核项不能二次审核!"); | |||||
learun.alert.warning("选中记录中包含已审核项,已审核项不能二次审核!"); | |||||
return; | return; | ||||
} | } | ||||
learun.layerConfirm('是否确认审核选中项进行学籍异动,该项不可逆转!', function (res) { | |||||
if (res) { | |||||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/CheckForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
if (CheckMark.indexOf('2') != -1) { | |||||
learun.alert.warning("选中记录中包含已作废项,不可审核!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '审核页面', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/CheckForm?keyValue=' + keyValue, | |||||
width: 400, | |||||
height: 300, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -80,9 +93,14 @@ var bootstrap = function ($, learun) { | |||||
headData: [ | headData: [ | ||||
{ label: '姓名', name: 'StuName', width: 100, align: "left" }, | { label: '姓名', name: 'StuName', width: 100, align: "left" }, | ||||
{ label: '学号', name: 'StuNo', width: 150, align: "left" }, | { label: '学号', name: 'StuNo', width: 150, align: "left" }, | ||||
{ label: '性别', name: 'Gender', width: 100, align: "left" }, | |||||
{ | { | ||||
label: '异动类型', name: 'AnomalousType', width: 150, align: "left", | |||||
label: '性别', name: 'Gender', width: 80, align: "left", | |||||
formatter: function (cellvalue) { | |||||
return cellvalue == true ? "男" : "女"; | |||||
} | |||||
}, | |||||
{ | |||||
label: '异动类型', name: 'AnomalousType', width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('dataItem', { | learun.clientdata.getAsync('dataItem', { | ||||
key: value, | key: value, | ||||
@@ -106,7 +124,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}, | }, | ||||
//{ label: '身份证号', name: 'IdentityCardNo', width: 160, align: "left" }, | //{ label: '身份证号', name: 'IdentityCardNo', width: 160, align: "left" }, | ||||
{ | { | ||||
label: '异动前班级', name: 'ClassNo', width: 140, align: "left", | label: '异动前班级', name: 'ClassNo', width: 140, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
@@ -159,7 +177,7 @@ var bootstrap = function ($, learun) { | |||||
// }); | // }); | ||||
// } | // } | ||||
//}, | //}, | ||||
{ | { | ||||
label: '异动后班级', name: 'NewClassNo', width: 140, align: "left", | label: '异动后班级', name: 'NewClassNo', width: 140, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
@@ -242,7 +260,13 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: '审核状态', name: 'F_EnabledMark', width: 100, align: "left", | label: '审核状态', name: 'F_EnabledMark', width: 100, align: "left", | ||||
formatter: function (cellvalue) { | formatter: function (cellvalue) { | ||||
return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>"; | |||||
if (cellvalue == "0") { | |||||
return "<span class=\"label label-danger\">未审核</span>"; | |||||
} else if (cellvalue == "1") { | |||||
return "<span class=\"label label-success\">已审核</span>"; | |||||
} else if (cellvalue == "2") { | |||||
return "<span class=\"label label-default\">作废</span>"; | |||||
} | |||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
@@ -329,7 +353,7 @@ var bootstrap = function ($, learun) { | |||||
mainId: 'ID', | mainId: 'ID', | ||||
isPage: true, | isPage: true, | ||||
rows: 100, | rows: 100, | ||||
sidx: 'F_EnabledMark asc,CreateUserId asc', | |||||
sidx: 'F_EnabledMark asc,CreateUserId asc,CreateTime desc', | |||||
isMultiselect: true | isMultiselect: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
@@ -715,7 +715,7 @@ var bootstrap = function ($, learun) { | |||||
}, []) | }, []) | ||||
//console.log('resources', list) | //console.log('resources', list) | ||||
} | } | ||||
console.log(list) | |||||
//console.log(list) | |||||
tempdatra = list | tempdatra = list | ||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | $('#selgridtab').jfGridSet('refreshdata', tempdatra); | ||||
} | } | ||||
@@ -733,6 +733,3 @@ var bootstrap = function ($, learun) { | |||||
}; | }; | ||||
page.init(); | page.init(); | ||||
} | } | ||||
function delbtn() { | |||||
console.log('111111') | |||||
} |
@@ -58,6 +58,29 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="lr-layout-tool-item"> | |||||
<div id="changeDrop" class="lr-query-wrap" style="width:80px;"> | |||||
<div class="lr-query-btn"> | |||||
添加退学异动 | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="changeIndexAnd" class="lr-query-wrap" style="width:110px;"> | |||||
<div class="lr-query-btn"> | |||||
添加转入转出异动 | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="changeCheck" class="lr-query-wrap" style="width:110px;"> | |||||
<div class="lr-query-btn"> | |||||
学籍异动审核 | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | </div> | ||||
@@ -29,7 +29,6 @@ var bootstrap = function ($, learun) { | |||||
learun.frameTab.open(moduleitem[0]); | learun.frameTab.open(moduleitem[0]); | ||||
}) | }) | ||||
$('#changeRestAgain').on('click', function () { | $('#changeRestAgain').on('click', function () { | ||||
console.log(modulesTree) | |||||
let item = modulesTree[0].filter(item => { | let item = modulesTree[0].filter(item => { | ||||
return item.F_FullName == "教务信息管理" | return item.F_FullName == "教务信息管理" | ||||
}) | }) | ||||
@@ -41,6 +40,46 @@ var bootstrap = function ($, learun) { | |||||
}) | }) | ||||
learun.frameTab.open(moduleitem[0]); | learun.frameTab.open(moduleitem[0]); | ||||
}) | }) | ||||
$('#changeDrop').on('click', function () { | |||||
let item = modulesTree[0].filter(item => { | |||||
return item.F_FullName == "教务信息管理" | |||||
}) | |||||
let modules = modulesTree[item[0].F_ModuleId].filter(item => { | |||||
return item.F_FullName == "学籍异动" | |||||
}) | |||||
let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => { | |||||
return item.F_FullName == "退学异动" | |||||
}) | |||||
learun.frameTab.open(moduleitem[0]); | |||||
}) | |||||
$('#changeIndexAnd').on('click', function () { | |||||
let item = modulesTree[0].filter(item => { | |||||
return item.F_FullName == "教务信息管理" | |||||
}) | |||||
let modules = modulesTree[item[0].F_ModuleId].filter(item => { | |||||
return item.F_FullName == "学籍异动" | |||||
}) | |||||
let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => { | |||||
return item.F_FullName == "转入转出异动" | |||||
}) | |||||
learun.frameTab.open(moduleitem[0]); | |||||
}) | |||||
$('#changeCheck').on('click', function () { | |||||
let item = modulesTree[0].filter(item => { | |||||
return item.F_FullName == "教务信息管理" | |||||
}) | |||||
let modules = modulesTree[item[0].F_ModuleId].filter(item => { | |||||
return item.F_FullName == "学籍异动" | |||||
}) | |||||
let moduleitem = modulesTree[modules[0].F_ModuleId].filter(item => { | |||||
return item.F_FullName == "学籍异动审核" | |||||
}) | |||||
learun.frameTab.open(moduleitem[0]); | |||||
}) | |||||
// 查询 | // 查询 | ||||
@@ -0,0 +1,162 @@ | |||||
@{ | |||||
ViewBag.Title = "学籍异动列表"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<style> | |||||
.navtabwrap { | |||||
} | |||||
.navul { | |||||
display: flex; | |||||
align-items: flex-end; | |||||
border-bottom: 1px solid #ddd; | |||||
height: 38px; | |||||
} | |||||
.navul li { | |||||
width: 80px; | |||||
height: 28px; | |||||
margin-left: 15px; | |||||
line-height: 28px; | |||||
text-align: center; | |||||
border-radius: 4px 4px 0 0; | |||||
cursor: pointer; | |||||
margin-bottom: -1px; | |||||
} | |||||
.navul li:hover { | |||||
background: #eee; | |||||
} | |||||
.active { | |||||
color: #555; | |||||
cursor: default; | |||||
background-color: #fff; | |||||
border: 1px solid #ddd; | |||||
border-bottom-color: transparent; | |||||
} | |||||
.condiv { | |||||
display: none; | |||||
height: 100%; | |||||
} | |||||
.divactive { | |||||
display: block; | |||||
} | |||||
.contabwrap { | |||||
height: calc(100% - 50px); | |||||
} | |||||
</style> | |||||
<div class="navtabwrap" id="navultab"> | |||||
<ul class="navul"> | |||||
<li class="active">转入</li> | |||||
<li>转出</li> | |||||
</ul> | |||||
</div> | |||||
<div class="contabwrap" id="condivtab"> | |||||
<div class="condiv divactive" id="tab1"> | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle " style="overflow-y:scroll;-webkit-scrollbar-track-piece{width:1px;background-color:#fff;}"> | |||||
<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 class="lr-layout-tool-item"> | |||||
<div class="lr-query-btn" style="padding:0 10px;" id="listitem"> | |||||
点击 | |||||
</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" style="height:50%;" id="gridtable"></div> | |||||
<div class="lr-layout-body" style="height:40%;border-top: 1px solid #ccc;margin-top:50px;" id="selgridtab"></div> | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div> | |||||
<div id="AnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">注销账号<font face="宋体">*</font></div> | |||||
<div id="F_WriteMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">保留学籍<font face="宋体">*</font></div> | |||||
<div id="StuStatus" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</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 lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#EnteDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">异动原因</div> | |||||
<textarea id="Remark" class="form-control" style="height: 100px;"></textarea> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">休学年限<font face="宋体">*</font></div> | |||||
<input id="SuspensionPeriod" type="text" 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" isvalid="yes" checkexpession="NotNull" /> | |||||
@*<input id="EnteDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#EnteDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" />*@ | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="condiv" id="tab2"> | |||||
<iframe id="EducationExperienceReturn" width="100%" scrolling="no" height="100%" frameborder="0"></iframe> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/IntoIndex.js") |
@@ -0,0 +1,749 @@ | |||||
var refreshGirdData; | |||||
var StuId; | |||||
var tempdatra = new Array(); | |||||
var list = []; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page = { | |||||
init: function () { | |||||
page.initGird(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
$('#navultab li').on('click', function () { | |||||
if (!$(this).hasClass('active')) { | |||||
$(this).parent().find('.active').removeClass('active'); | |||||
$(this).addClass('active'); | |||||
$('#condivtab .condiv').eq($(this).index()).siblings().hide() | |||||
$('#condivtab .condiv').eq($(this).index()).show() | |||||
} | |||||
}) | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||||
page.search(queryJson); | |||||
}, 280, 400); | |||||
$("#EducationExperienceReturn").attr("src", "/EducationalAdministration/StuTransferInfo/RolloffIndex"); | |||||
$('#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" | |||||
}); | |||||
//提交下拉框 | |||||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType'}); | |||||
$('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||||
$('#F_WriteMark').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||||
// 刷新 | |||||
$('#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 | |||||
}); | |||||
} | |||||
}); | |||||
$('#selgridtab').jfGrid({ | |||||
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: "Delete", width: 100, align: "center", | |||||
formatter: function (callback, cellvalue, row, op, $cell) { | |||||
var $div = $('<div></div>'); | |||||
var $hbtn = $('<span class="label label-info" style="cursor: pointer;margin-right:8px;"> 移除</span>'); | |||||
$hbtn.on('click', function () { | |||||
tempdatra.map((item, index) => { | |||||
if (item.StuNo == cellvalue.StuNo) { | |||||
tempdatra.splice(index, 1) | |||||
} | |||||
}); | |||||
//console.log(tempdatra) | |||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | |||||
}); | |||||
$div.append($hbtn); | |||||
return $div; | |||||
} | |||||
}, | |||||
], | |||||
mainId: 'AAIId', | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
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) { | |||||
var selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||||
if (list.length < 1) { | |||||
list = selectedRow | |||||
} else { | |||||
// 合并两个数组 | |||||
list = list.concat(selectedRow) | |||||
// 去重 | |||||
let temp = {} | |||||
list = list.reduce((prev, curv) => { | |||||
// 若临时对象中有一模一样的item,则什么都不做 | |||||
if (temp[curv.StuNo]) { } | |||||
else { | |||||
temp[curv.StuNo] = true | |||||
prev.push(curv) | |||||
} | |||||
return prev | |||||
}, []) | |||||
//console.log('resources', list) | |||||
} | |||||
//console.log(list) | |||||
tempdatra = list | |||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | |||||
} | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
page.search(); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -86,14 +86,14 @@ | |||||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | <div class="lr-form-item-title">专业<font face="宋体">*</font></div> | ||||
<div id="NewMajorNo" isvalid="yes" checkexpession="NotNull"></div> | <div id="NewMajorNo" isvalid="yes" checkexpession="NotNull"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-4 lr-form-item"> | |||||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | |||||
<div id="NewClassNo" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item"> | <div class="col-xs-4 lr-form-item"> | ||||
<div class="lr-form-item-title">年级<font face="宋体">*</font></div> | <div class="lr-form-item-title">年级<font face="宋体">*</font></div> | ||||
<div id="NewGrade" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | <div id="NewGrade" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-4 lr-form-item"> | |||||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | |||||
<div id="NewClassNo" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item"> | <div class="col-xs-4 lr-form-item"> | ||||
<div class="lr-form-item-title">入班日期<font face="宋体">*</font></div> | <div class="lr-form-item-title">入班日期<font face="宋体">*</font></div> | ||||
<input id="LeaveDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#LeaveDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | <input id="LeaveDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#LeaveDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | ||||
@@ -104,7 +104,7 @@ | |||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item"> | <div class="col-xs-6 lr-form-item"> | ||||
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div> | <div class="lr-form-item-title">异动类型<font face="宋体">*</font></div> | ||||
<div id="AnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
<div id="AnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" ></div> | |||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item"> | <div class="col-xs-6 lr-form-item"> | ||||
<div class="lr-form-item-title">保留学籍<font face="宋体">*</font></div> | <div class="lr-form-item-title">保留学籍<font face="宋体">*</font></div> | ||||
@@ -116,7 +116,7 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div style="margin:0 auto;cursor:pointer;margin-bottom:10px; position:relative; width:80px; height:28px;line-height:28px;border-radius:4px; background:#039cfd;color:#FFF;text-align:center;"> | |||||
<div id="subbtn" style="margin:0 auto;cursor:pointer;margin-bottom:10px; position:relative; width:80px; height:28px;line-height:28px;border-radius:4px; background:#039cfd;color:#FFF;text-align:center;"> | |||||
提交 | 提交 | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -234,7 +234,8 @@ var bootstrap = function ($, learun) { | |||||
value: "classno", | value: "classno", | ||||
text: "classname" | text: "classname" | ||||
}); | }); | ||||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType'}); | |||||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); | |||||
$('#AnomalousType').lrselectSet("01"); | |||||
$('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | ||||
// 刷新 | // 刷新 | ||||
@@ -411,7 +412,27 @@ var bootstrap = function ($, learun) { | |||||
], | ], | ||||
mainId: 'AAIId', | mainId: 'AAIId', | ||||
}); | }); | ||||
$('#subbtn').on('click', function () { | |||||
if (!$('body').lrValidform()) { | |||||
return false; | |||||
} | |||||
var entity = $('body').lrGetFormData(); | |||||
var selgridtab = $('#selgridtab').jfGridGet('rowdatas'); | |||||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) }, | |||||
function (res) { | |||||
//console.log(res) | |||||
if (res.code == 200) { | |||||
setTimeout(function () { | |||||
location.reload(); | |||||
}, 100) | |||||
} | |||||
// 保存成功后才回调 | |||||
//if (!!callBack) { | |||||
// callBack(res); | |||||
//} | |||||
} | |||||
); | |||||
}) | |||||
}, | }, | ||||
// 初始化列表 | // 初始化列表 | ||||
initGird: function () { | initGird: function () { | ||||
@@ -805,29 +826,31 @@ var bootstrap = function ($, learun) { | |||||
isPage: true, | isPage: true, | ||||
rows: 100, | rows: 100, | ||||
isMultiselect: true, | isMultiselect: true, | ||||
onSelectRow: function (rowdata) { | |||||
var selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||||
if (list.length < 1) { | |||||
list = selectedRow | |||||
} else { | |||||
// 合并两个数组 | |||||
list = list.concat(selectedRow) | |||||
// 去重 | |||||
let temp = {} | |||||
list = list.reduce((prev, curv) => { | |||||
// 若临时对象中有一模一样的item,则什么都不做 | |||||
if (temp[curv.StuNo]) { } | |||||
else { | |||||
temp[curv.StuNo] = true | |||||
prev.push(curv) | |||||
} | |||||
return prev | |||||
}, []) | |||||
//console.log('resources', list) | |||||
onSelectRow: function (rowdata, type) { | |||||
//console.log(rowdata) | |||||
//console.log(type) | |||||
if (type) { | |||||
var selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||||
if (list.length < 1) { | |||||
list = selectedRow | |||||
} else { | |||||
list = list.concat(selectedRow) | |||||
let temp = {} | |||||
list = list.reduce((prev, curv) => { | |||||
if (temp[curv.StuNo]) { } | |||||
else { | |||||
temp[curv.StuNo] = true | |||||
prev.push(curv) | |||||
} | |||||
return prev | |||||
}, []) | |||||
} | |||||
tempdatra = list | |||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | |||||
} | } | ||||
console.log(list) | |||||
tempdatra = list | |||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | |||||
} | } | ||||
}); | }); | ||||
@@ -842,7 +865,4 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
} | |||||
function delbtn() { | |||||
console.log('111111') | |||||
} | } |
@@ -2,97 +2,163 @@ | |||||
ViewBag.Title = "学籍异动列表"; | ViewBag.Title = "学籍异动列表"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle " style="overflow-y:scroll;-webkit-scrollbar-track-piece{width:1px;background-color:#fff;}"> | |||||
<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" /> | |||||
<style> | |||||
.navtabwrap { | |||||
} | |||||
.navul { | |||||
display: flex; | |||||
align-items: flex-end; | |||||
border-bottom: 1px solid #ddd; | |||||
height: 38px; | |||||
} | |||||
.navul li { | |||||
width: 80px; | |||||
height: 28px; | |||||
margin-left: 15px; | |||||
line-height: 28px; | |||||
text-align: center; | |||||
border-radius: 4px 4px 0 0; | |||||
cursor: pointer; | |||||
margin-bottom: -1px; | |||||
} | |||||
.navul li:hover { | |||||
background: #eee; | |||||
} | |||||
.active { | |||||
color: #555; | |||||
cursor: default; | |||||
background-color: #fff; | |||||
border: 1px solid #ddd; | |||||
border-bottom-color: transparent; | |||||
} | |||||
.condiv { | |||||
display: none; | |||||
height: 100%; | |||||
} | |||||
.divactive { | |||||
display: block; | |||||
} | |||||
.contabwrap { | |||||
height: calc(100% - 50px); | |||||
} | |||||
</style> | |||||
<div class="navtabwrap" id="navultab"> | |||||
<ul class="navul"> | |||||
<li class="active">休学</li> | |||||
<li>复学</li> | |||||
</ul> | |||||
</div> | |||||
<div class="contabwrap" id="condivtab"> | |||||
<div class="condiv divactive" id="tab1"> | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle " style="overflow-y:scroll;-webkit-scrollbar-track-piece{width:1px;background-color:#fff;}"> | |||||
<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> | </div> | ||||
</div> | </div> | ||||
@*<div class="lr-layout-tool-item"> | |||||
<div class="lr-query-btn" style="padding:0 10px;" id="listitem"> | |||||
点击 | |||||
<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> | |||||
<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> | ||||
</div> | |||||
<div class="lr-layout-body" style="height:50%;" id="gridtable"></div> | |||||
<div class="lr-layout-body" style="height:50%;border-bottom:1px solid #ccc;" id="gridtable"></div> | |||||
<div class="lr-layout-body" style="height:40%;border-top: 1px solid #ccc;margin-top:50px;" id="selgridtab"></div> | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div> | |||||
<div id="AnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">注销账号<font face="宋体">*</font></div> | |||||
<div id="F_WriteMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">保留学籍<font face="宋体">*</font></div> | |||||
<div id="StuStatus" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</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 lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#EnteDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">异动原因</div> | |||||
<textarea id="Remark" class="form-control" style="height: 100px;"></textarea> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">休学年限<font face="宋体">*</font></div> | |||||
<input id="SuspensionPeriod" type="text" 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" isvalid="yes" checkexpession="NotNull" /> | |||||
@*<input id="EnteDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#EnteDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" />*@ | |||||
<div class="lr-layout-body" style="height:40%;border-bottom:1px solid #ccc;border-top: 1px solid #ccc;margin-top:50px;" id="selgridtab"></div> | |||||
<div class="lr-form-wrap" style="height:30%;" id="form"> | |||||
<div class="col-xs-3 lr-form-item"> | |||||
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div> | |||||
<div id="AnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" ></div> | |||||
</div> | |||||
<div class="col-xs-3 lr-form-item"> | |||||
<div class="lr-form-item-title">注销账号<font face="宋体">*</font></div> | |||||
<div id="F_WriteMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-3 lr-form-item"> | |||||
<div class="lr-form-item-title">保留学籍<font face="宋体">*</font></div> | |||||
<div id="StuStatus" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-3 lr-form-item"> | |||||
<div class="lr-form-item-title">离班日期<font face="宋体">*</font></div> | |||||
<input id="EnteDate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#EnteDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">异动原因</div> | |||||
<textarea id="Remark" class="form-control" style="height: 100px;"></textarea> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">休学年限<font face="宋体">*</font></div> | |||||
<input id="SuspensionPeriod" class="form-control" type="text" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" style="padding-left:160px;"> | |||||
<div class="lr-form-item-title" style="width:160px;">休学时段(文本框暂时)<font face="宋体">*</font></div> | |||||
<input id="SuspensionBeginTime" class="form-control" type="text" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
</div> | </div> | ||||
<div id="SubmitBtn" style="margin:0 auto;cursor:pointer;margin-bottom:10px; position:relative; width:80px; height:28px;line-height:28px;border-radius:4px; background:#039cfd;color:#FFF;text-align:center;"> | |||||
提交 | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | |||||
<div class="condiv" id="tab2"> | |||||
<iframe id="EducationExperienceReturn" width="100%" scrolling="no" height="100%" frameborder="0"></iframe> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/RestAgainIndex.js") | @Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/RestAgainIndex.js") |
@@ -10,6 +10,37 @@ var bootstrap = function ($, learun) { | |||||
page.bind(); | page.bind(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#navultab li').on('click', function () { | |||||
if (!$(this).hasClass('active')) { | |||||
$(this).parent().find('.active').removeClass('active'); | |||||
$(this).addClass('active'); | |||||
$('#condivtab .condiv').eq($(this).index()).siblings().hide() | |||||
$('#condivtab .condiv').eq($(this).index()).show() | |||||
} | |||||
}) | |||||
$('#SubmitBtn').on('click', function () { | |||||
if (!$('body').lrValidform()) { | |||||
return false; | |||||
} | |||||
var entity = $('body').lrGetFormData(); | |||||
var selgridtab = $('#selgridtab').jfGridGet('rowdatas'); | |||||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) }, | |||||
function (res) { | |||||
//console.log(res) | |||||
if (res.code == 200) { | |||||
setTimeout(function () { | |||||
location.reload(); | |||||
}, 100) | |||||
} | |||||
// 保存成功后才回调 | |||||
//if (!!callBack) { | |||||
// callBack(res); | |||||
//} | |||||
} | |||||
); | |||||
}) | |||||
$("#EducationExperienceReturn").attr("src", "/EducationalAdministration/StuTransferInfo/ReturnIndex"); | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 280, 400); | }, 280, 400); | ||||
@@ -125,7 +156,8 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
//提交下拉框 | //提交下拉框 | ||||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType'}); | |||||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); | |||||
$('#AnomalousType').lrselectSet("06"); | |||||
$('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | ||||
$('#F_WriteMark').lrDataItemSelect({ code: 'YesOrNoInt' }); | $('#F_WriteMark').lrDataItemSelect({ code: 'YesOrNoInt' }); | ||||
// 刷新 | // 刷新 | ||||
@@ -716,7 +748,7 @@ var bootstrap = function ($, learun) { | |||||
}, []) | }, []) | ||||
//console.log('resources', list) | //console.log('resources', list) | ||||
} | } | ||||
console.log(list) | |||||
//console.log(list) | |||||
tempdatra = list | tempdatra = list | ||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | $('#selgridtab').jfGridSet('refreshdata', tempdatra); | ||||
} | } | ||||
@@ -734,6 +766,3 @@ var bootstrap = function ($, learun) { | |||||
}; | }; | ||||
page.init(); | page.init(); | ||||
} | } | ||||
function delbtn() { | |||||
console.log('111111') | |||||
} |
@@ -0,0 +1,101 @@ | |||||
@{ | |||||
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 " style="overflow-y:scroll;-webkit-scrollbar-track-piece{width:1px;background-color:#fff;}"> | |||||
<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="StuName" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 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> | |||||
<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> | |||||
</div> | |||||
</div> | |||||
@*<div class="lr-layout-tool-item"> | |||||
<div class="lr-query-btn" style="padding:0 10px;" id="listitem"> | |||||
点击 | |||||
</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" style="height:50%;border-bottom:1px solid #ccc;" id="gridtable"></div> | |||||
<div class="lr-layout-body" style="height:40%;border-top: 1px solid #ccc;border-bottom:1px solid #ccc;margin-top:50px;" id="selgridtab"></div> | |||||
<div class="lr-form-wrap" style="height:40%;" id="form"> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div> | |||||
<div id="NewAnomalousType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">恢复学籍<font face="宋体">*</font></div> | |||||
<div id="RecoverStuStatus" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">恢复账号<font face="宋体">*</font></div> | |||||
<div id="RecoverWriteMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</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 lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#LeaveDate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">系部<font face="宋体">*</font></div> | |||||
<div id="NewDeptNo" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | |||||
<div id="NewMajorNo" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">年级<font face="宋体">*</font></div> | |||||
<div id="NewGrade" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | |||||
<div id="NewClassNo" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">异动原因</div> | |||||
<textarea id="Remark" class="form-control" style="height: 100px;"></textarea> | |||||
</div> | |||||
</div> | |||||
<div id="SubmitBtn" style="margin:0 auto;cursor:pointer;margin-bottom:10px; position:relative; width:80px; height:28px;line-height:28px;border-radius:4px; background:#039cfd;color:#FFF;text-align:center;"> | |||||
提交 | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/ReturnIndex.js") |
@@ -0,0 +1,871 @@ | |||||
var refreshGirdData; | |||||
var StuId; | |||||
var tempdatra = new Array(); | |||||
var list = []; | |||||
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); | |||||
}, 280, 400); | |||||
$('#SubmitBtn').on('click', function () { | |||||
if (!$('body').lrValidform()) { | |||||
return false; | |||||
} | |||||
var entity = $('body').lrGetFormData(); | |||||
entity.AnomalousType = entity.NewAnomalousType; | |||||
var selgridtab = $('#selgridtab').jfGridGet('rowdatas'); | |||||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) }, | |||||
function (res) { | |||||
//console.log(res) | |||||
if (res.code == 200) { | |||||
setTimeout(function () { | |||||
location.reload(); | |||||
}, 100) | |||||
} | |||||
// 保存成功后才回调 | |||||
//if (!!callBack) { | |||||
// callBack(res); | |||||
//} | |||||
} | |||||
); | |||||
}) | |||||
$('#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" | |||||
}); | |||||
//提交下拉框 | |||||
$('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); | |||||
$('#NewDeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#NewMajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#NewMajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#NewMajorNo').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 = $("#NewGrade").lrselectGet(); | |||||
if (Grades != null && Grades != "" && Grades != "undefined") { | |||||
if (item) { | |||||
$('#NewClassNo').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 { | |||||
$('#NewClassNo').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) { | |||||
$('#NewClassNo').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 { | |||||
$('#NewClassNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } | |||||
}); | |||||
} | |||||
} | |||||
} | |||||
}); | |||||
$('#NewGrade').lrselect({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', | |||||
value: "value", | |||||
text: "text", | |||||
select: function (item) { | |||||
var MajorNos = $("#NewMajorNo").lrselectGet(); | |||||
if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { | |||||
if (item) { | |||||
$('#NewClassNo').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 { | |||||
$('#NewClassNo').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) { | |||||
$('#NewClassNo').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 { | |||||
$('#NewClassNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||||
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } | |||||
}); | |||||
} | |||||
} | |||||
} | |||||
}); | |||||
$('#NewClassNo').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" | |||||
}); | |||||
$('#RecoverWriteMark').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||||
$('#RecoverStuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||||
$('#NewAnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); | |||||
$('#NewAnomalousType').lrselectSet("03"); | |||||
// 刷新 | |||||
$('#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 | |||||
}); | |||||
} | |||||
}); | |||||
$('#selgridtab').jfGrid({ | |||||
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: "Delete", width: 100, align: "center", | |||||
formatter: function (callback, cellvalue, row, op, $cell) { | |||||
var $div = $('<div></div>'); | |||||
var $hbtn = $('<span class="label label-info" style="cursor: pointer;margin-right:8px;"> 移除</span>'); | |||||
$hbtn.on('click', function () { | |||||
tempdatra.map((item, index) => { | |||||
if (item.StuNo == cellvalue.StuNo) { | |||||
tempdatra.splice(index, 1) | |||||
} | |||||
}); | |||||
//console.log(tempdatra) | |||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | |||||
}); | |||||
$div.append($hbtn); | |||||
return $div; | |||||
} | |||||
}, | |||||
], | |||||
mainId: 'AAIId', | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').lrAuthorizeJfGridLei({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/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" }, | |||||
{ 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", | |||||
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) { | |||||
var selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||||
if (list.length < 1) { | |||||
list = selectedRow | |||||
} else { | |||||
// 合并两个数组 | |||||
list = list.concat(selectedRow) | |||||
// 去重 | |||||
let temp = {} | |||||
list = list.reduce((prev, curv) => { | |||||
// 若临时对象中有一模一样的item,则什么都不做 | |||||
if (temp[curv.StuNo]) { } | |||||
else { | |||||
temp[curv.StuNo] = true | |||||
prev.push(curv) | |||||
} | |||||
return prev | |||||
}, []) | |||||
//console.log('resources', list) | |||||
} | |||||
//console.log(list) | |||||
tempdatra = list | |||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | |||||
} | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
param.SqlParameter = ' and AnomalousType=06 and IsReturnSchool=1 and F_EnabledMark=1 '; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
page.search(); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -95,4 +95,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/RestAgainIndex.js") | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/RolloffIndex.js") |
@@ -716,7 +716,7 @@ var bootstrap = function ($, learun) { | |||||
}, []) | }, []) | ||||
//console.log('resources', list) | //console.log('resources', list) | ||||
} | } | ||||
console.log(list) | |||||
//console.log(list) | |||||
tempdatra = list | tempdatra = list | ||||
$('#selgridtab').jfGridSet('refreshdata', tempdatra); | $('#selgridtab').jfGridSet('refreshdata', tempdatra); | ||||
} | } | ||||
@@ -734,6 +734,3 @@ var bootstrap = function ($, learun) { | |||||
}; | }; | ||||
page.init(); | page.init(); | ||||
} | } | ||||
function delbtn() { | |||||
console.log('111111') | |||||
} |
@@ -1362,7 +1362,10 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndexTeacher.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndexTeacher.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\CheckIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\CheckIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\InAndOutIndex.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\CheckForm.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RolloffIndex.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\ReturnIndex.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\IntoIndex.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RestAgainIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RestAgainIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\DropOutIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\DropOutIndex.js" /> | ||||
@@ -8044,7 +8047,10 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\Form.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\Form.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\DropOutIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\DropOutIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RestAgainIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RestAgainIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\InAndOutIndex.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\IntoIndex.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\ReturnIndex.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RolloffIndex.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\CheckForm.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | ||||
<Content Include="Views\Login\Default-beifen.cshtml" /> | <Content Include="Views\Login\Default-beifen.cshtml" /> | ||||
@@ -159,7 +159,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
[Column("CHECKUSERID")] | [Column("CHECKUSERID")] | ||||
public string CheckUserId { get; set; } | public string CheckUserId { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 审核状态0否1是 | |||||
/// 审核状态//0未审核,1已审核 2 作废 | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[Column("F_ENABLEDMARK")] | [Column("F_ENABLEDMARK")] | ||||
@@ -336,7 +336,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
UserInfo userInfo = LoginUserInfo.Get(); | UserInfo userInfo = LoginUserInfo.Get(); | ||||
this.CreateTime = DateTime.Now; | this.CreateTime = DateTime.Now; | ||||
this.CreateUserId = userInfo.userId; | this.CreateUserId = userInfo.userId; | ||||
this.F_EnabledMark = 0;//审核状态默认为未审核 | |||||
this.F_EnabledMark = 0;//0未审核,1已审核 2 作废 | |||||
this.IsReturnSchool = "1"; | this.IsReturnSchool = "1"; | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
@@ -103,7 +103,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("StuStatus", queryParam["StuStatus"].ToString(), DbType.String); | dp.Add("StuStatus", queryParam["StuStatus"].ToString(), DbType.String); | ||||
strSql.Append(" AND t.StuStatus = @StuStatus "); | strSql.Append(" AND t.StuStatus = @StuStatus "); | ||||
} | } | ||||
return this.BaseRepository("CollegeMIS").FindList<StuTransferInfoEntity>(strSql.ToString(), pagination); | |||||
return this.BaseRepository("CollegeMIS").FindList<StuTransferInfoEntity>(strSql.ToString(), dp, pagination); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -193,7 +193,21 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
else | else | ||||
{ | { | ||||
entity.Create(); | entity.Create(); | ||||
this.BaseRepository("CollegeMIS").Insert(entity); | |||||
//去重验证 | |||||
if (entity.AnomalousType == "04")//转入 | |||||
{ | |||||
if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | |||||
x.AnomalousType == entity.AnomalousType && x.StuName == entity.StuName && | |||||
x.StuNo == entity.StuNo && x.IdentityCardNo == entity.IdentityCardNo) == null) | |||||
{ | |||||
//添加数据 | |||||
this.BaseRepository("CollegeMIS").Insert(entity); | |||||
} | |||||
} | |||||
else | |||||
{ | |||||
this.BaseRepository("CollegeMIS").Insert(entity); | |||||
} | |||||
} | } | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
@@ -240,17 +254,51 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
InsertEntity.AnomalousType = entity.AnomalousType; | InsertEntity.AnomalousType = entity.AnomalousType; | ||||
InsertEntity.ChangeReason = entity.ChangeReason; | InsertEntity.ChangeReason = entity.ChangeReason; | ||||
InsertEntity.NewClassNo = entity.NewClassNo; | InsertEntity.NewClassNo = entity.NewClassNo; | ||||
InsertEntity.MajorNo = entity.MajorNo; | |||||
InsertEntity.NewMajorNo = entity.NewMajorNo; | |||||
InsertEntity.NewDeptNo = entity.NewDeptNo; | InsertEntity.NewDeptNo = entity.NewDeptNo; | ||||
InsertEntity.NewGrade = entity.NewGrade; | InsertEntity.NewGrade = entity.NewGrade; | ||||
InsertEntity.LeaveDate = entity.LeaveDate; | InsertEntity.LeaveDate = entity.LeaveDate; | ||||
InsertEntity.StuStatus = entity.StuStatus; | |||||
InsertEntity.SuspensionBeginTime = entity.SuspensionBeginTime; | |||||
InsertEntity.SuspensionEndTime = entity.SuspensionEndTime; | |||||
InsertEntity.SuspensionPeriod = entity.SuspensionPeriod; | |||||
InsertEntity.ChangeReason = entity.Remark; | |||||
// | // | ||||
InsertEntity.StuStatus = entity.StuStatus; | InsertEntity.StuStatus = entity.StuStatus; | ||||
InsertEntity.F_WriteMark = entity.F_WriteMark; | InsertEntity.F_WriteMark = entity.F_WriteMark; | ||||
//添加数据 | |||||
entitylist.Add(InsertEntity); | |||||
InsertEntity.Create(); | |||||
//去重验证 | |||||
if (InsertEntity.AnomalousType == "01" || InsertEntity.AnomalousType == "07" || InsertEntity.AnomalousType == "08")//转专业、转班、留级 | |||||
{ | |||||
if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | |||||
x.AnomalousType == InsertEntity.AnomalousType && x.StuId == InsertEntity.StuId && x.DeptNo == InsertEntity.DeptNo && x.MajorNo == InsertEntity.MajorNo && | |||||
x.ClassNo == InsertEntity.ClassNo && x.Grade == InsertEntity.Grade && x.NewDeptNo == InsertEntity.NewDeptNo && x.NewMajorNo == InsertEntity.NewMajorNo && | |||||
x.NewClassNo == InsertEntity.NewClassNo && x.NewGrade == InsertEntity.NewGrade) == null) | |||||
{ | |||||
//添加数据 | |||||
entitylist.Add(InsertEntity); | |||||
} | |||||
} | |||||
else if (InsertEntity.AnomalousType == "06")//休学 | |||||
{ | |||||
if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | |||||
x.AnomalousType == InsertEntity.AnomalousType && x.StuId == InsertEntity.StuId && x.EnteDate == InsertEntity.EnteDate && x.SuspensionPeriod == InsertEntity.SuspensionPeriod && | |||||
x.SuspensionBeginTime == InsertEntity.SuspensionBeginTime && x.SuspensionEndTime == InsertEntity.SuspensionEndTime) == null) | |||||
{ | |||||
//添加数据 | |||||
entitylist.Add(InsertEntity); | |||||
} | |||||
} | |||||
else if (InsertEntity.AnomalousType == "02" || InsertEntity.AnomalousType == "05")//退学、转出 | |||||
{ | |||||
if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | |||||
x.AnomalousType == InsertEntity.AnomalousType && x.StuId == InsertEntity.StuId && x.EnteDate == InsertEntity.EnteDate) == null) | |||||
{ | |||||
//添加数据 | |||||
entitylist.Add(InsertEntity); | |||||
} | |||||
} | |||||
} | } | ||||
db.Insert(entitylist); //创建学籍异动信息 | db.Insert(entitylist); //创建学籍异动信息 | ||||
@@ -310,8 +358,19 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
//恢复学籍,恢复账号 | //恢复学籍,恢复账号 | ||||
InsertEntity.RecoverStuStatus = entity.RecoverStuStatus; | InsertEntity.RecoverStuStatus = entity.RecoverStuStatus; | ||||
InsertEntity.RecoverWriteMark = entity.RecoverWriteMark; | InsertEntity.RecoverWriteMark = entity.RecoverWriteMark; | ||||
//添加数据 | |||||
entitylist.Add(InsertEntity); | |||||
InsertEntity.Create(); | |||||
//去重验证 | |||||
if (InsertEntity.AnomalousType == "03")//复学 | |||||
{ | |||||
if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | |||||
x.AnomalousType == InsertEntity.AnomalousType && x.StuId == InsertEntity.StuId && x.LeaveDate == InsertEntity.LeaveDate && | |||||
x.NewDeptNo==InsertEntity.NewDeptNo && x.NewMajorNo == InsertEntity.NewMajorNo && x.NewClassNo==InsertEntity.NewClassNo && x.NewGrade==InsertEntity.NewGrade) == null) | |||||
{ | |||||
//添加数据 | |||||
entitylist.Add(InsertEntity); | |||||
} | |||||
} | |||||
} | } | ||||
db.Insert(entitylist); //创建学籍异动信息 | db.Insert(entitylist); //创建学籍异动信息 | ||||
db.Commit(); | db.Commit(); | ||||