diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/MealCardRunTabController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/MealCardRunTabController.cs
new file mode 100644
index 000000000..28f87f329
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/MealCardRunTabController.cs
@@ -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
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-05-18 11:08
+ /// 描 述:一卡通交易流水
+ ///
+ public class MealCardRunTabController : MvcControllerBase
+ {
+ private MealCardRunTabIBLL mealCardRunTabIBLL = new MealCardRunTabBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 部门班级
+ ///
+ ///
+ public ActionResult GetDept()
+ {
+ var data = mealCardRunTabIBLL.GetDept();
+ return Success(data);
+ }
+ ///
+ /// 身份证类型
+ ///
+ ///
+ public ActionResult GetdentiName()
+ {
+ var data = mealCardRunTabIBLL.GetdentiName();
+ return Success(data);
+ }
+ ///
+ /// 流水类型
+ ///
+ ///
+ public ActionResult Getflowtype()
+ {
+ var data = mealCardRunTabIBLL.Getflowtype();
+ return Success(data);
+ }
+ ///
+ /// 餐次
+ ///
+ ///
+ public ActionResult Getseg()
+ {
+ var data = mealCardRunTabIBLL.Getseg();
+ return Success(data);
+ }
+ ///
+ /// 获取列表数据
+ ///
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetList( string queryJson )
+ {
+ var data = mealCardRunTabIBLL.GetList(queryJson);
+ return Success(data);
+ }
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = mealCardRunTabIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var data = mealCardRunTabIBLL.GetEntity(keyValue);
+ return Success(data);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ mealCardRunTabIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue,MealCardRunTabEntity entity)
+ {
+ mealCardRunTabIBLL.SaveEntity(keyValue, entity);
+ return Success("保存成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.cshtml
new file mode 100644
index 000000000..4108979c0
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.cshtml
@@ -0,0 +1,79 @@
+@{
+ ViewBag.Title = "一卡通交易流水";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/MealCardRunTab/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.js
new file mode 100644
index 000000000..8f7ef1614
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Form.js
@@ -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();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.cshtml
new file mode 100644
index 000000000..a046a9621
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.cshtml
@@ -0,0 +1,67 @@
+@{
+ ViewBag.Title = "一卡通交易流水";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js
new file mode 100644
index 000000000..2b9fb2d53
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js
@@ -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();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index dc60c3402..3bf9c206c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -330,6 +330,7 @@
+
@@ -1039,6 +1040,8 @@
+
+
@@ -1109,6 +1112,8 @@
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/MealCardRunTabMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/MealCardRunTabMap.cs
new file mode 100644
index 000000000..82ad83803
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/MealCardRunTabMap.cs
@@ -0,0 +1,29 @@
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-05-18 11:08
+ /// 描 述:一卡通交易流水
+ ///
+ public class MealCardRunTabMap : EntityTypeConfiguration
+ {
+ public MealCardRunTabMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("MEALCARDRUNTAB");
+ //主键
+ this.HasKey(t => t.Id);
+ #endregion
+
+ #region 配置关系
+ #endregion
+ }
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
index 9c834f59d..00c75ea2a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
@@ -85,6 +85,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabBLL.cs
new file mode 100644
index 000000000..8edd28800
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabBLL.cs
@@ -0,0 +1,220 @@
+using Learun.Util;
+using System;
+using System.Data;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-05-18 11:08
+ /// 描 述:一卡通交易流水
+ ///
+ public class MealCardRunTabBLL : MealCardRunTabIBLL
+ {
+ private MealCardRunTabService mealCardRunTabService = new MealCardRunTabService();
+
+ #region 获取数据
+ public List 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 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 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 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);
+ }
+ }
+ }
+ ///
+ /// 获取列表数据
+ ///
+ /// 查询参数
+ ///
+ public IEnumerable GetList(string queryJson)
+ {
+ try
+ {
+ return mealCardRunTabService.GetList(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return mealCardRunTabService.GetPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ 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 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ mealCardRunTabService.DeleteEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ 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
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabEntity.cs
new file mode 100644
index 000000000..2793dd3ce
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabEntity.cs
@@ -0,0 +1,146 @@
+using Learun.Util;
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-05-18 11:08
+ /// 描 述:一卡通交易流水
+ ///
+ public class MealCardRunTabEntity
+ {
+ #region 实体成员
+ ///
+ /// 主键
+ ///
+ ///
+ [Column("ID")]
+ public string Id { get; set; }
+ ///
+ /// 学生卡账号
+ ///
+ ///
+ [Column("ACCOUNTNO")]
+ public string accountNo { get; set; }
+ ///
+ /// 学生卡姓名
+ ///
+ ///
+ [Column("ACCOUNTNAME")]
+ public string accountName { get; set; }
+ ///
+ /// 部门名称
+ ///
+ ///
+ [Column("DEPNAME")]
+ public string depName { get; set; }
+ ///
+ /// 身份证号
+ ///
+ ///
+ [Column("PERSONID")]
+ public string personId { get; set; }
+ ///
+ /// 身份名称
+ ///
+ ///
+ [Column("IDENTINAME")]
+ public string identiName { get; set; }
+ ///
+ /// 流水类型
+ ///
+ ///
+ [Column("FLOWTYPE")]
+ public string flowtype { get; set; }
+ ///
+ /// 交易金额
+ ///
+ ///
+ [Column("FLOWAMOUNT")]
+ public int? flowamount { get; set; }
+ ///
+ /// 余额
+ ///
+ ///
+ [Column("BALANCE")]
+ public int? balance { get; set; }
+ ///
+ /// 卡号
+ ///
+ ///
+ [Column("CARDNO")]
+ public string cardNo { get; set; }
+ ///
+ /// 中心时间
+ ///
+ ///
+ [Column("CENTRALTM")]
+ public DateTime? centralTm { get; set; }
+ ///
+ /// 中心序号
+ ///
+ ///
+ [Column("CENTRALNO")]
+ public string centralNo { get; set; }
+ ///
+ /// 发生时间
+ ///
+ ///
+ [Column("OCCURTIME")]
+ public DateTime? occurTime { get; set; }
+ ///
+ /// 节点名称
+ ///
+ ///
+ [Column("NODE")]
+ public string node { get; set; }
+ ///
+ /// 营业大组名称
+ ///
+ ///
+ [Column("BIGGROUP")]
+ public string bigGroup { get; set; }
+ ///
+ /// 营业小组名称
+ ///
+ ///
+ [Column("SMALLGROUP")]
+ public string smallGroup { get; set; }
+ ///
+ /// 营业餐次
+ ///
+ ///
+ [Column("SEG")]
+ public string seg { get; set; }
+ ///
+ /// Pos机序号
+ ///
+ ///
+ [Column("POS")]
+ public string pos { get; set; }
+ #endregion
+
+ #region 扩展操作
+ ///
+ /// 新增调用
+ ///
+ public void Create()
+ {
+ this.Id = Guid.NewGuid().ToString();
+ }
+ ///
+ /// 编辑调用
+ ///
+ ///
+ public void Modify(string keyValue)
+ {
+ this.Id = keyValue;
+ }
+ #endregion
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabIBLL.cs
new file mode 100644
index 000000000..4ef4c7b0a
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabIBLL.cs
@@ -0,0 +1,59 @@
+using Learun.Util;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-05-18 11:08
+ /// 描 述:一卡通交易流水
+ ///
+ public interface MealCardRunTabIBLL
+ {
+ #region 获取数据
+ List GetDept();
+ List GetdentiName();
+ List Getflowtype();
+ List Getseg();
+
+ ///
+ /// 获取列表数据
+ ///
+ /// 查询参数
+ ///
+ IEnumerable GetList( string queryJson );
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ IEnumerable GetPageList(Pagination pagination, string queryJson);
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ MealCardRunTabEntity GetEntity(string keyValue);
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ void DeleteEntity(string keyValue);
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ void SaveEntity(string keyValue, MealCardRunTabEntity entity);
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs
new file mode 100644
index 000000000..345b7ecf8
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs
@@ -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
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-05-18 11:08
+ /// 描 述:一卡通交易流水
+ ///
+ public class MealCardRunTabService : RepositoryFactory
+ {
+ #region 构造函数和属性
+
+ private string fieldSql;
+ ///
+ /// 构造方法
+ ///
+ public MealCardRunTabService()
+ {
+ fieldSql = @" * ";
+ }
+ #endregion
+
+ #region 获取数据
+ public List GetDept()
+ {
+ try
+ {
+ string sql = " select distinct DepName from MealCardRunTab order by depname ";
+ return this.BaseRepository("CollegeMIS").FindList(sql).ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+ public List GetdentiName()
+ {
+ try
+ {
+ string sql = " select distinct identiName from MealCardRunTab order by identiName ";
+ return this.BaseRepository("CollegeMIS").FindList(sql).ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+ public List Getflowtype()
+ {
+ try
+ {
+ string sql = " select distinct flowtype from MealCardRunTab order by flowtype ";
+ return this.BaseRepository("CollegeMIS").FindList(sql).ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+ public List Getseg()
+ {
+ try
+ {
+ string sql = " select distinct seg from MealCardRunTab order by seg ";
+ return this.BaseRepository("CollegeMIS").FindList(sql).ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+ ///
+ /// 获取列表数据
+ ///
+ /// 条件参数
+ ///
+ public IEnumerable 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(strSql.ToString());
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 条件参数
+ ///
+ public IEnumerable 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(strSql.ToString(), dp, pagination);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ public MealCardRunTabEntity GetEntity(string keyValue)
+ {
+ try
+ {
+ return this.BaseRepository("CollegeMIS").FindEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ this.BaseRepository("CollegeMIS").Delete(t => t.Id == keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ /// 实体
+ ///
+ 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
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
index d8f93d5c8..d929dbe1b 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
@@ -168,6 +168,10 @@
+
+
+
+