Explorar el Código

学籍异动添加删除功能,学籍异动查询功能,

新疆警官学校中职
ndbs hace 1 año
padre
commit
5180712414
Se han modificado 9 ficheros con 21 adiciones y 95 borrados
  1. +0
    -9
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs
  2. +0
    -15
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckForm.cshtml
  3. +0
    -43
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckForm.js
  4. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.cshtml
  5. +11
    -22
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.js
  6. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js
  7. +0
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  8. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs
  9. +7
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs

+ 0
- 9
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs Ver fichero

@@ -97,15 +97,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View();
}
/// <summary>
/// 审核页
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult CheckForm()
{
return View();
}
#endregion

#region 获取数据


+ 0
- 15
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckForm.cshtml Ver fichero

@@ -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")

+ 0
- 43
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckForm.js Ver fichero

@@ -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();
}

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.cshtml Ver fichero

@@ -48,6 +48,7 @@
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_check" class="btn btn-default"><i class="fa fa-lock"></i>&nbsp;审核</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-lock"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>


+ 11
- 22
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.js Ver fichero

@@ -28,10 +28,8 @@ var bootstrap = function ($, learun) {
});
$('#CheckUserId').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({
data: [{ text: "作废", value: "0" }, { text: "未审核", value: "1" }, { text: "已审核", value: "2" }],
data: [{ text: "未生效", value: "0" }, { text: "已生效", value: "1" }],
text: "text",
value: "value"
})
@@ -49,21 +47,14 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
if (CheckMark.indexOf('1') != -1) {
learun.alert.warning("选中记录中包含已审核项,已审核项不能二次审核!");
return;
}
if (CheckMark.indexOf('2') != -1) {
learun.alert.warning("选中记录中包含已作废项,不可审核!");
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);
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');
if (learun.checkrow(keyValue)) {
if (CheckMark.indexOf('1') != -1) {
learun.alert.warning("选中记录中包含已审核项目,不可删除!");
learun.alert.warning("选中记录中包含已生效项目,不可删除!");
return;
}
learun.layerConfirm('是否确认删除该项!', function (res) {
learun.layerConfirm('是否确认删除该项,此项不可逆!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
@@ -261,11 +252,9 @@ var bootstrap = function ($, learun) {
label: '审核状态', name: 'F_EnabledMark', width: 100, align: "left",
formatter: function (cellvalue) {
if (cellvalue == "0") {
return "<span class=\"label label-danger\">未审核</span>";
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>";
return "<span class=\"label label-success\">已生效</span>";
}
}
},


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js Ver fichero

@@ -268,7 +268,7 @@ var bootstrap = function ($, learun) {
{
label: '审核状态', name: 'F_EnabledMark', width: 80, align: "left",
formatter: function (cellvalue) {
return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
return cellvalue == "1" ? "<span class=\"label label-success\">已生效</span>" : "<span class=\"label label-danger\">未生效</span>";
}
},
{


+ 0
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Ver fichero

@@ -1362,7 +1362,6 @@
<Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndexTeacher.js" />
<Content Include="Areas\EducationalAdministration\Views\StuScore\ScoreQueryAllIndex.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\ReturnIndex.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\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\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs Ver fichero

@@ -159,7 +159,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("CHECKUSERID")]
public string CheckUserId { get; set; }
/// <summary>
/// 审核状态//0未审核,1已审核 2 作废
/// 审核状态//0未生效1已生效
/// </summary>
/// <returns></returns>
[Column("F_ENABLEDMARK")]


+ 7
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs Ver fichero

@@ -103,6 +103,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dp.Add("StuStatus", queryParam["StuStatus"].ToString(), DbType.String);
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);
}
catch (Exception ex)
@@ -197,7 +202,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
if (entity.AnomalousType == "04")//转入
{
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)
{
//添加数据
@@ -365,7 +370,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
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)
x.NewDeptNo == InsertEntity.NewDeptNo && x.NewMajorNo == InsertEntity.NewMajorNo && x.NewClassNo == InsertEntity.NewClassNo && x.NewGrade == InsertEntity.NewGrade) == null)
{
//添加数据
entitylist.Add(InsertEntity);


Cargando…
Cancelar
Guardar