@@ -0,0 +1,117 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-08-16 11:02 | |||
/// 描 述:费用变更明细 | |||
/// </summary> | |||
public class FinaChargeStuBalanceController : MvcControllerBase | |||
{ | |||
private FinaChargeStuBalanceIBLL finaChargeStuBalanceIBLL = new FinaChargeStuBalanceBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = finaChargeStuBalanceIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var FinaChargeStuBalanceData = finaChargeStuBalanceIBLL.GetFinaChargeStuBalanceEntity( keyValue ); | |||
var jsonData = new { | |||
FinaChargeStuBalance = FinaChargeStuBalanceData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
finaChargeStuBalanceIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="strEntity">实体</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
FinaChargeStuBalanceEntity entity = strEntity.ToObject<FinaChargeStuBalanceEntity>(); | |||
finaChargeStuBalanceIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,59 @@ | |||
@{ | |||
ViewBag.Title = "费用变更明细"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">学号</div> | |||
<input id="StuNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">缴费年度</div> | |||
<input id="FSYear" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">收费项目编号</div> | |||
<input id="ChargeItemCode" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">收费项目名称</div> | |||
<input id="ChargeItemName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">收费标准</div> | |||
<input id="Standard" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">本次待缴金额</div> | |||
<input id="DJAmount" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">变动金额</div> | |||
<input id="PaymentAmount" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">剩余待缴金额</div> | |||
<input id="QJAmount" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">当前余额</div> | |||
<input id="OldBalance" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">本次变动金额</div> | |||
<input id="ChangeAmount" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">本次余额</div> | |||
<input id="NowBalance" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">变动时间</div> | |||
<input id="ChangeDate" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="FinaChargeStuBalance" > | |||
<div class="lr-form-item-title">变动原因</div> | |||
<input id="ChangeType" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuBalance/Form.js") |
@@ -0,0 +1,50 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-08-16 11:02 | |||
* 描 述:费用变更明细 | |||
*/ | |||
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 + '/ReceiveSendFeeManagement/FinaChargeStuBalance/GetFormData?keyValue=' + keyValue, function (data) { | |||
for (var id in data) { | |||
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 = { | |||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuBalance/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,46 @@ | |||
@{ | |||
ViewBag.Title = "费用变更明细"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout " > | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学号</div> | |||
<input id="StuNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">缴费年度</div> | |||
<input id="FSYear" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">项目编号</div> | |||
<input id="ChargeItemCode" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">变动原因</div> | |||
<div id="ChangeType"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuBalance/Index.js") |
@@ -0,0 +1,97 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-08-16 11:02 | |||
* 描 述:费用变更明细 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var startTime; | |||
var endTime; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$("#ChangeType").lrDataItemSelect({ code:'ChangeType'}); | |||
// 时间搜索框 | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } } | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
dfvalue: '1', | |||
selectfn: function (begin, end) { | |||
startTime = begin; | |||
endTime = end; | |||
page.search(); | |||
} | |||
}); | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuBalance/GetPageList', | |||
headData: [ | |||
{ label: "学号", name: "StuNo", width: 100, align: "left"}, | |||
{ label: "缴费年度", name: "FSYear", width: 100, align: "left"}, | |||
{ label: "收费项目编号", name: "ChargeItemCode", width: 100, align: "left"}, | |||
{ label: "收费项目名称", name: "ChargeItemName", width: 100, align: "left"}, | |||
{ label: "收费标准", name: "Standard", width: 100, align: "left"}, | |||
{ label: "本次待缴金额", name: "DJAmount", width: 100, align: "left"}, | |||
{ label: "变动金额", name: "PaymentAmount", width: 100, align: "left"}, | |||
{ label: "剩余待缴金额", name: "QJAmount", width: 100, align: "left"}, | |||
{ label: "当前余额", name: "OldBalance", width: 100, align: "left"}, | |||
{ label: "本次变动金额", name: "ChangeAmount", width: 100, align: "left"}, | |||
{ label: "本次余额", name: "NowBalance", width: 100, align: "left"}, | |||
{ label: "变动时间", name: "ChangeDate", width: 100, align: "left"}, | |||
{ | |||
label: "变动原因", name: "ChangeType", width: 100, align: "left", formatter: function (cellvalue, row) { | |||
if (cellvalue === 1) { | |||
return '<span class=\"label label-success\">二维码缴费</span>'; | |||
} else if (cellvalue === 2) { | |||
return '<span class=\"label label-default\">已缴费</span>'; | |||
} else if (cellvalue === 3) { | |||
return '<span class=\"label label-warning\">退费</span>'; | |||
} | |||
}}, | |||
], | |||
mainId:'Id', | |||
isPage: true | |||
}); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = startTime; | |||
param.EndTime = endTime; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -894,6 +894,7 @@ | |||
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FinaChargeStuYearItemController.cs" /> | |||
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FinaChargeStuOrderController.cs" /> | |||
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FinaChargeStuOrderDetailController.cs" /> | |||
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FinaChargeStuBalanceController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -6675,6 +6676,10 @@ | |||
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeStuOrderDetail\Index.js" /> | |||
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeStuOrderDetail\Form.cshtml" /> | |||
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeStuOrderDetail\Form.js" /> | |||
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeStuBalance\Index.cshtml" /> | |||
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeStuBalance\Index.js" /> | |||
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeStuBalance\Form.cshtml" /> | |||
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeStuBalance\Form.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\AwardAndPunishment\" /> | |||
@@ -595,6 +595,7 @@ | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuYearItemMap.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuOrderMap.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuOrderDetailMap.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuBalanceMap.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -0,0 +1,29 @@ | |||
using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement; | |||
using System.Data.Entity.ModelConfiguration; | |||
namespace Learun.Application.Mapping | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-08-16 11:02 | |||
/// 描 述:费用变更明细 | |||
/// </summary> | |||
public class FinaChargeStuBalanceMap : EntityTypeConfiguration<FinaChargeStuBalanceEntity> | |||
{ | |||
public FinaChargeStuBalanceMap() | |||
{ | |||
#region 表、主键 | |||
//表 | |||
this.ToTable("FINACHARGESTUBALANCE"); | |||
//主键 | |||
this.HasKey(t => t.Id); | |||
#endregion | |||
#region 配置关系 | |||
#endregion | |||
} | |||
} | |||
} | |||
@@ -1854,6 +1854,10 @@ | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuOrderDetail\FinaChargeStuOrderDetailService.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuOrderDetail\FinaChargeStuOrderDetailBLL.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuOrderDetail\FinaChargeStuOrderDetailIBLL.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuBalance\FinaChargeStuBalanceEntity.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuBalance\FinaChargeStuBalanceService.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuBalance\FinaChargeStuBalanceBLL.cs" /> | |||
<Compile Include="ReceiveSendFeeManagement\FinaChargeStuBalance\FinaChargeStuBalanceIBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -0,0 +1,125 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-08-16 11:02 | |||
/// 描 述:费用变更明细 | |||
/// </summary> | |||
public class FinaChargeStuBalanceBLL : FinaChargeStuBalanceIBLL | |||
{ | |||
private FinaChargeStuBalanceService finaChargeStuBalanceService = new FinaChargeStuBalanceService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<FinaChargeStuBalanceEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return finaChargeStuBalanceService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取FinaChargeStuBalance表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public FinaChargeStuBalanceEntity GetFinaChargeStuBalanceEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return finaChargeStuBalanceService.GetFinaChargeStuBalanceEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
finaChargeStuBalanceService.DeleteEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, FinaChargeStuBalanceEntity entity) | |||
{ | |||
try | |||
{ | |||
finaChargeStuBalanceService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,115 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.ComponentModel.DataAnnotations.Schema; | |||
namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-08-16 11:02 | |||
/// 描 述:费用变更明细 | |||
/// </summary> | |||
public class FinaChargeStuBalanceEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// Id | |||
/// </summary> | |||
[Column("ID")] | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// StuNo | |||
/// </summary> | |||
[Column("STUNO")] | |||
public string StuNo { get; set; } | |||
/// <summary> | |||
/// FSYear | |||
/// </summary> | |||
[Column("FSYEAR")] | |||
public int? FSYear { get; set; } | |||
/// <summary> | |||
/// FCSOId | |||
/// </summary> | |||
[Column("FCSOID")] | |||
public string FCSOId { get; set; } | |||
/// <summary> | |||
/// ChargeItemCode | |||
/// </summary> | |||
[Column("CHARGEITEMCODE")] | |||
public string ChargeItemCode { get; set; } | |||
/// <summary> | |||
/// ChargeItemName | |||
/// </summary> | |||
[Column("CHARGEITEMNAME")] | |||
public string ChargeItemName { get; set; } | |||
/// <summary> | |||
/// Standard | |||
/// </summary> | |||
[Column("STANDARD")] | |||
public decimal? Standard { get; set; } | |||
/// <summary> | |||
/// 剩余缴费金额 | |||
/// </summary> | |||
[Column("DJAMOUNT")] | |||
public decimal? DJAmount { get; set; } | |||
/// <summary> | |||
/// 变动金额 | |||
/// </summary> | |||
[Column("PAYMENTAMOUNT")] | |||
public decimal? PaymentAmount { get; set; } | |||
/// <summary> | |||
/// 本次剩余缴费金额 | |||
/// </summary> | |||
[Column("QJAMOUNT")] | |||
public decimal? QJAmount { get; set; } | |||
/// <summary> | |||
/// OldBalance | |||
/// </summary> | |||
[Column("OLDBALANCE")] | |||
public decimal? OldBalance { get; set; } | |||
/// <summary> | |||
/// ChangeAmount | |||
/// </summary> | |||
[Column("CHANGEAMOUNT")] | |||
public decimal? ChangeAmount { get; set; } | |||
/// <summary> | |||
/// NowBalance | |||
/// </summary> | |||
[Column("NOWBALANCE")] | |||
public decimal? NowBalance { get; set; } | |||
/// <summary> | |||
/// ChangeDate | |||
/// </summary> | |||
[Column("CHANGEDATE")] | |||
public DateTime? ChangeDate { get; set; } | |||
/// <summary> | |||
/// 变动原因(1二维码缴费,2导入缴费,3退费) | |||
/// </summary> | |||
[Column("CHANGETYPE")] | |||
public int? ChangeType { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.Id = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.Id = keyValue; | |||
} | |||
#endregion | |||
#region 扩展字段 | |||
#endregion | |||
} | |||
} | |||
@@ -0,0 +1,48 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-08-16 11:02 | |||
/// 描 述:费用变更明细 | |||
/// </summary> | |||
public interface FinaChargeStuBalanceIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<FinaChargeStuBalanceEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取FinaChargeStuBalance表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
FinaChargeStuBalanceEntity GetFinaChargeStuBalanceEntity(string keyValue); | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
void DeleteEntity(string keyValue); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
void SaveEntity(string keyValue, FinaChargeStuBalanceEntity entity); | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,183 @@ | |||
using Dapper; | |||
using Learun.DataBase.Repository; | |||
using Learun.Util; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Data; | |||
using System.Text; | |||
namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-08-16 11:02 | |||
/// 描 述:费用变更明细 | |||
/// </summary> | |||
public class FinaChargeStuBalanceService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">查询参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<FinaChargeStuBalanceEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(@" | |||
t.Id, | |||
t.StuNo, | |||
t.FSYear, | |||
t.ChargeItemCode, | |||
t.ChargeItemName, | |||
t.Standard, | |||
t.DJAmount, | |||
t.PaymentAmount, | |||
t.QJAmount, | |||
t.OldBalance, | |||
t.ChangeAmount, | |||
t.NowBalance, | |||
t.ChangeDate, | |||
t.ChangeType | |||
"); | |||
strSql.Append(" FROM FinaChargeStuBalance t "); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||
{ | |||
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.ChangeDate >= @startTime AND t.ChangeDate <= @endTime ) "); | |||
} | |||
if (!queryParam["StuNo"].IsEmpty()) | |||
{ | |||
dp.Add("StuNo", "%" + queryParam["StuNo"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.StuNo Like @StuNo "); | |||
} | |||
if (!queryParam["FSYear"].IsEmpty()) | |||
{ | |||
dp.Add("FSYear", "%" + queryParam["FSYear"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.FSYear Like @FSYear "); | |||
} | |||
if (!queryParam["ChargeItemCode"].IsEmpty()) | |||
{ | |||
dp.Add("ChargeItemCode", "%" + queryParam["ChargeItemCode"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.ChargeItemCode Like @ChargeItemCode "); | |||
} | |||
if (!queryParam["ChangeType"].IsEmpty()) | |||
{ | |||
dp.Add("ChangeType", "%" + queryParam["ChangeType"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.ChangeType Like @ChangeType "); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<FinaChargeStuBalanceEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取FinaChargeStuBalance表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public FinaChargeStuBalanceEntity GetFinaChargeStuBalanceEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<FinaChargeStuBalanceEntity>(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
this.BaseRepository("CollegeMIS").Delete<FinaChargeStuBalanceEntity>(t=>t.Id == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
public void SaveEntity(string keyValue, FinaChargeStuBalanceEntity 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 | |||
} | |||
} |