@@ -167,6 +167,24 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 助学贷款表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult LoanForm() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 现场缴费表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult OnsitePayForm() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 主页面【学子在线-新生信息完善】 | |||
@@ -409,6 +427,21 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveLoanForm(string keyValue, string strEntity) | |||
{ | |||
StuInfoFreshEntity entity = strEntity.ToObject<StuInfoFreshEntity>(); | |||
stuInfoFreshIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
@@ -489,7 +522,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
return Success("操作成功"); | |||
} | |||
/// <summary> | |||
///领取用品 | |||
///领取钥匙 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
@@ -500,6 +533,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
return Success("操作成功"); | |||
} | |||
/// <summary> | |||
///领取校园卡 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult IsGetCard(string keyValue, string status) | |||
{ | |||
stuInfoFreshIBLL.IsGetCard(keyValue, status); | |||
return Success("操作成功"); | |||
} | |||
/// <summary> | |||
///缴费 | |||
/// </summary> | |||
/// <returns></returns> | |||
@@ -510,6 +554,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
stuInfoFreshIBLL.IsPayFee(keyValue, status); | |||
return Success("操作成功"); | |||
} | |||
/// <summary> | |||
///其他费用缴费 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult IsOtherPayFee(string keyValue, string status) | |||
{ | |||
stuInfoFreshIBLL.IsOtherPayFee(keyValue, status); | |||
return Success("操作成功"); | |||
} | |||
/// <summary> | |||
/// 获取新生缴费明细 | |||
/// <summary> | |||
@@ -125,6 +125,10 @@ | |||
<div class="lr-form-item-title">家庭地址 <font face="宋体">*</font></div> | |||
<input id="FamilyAddress" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="StuInfoFresh"> | |||
<div class="lr-form-item-title">精准贫困户</div> | |||
<div id="IsPoor"></div> | |||
</div> | |||
<div class="col-xs-12" id="photoBox"> | |||
@@ -24,6 +24,7 @@ var bootstrap = function ($, learun) { | |||
$("#HighTestSortNo").lrDataItemSelect({ code: 'GraduateCategory' }); | |||
$("#MatriculateSort").lrDataItemSelect({ code: 'EnrollStyle' }); | |||
$('#ResidenceNo').lrDataItemSelect({ code: 'ResidenceNo' }); | |||
$('#IsPoor').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#StuInfoFreshFamily').jfGrid({ | |||
headData: [ | |||
@@ -145,6 +145,10 @@ | |||
<div class="lr-form-item-title">家庭地址 <font face="宋体">*</font></div> | |||
<input id="FamilyAddress" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="StuInfoFresh"> | |||
<div class="lr-form-item-title">精准贫困户</div> | |||
<div id="IsPoor"></div> | |||
</div> | |||
@@ -24,6 +24,8 @@ var bootstrap = function ($, learun) { | |||
$("#HighTestSortNo").lrDataItemSelect({ code: 'GraduateCategory' }); | |||
$("#MatriculateSort").lrDataItemSelect({ code: 'EnrollStyle' }); | |||
$('#ResidenceNo').lrDataItemSelect({ code: 'ResidenceNo' }); | |||
$('#IsPoor').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#StuInfoFreshFamily').jfGrid({ | |||
headData: [ | |||
@@ -37,8 +37,10 @@ | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||
<a id="lr_get" class="btn btn-default"><i class="fa fa-plus"></i> 领取饭卡钥匙</a> | |||
<a id="lr_cancelGet" class="btn btn-default"><i class="fa fa-trash-o"></i> 设置未领取</a> | |||
<a id="lr_get" class="btn btn-default"><i class="fa fa-plus"></i> 领取钥匙</a> | |||
<a id="lr_cancelGet" class="btn btn-default"><i class="fa fa-trash-o"></i> 设置未领取钥匙</a> | |||
<a id="lr_getCard" class="btn btn-default"><i class="fa fa-plus"></i> 领取校园卡</a> | |||
<a id="lr_cancelGetCard" class="btn btn-default"><i class="fa fa-trash-o"></i> 设置未领取校园卡</a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_deleteBed" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除宿舍信息</a> | |||
@@ -50,16 +50,16 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 领取饭卡钥匙 | |||
// 领取钥匙 | |||
$('#lr_get').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
if (selectedRow.GetKeyStatus == "1") { | |||
learun.alert.warning("当前新生已领取饭卡钥匙!"); | |||
learun.alert.warning("当前新生已领取钥匙!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认领取饭卡钥匙!', function (res) { | |||
learun.layerConfirm('是否确认领取钥匙!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/IsGetKey', { keyValue: keyValue, status: 1 }, function () { | |||
refreshGirdData(); | |||
@@ -68,16 +68,16 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 设置未领取 | |||
// 设置未领取钥匙 | |||
$('#lr_cancelGet').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
if (selectedRow.GetKeyStatus != "1") { | |||
learun.alert.warning("当前新生暂未领取饭卡钥匙!"); | |||
learun.alert.warning("当前新生暂未领取钥匙!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否设置新生未领取饭卡钥匙!', function (res) { | |||
learun.layerConfirm('是否设置新生未领取钥匙!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/IsGetKey', { keyValue: keyValue, status: 0 }, function () { | |||
refreshGirdData(); | |||
@@ -86,6 +86,43 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 领取校园卡 | |||
$('#lr_getCard').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
if (selectedRow.GetCardStatus == "1") { | |||
learun.alert.warning("当前新生已领取校园卡!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认领取校园卡!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/IsGetCard', { keyValue: keyValue, status: 1 }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 设置未领取校园卡 | |||
$('#lr_cancelGetCard').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
if (selectedRow.GetCardStatus != "1") { | |||
learun.alert.warning("当前新生暂未领取校园卡!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否设置新生未领取校园卡!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/IsGetCard', { keyValue: keyValue, status: 0 }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除宿舍信息 | |||
$('#lr_deleteBed').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
@@ -100,7 +137,11 @@ var bootstrap = function ($, learun) { | |||
return; | |||
} | |||
if (selectedRow.GetKeyStatus == "1") { | |||
learun.alert.warning("当前新生已领取饭卡钥匙,无法删除宿舍信息!"); | |||
learun.alert.warning("当前新生已领取钥匙,无法删除宿舍信息!"); | |||
return; | |||
} | |||
if (selectedRow.GetCardStatus == "1") { | |||
learun.alert.warning("当前新生已领取校园卡,无法删除宿舍信息!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除宿舍信息!', function (res) { | |||
@@ -146,22 +187,28 @@ var bootstrap = function ($, learun) { | |||
}, | |||
{ label: '报到时间', name: 'ArriveDate', width: 130, align: "left" }, | |||
{ | |||
label: '缴费状态', name: 'PayFeeStatus', width: 100, align: "left", formatter: function (value) { | |||
label: '线上缴费状态', name: 'PayFeeStatus', width: 100, align: "left", formatter: function (value) { | |||
return value == 1 ? "<span class=\"label label-success\">已缴费</span>" : "<span class=\"label label-warning\">未缴费</span>"; | |||
} | |||
}, | |||
{ label: '缴费时间', name: 'PayFeeDate', width: 130, align: "left" }, | |||
{ label: '线上缴费时间', name: 'PayFeeDate', width: 130, align: "left" }, | |||
{ | |||
label: '宿舍信息', name: 'DormitoryName', width: 180, align: "left", formatter: function (value, row) { | |||
return "<span>" + (row.Build ? row.Build : '') + (row.Room ? row.Room : '') + (row.Bed ? row.Bed : '') + "</span>"; | |||
} | |||
}, | |||
{ | |||
label: '领取状态', name: 'GetKeyStatus', width: 100, align: "left", formatter: function (value) { | |||
label: '领取钥匙状态', name: 'GetKeyStatus', width: 100, align: "left", formatter: function (value) { | |||
return value == 1 ? "<span class=\"label label-success\">已领取</span>" : "<span class=\"label label-warning\">未领取</span>"; | |||
} | |||
}, | |||
{ label: '领取钥匙时间', name: 'GetKeyDate', width: 130, align: "left" }, | |||
{ | |||
label: '领取校园卡状态', name: 'GetCardStatus', width: 100, align: "left", formatter: function (value) { | |||
return value == 1 ? "<span class=\"label label-success\">已领取</span>" : "<span class=\"label label-warning\">未领取</span>"; | |||
} | |||
}, | |||
{ label: '领取时间', name: 'GetKeyDate', width: 130, align: "left" }, | |||
{ label: '领取校园卡时间', name: 'GetCardDate', width: 130, align: "left" }, | |||
{ | |||
label: '系', name: 'DeptNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
@@ -0,0 +1,13 @@ | |||
@{ | |||
ViewBag.Title = "助学贷款"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="StuInfoFresh"> | |||
<div class="lr-form-item-title">贷款回执码</div> | |||
<input id="StudentLoan" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoFresh/LoanForm.js") |
@@ -0,0 +1,52 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-08-08 17:21 | |||
* 描 述:助学贷款 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetFormData?keyValue=' + keyValue, function (data) { | |||
for (var id in data) { | |||
if (id == "StuInfoFresh") { | |||
if (!!data[id].length && data[id].length > 0) { | |||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||
} | |||
else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = {}; | |||
postData.strEntity = JSON.stringify($('[data-table="StuInfoFresh"]').lrGetFormData()); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/SaveLoanForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,13 @@ | |||
@{ | |||
ViewBag.Title = "现场缴费"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="StuInfoFresh"> | |||
<div class="lr-form-item-title">缴费状态<font face="宋体">*</font></div> | |||
<div id="OnsitePayFeeStatus" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoFresh/OnsitePayForm.js") |
@@ -0,0 +1,53 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-08-08 17:21 | |||
* 描 述:现场缴费 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#OnsitePayFeeStatus').lrDataItemSelect({ code: 'OnsitePayStatus' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetFormData?keyValue=' + keyValue, function (data) { | |||
for (var id in data) { | |||
if (id == "StuInfoFresh") { | |||
if (!!data[id].length && data[id].length > 0) { | |||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||
} | |||
else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
} | |||
} | |||
}); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
var postData = {}; | |||
postData.strEntity = JSON.stringify($('[data-table="StuInfoFresh"]').lrGetFormData()); | |||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/SaveLoanForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -1,4 +1,6 @@ | |||
@{ | |||
/**/ | |||
ViewBag.Title = "新生缴费管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
@@ -19,8 +21,14 @@ | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||
<a id="lr_payFee" class="btn btn-default"><i class="fa fa-plus"></i> 缴费</a> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||
@*<a id="lr_payFee" class="btn btn-default"><i class="fa fa-plus"></i> 缴费</a>*@ | |||
<a id="lr_pay" class="btn btn-default"><i class="fa fa-plus"></i> 线上缴费</a> | |||
<a id="lr_cancelPay" class="btn btn-default"><i class="fa fa-trash-o"></i> 取消线上缴费</a> | |||
<a id="lr_loan" class="btn btn-default"><i class="fa fa-plus"></i> 助学贷款</a> | |||
<a id="lr_onsitePay" class="btn btn-default"><i class="fa fa-plus"></i> 现场缴费</a> | |||
<a id="lr_otherPay" class="btn btn-default"><i class="fa fa-plus"></i> 其他费用缴费</a> | |||
<a id="lr_cancelOtherPay" class="btn btn-default"><i class="fa fa-trash-o"></i> 取消其他费用缴费</a> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -53,6 +53,113 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
// 线上缴费 | |||
$('#lr_pay').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
if (selectedRow.PayFeeStatus == "1") { | |||
learun.alert.warning("当前新生已线上缴费!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认线上缴费!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/IsPayFee', { keyValue: keyValue, status: 1 }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 取消线上缴费 | |||
$('#lr_cancelPay').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
if (selectedRow.PayFeeStatus != "1") { | |||
learun.alert.warning("当前新生未线上缴费!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认取消线上缴费!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/IsPayFee', { keyValue: keyValue, status: 0 }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 助学贷款 | |||
$('#lr_loan').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'loanForm', | |||
title: '助学贷款', | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/LoanForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 现场缴费 | |||
$('#lr_onsitePay').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'onsitePayForm', | |||
title: '现场缴费', | |||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/OnsitePayForm?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 其他费用缴费 | |||
$('#lr_otherPay').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
if (selectedRow.OtherPayFeeStatus == "1") { | |||
learun.alert.warning("当前新生其他费用已缴费!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认其他费用缴费!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/IsOtherPayFee', { keyValue: keyValue, status: 1 }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 取消其他费用缴费 | |||
$('#lr_cancelOtherPay').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
if (selectedRow.OtherPayFeeStatus != "1") { | |||
learun.alert.warning("当前新生其他费用未缴费!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认取消其他费用缴费!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/IsOtherPayFee', { keyValue: keyValue, status: 0 }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
@@ -63,11 +170,38 @@ var bootstrap = function ($, learun) { | |||
{ label: '学号', name: 'StuNo', width: 100, align: "left" }, | |||
{ label: '姓名', name: 'StuName', width: 100, align: "left" }, | |||
{ | |||
label: '缴费状态', name: 'PayFeeStatus', width: 100, align: "left", formatter: function (value) { | |||
label: '线上缴费状态', name: 'PayFeeStatus', width: 100, align: "left", formatter: function (value) { | |||
return value == 1 ? "<span class=\"label label-success\">已缴费</span>" : "<span class=\"label label-warning\">未缴费</span>"; | |||
} | |||
}, | |||
{ label: '线上缴费时间', name: 'PayFeeDate', width: 130, align: "left" }, | |||
{ label: '助学贷款', name: 'StudentLoan', width: 130, align: "left" }, | |||
{ | |||
label: '现场缴费状态', name: 'OnsitePayFeeStatus', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'OnsitePayStatus', | |||
callback: function (_data) { | |||
//callback(_data.text); | |||
if (_data.text) { | |||
if (_data.text == "已缴费") { | |||
callback('<span class=\"label label-success\">' + _data.text + '</span>'); | |||
} else { | |||
callback('<span class=\"label label-warning\">' + _data.text + '</span>'); | |||
} | |||
} else { | |||
callback('<span class=\"label label-warning\">未缴费</span>'); | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '其他费用缴费状态', name: 'OtherPayFeeStatus', width: 100, align: "left", formatter: function (value) { | |||
return value == 1 ? "<span class=\"label label-success\">已缴费</span>" : "<span class=\"label label-warning\">未缴费</span>"; | |||
} | |||
}, | |||
{ label: '缴费时间', name: 'PayFeeDate', width: 130, align: "left" }, | |||
{ label: '其他费用缴费时间', name: 'OtherPayFeeDate', width: 130, align: "left" }, | |||
{ | |||
label: '系', name: 'DeptNo', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
@@ -952,6 +952,8 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\MyClass.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\Print.css" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\OnsitePayForm.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\LoanForm.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\FormDC.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\SchoolUniform.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\IndexDC.js" /> | |||
@@ -6802,6 +6804,8 @@ | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.cshtml" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\PaymentIndex.cshtml" /> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\ReportIndex.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\LoanForm.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\OnsitePayForm.cshtml" /> | |||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | |||
<Content Include="Views\Login\Default-beifen.cshtml" /> | |||
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" /> | |||
@@ -408,6 +408,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, StuInfoFreshEntity entity) | |||
{ | |||
try | |||
{ | |||
stuInfoFreshService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
@@ -461,7 +485,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
/// <summary> | |||
/// 领取用品 | |||
/// 领取钥匙 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
@@ -484,6 +508,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
/// <summary> | |||
/// 领取校园卡 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void IsGetCard(string keyValue, string status) | |||
{ | |||
try | |||
{ | |||
stuInfoFreshService.IsGetCard(keyValue, status); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 缴费 | |||
/// <param name="keyValue">主键</param> | |||
@@ -508,6 +556,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
/// <summary> | |||
/// 其他费用缴费 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void IsOtherPayFee(string keyValue, string status) | |||
{ | |||
try | |||
{ | |||
stuInfoFreshService.IsOtherPayFee(keyValue, status); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 分配班级 | |||
/// <param name="keyValue">主键</param> | |||
@@ -465,29 +465,71 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
[Column("COLLECTFILESTATUS")] | |||
public string CollectFileStatus { get; set; } | |||
/// <summary> | |||
/// 领取饭卡钥匙时间 | |||
/// 领取钥匙时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("GETKEYDATE")] | |||
public DateTime? GetKeyDate { get; set; } | |||
/// <summary> | |||
/// 领取饭卡钥匙状态 | |||
/// 领取钥匙状态 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("GETKEYSTATUS")] | |||
public string GetKeyStatus { get; set; } | |||
/// <summary> | |||
/// 领取校园卡时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("GETCARDDATE")] | |||
public DateTime? GetCardDate { get; set; } | |||
/// <summary> | |||
/// 领取校园卡状态 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("GETCARDSTATUS")] | |||
public string GetCardStatus { get; set; } | |||
/// <summary> | |||
/// 缴费时间 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PAYFEEDATE")] | |||
public DateTime? PayFeeDate { get; set; } | |||
/// <summary> | |||
/// 缴费状态 | |||
/// 线上缴费状态 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("PAYFEESTATUS")] | |||
public string PayFeeStatus { get; set; } | |||
/// <summary> | |||
/// 助学贷款:贷款回执码 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("STUDENTLOAN")] | |||
public string StudentLoan { get; set; } | |||
/// <summary> | |||
/// 现场缴费状态 | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("ONSITEPAYFEESTATUS")] | |||
public string OnsitePayFeeStatus { get; set; } | |||
/// <summary> | |||
/// 其他费用缴费时间(班费、体检费、军训费、) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("OTHERPAYFEEDATE")] | |||
public DateTime? OtherPayFeeDate { get; set; } | |||
/// <summary> | |||
/// 其他费用缴费状态(班费、体检费、军训费、) | |||
/// </summary> | |||
/// <returns></returns> | |||
[Column("OTHERPAYFEESTATUS")] | |||
public string OtherPayFeeStatus { get; set; } | |||
/// <summary> | |||
/// 是否精准贫困户 | |||
/// </summary> | |||
[Column("ISPOOR")] | |||
public string IsPoor { get; set; } | |||
/// <summary> | |||
/// 宿舍号 | |||
/// </summary> | |||
@@ -110,6 +110,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
/// <returns></returns> | |||
void SaveEntity(string keyValue, StuInfoFreshEntity entity, List<StuInfoFreshEmergePeopleEntity> stuInfoFreshEmergePeopleList, List<StuInfoFreshFamilyEntity> stuInfoFreshFamilyList); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void SaveEntity(string keyValue, StuInfoFreshEntity entity); | |||
#endregion | |||
#region 扩展数据 | |||
@@ -129,12 +135,19 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
void IsCollectFile(string keyValue, string status); | |||
/// <summary> | |||
/// 领取用品 | |||
/// 领取钥匙 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void IsGetKey(string keyValue, string status); | |||
/// <summary> | |||
/// 领取校园卡 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void IsGetCard(string keyValue, string status); | |||
/// <summary> | |||
/// 缴费 | |||
/// <param name="keyValue">主键</param> | |||
@@ -142,6 +155,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
/// <returns></returns> | |||
void IsPayFee(string keyValue, string status); | |||
/// <summary> | |||
/// 其他费用缴费 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
void IsOtherPayFee(string keyValue, string status); | |||
/// <summary> | |||
/// 分配班级 | |||
/// <param name="keyValue">主键</param> | |||
@@ -839,6 +839,40 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, StuInfoFreshEntity entity) | |||
{ | |||
try | |||
{ | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.Modify(keyValue); | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
this.BaseRepository("CollegeMIS").Insert(entity); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
@@ -906,7 +940,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
/// <summary> | |||
/// 领取用品 | |||
/// 领取钥匙 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
@@ -936,6 +970,37 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
/// <summary> | |||
/// 领取校园卡 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void IsGetCard(string keyValue, string status) | |||
{ | |||
try | |||
{ | |||
if (status == "1")//领取 | |||
{ | |||
this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoFresh set GetCardStatus='1',GetCardDate='" + DateTime.Now + "' where ID='" + keyValue + "' "); | |||
} | |||
else | |||
{ | |||
this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoFresh set GetCardStatus='0',GetCardDate=null where ID='" + keyValue + "' "); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 缴费 | |||
/// <param name="keyValue">主键</param> | |||
@@ -967,6 +1032,37 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
} | |||
} | |||
/// <summary> | |||
/// 其他费用缴费 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public void IsOtherPayFee(string keyValue, string status) | |||
{ | |||
try | |||
{ | |||
if (status == "1")//缴费 | |||
{ | |||
this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoFresh set OtherPayFeeStatus='1',OtherPayFeeDate='" + DateTime.Now + "' where ID='" + keyValue + "' "); | |||
} | |||
else | |||
{ | |||
this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoFresh set OtherPayFeeStatus='0',OtherPayFeeDate=null where ID='" + keyValue + "' "); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 分配班级 | |||
/// <param name="keyValue">主键</param> | |||