@@ -97,15 +97,6 @@ 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 获取数据 | ||||
@@ -1,15 +0,0 @@ | |||||
@{ | |||||
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") |
@@ -1,43 +0,0 @@ | |||||
/* * 版 本 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(); | |||||
} |
@@ -48,6 +48,7 @@ | |||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | <div class=" btn-group btn-group-sm" learun-authorize="yes"> | ||||
<a id="lr_check" class="btn btn-default"><i class="fa fa-lock"></i> 审核</a> | <a id="lr_check" class="btn btn-default"><i class="fa fa-lock"></i> 审核</a> | ||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-lock"></i> 删除</a> | |||||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | <a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -28,10 +28,8 @@ 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').lrselect({ | $('#F_EnabledMark').lrselect({ | ||||
data: [{ text: "作废", value: "0" }, { text: "未审核", value: "1" }, { text: "已审核", value: "2" }], | |||||
data: [{ text: "未生效", value: "0" }, { text: "已生效", value: "1" }], | |||||
text: "text", | text: "text", | ||||
value: "value" | value: "value" | ||||
}) | }) | ||||
@@ -49,21 +47,14 @@ var bootstrap = function ($, learun) { | |||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); | var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); | ||||
if (CheckMark.indexOf('1') != -1) { | if (CheckMark.indexOf('1') != -1) { | ||||
learun.alert.warning("选中记录中包含已审核项,已审核项不能二次审核!"); | |||||
return; | |||||
} | |||||
if (CheckMark.indexOf('2') != -1) { | |||||
learun.alert.warning("选中记录中包含已作废项,不可审核!"); | |||||
learun.alert.warning("选中记录中包含已审核项目,已审核项不能二次审核!"); | |||||
return; | 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); | |||||
learun.layerConfirm('是否确认审核选中项进行学籍异动,该项不可逆转!', function (res) { | |||||
if (res) { | |||||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/CheckForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -74,10 +65,10 @@ var bootstrap = function ($, learun) { | |||||
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); | var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
if (CheckMark.indexOf('1') != -1) { | if (CheckMark.indexOf('1') != -1) { | ||||
learun.alert.warning("选中记录中包含已审核项目,不可删除!"); | |||||
learun.alert.warning("选中记录中包含已生效项目,不可删除!"); | |||||
return; | return; | ||||
} | } | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
learun.layerConfirm('是否确认删除该项,此项不可逆!', function (res) { | |||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/DeleteForm', { keyValue: keyValue }, function () { | learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/DeleteForm', { keyValue: keyValue }, function () { | ||||
refreshGirdData(); | refreshGirdData(); | ||||
@@ -261,11 +252,9 @@ 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) { | ||||
if (cellvalue == "0") { | if (cellvalue == "0") { | ||||
return "<span class=\"label label-danger\">未审核</span>"; | |||||
return "<span class=\"label label-danger\">未生效</span>"; | |||||
} else if (cellvalue == "1") { | } else if (cellvalue == "1") { | ||||
return "<span class=\"label label-success\">已审核</span>"; | |||||
} else if (cellvalue == "2") { | |||||
return "<span class=\"label label-default\">作废</span>"; | |||||
return "<span class=\"label label-success\">已生效</span>"; | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
@@ -268,7 +268,7 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: '审核状态', name: 'F_EnabledMark', width: 80, align: "left", | label: '审核状态', name: 'F_EnabledMark', width: 80, align: "left", | ||||
formatter: function (cellvalue) { | formatter: function (cellvalue) { | ||||
return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>"; | |||||
return cellvalue == "1" ? "<span class=\"label label-success\">已生效</span>" : "<span class=\"label label-danger\">未生效</span>"; | |||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
@@ -1362,7 +1362,6 @@ | |||||
<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\CheckForm.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RolloffIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RolloffIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\ReturnIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\ReturnIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\IntoIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\IntoIndex.js" /> | ||||
@@ -8050,7 +8049,6 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\IntoIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\IntoIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\ReturnIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\ReturnIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\RolloffIndex.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已审核 2 作废 | |||||
/// 审核状态//0未生效1已生效 | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[Column("F_ENABLEDMARK")] | [Column("F_ENABLEDMARK")] | ||||
@@ -103,6 +103,11 @@ 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 "); | ||||
} | } | ||||
if (!queryParam["F_EnabledMark"].IsEmpty()) | |||||
{ | |||||
dp.Add("F_EnabledMark", queryParam["F_EnabledMark"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.F_EnabledMark = @F_EnabledMark "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<StuTransferInfoEntity>(strSql.ToString(), dp, pagination); | return this.BaseRepository("CollegeMIS").FindList<StuTransferInfoEntity>(strSql.ToString(), dp, pagination); | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
@@ -197,7 +202,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
if (entity.AnomalousType == "04")//转入 | if (entity.AnomalousType == "04")//转入 | ||||
{ | { | ||||
if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | ||||
x.AnomalousType == entity.AnomalousType && x.StuName == entity.StuName && | |||||
x.AnomalousType == entity.AnomalousType && x.StuName == entity.StuName && | |||||
x.StuNo == entity.StuNo && x.IdentityCardNo == entity.IdentityCardNo) == null) | x.StuNo == entity.StuNo && x.IdentityCardNo == entity.IdentityCardNo) == null) | ||||
{ | { | ||||
//添加数据 | //添加数据 | ||||
@@ -365,7 +370,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | if (this.BaseRepository("CollegeMIS").FindEntity<StuTransferInfoEntity>(x => | ||||
x.AnomalousType == InsertEntity.AnomalousType && x.StuId == InsertEntity.StuId && x.LeaveDate == InsertEntity.LeaveDate && | 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) | |||||
x.NewDeptNo == InsertEntity.NewDeptNo && x.NewMajorNo == InsertEntity.NewMajorNo && x.NewClassNo == InsertEntity.NewClassNo && x.NewGrade == InsertEntity.NewGrade) == null) | |||||
{ | { | ||||
//添加数据 | //添加数据 | ||||
entitylist.Add(InsertEntity); | entitylist.Add(InsertEntity); | ||||