Procházet zdrojové kódy

一卡通交易流水查看

临城职教中职
ndbs před 2 roky
rodič
revize
c44e59cdab
13 změnil soubory, kde provedl 1288 přidání a 0 odebrání
  1. +157
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/MealCardRunTabController.cs
  2. +79
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.cshtml
  3. +38
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.js
  4. +67
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.cshtml
  5. +175
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js
  6. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  7. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/MealCardRunTabMap.cs
  8. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  9. +220
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabBLL.cs
  10. +146
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabEntity.cs
  11. +59
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabIBLL.cs
  12. +308
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs
  13. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 157
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/MealCardRunTabController.cs Zobrazit soubor

@@ -0,0 +1,157 @@
using Learun.Application.TwoDevelopment.EducationalAdministration;
using Learun.Util;
using System.Data;
using System.Web.Mvc;

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-05-18 11:08
/// 描 述:一卡通交易流水
/// </summary>
public class MealCardRunTabController : MvcControllerBase
{
private MealCardRunTabIBLL mealCardRunTabIBLL = new MealCardRunTabBLL();

#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>
/// <returns></returns>
public ActionResult GetDept()
{
var data = mealCardRunTabIBLL.GetDept();
return Success(data);
}
/// <summary>
/// 身份证类型
/// </summary>
/// <returns></returns>
public ActionResult GetdentiName()
{
var data = mealCardRunTabIBLL.GetdentiName();
return Success(data);
}
/// <summary>
/// 流水类型
/// </summary>
/// <returns></returns>
public ActionResult Getflowtype()
{
var data = mealCardRunTabIBLL.Getflowtype();
return Success(data);
}
/// <summary>
/// 餐次
/// </summary>
/// <returns></returns>
public ActionResult Getseg()
{
var data = mealCardRunTabIBLL.Getseg();
return Success(data);
}
/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetList( string queryJson )
{
var data = mealCardRunTabIBLL.GetList(queryJson);
return Success(data);
}
/// <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 = mealCardRunTabIBLL.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 data = mealCardRunTabIBLL.GetEntity(keyValue);
return Success(data);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
mealCardRunTabIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue,MealCardRunTabEntity entity)
{
mealCardRunTabIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}
#endregion

}
}

+ 79
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.cshtml Zobrazit soubor

@@ -0,0 +1,79 @@
@{
ViewBag.Title = "一卡通交易流水";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">主键<font face="宋体">*</font></div>
<input id="Id" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生卡账号<font face="宋体">*</font></div>
<input id="accountNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生卡姓名<font face="宋体">*</font></div>
<input id="accountName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">部门名称<font face="宋体">*</font></div>
<input id="depName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">身份证号<font face="宋体">*</font></div>
<input id="personId" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">身份名称<font face="宋体">*</font></div>
<input id="identiName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">流水类型<font face="宋体">*</font></div>
<input id="flowtype" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">交易金额<font face="宋体">*</font></div>
<input id="flowamount" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">余额<font face="宋体">*</font></div>
<input id="balance" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">卡号<font face="宋体">*</font></div>
<input id="cardNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">中心时间<font face="宋体">*</font></div>
<input id="centralTm" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">中心序号<font face="宋体">*</font></div>
<input id="centralNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">发生时间<font face="宋体">*</font></div>
<input id="occurTime" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">节点名称<font face="宋体">*</font></div>
<input id="node" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">营业大组名称<font face="宋体">*</font></div>
<input id="bigGroup" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">营业小组名称<font face="宋体">*</font></div>
<input id="smallGroup" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">营业餐次<font face="宋体">*</font></div>
<input id="seg" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">Pos机序号<font face="宋体">*</font></div>
<input id="pos" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/MealCardRunTab/Form.js")

+ 38
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.js Zobrazit soubor

@@ -0,0 +1,38 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-05-18 11:08
* 描 述:一卡通交易流水
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var selectedRow = learun.frameTab.currentIframe().selectedRow;
var page = {
init: function () {
page.initData();
},
bind: function () {
},
initData: function () {
if (!!selectedRow) {
$('#form').lrSetFormData(selectedRow);
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('#form').lrValidform()) {
return false;
}
var postData = $('#form').lrGetFormData();
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/MealCardRunTab/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 67
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.cshtml Zobrazit soubor

@@ -0,0 +1,67 @@
@{
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="accountNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="accountName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">班级/部门</div>
<div id="depName"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">身份证号</div>
<input id="personId" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">身份名称</div>
<div id="identiName"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">流水类型</div>
<div id="flowtype"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">卡号</div>
<input id="cardNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">餐次</div>
<div id="seg"></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 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>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js")

+ 175
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js Zobrazit soubor

@@ -0,0 +1,175 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-05-18 11:08
* 描 述:一卡通交易流水
*/
var selectedRow;
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: '3',
selectfn: function (begin, end) {
startTime = begin;
endTime = end;
page.search();
}
});
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 250, 400);
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
$('#depName').lrselect({
width: '150px',
placeholder: "请选择所属班级/部门",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/MealCardRunTab/GetDept',
value: 'Id',
text: 'depName'
});
$('#identiName').lrselect({
width: '150px',
placeholder: "请选择所属班级/部门",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/MealCardRunTab/GetdentiName',
value: 'Id',
text: 'identiName'
});
$('#flowtype').lrselect({
width: '150px',
placeholder: "请选择流水类型",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/MealCardRunTab/Getflowtype',
value: 'Id',
text: 'flowtype',
select: function(item) {
console.log(item,"item")
}
});
$('#seg').lrselect({
width: '150px',
placeholder: "请选择餐次",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/MealCardRunTab/Getseg',
value: 'Id',
text: 'seg',
//select: function (item) {
// console.log(item, "item")
//}
});
//// 新增
//$('#lr_add').on('click', function () {
// selectedRow = null;
// learun.layerForm({
// id: 'form',
// title: '新增',
// url: top.$.rootUrl + '/EducationalAdministration/MealCardRunTab/Form',
// width: 700,
// height: 400,
// callBack: function (id) {
// return top[id].acceptClick(refreshGirdData);
// }
// });
//});
//// 编辑
//$('#lr_edit').on('click', function () {
// var keyValue = $('#gridtable').jfGridValue('Id');
// selectedRow = $('#gridtable').jfGridGet('rowdata');
// if (learun.checkrow(keyValue)) {
// learun.layerForm({
// id: 'form',
// title: '编辑',
// url: top.$.rootUrl + '/EducationalAdministration/MealCardRunTab/Form?keyValue=' + keyValue,
// width: 700,
// 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 + '/EducationalAdministration/MealCardRunTab/DeleteForm', { keyValue: keyValue}, function () {
// });
// }
// });
// }
//});
},
initGird: function () {
$('#gridtable').lrAuthorizeJfGridLei({
url: top.$.rootUrl + '/EducationalAdministration/MealCardRunTab/GetPageList',
headData: [
{ label: '学生卡账号', name: 'accountNo', width: 80, align: "left" },
{ label: '学生卡姓名', name: 'accountName', width: 80, align: "left" },
{ label: '部门名称', name: 'depName', width: 100, 100: "left" },
{ label: '身份证号', name: 'personId', width: 150, align: "left" },
{ label: '身份名称', name: 'identiName', width: 80, align: "left" },
{ label: '流水类型', name: 'flowtype', width: 100, align: "left" },
{ label: '交易金额', name: 'flowamount', width: 100, align: "left" },
{ label: '余额', name: 'balance', width: 100, align: "left" },
{ label: '卡号', name: 'cardNo', width: 100, align: "left" },
{ label: '中心时间', name: 'centralTm', width: 150, align: "left" },
{ label: '中心序号', name: 'centralNo', width: 100, align: "left" },
{ label: '发生时间', name: 'occurTime', width: 150, align: "left" },
{ label: '节点名称', name: 'node', width: 100, align: "left" },
{ label: '营业大组名称', name: 'bigGroup', width: 100, align: "left" },
{ label: '营业小组名称', name: 'smallGroup', width: 100, align: "left" },
{ label: '营业餐次', name: 'seg', width: 100, align: "left" },
{ label: 'Pos机序号', name: 'pos', width: 80, align: "left" },
],
mainId: 'Id',
isPage: true,
sidx: 'occurTime',
sord: 'desc'
});
page.search();
},
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();
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Zobrazit soubor

@@ -330,6 +330,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\EvaViolationOfDisciplineController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\LeaveSchoolAController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\LR_Base_LogoController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\MealCardRunTabController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\PracticeBaseController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\R_EnterBuildingController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\R_EnterSchoolController.cs" />
@@ -1039,6 +1040,8 @@
<Content Include="Areas\EducationalAdministration\Views\LessonInfo\IndexNoMajor.js" />
<Content Include="Areas\EducationalAdministration\Views\LoginUserBind\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\LoginUserBind\BindAccountIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\MealCardRunTab\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\MealCardRunTab\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_EducationExperience\StatisticIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_Resume\StatisticIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\PM_TechnicalPost\StatisticIndex.js" />
@@ -1109,6 +1112,8 @@
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\TeachForm.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\TeachFormQZ.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\MealCardRunTab\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\MealCardRunTab\Index.cshtml" />
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/MealCardRunTabMap.cs Zobrazit soubor

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.EducationalAdministration;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-05-18 11:08
/// 描 述:一卡通交易流水
/// </summary>
public class MealCardRunTabMap : EntityTypeConfiguration<MealCardRunTabEntity>
{
public MealCardRunTabMap()
{
#region 表、主键
//表
this.ToTable("MEALCARDRUNTAB");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj Zobrazit soubor

@@ -85,6 +85,7 @@
<Compile Include="EducationalAdministration\CertificateResultMap.cs" />
<Compile Include="EducationalAdministration\EADateArrangeMap.cs" />
<Compile Include="EducationalAdministration\LeaveSchoolMap.cs" />
<Compile Include="EducationalAdministration\MealCardRunTabMap.cs" />
<Compile Include="EducationalAdministration\PracticeBaseMap.cs" />
<Compile Include="EducationalAdministration\R_EnterBuildingMap.cs" />
<Compile Include="EducationalAdministration\R_EnterSchoolMap.cs" />


+ 220
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabBLL.cs Zobrazit soubor

@@ -0,0 +1,220 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-05-18 11:08
/// 描 述:一卡通交易流水
/// </summary>
public class MealCardRunTabBLL : MealCardRunTabIBLL
{
private MealCardRunTabService mealCardRunTabService = new MealCardRunTabService();

#region 获取数据
public List<MealCardRunTabEntity> GetDept()
{
try
{
return mealCardRunTabService.GetDept().Select(x => new MealCardRunTabEntity { Id = x.depName, depName = x.depName }).Distinct().ToList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public List<MealCardRunTabEntity> GetdentiName()
{
try
{
return mealCardRunTabService.GetdentiName().Select(x => new MealCardRunTabEntity { Id = x.identiName, identiName = x.identiName }).Distinct().ToList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public List<MealCardRunTabEntity> Getflowtype()
{
try
{
return mealCardRunTabService.Getflowtype().Select(x => new MealCardRunTabEntity { Id = x.flowtype, flowtype = x.flowtype }).Distinct().ToList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public List<MealCardRunTabEntity> Getseg()
{
try
{
return mealCardRunTabService.Getseg().Select(x => new MealCardRunTabEntity { Id = x.seg, seg = x.seg }).Distinct().ToList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<MealCardRunTabEntity> GetList(string queryJson)
{
try
{
return mealCardRunTabService.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>
/// <returns></returns>
public IEnumerable<MealCardRunTabEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return mealCardRunTabService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public MealCardRunTabEntity GetEntity(string keyValue)
{
try
{
return mealCardRunTabService.GetEntity(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
{
mealCardRunTabService.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>
public void SaveEntity(string keyValue, MealCardRunTabEntity entity)
{
try
{
mealCardRunTabService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 146
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabEntity.cs Zobrazit soubor

@@ -0,0 +1,146 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.TwoDevelopment.EducationalAdministration

{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-05-18 11:08
/// 描 述:一卡通交易流水
/// </summary>
public class MealCardRunTabEntity
{
#region 实体成员
/// <summary>
/// 主键
/// </summary>
/// <returns></returns>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 学生卡账号
/// </summary>
/// <returns></returns>
[Column("ACCOUNTNO")]
public string accountNo { get; set; }
/// <summary>
/// 学生卡姓名
/// </summary>
/// <returns></returns>
[Column("ACCOUNTNAME")]
public string accountName { get; set; }
/// <summary>
/// 部门名称
/// </summary>
/// <returns></returns>
[Column("DEPNAME")]
public string depName { get; set; }
/// <summary>
/// 身份证号
/// </summary>
/// <returns></returns>
[Column("PERSONID")]
public string personId { get; set; }
/// <summary>
/// 身份名称
/// </summary>
/// <returns></returns>
[Column("IDENTINAME")]
public string identiName { get; set; }
/// <summary>
/// 流水类型
/// </summary>
/// <returns></returns>
[Column("FLOWTYPE")]
public string flowtype { get; set; }
/// <summary>
/// 交易金额
/// </summary>
/// <returns></returns>
[Column("FLOWAMOUNT")]
public int? flowamount { get; set; }
/// <summary>
/// 余额
/// </summary>
/// <returns></returns>
[Column("BALANCE")]
public int? balance { get; set; }
/// <summary>
/// 卡号
/// </summary>
/// <returns></returns>
[Column("CARDNO")]
public string cardNo { get; set; }
/// <summary>
/// 中心时间
/// </summary>
/// <returns></returns>
[Column("CENTRALTM")]
public DateTime? centralTm { get; set; }
/// <summary>
/// 中心序号
/// </summary>
/// <returns></returns>
[Column("CENTRALNO")]
public string centralNo { get; set; }
/// <summary>
/// 发生时间
/// </summary>
/// <returns></returns>
[Column("OCCURTIME")]
public DateTime? occurTime { get; set; }
/// <summary>
/// 节点名称
/// </summary>
/// <returns></returns>
[Column("NODE")]
public string node { get; set; }
/// <summary>
/// 营业大组名称
/// </summary>
/// <returns></returns>
[Column("BIGGROUP")]
public string bigGroup { get; set; }
/// <summary>
/// 营业小组名称
/// </summary>
/// <returns></returns>
[Column("SMALLGROUP")]
public string smallGroup { get; set; }
/// <summary>
/// 营业餐次
/// </summary>
/// <returns></returns>
[Column("SEG")]
public string seg { get; set; }
/// <summary>
/// Pos机序号
/// </summary>
/// <returns></returns>
[Column("POS")]
public string pos { 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
}
}


+ 59
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabIBLL.cs Zobrazit soubor

@@ -0,0 +1,59 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-05-18 11:08
/// 描 述:一卡通交易流水
/// </summary>
public interface MealCardRunTabIBLL
{
#region 获取数据
List<MealCardRunTabEntity> GetDept();
List<MealCardRunTabEntity> GetdentiName();
List<MealCardRunTabEntity> Getflowtype();
List<MealCardRunTabEntity> Getseg();

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<MealCardRunTabEntity> GetList( string queryJson );
/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<MealCardRunTabEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
MealCardRunTabEntity GetEntity(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, MealCardRunTabEntity entity);
#endregion

}
}

+ 308
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs Zobrazit soubor

@@ -0,0 +1,308 @@
using Dapper;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-05-18 11:08
/// 描 述:一卡通交易流水
/// </summary>
public class MealCardRunTabService : RepositoryFactory
{
#region 构造函数和属性

private string fieldSql;
/// <summary>
/// 构造方法
/// </summary>
public MealCardRunTabService()
{
fieldSql = @" * ";
}
#endregion

#region 获取数据
public List<MealCardRunTabEntity> GetDept()
{
try
{
string sql = " select distinct DepName from MealCardRunTab order by depname ";
return this.BaseRepository("CollegeMIS").FindList<MealCardRunTabEntity>(sql).ToList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
public List<MealCardRunTabEntity> GetdentiName()
{
try
{
string sql = " select distinct identiName from MealCardRunTab order by identiName ";
return this.BaseRepository("CollegeMIS").FindList<MealCardRunTabEntity>(sql).ToList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
public List<MealCardRunTabEntity> Getflowtype()
{
try
{
string sql = " select distinct flowtype from MealCardRunTab order by flowtype ";
return this.BaseRepository("CollegeMIS").FindList<MealCardRunTabEntity>(sql).ToList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
public List<MealCardRunTabEntity> Getseg()
{
try
{
string sql = " select distinct seg from MealCardRunTab order by seg ";
return this.BaseRepository("CollegeMIS").FindList<MealCardRunTabEntity>(sql).ToList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<MealCardRunTabEntity> GetList(string queryJson)
{
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 MealCardRunTab t ");
return this.BaseRepository("CollegeMIS").FindList<MealCardRunTabEntity>(strSql.ToString());
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<MealCardRunTabEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT *");
strSql.Append(" FROM MealCardRunTab t where 1=1");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["accountNo"].IsEmpty())
{
dp.Add("accountNo", "%" + queryParam["accountNo"].ToString() + "%", DbType.String);
strSql.Append(" AND t.accountNo Like @accountNo ");
}
if (!queryParam["accountName"].IsEmpty())
{
dp.Add("accountName", "%" + queryParam["accountName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.accountName Like @accountName ");
}
if (!queryParam["depName"].IsEmpty())
{
dp.Add("depName", queryParam["depName"].ToString(), DbType.String);
strSql.Append(" AND t.depName = @depName ");
}
if (!queryParam["personId"].IsEmpty())
{
dp.Add("personId", "%" + queryParam["personId"].ToString() + "%", DbType.String);
strSql.Append(" AND t.personId Like @personId ");
}
if (!queryParam["identiName"].IsEmpty())
{
dp.Add("identiName", queryParam["identiName"].ToString(), DbType.String);
strSql.Append(" AND t.identiName = @identiName ");
}
if (!queryParam["flowtype"].IsEmpty())
{
dp.Add("flowtype", queryParam["flowtype"].ToString(), DbType.String);
strSql.Append(" AND t.flowtype = @flowtype ");
}
if (!queryParam["cardNo"].IsEmpty())
{
dp.Add("cardNo", "%" + queryParam["cardNo"].ToString() + "%", DbType.String);
strSql.Append(" AND t.cardNo Like @cardNo ");
}
if (!queryParam["seg"].IsEmpty())
{
dp.Add("seg", queryParam["seg"].ToString(), DbType.String);
strSql.Append(" AND t.seg = @seg ");
}
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.occurTime >= @startTime AND t.occurTime <= @endTime ) ");
}
return this.BaseRepository("CollegeMIS").FindList<MealCardRunTabEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public MealCardRunTabEntity GetEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<MealCardRunTabEntity>(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<MealCardRunTabEntity>(t => t.Id == 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, MealCardRunTabEntity 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

}
}

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj Zobrazit soubor

@@ -168,6 +168,10 @@
<Compile Include="EducationalAdministration\LeaveSchoolA\LeaveSchoolAIBLL.cs" />
<Compile Include="EducationalAdministration\LeaveSchoolA\LeaveSchoolAService.cs" />
<Compile Include="EducationalAdministration\LeaveSchoolA\LeaveSchoolEntity.cs" />
<Compile Include="EducationalAdministration\MealCardRunTab\MealCardRunTabBLL.cs" />
<Compile Include="EducationalAdministration\MealCardRunTab\MealCardRunTabEntity.cs" />
<Compile Include="EducationalAdministration\MealCardRunTab\MealCardRunTabIBLL.cs" />
<Compile Include="EducationalAdministration\MealCardRunTab\MealCardRunTabService.cs" />
<Compile Include="EducationalAdministration\MobileTest\MobileTestBLL.cs" />
<Compile Include="EducationalAdministration\MobileTest\MobileTestEntity.cs" />
<Compile Include="EducationalAdministration\MobileTest\MobileTestIBLL.cs" />


Načítá se…
Zrušit
Uložit