瀏覽代碼

日志模块

西昌缴费二期
fzp 1 年之前
父節點
當前提交
7c772ef62d
共有 20 個檔案被更改,包括 489 行新增259 行删除
  1. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeLogController.cs
  2. +30
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs
  3. +35
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Form.cshtml
  4. +36
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Form.js
  5. +37
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Index.cshtml
  6. +94
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Index.js
  7. +0
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeRefund/Index.cshtml
  8. +1
    -42
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeRefund/Index.js
  9. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuOrder/Index.cshtml
  10. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/IndexForStudent.cshtml
  11. +9
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/IndexForStudent.js
  12. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYearItem/Index.cshtml
  13. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  14. +23
    -9
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/ReceiveSendFeeManagement/FinaChargeStuYearApi.cs
  15. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/ReceiveSendFeeManagement/FinaChargeLogMap.cs
  16. +7
    -30
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeLog/FinaChargeLogBLL.cs
  17. +6
    -24
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeLog/FinaChargeLogEntity.cs
  18. +5
    -12
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeLog/FinaChargeLogIBLL.cs
  19. +75
    -117
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeLog/FinaChargeLogService.cs
  20. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/ReceiveSendFeeManagement/PayFee/payInvioce.vue

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeLogController.cs 查看文件

@@ -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-20 16:06
/// 描 述:收费系统操作日志
/// </summary>
public class FinaChargeLogController : MvcControllerBase
{
private FinaChargeLogIBLL finaChargeLogIBLL = new FinaChargeLogBLL();

#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 = finaChargeLogIBLL.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 FinaChargeLogData = finaChargeLogIBLL.GetFinaChargeLogEntity( keyValue );
var jsonData = new {
FinaChargeLog = FinaChargeLogData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
finaChargeLogIBLL.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)
{
FinaChargeLogEntity entity = strEntity.ToObject<FinaChargeLogEntity>();
finaChargeLogIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 30
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs 查看文件

@@ -28,6 +28,7 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
{
private FinaChargeStuYearIBLL finaChargeStuYearIBLL = new FinaChargeStuYearBLL();
private FinaChargeStuOrderIBLL finaChargeStuOrderIbll = new FinaChargeStuOrderBLL();
private EADateArrangeIBLL eaDateArrangeIbll = new EADateArrangeBLL();

#region 视图功能

@@ -38,19 +39,20 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
[HttpGet]
public ActionResult Index()
{
return View();
return View();
}
[HttpGet]
public ActionResult IndexForTeacher()
{
return View();
return View();
}

[HttpGet]
public ActionResult IndexForStudent()
{
return View();
return View("");
}

/// <summary>
/// 表单页
/// <summary>
@@ -58,30 +60,47 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
[HttpGet]
public ActionResult Form()
{
return View();
return View();
}

[HttpGet]
public ActionResult InvoiceForm()
{
return View();
return View();
}

[HttpGet]
public ActionResult PayFeeForm()
{
return View();
return View();
}

[HttpGet]
public ActionResult GenerateByConditionForm()
{
return View();
return View();
}
#endregion

#region 获取数据

[HttpGet]
[AjaxOnly]
public ActionResult IfCanPay()
{
var nowyearsemester = Common.GetSemesterAndYear();
var eastatus = eaDateArrangeIbll.GetEADateArrangeEntity("17");
if (eastatus != null && eastatus.CheckMark == "1" &&
eastatus.AcademicYearNo == nowyearsemester.AcademicYearShort
&& eastatus.Semester == nowyearsemester.Semester && eastatus.MakeDate < DateTime.Now &&
eastatus.EndDate > DateTime.Now)
{
return Success(new { success = "1" });
}
else
return Success(new { success = "0",info= "当前不在缴费时间范围" });
}

[HttpGet]
[AjaxOnly]
public ActionResult GetYearTree()
@@ -119,8 +138,9 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var FinaChargeStuYearData = finaChargeStuYearIBLL.GetFinaChargeStuYearEntity( keyValue );
var jsonData = new {
var FinaChargeStuYearData = finaChargeStuYearIBLL.GetFinaChargeStuYearEntity(keyValue);
var jsonData = new
{
FinaChargeStuYear = FinaChargeStuYearData,
};
return Success(jsonData);
@@ -183,7 +203,7 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
public ActionResult SaveForm(string keyValue, string strEntity)
{
FinaChargeStuYearEntity entity = strEntity.ToObject<FinaChargeStuYearEntity>();
finaChargeStuYearIBLL.SaveEntity(keyValue,entity);
finaChargeStuYearIBLL.SaveEntity(keyValue, entity);
if (string.IsNullOrEmpty(keyValue))
{
}


+ 35
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Form.cshtml 查看文件

@@ -0,0 +1,35 @@
@{
ViewBag.Title = "收费系统操作日志";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="FinaChargeLog" >
<div class="lr-form-item-title">功能模块</div>
<input id="F_Module" type="text" class="form-control" disabled="disabled" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FinaChargeLog" >
<div class="lr-form-item-title">操作类型</div>
<input id="F_OperateType" type="text" class="form-control" disabled="disabled" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FinaChargeLog" >
<div class="lr-form-item-title">操作时间</div>
<input id="F_OperateTime" type="text" class="form-control" disabled="disabled" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FinaChargeLog" >
<div class="lr-form-item-title">操作用户</div>
<input id="F_OperateAccount" type="text" class="form-control" disabled="disabled" />
</div>
<div class="col-xs-12 lr-form-item" data-table="FinaChargeLog" >
<div class="lr-form-item-title">用户IP</div>
<input id="F_IPAddress" type="text" class="form-control" disabled="disabled" />
</div>
<div class="col-xs-12 lr-form-item" data-table="FinaChargeLog" >
<div class="lr-form-item-title">操作内容</div>
<textarea id="F_SourceContentJson" class="form-control" style="height:300px;" disabled="disabled" ></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="FinaChargeLog" >
<div class="lr-form-item-title">操作数据Id</div>
<input id="F_SourceObjectId" type="text" class="form-control" disabled="disabled" />
</div>
</div>
@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Form.js")

+ 36
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Form.js 查看文件

@@ -0,0 +1,36 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-08-20 16:06
* 描 述:收费系统操作日志
*/
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 () {
$('#F_OperateType').lrDataItemSelect({ code: '' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeLog/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]);
}
}
});
}
}
};
page.init();
}

+ 37
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Index.cshtml 查看文件

@@ -0,0 +1,37 @@
@{
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-12 lr-form-item">
<div class="lr-form-item-title">操作用户</div>
<input id="F_OperateAccount" type="text" class="form-control" />
</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 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>&nbsp;查看详细</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Index.js")

+ 94
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeLog/Index.js 查看文件

@@ -0,0 +1,94 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-08-20 16:06
* 描 述:收费系统操作日志
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var startTime;
var endTime;
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
// 时间搜索框
$('#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();
});
$('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('F_LogId');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'formview',
title: '查看详细',
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeLog/Form?keyValue=' + keyValue,
width: 700,
height: 600,
btn:null
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeLog/GetPageList',
headData: [
{ label: "功能模块", name: "F_Module", width: 120, align: "left"},
{ label: "操作类型", name: "F_OperateType", width: 100, align: "left"},
{ label: "操作时间", name: "F_OperateTime", width: 180, align: "left"},
{ label: "操作用户", name: "F_OperateAccount", width: 150, align: "left"},
{ label: "用户IP", name: "F_IPAddress", width: 100, align: "left"},
{ label: "操作内容", name: "F_SourceContentJson", width: 200, align: "left"},
{ label: "操作数据Id", name: "F_SourceObjectId", width: 100, align: "left"},
],
mainId:'F_LogId',
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();
}

+ 0
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeRefund/Index.cshtml 查看文件

@@ -39,9 +39,6 @@
<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_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
</div>
</div>


+ 1
- 42
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeRefund/Index.js 查看文件

@@ -21,48 +21,7 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeRefund/Form',
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeRefund/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeRefund/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuOrder/Index.cshtml 查看文件

@@ -46,7 +46,7 @@
<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_import" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 导入</a>
<a id="lr_import" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 导入线下缴费记录</a>
<a id="lr_detail" class="btn btn-default"><i class="fa fa-reorder"></i>&nbsp; 查看明细</a>
</div>
</div>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/IndexForStudent.cshtml 查看文件

@@ -20,7 +20,7 @@
</div>
<div class=" btn-group btn-group-sm">
<a id="lr_pay" class="btn btn-default"><i class="fa fa-qrcode"></i>&nbsp;二维码缴费</a>
<a id="lr_detail" class="btn btn-default"><i class="fa fa-list"></i>&nbsp;缴费记录</a>
@*<a id="lr_detail" class="btn btn-default"><i class="fa fa-list"></i>&nbsp;缴费记录</a>*@
<a id="lr_viewinvoice" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看发票</a>
</div>
</div>


+ 9
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/IndexForStudent.js 查看文件

@@ -11,9 +11,15 @@ var bootstrap = function ($, learun) {
var page = {
init: function () {
page.bind();
setTimeout(function () {
page.initGird();
}, 500);//延迟
learun.httpAsync("get", "/ReceiveSendFeeManagement/FinaChargeStuYear/IfCanPay", {}, function (data) {
if (data.success == "0") {
learun.alert.error(data.info);
} else {
setTimeout(function () {
page.initGird();
}, 500);//延迟
}
});
},
bind: function () {
$('#FSYear').lrselect({


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYearItem/Index.cshtml 查看文件

@@ -55,7 +55,7 @@
<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_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;导入</a>
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;导入非固定项</a>
<a id="lr_undelete" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;恢复</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;作废</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;退费</a>


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj 查看文件

@@ -893,6 +893,7 @@
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FinaChargeStuOrderDetailController.cs" />
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FinaChargeStuBalanceController.cs" />
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FinaChargeRefundController.cs" />
<Compile Include="Areas\ReceiveSendFeeManagement\Controllers\FinaChargeLogController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -6679,6 +6680,10 @@
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeRefund\Index.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeRefund\Form.cshtml" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeRefund\Form.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeLog\Index.cshtml" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeLog\Index.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeLog\Form.cshtml" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FinaChargeLog\Form.js" />
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\EducationalAdministration\Views\AwardAndPunishment\" />


+ 23
- 9
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/ReceiveSendFeeManagement/FinaChargeStuYearApi.cs 查看文件

@@ -31,6 +31,7 @@ namespace Learun.Application.WebApi.Modules
{
private FinaChargeStuYearIBLL finaChargeStuYearIBLL = new FinaChargeStuYearBLL();
private FinaChargeStuOrderIBLL finaChargeStuOrderIbll = new FinaChargeStuOrderBLL();
private EADateArrangeIBLL eaDateArrangeIbll = new EADateArrangeBLL();

public FinaChargeStuYearApi()
: base("/ReceiveSendFeeManagement/FinaChargeStuYearApi")
@@ -50,16 +51,29 @@ namespace Learun.Application.WebApi.Modules

public Response GetPayfeeList(dynamic _)
{
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = finaChargeStuYearIBLL.GetPageList(parameter.pagination, parameter.queryJson);
var jsonData = new
var nowyearsemester = Common.GetSemesterAndYear();
var eastatus = eaDateArrangeIbll.GetEADateArrangeEntity("17");
if (eastatus != null && eastatus.CheckMark == "1" &&
eastatus.AcademicYearNo == nowyearsemester.AcademicYearShort
&& eastatus.Semester == nowyearsemester.Semester && eastatus.MakeDate < DateTime.Now &&
eastatus.EndDate > DateTime.Now)
{
rows = data,
total = parameter.pagination.total,
page = parameter.pagination.page,
records = parameter.pagination.records
};
return Success(jsonData);
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = finaChargeStuYearIBLL.GetPageList(parameter.pagination, parameter.queryJson);
var jsonData = new
{
rows = data,
total = parameter.pagination.total,
page = parameter.pagination.page,
records = parameter.pagination.records
};
return Success(jsonData);
}
else
{
return Fail("当前不在缴费时间范围");
}
}

public Response GetPayfeeInfo(dynamic _)


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/ReceiveSendFeeManagement/FinaChargeLogMap.cs 查看文件

@@ -1,5 +1,5 @@
using System.Data.Entity.ModelConfiguration;
using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement;
using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
@@ -7,8 +7,8 @@ namespace Learun.Application.Mapping
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-31 22:20
/// 描 述:操作日志
/// 日 期:2023-08-20 16:06
/// 描 述:收费系统操作日志
/// </summary>
public class FinaChargeLogMap : EntityTypeConfiguration<FinaChargeLogEntity>
{
@@ -16,7 +16,7 @@ namespace Learun.Application.Mapping
{
#region 表、主键
//表
this.ToTable("FinaChargeLog");
this.ToTable("FINACHARGELOG");
//主键
this.HasKey(t => t.F_LogId);
#endregion


+ 7
- 30
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeLog/FinaChargeLogBLL.cs 查看文件

@@ -9,8 +9,8 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-31 22:20
/// 描 述:操作日志
/// 日 期:2023-08-20 16:06
/// 描 述:收费系统操作日志
/// </summary>
public class FinaChargeLogBLL : FinaChargeLogIBLL
{
@@ -19,31 +19,7 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
#region 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<FinaChargeLogEntity> GetList( string queryJson )
{
try
{
return finaChargeLogService.GetList(queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取列表分页数据
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
@@ -68,15 +44,15 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
}

/// <summary>
/// 获取实体数据
/// 获取FinaChargeLog表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public FinaChargeLogEntity GetEntity(string keyValue)
public FinaChargeLogEntity GetFinaChargeLogEntity(string keyValue)
{
try
{
return finaChargeLogService.GetEntity(keyValue);
return finaChargeLogService.GetFinaChargeLogEntity(keyValue);
}
catch (Exception ex)
{
@@ -123,6 +99,7 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
public void SaveEntity(string keyValue, FinaChargeLogEntity entity)
{
try


+ 6
- 24
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeLog/FinaChargeLogEntity.cs 查看文件

@@ -1,137 +1,117 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement

namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-31 22:20
/// 描 述:操作日志
/// 日 期:2023-08-20 16:06
/// 描 述:收费系统操作日志
/// </summary>
public class FinaChargeLogEntity
public class FinaChargeLogEntity
{
#region 实体成员
/// <summary>
/// 日志主键
/// </summary>
/// <returns></returns>
[Column("F_LOGID")]
public string F_LogId { get; set; }
/// <summary>
/// 分类Id 1-登陆2-访问3-操作4-异常
/// </summary>
/// <returns></returns>
[Column("F_CATEGORYID")]
public int? F_CategoryId { get; set; }
/// <summary>
/// 来源对象主键
/// </summary>
/// <returns></returns>
[Column("F_SOURCEOBJECTID")]
public string F_SourceObjectId { get; set; }
/// <summary>
/// 来源日志内容
/// </summary>
/// <returns></returns>
[Column("F_SOURCECONTENTJSON")]
public string F_SourceContentJson { get; set; }
/// <summary>
/// 操作时间
/// </summary>
/// <returns></returns>
[Column("F_OPERATETIME")]
public DateTime? F_OperateTime { get; set; }
/// <summary>
/// 操作用户Id
/// </summary>
/// <returns></returns>
[Column("F_OPERATEUSERID")]
public string F_OperateUserId { get; set; }
/// <summary>
/// 操作用户
/// </summary>
/// <returns></returns>
[Column("F_OPERATEACCOUNT")]
public string F_OperateAccount { get; set; }
/// <summary>
/// 操作类型Id
/// </summary>
/// <returns></returns>
[Column("F_OPERATETYPEID")]
public string F_OperateTypeId { get; set; }
/// <summary>
/// 操作类型
/// </summary>
/// <returns></returns>
[Column("F_OPERATETYPE")]
public string F_OperateType { get; set; }
/// <summary>
/// 系统功能
/// </summary>
/// <returns></returns>
[Column("F_MODULE")]
public string F_Module { get; set; }
/// <summary>
/// IP地址
/// </summary>
/// <returns></returns>
[Column("F_IPADDRESS")]
public string F_IPAddress { get; set; }
/// <summary>
/// IP地址所在城市
/// </summary>
/// <returns></returns>
[Column("F_IPADDRESSNAME")]
public string F_IPAddressName { get; set; }
/// <summary>
/// 主机
/// </summary>
/// <returns></returns>
[Column("F_HOST")]
public string F_Host { get; set; }
/// <summary>
/// 浏览器
/// </summary>
/// <returns></returns>
[Column("F_BROWSER")]
public string F_Browser { get; set; }
/// <summary>
/// 执行结果状态
/// </summary>
/// <returns></returns>
[Column("F_EXECUTERESULT")]
public int? F_ExecuteResult { get; set; }
/// <summary>
/// 执行结果信息
/// </summary>
/// <returns></returns>
[Column("F_EXECUTERESULTJSON")]
public string F_ExecuteResultJson { get; set; }
/// <summary>
/// 备注
/// </summary>
/// <returns></returns>
[Column("F_DESCRIPTION")]
public string F_Description { get; set; }
/// <summary>
/// 删除标记
/// </summary>
/// <returns></returns>
[Column("F_DELETEMARK")]
public int? F_DeleteMark { get; set; }
/// <summary>
/// 有效标志
/// </summary>
/// <returns></returns>
[Column("F_ENABLEDMARK")]
public int? F_EnabledMark { get; set; }
/// <summary>
/// 来源
/// </summary>
/// <returns></returns>
[Column("F_SOURCE")]
public string F_Source { get; set; }
#endregion
@@ -153,6 +133,8 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
this.F_LogId = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 5
- 12
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeLog/FinaChargeLogIBLL.cs 查看文件

@@ -8,32 +8,25 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-31 22:20
/// 描 述:操作日志
/// 日 期:2023-08-20 16:06
/// 描 述:收费系统操作日志
/// </summary>
public interface FinaChargeLogIBLL
{
#region 获取数据

/// <summary>
/// 获取列表数据
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<FinaChargeLogEntity> GetList( string queryJson );
/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<FinaChargeLogEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取实体数据
/// 获取FinaChargeLog表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
FinaChargeLogEntity GetEntity(string keyValue);
FinaChargeLogEntity GetFinaChargeLogEntity(string keyValue);
#endregion

#region 提交数据


+ 75
- 117
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeLog/FinaChargeLogService.cs 查看文件

@@ -1,10 +1,9 @@
using Dapper;
using Learun.Application.Base.SystemModule;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Text;

namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
@@ -13,65 +12,76 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-07-31 22:20
/// 描 述:操作日志
/// 日 期:2023-08-20 16:06
/// 描 述:收费系统操作日志
/// </summary>
public class FinaChargeLogService : RepositoryFactory
{
#region 构造函数和属性
#region 获取数据

private string fieldSql;
/// <summary>
/// 构造方法
/// 获取页面显示列表数据
/// </summary>
public FinaChargeLogService()
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<FinaChargeLogEntity> GetPageList(Pagination pagination, string queryJson)
{
fieldSql=@"
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.F_LogId,
t.F_CategoryId,
t.F_SourceObjectId,
t.F_SourceContentJson,
t.F_Module,
t.F_OperateType,
t.F_OperateTime,
t.F_OperateUserId,
t.F_OperateAccount,
t.F_OperateTypeId,
t.F_OperateType,
t.F_Module,
t.F_IPAddress,
t.F_IPAddressName,
t.F_Host,
t.F_Browser,
t.F_ExecuteResult,
t.F_ExecuteResultJson,
t.F_Description,
t.F_DeleteMark,
t.F_EnabledMark,
t.F_Source
";
t.F_SourceContentJson,
t.F_SourceObjectId
");
strSql.Append(" FROM FinaChargeLog 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.F_OperateTime >= @startTime AND t.F_OperateTime <= @endTime ) ");
}
if (!queryParam["F_OperateAccount"].IsEmpty())
{
dp.Add("F_OperateAccount", "%" + queryParam["F_OperateAccount"].ToString() + "%", DbType.String);
strSql.Append(" AND t.F_OperateAccount Like @F_OperateAccount ");
}
return this.BaseRepository("CollegeMIS").FindList<FinaChargeLogEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

#region 获取数据

/// <summary>
/// 获取列表数据
/// 获取FinaChargeLog表实体数据
/// </summary>
/// <param name="queryJson">条件参数</param>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public IEnumerable<FinaChargeLogEntity> GetList( string queryJson )
public FinaChargeLogEntity GetFinaChargeLogEntity(string keyValue)
{
try
{
//参考写法
//var queryParam = queryJson.ToJObject();
// 虚拟参数
//var dp = new DynamicParameters(new { });
//dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime);
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(fieldSql);
strSql.Append(" FROM FinaChargeLog t ");
return this.BaseRepository("CollegeMIS").FindList<FinaChargeLogEntity>(strSql.ToString());
return this.BaseRepository("CollegeMIS").FindEntity<FinaChargeLogEntity>(keyValue);
}
catch (Exception ex)
{
@@ -86,21 +96,19 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
}
}

#endregion

#region 提交数据

/// <summary>
/// 获取列表分页数据
/// 删除实体数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<FinaChargeLogEntity> GetPageList(Pagination pagination, string queryJson)
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(fieldSql);
strSql.Append(" FROM SP_Log t ");
return this.BaseRepository("CollegeMIS").FindList<FinaChargeLogEntity>(strSql.ToString(), pagination);
this.BaseRepository("CollegeMIS").Delete<FinaChargeLogEntity>(t=>t.F_LogId == keyValue);
}
catch (Exception ex)
{
@@ -116,15 +124,24 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
}

/// <summary>
/// 获取实体数据
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public FinaChargeLogEntity GetEntity(string keyValue)
/// <param name="entity">实体</param>
public void SaveEntity(string keyValue, FinaChargeLogEntity entity)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<FinaChargeLogEntity>(keyValue);
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
this.BaseRepository("CollegeMIS").Update(entity);
}
else
{
entity.Create();
this.BaseRepository("CollegeMIS").Insert(entity);
}
}
catch (Exception ex)
{
@@ -139,16 +156,13 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
}
}

#endregion

#region 提交数据

/// <summary>
/// 清空日志
/// </summary>
/// <param name="categoryId">日志分类Id</param>
/// <param name="keepTime">保留时间段内</param>
public void RemoveLog(int categoryId, string keepTime) {
public void RemoveLog(int categoryId, string keepTime)
{
try
{
DateTime operateTime = DateTime.Now;
@@ -212,62 +226,6 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement

}

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<FinaChargeLogEntity>(t=>t.F_LogId == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// </summary>
public void SaveEntity(string keyValue, FinaChargeLogEntity 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

}


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/ReceiveSendFeeManagement/PayFee/payInvioce.vue 查看文件

@@ -36,7 +36,7 @@
},
init(){
this.LOADING()
this.HTTP_GET("/learun/payfee/getinvoice?keyValue="+this.keyValue).then((success)=>{
this.HTTP_GET("/ReceiveSendFeeManagement/FinaChargeStuYearApi/getinvoice?keyValue="+this.keyValue).then((success)=>{
this.HIDE_LOADING()
if(!success)return
if(!success.length){


Loading…
取消
儲存