@@ -104,6 +104,7 @@ | |||||
dateformat: 'yyyy-MM-dd hh:mm:ss' | dateformat: 'yyyy-MM-dd hh:mm:ss' | ||||
})); | })); | ||||
_$item.append($('<p class="lr-ellipsis"><span>贷款回执码:</span></p>').dataFormatter({ value: _item.StudentLoan })); | _$item.append($('<p class="lr-ellipsis"><span>贷款回执码:</span></p>').dataFormatter({ value: _item.StudentLoan })); | ||||
_$item.append($('<p class="lr-ellipsis"><span>助学贷款状态:</span></p>').dataFormatter({ value: _item.StudentLoanStatus == "1" ? "已审核" : "未审核" })); | |||||
_$item.append($('<p class="lr-ellipsis"><span>现场缴费状态:</span></p>').dataFormatter({ | _$item.append($('<p class="lr-ellipsis"><span>现场缴费状态:</span></p>').dataFormatter({ | ||||
value: _item.OnsitePayFeeStatus, | value: _item.OnsitePayFeeStatus, | ||||
type: 'dataItem', | type: 'dataItem', | ||||
@@ -5,3 +5,6 @@ | |||||
.lr-form-row label { | .lr-form-row label { | ||||
width: 100px; | width: 100px; | ||||
} | } | ||||
#StudentLoan[readonly='readonly']{ | |||||
background-color:#eee; | |||||
} |
@@ -123,6 +123,11 @@ | |||||
else { | else { | ||||
$page.find('[data-table="' + id + '"]').lrformSet(data[id]); | $page.find('[data-table="' + id + '"]').lrformSet(data[id]); | ||||
} | } | ||||
if (data[id].StudentLoanStatus == "1") { | |||||
$page.find("#StudentLoan").attr("readonly", "readonly"); | |||||
} else { | |||||
$page.find("#StudentLoan").removeAttr("readonly"); | |||||
} | |||||
} | } | ||||
} | } | ||||
learun.layer.loading(false); | learun.layer.loading(false); | ||||
@@ -28,7 +28,7 @@ | |||||
}, '智慧校园提示', ['确定']); | }, '智慧校园提示', ['确定']); | ||||
return false; | return false; | ||||
} | } | ||||
if (entity.PayFeeStatus != "1" && (entity.StudentLoan == null || entity.StudentLoan == "" || entity.StudentLoan == undefined) && entity.OnsitePayFeeStatus != "1") { | |||||
if (entity.PayFeeStatus != "1" && entity.StudentLoanStatus != "1" && entity.OnsitePayFeeStatus != "1") { | |||||
learun.layer.loading(false); | learun.layer.loading(false); | ||||
learun.layer.confirm('新生未缴费,无法报到!', function (_index) { | learun.layer.confirm('新生未缴费,无法报到!', function (_index) { | ||||
learun.nav.closeCurrent(); | learun.nav.closeCurrent(); | ||||
@@ -10,6 +10,13 @@ | |||||
if (id == "StuInfoFreshEntity") { | if (id == "StuInfoFreshEntity") { | ||||
$page.find("#ID").val(data[id].ID); | $page.find("#ID").val(data[id].ID); | ||||
$page.find("#StudentLoan").val(data[id].StudentLoan); | $page.find("#StudentLoan").val(data[id].StudentLoan); | ||||
if (data[id].StudentLoanStatus == "1") { | |||||
learun.layer.loading(false); | |||||
learun.layer.confirm('新生助学贷款已审核!', function (_index) { | |||||
learun.nav.closeCurrent(); | |||||
}, '智慧校园提示', ['确定']); | |||||
return false; | |||||
} | |||||
} | } | ||||
} | } | ||||
page.bind($page); | page.bind($page); | ||||
@@ -34,7 +34,7 @@ | |||||
助学贷款 | 助学贷款 | ||||
<span>( 填写贷款回执码 )</span> | <span>( 填写贷款回执码 )</span> | ||||
</div> | </div> | ||||
<div class="sSec1State">已完成</div> | |||||
<div class="sSec1State">未完成</div> | |||||
</div> | </div> | ||||
<div class="sSec1Con sSec1Type2" id="OnsitePayFeeStatus"> | <div class="sSec1Con sSec1Type2" id="OnsitePayFeeStatus"> | ||||
<img src="images/enter2-4.png" alt=""> | <img src="images/enter2-4.png" alt=""> | ||||
@@ -24,10 +24,10 @@ | |||||
} else { | } else { | ||||
notCompleteStyle("#PayFeeStatus", "images/enter2-2.png"); | notCompleteStyle("#PayFeeStatus", "images/enter2-2.png"); | ||||
} | } | ||||
if (data["StuInfoFreshEntity"].StudentLoan == null || data["StuInfoFreshEntity"].StudentLoan == "" || data["StuInfoFreshEntity"].StudentLoan == undefined) { | |||||
notCompleteStyle("#StudentLoan", "images/enter2-3.png"); | |||||
} else { | |||||
if (data["StuInfoFreshEntity"].StudentLoanStatus == "1") { | |||||
completeStyle("#StudentLoan", "images/enter1-3.png"); | completeStyle("#StudentLoan", "images/enter1-3.png"); | ||||
} else { | |||||
notCompleteStyle("#StudentLoan", "images/enter2-3.png"); | |||||
} | } | ||||
if (data["StuInfoFreshEntity"].OnsitePayFeeStatus == "1") { | if (data["StuInfoFreshEntity"].OnsitePayFeeStatus == "1") { | ||||
completeStyle("#OnsitePayFeeStatus", "images/enter1-4.png"); | completeStyle("#OnsitePayFeeStatus", "images/enter1-4.png"); | ||||
@@ -67,7 +67,7 @@ | |||||
$(box).find(".sSec1State").html('已完成'); | $(box).find(".sSec1State").html('已完成'); | ||||
$(box).find('img').attr("src", img); | $(box).find('img').attr("src", img); | ||||
}; | }; | ||||
//已完成样式 | |||||
//未完成样式 | |||||
var notCompleteStyle = function (box, img) { | var notCompleteStyle = function (box, img) { | ||||
$(box).removeClass("sSec1Type1").addClass("sSec1Type2"); | $(box).removeClass("sSec1Type1").addClass("sSec1Type2"); | ||||
$(box).find(".sSec1State").html('未完成'); | $(box).find(".sSec1State").html('未完成'); | ||||
@@ -566,6 +566,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
stuInfoFreshIBLL.IsOtherPayFee(keyValue, status); | stuInfoFreshIBLL.IsOtherPayFee(keyValue, status); | ||||
return Success("操作成功"); | return Success("操作成功"); | ||||
} | } | ||||
/// <summary> | |||||
///审核助学贷款 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult DoCheckLoan(string keyValue, string status) | |||||
{ | |||||
stuInfoFreshIBLL.DoCheckLoan(keyValue, status); | |||||
return Success("操作成功"); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取新生缴费明细 | /// 获取新生缴费明细 | ||||
/// <summary> | /// <summary> | ||||
@@ -89,11 +89,15 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
// 助学贷款 | |||||
// 填写贷款回执码 | |||||
$('#lr_loan').on('click', function () { | $('#lr_loan').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | selectedRow = $('#gridtable').jfGridGet('rowdata'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
if (selectedRow.StudentLoanStatus == "1") { | |||||
learun.alert.warning("当前新生助学贷款已审核!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | learun.layerForm({ | ||||
id: 'loanForm', | id: 'loanForm', | ||||
title: '助学贷款', | title: '助学贷款', | ||||
@@ -115,6 +119,11 @@ var bootstrap = function ($, learun) { | |||||
learun.alert.warning("当前新生助学贷款已审核!"); | learun.alert.warning("当前新生助学贷款已审核!"); | ||||
return; | return; | ||||
} | } | ||||
if (selectedRow.StudentLoan == null || selectedRow.StudentLoan == "" || selectedRow.StudentLoan == undefined) { | |||||
learun.alert.warning("贷款回执码为空!"); | |||||
return; | |||||
} | |||||
learun.layerConfirm('是否确认审核助学贷款!', function (res) { | learun.layerConfirm('是否确认审核助学贷款!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/DoCheckLoan', { keyValue: keyValue, status: 1 }, function () { | learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/DoCheckLoan', { keyValue: keyValue, status: 1 }, function () { | ||||
@@ -212,6 +221,11 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
{ label: '线上缴费时间', name: 'PayFeeDate', width: 130, align: "left" }, | { label: '线上缴费时间', name: 'PayFeeDate', width: 130, align: "left" }, | ||||
{ label: '贷款回执码', name: 'StudentLoan', width: 130, align: "left" }, | { label: '贷款回执码', name: 'StudentLoan', width: 130, align: "left" }, | ||||
{ | |||||
label: '助学贷款状态', name: 'StudentLoanStatus', width: 100, align: "left", formatter: function (value) { | |||||
return value == 1 ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-warning\">未审核</span>"; | |||||
} | |||||
}, | |||||
{ | { | ||||
label: '现场缴费状态', name: 'OnsitePayFeeStatus', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | label: '现场缴费状态', name: 'OnsitePayFeeStatus', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('dataItem', { | learun.clientdata.getAsync('dataItem', { | ||||
@@ -580,6 +580,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 审核助学贷款 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
public void DoCheckLoan(string keyValue, string status) | |||||
{ | |||||
try | |||||
{ | |||||
stuInfoFreshService.DoCheckLoan(keyValue, status); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 分配班级 | /// 分配班级 | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
@@ -162,6 +162,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// <returns></returns> | /// <returns></returns> | ||||
void IsOtherPayFee(string keyValue, string status); | void IsOtherPayFee(string keyValue, string status); | ||||
/// <summary> | |||||
/// 审核助学贷款 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
void DoCheckLoan(string keyValue, string status); | |||||
/// <summary> | /// <summary> | ||||
/// 分配班级 | /// 分配班级 | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
@@ -1079,6 +1079,37 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 审核助学贷款 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
public void DoCheckLoan(string keyValue, string status) | |||||
{ | |||||
try | |||||
{ | |||||
if (status == "1")//通过 | |||||
{ | |||||
this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoFresh set StudentLoanStatus='1' where ID='" + keyValue + "' "); | |||||
} | |||||
else | |||||
{ | |||||
this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoFresh set StudentLoanStatus='0' where ID='" + keyValue + "' "); | |||||
} | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 分配班级 | /// 分配班级 | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||