Browse Source

调试开发西昌缴费与发票

西昌缴费二期
liangkun 2 years ago
parent
commit
83f83bd763
8 changed files with 62 additions and 19 deletions
  1. +12
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeForm.js
  2. +22
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.js
  3. +17
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeItem/ShowIndex.cshtml
  4. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/css/receiveSendFeeManagement/charge.css
  5. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeItem/FinaChargeItemEntity.cs
  6. +1
    -12
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeItem/FinaChargeItemService.cs
  7. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargesStandard/FinaChargesStandardEntity.cs
  8. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargesStandard/FinaChargesStandardService.cs

+ 12
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeForm.js View File

@@ -62,6 +62,10 @@ var bootstrap = function ($, learun) {
initData: function () { initData: function () {
if (!!keyValue) { if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetPayFeeDetail?keyValue=' + keyValue, function (data) { $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetPayFeeDetail?keyValue=' + keyValue, function (data) {
if (data['FinaChargesStandardList'].length == 0) {
learun.alert.warning("检测到还未维护该专业收费标准!请先维护该专业收费标准。");
return;
}
var StuInfoFresh = data['StuInfoFreshData']; var StuInfoFresh = data['StuInfoFreshData'];
var className = ""; var className = "";
learun.clientdata.getAsync('custmerData', { learun.clientdata.getAsync('custmerData', {
@@ -89,7 +93,7 @@ var bootstrap = function ($, learun) {
html += "<tr><td class=\"tableLeft\">系别</td><td>" + deptName + "</td></tr>"; html += "<tr><td class=\"tableLeft\">系别</td><td>" + deptName + "</td></tr>";
html += '<tr style="border-top: 10px solid blue;"><td class=\"tableLeft\">缴费项目</td><td class=\"tableLeft\">应交费用</td><td class=\"tableLeft\">本次实交</td></tr>'; html += '<tr style="border-top: 10px solid blue;"><td class=\"tableLeft\">缴费项目</td><td class=\"tableLeft\">应交费用</td><td class=\"tableLeft\">本次实交</td></tr>';
$.each(data['FinaChargesStandardList'], function (i, item) { $.each(data['FinaChargesStandardList'], function (i, item) {
html += '<tr><td class=\"tableLeft\">' + item.ChargeItemName + '</td><td>' + item.Standard + '元</td><td><input id="' + item.ChargeItemID + '" data-amount="' + item.Standard + '" data-name="' + item.ChargeItemName + '" type="number" class="form-control paydetail" /></td></tr>';
html += '<tr><td class=\"tableLeft\">' + item.ChargeItemName + '</td><td>' + item.Standard + '元</td><td><input id="' + item.ChargeItemCode + '" data-amount="' + item.Standard + '" data-name="' + item.ChargeItemName + '" type="number" class="form-control paydetail" /></td></tr>';
}); });
html += '<tr><td class=\"tableLeft\">合计</td><td>' + data['PayFeeTotal'] + '元</td><td><span id="PayMoney"></span></td></tr>'; html += '<tr><td class=\"tableLeft\">合计</td><td>' + data['PayFeeTotal'] + '元</td><td><span id="PayMoney"></span></td></tr>';
html += '<tr><td class=\"tableLeft\">贷款金额</td><td colspan="2"><input id="LoanMoney" type="number" class="form-control" value="' + StuInfoFresh.LoanMoney + '" /></td></tr>'; html += '<tr><td class=\"tableLeft\">贷款金额</td><td colspan="2"><input id="LoanMoney" type="number" class="form-control" value="' + StuInfoFresh.LoanMoney + '" /></td></tr>';
@@ -101,10 +105,13 @@ var bootstrap = function ($, learun) {
getQRCode: function () { getQRCode: function () {
var list = []; var list = [];
var detail = ""; var detail = "";
var ifisnull = false;
$('.paydetail').each(function (i, item) { $('.paydetail').each(function (i, item) {
var value = 0; var value = 0;
if (!!$(this).val()) { if (!!$(this).val()) {
value = parseFloat($(this).val()); value = parseFloat($(this).val());
} else {
ifisnull = true;
} }
detail += $(this).attr('id') + "!" + value + '&'; detail += $(this).attr('id') + "!" + value + '&';
var entity = { var entity = {
@@ -116,6 +123,10 @@ var bootstrap = function ($, learun) {
}; };
list.push(entity); list.push(entity);
}); });
if (ifisnull) {
learun.alert.warning("收费项目金额不能为空!请检查并填写。");
return;
}
detail = detail.substring(0, detail.length - 1); detail = detail.substring(0, detail.length - 1);
var param = {}; var param = {};
param.LoanMoney = $('#LoanMoney').val(); param.LoanMoney = $('#LoanMoney').val();


+ 22
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.js View File

@@ -58,6 +58,28 @@ var bootstrap = function ($, learun) {
}); });
} }
}); });
//查看发票
$('#lr_viewinvoice').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
selectedRow = $('#gridtable').jfGridGet('rowdata');
if (learun.checkrow(keyValue)) {
if (selectedRow.billStatus === true) {
learun.layerForm({
id: 'form_payCode',
title: '二维码缴费',
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/PayFeeForm?keyValue=' + keyValue,
width: 800,
height: 600,
btn: null
});
} else {
learun.alert.warning("当前新生尚未开具发票,请缴费成功后耐心等待!");
return;
}
}
});
// 缴费 // 缴费
$('#lr_payFee').on('click', function () { $('#lr_payFee').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID'); var keyValue = $('#gridtable').jfGridValue('ID');


+ 17
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeItem/ShowIndex.cshtml View File

@@ -104,6 +104,7 @@
<div class="chargeSec1Box"> <div class="chargeSec1Box">
<input type="hidden" name="ChargeItemID" value="@item.ChargeItemID" /> <input type="hidden" name="ChargeItemID" value="@item.ChargeItemID" />
<input type="hidden" name="KeyWordMark" value="@item.KeyWordMark" /> <input type="hidden" name="KeyWordMark" value="@item.KeyWordMark" />
<input type="hidden" name="ChargeItemCode" value="@item.ChargeItemCode" />
<input type="hidden" name="priority" value="@item.priority" /> <input type="hidden" name="priority" value="@item.priority" />
<div class="chargeSec1Btn"> <div class="chargeSec1Btn">
<img src="~/Content/images/receiveSendFeeManagement/charge1-3.png" alt="" /> <img src="~/Content/images/receiveSendFeeManagement/charge1-3.png" alt="" />
@@ -140,13 +141,14 @@
'<div class="chargeSec1Col5">' + '<div class="chargeSec1Col5">' +
'<div class="chargeSec1Box">' + '<div class="chargeSec1Box">' +
'<input type="hidden" name="ChargeItemID" value="' + item.ChargeItemID + '" />' + '<input type="hidden" name="ChargeItemID" value="' + item.ChargeItemID + '" />' +
'<input type="hidden" name="KeyWordMark" value="' + item.KeyWordMark + '" />' +
'<input type="hidden" name="KeyWordMark" value="' + item.KeyWordMark + '" />' +
'<input type="hidden" name="ChargeItemCode" value="' + item.ChargeItemCode + '" />' +
'<input type="hidden" name="priority" value="' + item.priority + '" />' + '<input type="hidden" name="priority" value="' + item.priority + '" />' +
'<div class="chargeSec1Btn">' + '<div class="chargeSec1Btn">' +
'<img src="/Content/images/receiveSendFeeManagement/charge1-3.png" alt="" />' + '<img src="/Content/images/receiveSendFeeManagement/charge1-3.png" alt="" />' +
'<img src="/Content/images/receiveSendFeeManagement/charge1-2.png" alt="" />' + '<img src="/Content/images/receiveSendFeeManagement/charge1-2.png" alt="" />' +
'</div>' + '</div>' +
'<div class="chargeSec1T">' + item.ChargeItemName + '</div>' +
'<div class="chargeSec1T">' + item.ChargeItemName + '</div>' +
'<div class="chargeSec1Con">' + '<div class="chargeSec1Con">' +
'<div class="chargeSec1Txt">' + item.Remark + '</div>' + '<div class="chargeSec1Txt">' + item.Remark + '</div>' +
'<div class="chargeSec1Time">' + createdate + '</div>' + '<div class="chargeSec1Time">' + createdate + '</div>' +
@@ -163,7 +165,7 @@
}); });
}); });
//弹框内容 //弹框内容
function layerHtml(headInfo, ChargeItemID, ChargeItemName, Remark, noClass, yesClass, priority) {
function layerHtml(headInfo, ChargeItemID, ChargeItemName, ChargeItemCode, Remark, noClass, yesClass, priority) {
var html = '<form id="formBox">' + var html = '<form id="formBox">' +
'<div class="layerChage layerChage2">' + '<div class="layerChage layerChage2">' +
'<div class="layerChageT">' + headInfo + '</div>' + '<div class="layerChageT">' + headInfo + '</div>' +
@@ -174,6 +176,10 @@
'<input type="text" name="ChargeItemName" value="' + ChargeItemName + '" />' + '<input type="text" name="ChargeItemName" value="' + ChargeItemName + '" />' +
'</div>' + '</div>' +
'<div class="chargeInput">' + '<div class="chargeInput">' +
'<span>收费项目编码</span>' +
'<input type="text" name="ChargeItemCode" value="' + ChargeItemCode + '" />' +
'</div>' +
'<div class="chargeInput">' +
'<span>备注</span>' + '<span>备注</span>' +
'<textarea name="Remark" cols="30" rows="10">' + Remark + '</textarea>' + '<textarea name="Remark" cols="30" rows="10">' + Remark + '</textarea>' +
'</div>' + '</div>' +
@@ -204,7 +210,7 @@
var noClass = 'checked="checked"'; var noClass = 'checked="checked"';
var yesClass = ''; var yesClass = '';


var html = layerHtml("添加收费项目", "", "", "", noClass, yesClass, "0");
var html = layerHtml("添加收费项目", "", "", "","", noClass, yesClass, "0");


layer.open({ layer.open({
type: 1, type: 1,
@@ -220,6 +226,7 @@
var KeyWordMark = chargeSec1Btn.siblings('input[name="KeyWordMark"]').val(); var KeyWordMark = chargeSec1Btn.siblings('input[name="KeyWordMark"]').val();
var priority = chargeSec1Btn.siblings('input[name="priority"]').val(); var priority = chargeSec1Btn.siblings('input[name="priority"]').val();
var ChargeItemName = chargeSec1Btn.siblings('.chargeSec1T').html(); var ChargeItemName = chargeSec1Btn.siblings('.chargeSec1T').html();
var ChargeItemCode = chargeSec1Btn.siblings('input[name="ChargeItemCode"]').val();
var Remark = chargeSec1Btn.siblings('.chargeSec1Con').find('.chargeSec1Txt').html(); var Remark = chargeSec1Btn.siblings('.chargeSec1Con').find('.chargeSec1Txt').html();


if (ChargeItemID == null || ChargeItemID == "") { if (ChargeItemID == null || ChargeItemID == "") {
@@ -242,7 +249,7 @@
yesClass = 'checked="checked"'; yesClass = 'checked="checked"';
} }


var html = layerHtml("编辑收费项目", ChargeItemID, ChargeItemName, Remark, noClass, yesClass, priority);
var html = layerHtml("编辑收费项目", ChargeItemID, ChargeItemName, ChargeItemCode, Remark, noClass, yesClass, priority);


layer.open({ layer.open({
type: 1, type: 1,
@@ -272,6 +279,7 @@


var formObject = new Object(); var formObject = new Object();
formObject.ChargeItemName = formSelector.find('input[name="ChargeItemName"]').val(); formObject.ChargeItemName = formSelector.find('input[name="ChargeItemName"]').val();
formObject.ChargeItemCode = formSelector.find('input[name="ChargeItemCode"]').val();
formObject.Remark = formSelector.find('[name="Remark"]').val(); formObject.Remark = formSelector.find('[name="Remark"]').val();
formObject.KeyWordMark = formSelector.find('input[name="KeyWordMark"]:checked').val(); formObject.KeyWordMark = formSelector.find('input[name="KeyWordMark"]:checked').val();
formObject.priority = formSelector.find('input[name="priority"]').val(); formObject.priority = formSelector.find('input[name="priority"]').val();
@@ -280,6 +288,10 @@
layer.msg("收费项目名称不能为空!", function () { }); layer.msg("收费项目名称不能为空!", function () { });
return; return;
} }
if (formObject.ChargeItemCode.trim() == null || formObject.ChargeItemCode.trim() == "") {
layer.msg("收费项目编码不能为空!", function () { });
return;
}
if (formObject.priority.trim() == null || formObject.priority.trim() == "") { if (formObject.priority.trim() == null || formObject.priority.trim() == "") {
layer.msg("优先级不能为空!", function () { }); layer.msg("优先级不能为空!", function () { });
return; return;


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/css/receiveSendFeeManagement/charge.css View File

@@ -85,6 +85,9 @@
.chargeSec1Row2 .chargeSec1T { .chargeSec1Row2 .chargeSec1T {
border-bottom: 1px solid #47E1E4; border-bottom: 1px solid #47E1E4;
} }
.chargeSec1Row2 .chargeSec1TC {
border-bottom: 1px solid #47E1E4;
}


.chargeSec1Row3 .chargeSec1T { .chargeSec1Row3 .chargeSec1T {
border-bottom: 1px solid #FCB938; border-bottom: 1px solid #FCB938;


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeItem/FinaChargeItemEntity.cs View File

@@ -59,6 +59,10 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
/// </summary> /// </summary>
[Column("CREATEUSERNAME")] [Column("CREATEUSERNAME")]
public string CreateUserName { get; set; } public string CreateUserName { get; set; }

[Column("CHARGEITEMCODE")]
public string ChargeItemCode { get; set; }

#endregion #endregion


#region 扩展操作 #region 扩展操作


+ 1
- 12
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeItem/FinaChargeItemService.cs View File

@@ -29,18 +29,7 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
try try
{ {
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.ChargeItemID,
t.ChargeItemName,
t.Remark,
t.CurrentMark,
t.KeyWordMark,
t.priority,
t.CreateDate,
t.CreateUserId,
t.CreateUserName
");
strSql.Append("SELECT * ");
strSql.Append(" FROM FinaChargeItem t "); strSql.Append(" FROM FinaChargeItem t ");
strSql.Append(" WHERE 1=1 "); strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject(); var queryParam = queryJson.ToJObject();


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargesStandard/FinaChargesStandardEntity.cs View File

@@ -93,6 +93,8 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
/// </summary> /// </summary>
[NotMapped] [NotMapped]
public string ChargeItemName { get; set; } public string ChargeItemName { get; set; }
[NotMapped]
public string ChargeItemCode { get; set; }
//专业名称 //专业名称
[NotMapped] [NotMapped]
public string MajorName { get; set; } public string MajorName { get; set; }


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargesStandard/FinaChargesStandardService.cs View File

@@ -200,7 +200,7 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
try try
{ {
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("select i.ChargeItemID,REPLACE(i.ChargeItemName,'','') as ChargeItemName,t.ChargeStandardID,t.Standard as Standard");
strSql.Append("select i.ChargeItemID,i.ChargeItemCode,REPLACE(i.ChargeItemName,'','') as ChargeItemName,t.ChargeStandardID,t.Standard as Standard");
strSql.Append(" from [dbo].[FinaChargesStandard] t inner join [dbo].[FinaChargeItem] i on t.ChargeItemID=i.ChargeItemID "); strSql.Append(" from [dbo].[FinaChargesStandard] t inner join [dbo].[FinaChargeItem] i on t.ChargeItemID=i.ChargeItemID ");
strSql.Append(" and t.AcademicYearNo='" + academicYearNo + "' and t.Semester='" + semester + "' and t.Grade='" + grade + "' and t.MajorNo='" + majorNo + "' "); strSql.Append(" and t.AcademicYearNo='" + academicYearNo + "' and t.Semester='" + semester + "' and t.Grade='" + grade + "' and t.MajorNo='" + majorNo + "' ");
return this.BaseRepository("CollegeMIS").FindList<FinaChargesStandardEntity>(strSql.ToString()); return this.BaseRepository("CollegeMIS").FindList<FinaChargesStandardEntity>(strSql.ToString());


Loading…
Cancel
Save