From 685b4bdea9f801f140c8a66d96d4bab1f6afc44a Mon Sep 17 00:00:00 2001
From: dyy <18335927079@163.com>
Date: Tue, 18 May 2021 14:39:51 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91?=
=?UTF-8?q?=E4=BA=BA=E4=BA=8B=E4=BF=A1=E6=81=AF=E7=AE=A1=E7=90=86=EF=BC=9A?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E6=AC=A1=E6=80=A7=E5=B7=A5=E8=B5=84?=
=?UTF-8?q?=E6=9D=A1=E3=80=81=E4=B8=80=E6=AC=A1=E6=80=A7=E5=B7=A5=E8=B5=84?=
=?UTF-8?q?=E6=9D=A1=E7=BB=9F=E8=AE=A1=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/Emp_PayrollOnceController.cs | 151 ++++++++++++
.../Views/Emp_PayrollOnce/Form.cshtml | 27 +++
.../Views/Emp_PayrollOnce/Form.js | 50 ++++
.../Views/Emp_PayrollOnce/Index.cshtml | 51 ++++
.../Views/Emp_PayrollOnce/Index.js | 113 +++++++++
.../Emp_PayrollOnce/StatisticIndex.cshtml | 45 ++++
.../Views/Emp_PayrollOnce/StatisticIndex.js | 67 ++++++
.../Learun.Application.Web.csproj | 7 +
.../Learun.Application.Mapping.csproj | 1 +
.../PersonnelManagement/EMP_PayrollMap.cs | 2 +-
.../PersonnelManagement/EMP_PayrollOnceMap.cs | 29 +++
.../Learun.Application.TwoDevelopment.csproj | 4 +
.../Emp_PayrollOnce/EMP_PayrollOnceEntity.cs | 72 ++++++
.../Emp_PayrollOnce/Emp_PayrollOnceBLL.cs | 150 ++++++++++++
.../Emp_PayrollOnce/Emp_PayrollOnceIBLL.cs | 56 +++++
.../Emp_PayrollOnce/Emp_PayrollOnceService.cs | 227 ++++++++++++++++++
16 files changed, 1051 insertions(+), 1 deletion(-)
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.js
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.cshtml
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.cshtml
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/EMP_PayrollOnceMap.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceBLL.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceIBLL.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceService.cs
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs
new file mode 100644
index 000000000..e5b3ee28f
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs
@@ -0,0 +1,151 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.PersonnelManagement;
+using System.Web.Mvc;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-04-21 15:42
+ /// 描 述:一次性工资条
+ ///
+ public class Emp_PayrollOnceController : MvcControllerBase
+ {
+ private Emp_PayrollOnceIBLL emp_PayrollOnceIBLL = new Emp_PayrollOnceBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+
+ ///
+ /// 主页面-统计
+ ///
+ ///
+ [HttpGet]
+ public ActionResult StatisticIndex()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = emp_PayrollOnceIBLL.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 EMP_PayrollOnceData = emp_PayrollOnceIBLL.GetEMP_PayrollOnceEntity(keyValue);
+ var jsonData = new
+ {
+ EMP_PayrollOnce = EMP_PayrollOnceData,
+ };
+ return Success(jsonData);
+ }
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetStatisticList(string queryJson)
+ {
+ var data = emp_PayrollOnceIBLL.GetList(queryJson);
+ var datagroup = data.GroupBy(x => new { x.IssueMonth, x.IssueYear }).Select(x => new EMP_PayrollOnceEntity
+ {
+ IssueYear = x.Key.IssueYear,
+ IssueMonth = x.Key.IssueMonth,
+ SpringFestival = x.Select(y => y.SpringFestival.ToDecimal()).Sum().ToString(),
+ MidAutumnFestival = x.Select(y => y.MidAutumnFestival.ToDecimal()).Sum().ToString()
+ }).OrderByDescending(x => x.IssueYear).ThenByDescending(x => x.IssueMonth);
+
+ return Success(datagroup);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ emp_PayrollOnceIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity)
+ {
+ EMP_PayrollOnceEntity entity = strEntity.ToObject();
+ emp_PayrollOnceIBLL.SaveEntity(keyValue, entity);
+ if (string.IsNullOrEmpty(keyValue))
+ {
+ }
+ return Success("保存成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml
new file mode 100644
index 000000000..32dd2dfd7
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml
@@ -0,0 +1,27 @@
+@{
+ ViewBag.Title = "一次性工资条";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.js
new file mode 100644
index 000000000..a69e5a247
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.js
@@ -0,0 +1,50 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2021-04-21 15:42
+ * 描 述:一次性工资条
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/GetFormData?keyValue=' + keyValue, function (data) {
+ for (var id in data) {
+ if (!!data[id].length && data[id].length > 0) {
+ $('#' + id ).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ }
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {
+ strEntity: JSON.stringify($('body').lrGetFormData())
+ };
+ $.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.cshtml
new file mode 100644
index 000000000..3439460f3
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.cshtml
@@ -0,0 +1,51 @@
+@{
+ ViewBag.Title = "一次性工资条";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js
new file mode 100644
index 000000000..092aeb3bd
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js
@@ -0,0 +1,113 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2021-04-21 15:42
+ * 描 述:一次性工资条
+ */
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ //年份
+ $('#IssueYear').lrselect({
+ allowSearch: true,
+ url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear',
+ value: 'value',
+ text: 'text'
+ });
+ $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' });
+ $('#Department').lrselect({
+ type: 'tree',
+ // 展开最大高度
+ maxHeight: 200,
+ // 是否允许搜索
+ allowSearch: true,
+ // 访问数据接口地址
+ url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ learun.layerForm({
+ id: 'form',
+ title: '新增',
+ url: top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/Form',
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('SalaryID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'form',
+ title: '编辑',
+ url: top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/Form?keyValue=' + keyValue,
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('SalaryID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/DeleteForm', { keyValue: keyValue }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ // 打印
+ $('#lr_print').on('click', function () {
+ $('#gridtable').jqprintTable();
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/GetPageList',
+ headData: [
+ { label: "姓名", name: "SalaryName", width: 100, align: "left" },
+ { label: "春节福利", name: "SpringFestival", width: 100, align: "left", statistics: true },
+ { label: "中秋节福利", name: "MidAutumnFestival", width: 100, align: "left", statistics: true },
+ { label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
+ { label: "发放年份", name: "IssueYear", width: 100, align: "left" },
+ ],
+ mainId: 'SalaryID',
+ isPage: true
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ $('#gridtable').jfGridSet('reload');
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.cshtml
new file mode 100644
index 000000000..3566803b2
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.cshtml
@@ -0,0 +1,45 @@
+@{
+ ViewBag.Title = "一次性工资条统计";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js
new file mode 100644
index 000000000..d08462485
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js
@@ -0,0 +1,67 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2021-04-21 15:42
+ * 描 述:一次性工资条统计
+ */
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ //年份
+ $('#IssueYear').lrselect({
+ allowSearch: true,
+ type: 'multiple',
+ url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear',
+ value: 'value',
+ text: 'text'
+ });
+ $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth', type: 'multiple' });
+ $('#Department').lrselect({
+ type: 'tree',
+ // 展开最大高度
+ maxHeight: 200,
+ // 是否允许搜索
+ allowSearch: true,
+ // 访问数据接口地址
+ url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/GetStatisticList',
+ headData: [
+ { label: "发放年份", name: "IssueYear", width: 100, align: "left" },
+ { label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
+ { label: "春节福利", name: "SpringFestival", width: 100, align: "left", statistics: true },
+ { label: "中秋节福利", name: "MidAutumnFestival", width: 100, align: "left", statistics: true },
+ ],
+ mainId: 'SalaryID',
+ isPage: false
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#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 09066af15..a6fbfc1f9 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
@@ -471,6 +471,7 @@
+
@@ -1376,6 +1377,9 @@
+
+
+
@@ -7166,6 +7170,9 @@
+
+
+
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 c6fe9b3dc..a1e4f7205 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
@@ -195,6 +195,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/EMP_PayrollMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/EMP_PayrollMap.cs
index 1aa9b52bd..51fb91a28 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/EMP_PayrollMap.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/EMP_PayrollMap.cs
@@ -8,7 +8,7 @@ namespace Learun.Application.Mapping
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-04-21 15:42
- /// 描 述:考勤记录
+ /// 描 述:工资条
///
public class EMP_PayrollMap : EntityTypeConfiguration
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/EMP_PayrollOnceMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/EMP_PayrollOnceMap.cs
new file mode 100644
index 000000000..25f7a5f9a
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/EMP_PayrollOnceMap.cs
@@ -0,0 +1,29 @@
+using Learun.Application.TwoDevelopment.PersonnelManagement;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-04-21 15:42
+ /// 描 述:一次性工资条
+ ///
+ public class EMP_PayrollOnceMap : EntityTypeConfiguration
+ {
+ public EMP_PayrollOnceMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("EMP_PAYROLLONCE");
+ //主键
+ this.HasKey(t => t.SalaryID);
+ #endregion
+
+ #region 配置关系
+ #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 4479ea04d..bfb7e4bac 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
@@ -293,6 +293,10 @@
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs
new file mode 100644
index 000000000..fe1090873
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs
@@ -0,0 +1,72 @@
+using Learun.Util;
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Security.AccessControl;
+
+namespace Learun.Application.TwoDevelopment.PersonnelManagement
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-04-21 15:42
+ /// 描 述:一次性工资条
+ ///
+ public class EMP_PayrollOnceEntity
+ {
+ #region 实体成员
+ ///
+ /// SalaryID
+ ///
+ [Column("SALARYID")]
+ public string SalaryID { get; set; }
+ ///
+ /// SalaryName
+ ///
+ [Column("SALARYNAME")]
+ public string SalaryName { get; set; }
+ ///
+ /// IssueMonth
+ ///
+ [Column("ISSUEMONTH")]
+ public string IssueMonth { get; set; }
+ ///
+ /// IssueYear
+ ///
+ [Column("ISSUEYEAR")]
+ public string IssueYear { get; set; }
+ ///
+ /// SpringFestival
+ ///
+ [Column("SPRINGFESTIVAL")]
+ public string SpringFestival { get; set; }
+ ///
+ /// MidAutumnFestival
+ ///
+ [Column("MIDAUTUMNFESTIVAL")]
+ public string MidAutumnFestival { get; set; }
+
+ #endregion
+
+ #region 扩展操作
+ ///
+ /// 新增调用
+ ///
+ public void Create()
+ {
+ this.SalaryID = Guid.NewGuid().ToString();
+ }
+ ///
+ /// 编辑调用
+ ///
+ ///
+ public void Modify(string keyValue)
+ {
+ this.SalaryID = keyValue;
+ }
+ #endregion
+ #region 扩展字段
+ #endregion
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceBLL.cs
new file mode 100644
index 000000000..726bca25c
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceBLL.cs
@@ -0,0 +1,150 @@
+using Learun.Util;
+using System;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.PersonnelManagement
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-04-21 15:42
+ /// 描 述:一次性工资条
+ ///
+ public class Emp_PayrollOnceBLL : Emp_PayrollOnceIBLL
+ {
+ private Emp_PayrollOnceService emp_PayrollOnceService = new Emp_PayrollOnceService();
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return emp_PayrollOnceService.GetPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取EMP_PayrollOnce表实体数据
+ ///
+ /// 主键
+ ///
+ public EMP_PayrollOnceEntity GetEMP_PayrollOnceEntity(string keyValue)
+ {
+ try
+ {
+ return emp_PayrollOnceService.GetEMP_PayrollOnceEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ public IEnumerable GetList(string queryJson)
+ {
+ try
+ {
+ return emp_PayrollOnceService.GetList(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ emp_PayrollOnceService.DeleteEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ public void SaveEntity(string keyValue, EMP_PayrollOnceEntity entity)
+ {
+ try
+ {
+ emp_PayrollOnceService.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/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceIBLL.cs
new file mode 100644
index 000000000..c751080a4
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceIBLL.cs
@@ -0,0 +1,56 @@
+using Learun.Util;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.PersonnelManagement
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-04-21 15:42
+ /// 描 述:一次性工资条
+ ///
+ public interface Emp_PayrollOnceIBLL
+ {
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ IEnumerable GetPageList(Pagination pagination, string queryJson);
+ ///
+ /// 获取EMP_PayrollOnce表实体数据
+ ///
+ /// 主键
+ ///
+ EMP_PayrollOnceEntity GetEMP_PayrollOnceEntity(string keyValue);
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ IEnumerable GetList(string queryJson);
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ void DeleteEntity(string keyValue);
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ void SaveEntity(string keyValue, EMP_PayrollOnceEntity entity);
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceService.cs
new file mode 100644
index 000000000..18fc214e4
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/Emp_PayrollOnceService.cs
@@ -0,0 +1,227 @@
+using Dapper;
+using Learun.DataBase.Repository;
+using Learun.Util;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Text;
+
+namespace Learun.Application.TwoDevelopment.PersonnelManagement
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-04-21 15:42
+ /// 描 述:一次性工资条
+ ///
+ public class Emp_PayrollOnceService : RepositoryFactory
+ {
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ var strSql = new StringBuilder();
+ strSql.Append("SELECT t.* ");
+ strSql.Append(" FROM EMP_PayrollOnce t");
+ strSql.Append(" left join EmpInfo e on t.SalaryID=e.SalaryNumber ");
+ strSql.Append(" WHERE 1=1 ");
+ var queryParam = queryJson.ToJObject();
+ // 虚拟参数
+ var dp = new DynamicParameters(new { });
+ if (!queryParam["IssueYear"].IsEmpty())
+ {
+ dp.Add("IssueYear", queryParam["IssueYear"].ToString(), DbType.String);
+ strSql.Append(" AND t.IssueYear = @IssueYear ");
+ }
+ if (!queryParam["IssueMonth"].IsEmpty())
+ {
+ dp.Add("IssueMonth", queryParam["IssueMonth"].ToString(), DbType.String);
+ strSql.Append(" AND t.IssueMonth = @IssueMonth ");
+ }
+ if (!queryParam["SalaryName"].IsEmpty())
+ {
+ dp.Add("SalaryName", "%" + queryParam["SalaryName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.SalaryName Like @SalaryName ");
+ }
+ if (!queryParam["Department"].IsEmpty())
+ {
+ dp.Add("Department", queryParam["Department"].ToString(), DbType.String);
+ strSql.Append(" AND e.F_DepartmentId = @Department ");
+ }
+ return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取EMP_PayrollOnce表实体数据
+ ///
+ /// 主键
+ ///
+ public EMP_PayrollOnceEntity GetEMP_PayrollOnceEntity(string keyValue)
+ {
+ try
+ {
+ return this.BaseRepository("CollegeMIS").FindEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ /// 查询参数
+ ///
+ public IEnumerable GetList(string queryJson)
+ {
+ try
+ {
+ var strSql = new StringBuilder();
+ strSql.Append("SELECT t.* ");
+ strSql.Append(" FROM EMP_PayrollOnce t");
+ strSql.Append(" left join EmpInfo e on t.SalaryID=e.SalaryNumber ");
+ strSql.Append(" WHERE 1=1 ");
+ var queryParam = queryJson.ToJObject();
+ // 虚拟参数
+ var dp = new DynamicParameters(new { });
+ if (!queryParam["IssueYear"].IsEmpty())
+ {
+ var strArr = queryParam["IssueYear"].ToString().Split(',');
+ var strs = "";
+ foreach (var item in strArr)
+ {
+ strs += $"'{item}',";
+ }
+ strs = strs.TrimEnd(',');
+ strSql.Append($" AND t.IssueYear in ({strs}) ");
+ }
+ if (!queryParam["IssueMonth"].IsEmpty())
+ {
+ var strArr = queryParam["IssueMonth"].ToString().Split(',');
+ var strs = "";
+ foreach (var item in strArr)
+ {
+ strs += $"'{item}',";
+ }
+ strs = strs.TrimEnd(',');
+ strSql.Append($" AND t.IssueMonth in ({strs}) ");
+ }
+ if (!queryParam["SalaryName"].IsEmpty())
+ {
+ dp.Add("SalaryName", "%" + queryParam["SalaryName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.SalaryName Like @SalaryName ");
+ }
+ if (!queryParam["Department"].IsEmpty())
+ {
+ dp.Add("Department", queryParam["Department"].ToString(), DbType.String);
+ strSql.Append(" AND e.F_DepartmentId = @Department ");
+ }
+ return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp);
+ }
+ 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.SalaryID == keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ public void SaveEntity(string keyValue, EMP_PayrollOnceEntity 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
+
+ }
+}
From 8544b182efa8d7415a57b07df5e0b5503012d0de Mon Sep 17 00:00:00 2001
From: dyy <18335927079@163.com>
Date: Tue, 18 May 2021 14:48:02 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E5=90=88=E5=B9=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Learun.Application.Web/Learun.Application.Web.csproj | 7 +++++++
1 file changed, 7 insertions(+)
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 8483e3efa..5e3be2b68 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
@@ -471,6 +471,7 @@
+
@@ -1377,6 +1378,9 @@
+
+
+
@@ -7176,6 +7180,9 @@
+
+
+
From e1bc3922f00a9c88edbb2ba833bdb317747f9aa7 Mon Sep 17 00:00:00 2001
From: dyy <18335927079@163.com>
Date: Wed, 19 May 2021 12:08:52 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91?=
=?UTF-8?q?=E5=8A=9E=E4=BA=8B=E5=A4=A7=E5=8E=85=EF=BC=9A=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E6=99=AE=E9=80=9A=E6=95=99=E5=B8=88=E8=AF=B7=E5=81=87=E5=BD=92?=
=?UTF-8?q?=E6=A1=A3=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/NWFProcessController.cs | 43 ++++
.../Views/NWFProcess/LeaveFiling.cshtml | 57 +++++
.../Views/NWFProcess/LeaveFiling.js | 191 ++++++++++++++
.../Learun.Application.Web.csproj | 2 +
.../LR_LGManager/StudentLeaveMap.cs | 28 +++
.../Learun.Application.Mapping.csproj | 1 +
.../StudentLeave/StudentLeaveBLL.cs | 148 +++++++++++
.../StudentLeave/StudentLeaveEntity.cs | 131 ++++++++++
.../StudentLeave/StudentLeaveIBLL.cs | 55 ++++
.../StudentLeave/StudentLeaveService.cs | 238 ++++++++++++++++++
.../Learun.Application.TwoDevelopment.csproj | 4 +
11 files changed, 898 insertions(+)
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.cshtml
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.js
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_LGManager/StudentLeaveMap.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveBLL.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveEntity.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveIBLL.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveService.cs
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
index c201f2961..4c9bf0269 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
@@ -26,6 +26,7 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
private UserIBLL userIbll = new UserBLL();
private UserRelationIBLL userRelationIBLL = new UserRelationBLL();
+ private StudentLeaveIBLL studentLeaveIBLL = new StudentLeaveBLL();
#region 视图功能
///
@@ -278,6 +279,25 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
return View();
}
+ ///
+ /// 普通教师请假归档
+ ///
+ ///
+ [HttpGet]
+ public ActionResult LeaveFiling()
+ {
+ return View();
+ }
+ ///
+ /// 普通教师请假流程监控
+ ///
+ ///
+ [HttpGet]
+ public ActionResult LeaveFilingMonitor()
+ {
+ return View();
+ }
+
#endregion
@@ -342,6 +362,7 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
};
return Success(jsonData);
}
+
///
/// 获取我的流程信息列表
///
@@ -415,6 +436,28 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
var data = nWFTaskIBLL.GetEntity(taskId);
return Success(data);
}
+
+ ///
+ /// 获取普通教师请假归档列表
+ ///
+ ///
+ ///
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetLeaveList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var list = studentLeaveIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = list,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records,
+ };
+ return Success(jsonData);
+ }
#endregion
#region 保存更新删除
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.cshtml
new file mode 100644
index 000000000..9a597d6e7
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.cshtml
@@ -0,0 +1,57 @@
+@{
+ ViewBag.Title = "普通教师请假归档";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.js")
+
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.js
new file mode 100644
index 000000000..05ce66076
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/LeaveFiling.js
@@ -0,0 +1,191 @@
+/*
+ * 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2018 上海力软信息技术有限公司
+ * 创建人:力软-前端开发组
+ * 日 期:2021.05.18
+ * 描 述:普通教师请假归档
+ */
+var bootstrap = function ($, learun) {
+ "use strict";
+ var categoryId = '1';
+ var logbegin = '';
+ var logend = '';
+
+ var page = {
+ init: function () {
+ $('#lr_verify').hide();
+ page.initGrid();
+ 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,
+ selectfn: function (begin, end) {
+ logbegin = begin;
+ logend = end;
+ page.search();
+ }
+ });
+ // 查询
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#F_CreateUserName').lrUserSelect(1);
+ $('#F_QJType').lrDataItemSelect({ code: 'LeaveType' });
+ $('#F_BuMen').lrselect({
+ type: 'tree',
+ // 展开最大高度
+ maxHeight: 200,
+ // 是否允许搜索
+ allowSearch: true,
+ // 访问数据接口地址
+ url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 查看
+ $('#lr_eye').on('click', function () {
+ page.eye();
+ });
+ },
+ initleft: function () {
+ $('#lr_left_list li').on('click', function () {
+ var $this = $(this);
+ var $parent = $this.parent();
+ $parent.find('.active').removeClass('active');
+ $this.addClass('active');
+ categoryId = $this.attr('data-value');
+ if (categoryId == 3) {
+ categoryId = 1;
+ F_EnabledMark = true;
+ } else {
+ F_EnabledMark = false;
+ }
+ page.search();
+ });
+ },
+ initGrid: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetLeaveList',
+ headData: [
+ {
+ label: '开始时间', name: 'StartDate', width: 140, align: "left", formatter: function (cellvalue, row) {
+ return learun.formatDate(cellvalue, 'yyyy-MM-dd');
+ }
+ },
+ {
+ label: '上下午', name: 'F_shangxiawu', width: 60, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'sxw',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: '结束时间', name: 'EndDate', width: 140, align: "left", formatter: function (cellvalue, row) {
+ return learun.formatDate(cellvalue, 'yyyy-MM-dd');
+ }
+ },
+ {
+ label: '上下午', name: 'F_sxw', width: 60, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'sxw',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: '姓名', name: 'F_CreateUserName', width: 80, align: "left",
+ formatterAsync: function (callback, value, row) {
+ learun.clientdata.getAsync('user', {
+ key: value,
+ callback: function (item) {
+ callback(item.name);
+ }
+ });
+ }
+ },
+ {
+ label: '所属部门', name: 'F_BuMen', width: 120, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
+ key: value,
+ keyId: 'id',
+ callback: function (_data) {
+ callback(_data['name']);
+ }
+ });
+ }
+ },
+ { label: '请假天数', name: 'F_tianshu', width: 60, align: "left" },
+ {
+ label: '请假类型', name: 'F_QJType', width: 80, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'LeaveType',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: '请假事由', name: 'F_Description', width: 80, align: "left" },
+ ],
+ mainId: 'SLId',
+ isPage: true,
+ sidx: 'F_CreateDate DESC',
+ dblclick: function () {
+ page.eye();
+ }
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = logbegin;
+ param.EndTime = logend;
+ param.F_IsFinished = 1;
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ },
+ eye: function () {
+ var processId = $('#gridtable').jfGridValue('SLId') || '';
+ var title = $('#gridtable').jfGridValue('F_Description');
+
+ if (learun.checkrow(processId)) {
+ learun.frameTab.open({ F_ModuleId: 'monitor' + processId, F_FullName: '查看-' + title, F_UrlAddress: '/LR_NewWorkFlow/NWFProcess/MonitorDetailsIndex?processId=' + processId });
+ }
+ }
+ };
+
+ 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 5e3be2b68..f1e817fd3 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
@@ -1286,6 +1286,7 @@
+
@@ -7183,6 +7184,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_LGManager/StudentLeaveMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_LGManager/StudentLeaveMap.cs
new file mode 100644
index 000000000..0a1233654
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_LGManager/StudentLeaveMap.cs
@@ -0,0 +1,28 @@
+using Learun.Application.TwoDevelopment.LR_LGManager;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-05-18 15:48
+ /// 描 述:流程_请假表
+ ///
+ public class StudentLeaveMap : EntityTypeConfiguration
+ {
+ public StudentLeaveMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("STUDENTLEAVE");
+ //主键
+ this.HasKey(t => t.SLId);
+ #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 c6840c796..e85fe4839 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
@@ -138,6 +138,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveBLL.cs
new file mode 100644
index 000000000..9866ed17d
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveBLL.cs
@@ -0,0 +1,148 @@
+using Learun.Util;
+using System;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.LR_LGManager
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-05-18 15:48
+ /// 描 述:流程_请假表
+ ///
+ public class StudentLeaveBLL : StudentLeaveIBLL
+ {
+ private StudentLeaveService studentLeaveService = new StudentLeaveService();
+
+ #region 获取数据
+
+ ///
+ /// 获取列表数据
+ ///
+ /// 查询参数
+ ///
+ public IEnumerable GetList(string queryJson)
+ {
+ try
+ {
+ return studentLeaveService.GetList(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return studentLeaveService.GetPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ public StudentLeaveEntity GetEntity(string keyValue)
+ {
+ try
+ {
+ return studentLeaveService.GetEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ studentLeaveService.DeleteEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ public void SaveEntity(string keyValue, StudentLeaveEntity entity)
+ {
+ try
+ {
+ studentLeaveService.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/LR_LGManager/StudentLeave/StudentLeaveEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveEntity.cs
new file mode 100644
index 000000000..bfb815e5e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveEntity.cs
@@ -0,0 +1,131 @@
+using Learun.Util;
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+namespace Learun.Application.TwoDevelopment.LR_LGManager
+
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-05-18 15:48
+ /// 描 述:流程_请假表
+ ///
+ public class StudentLeaveEntity
+ {
+ #region 实体成员
+ ///
+ /// SLId
+ ///
+ ///
+ [Column("SLID")]
+ public string SLId { get; set; }
+ ///
+ /// 创建人ID
+ ///
+ ///
+ [Column("F_CREATEUSERID")]
+ public string F_CreateUserId { get; set; }
+ ///
+ /// 创建人
+ ///
+ ///
+ [Column("F_CREATEUSERNAME")]
+ public string F_CreateUserName { get; set; }
+ ///
+ /// 创建时间
+ ///
+ ///
+ [Column("F_CREATEDATE")]
+ public DateTime? F_CreateDate { get; set; }
+ ///
+ /// 备注
+ ///
+ ///
+ [Column("F_DESCRIPTION")]
+ public string F_Description { get; set; }
+ ///
+ /// 开始时间
+ ///
+ ///
+ [Column("STARTDATE")]
+ public DateTime? StartDate { get; set; }
+ ///
+ /// 结束时间
+ ///
+ ///
+ [Column("ENDDATE")]
+ public DateTime? EndDate { get; set; }
+ ///
+ /// 请假类型
+ ///
+ ///
+ [Column("F_QJTYPE")]
+ public string F_QJType { get; set; }
+ ///
+ /// 所属部门
+ ///
+ ///
+ [Column("F_BUMEN")]
+ public string F_BuMen { get; set; }
+ ///
+ /// 请假天数
+ ///
+ ///
+ [Column("F_TIANSHU")]
+ public string F_tianshu { get; set; }
+ ///
+ /// 资料上传
+ ///
+ ///
+ [Column("F_FUJIAN")]
+ public string F_fujian { get; set; }
+ ///
+ /// 上下午(开始时间)
+ ///
+ ///
+ [Column("F_SHANGXIAWU")]
+ public string F_shangxiawu { get; set; }
+ ///
+ /// 上下午(结束时间)
+ ///
+ ///
+ [Column("F_SXW")]
+ public string F_sxw { get; set; }
+ ///
+ /// 当前角色
+ ///
+ ///
+ [Column("F_DQJS")]
+ public string F_dqjs { get; set; }
+ ///
+ /// LeaveDay
+ ///
+ ///
+ [Column("LEAVEDAY")]
+ public string LeaveDay { get; set; }
+ #endregion
+
+ #region 扩展操作
+ ///
+ /// 新增调用
+ ///
+ public void Create()
+ {
+ this.SLId = Guid.NewGuid().ToString();
+ this.F_CreateDate = DateTime.Now;
+ UserInfo userInfo = LoginUserInfo.Get();
+ this.F_CreateUserId = userInfo.userId;
+ this.F_CreateUserName = userInfo.realName;
+ }
+ ///
+ /// 编辑调用
+ ///
+ ///
+ public void Modify(string keyValue)
+ {
+ this.SLId = keyValue;
+ }
+ #endregion
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveIBLL.cs
new file mode 100644
index 000000000..9d2e75337
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveIBLL.cs
@@ -0,0 +1,55 @@
+using Learun.Util;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.LR_LGManager
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-05-18 15:48
+ /// 描 述:流程_请假表
+ ///
+ public interface StudentLeaveIBLL
+ {
+ #region 获取数据
+
+ ///
+ /// 获取列表数据
+ ///
+ /// 查询参数
+ ///
+ IEnumerable GetList(string queryJson);
+ ///
+ /// 获取列表分页数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ IEnumerable GetPageList(Pagination pagination, string queryJson);
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ StudentLeaveEntity GetEntity(string keyValue);
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ void DeleteEntity(string keyValue);
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ void SaveEntity(string keyValue, StudentLeaveEntity entity);
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveService.cs
new file mode 100644
index 000000000..a2af86a29
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/StudentLeave/StudentLeaveService.cs
@@ -0,0 +1,238 @@
+using Dapper;
+using Learun.DataBase.Repository;
+using Learun.Util;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Text;
+
+namespace Learun.Application.TwoDevelopment.LR_LGManager
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2021-05-18 15:48
+ /// 描 述:流程_请假表
+ ///
+ public class StudentLeaveService : RepositoryFactory
+ {
+ #region 构造函数和属性
+
+ private string fieldSql;
+ ///
+ /// 构造方法
+ ///
+ public StudentLeaveService()
+ {
+ fieldSql = @"
+ t.SLId,
+ t.F_CreateUserId,
+ t.F_CreateUserName,
+ t.F_CreateDate,
+ t.F_Description,
+ t.StartDate,
+ t.EndDate,
+ t.F_QJType,
+ t.F_BuMen,
+ t.F_tianshu,
+ t.F_fujian,
+ t.F_shangxiawu,
+ t.F_sxw,
+ t.F_dqjs,
+ t.LeaveDay
+ ";
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取列表数据
+ ///
+ /// 条件参数
+ ///
+ 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 StudentLeave t ");
+ return this.BaseRepository().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 t.* ");
+ strSql.Append(" FROM StudentLeave t left join LR_NWF_Process p on t.SLId=p.F_Id where p.F_EnabledMark!=2 and p.F_IsChild=0 ");
+ var queryParam = queryJson.ToJObject();
+ // 虚拟参数
+ var dp = new DynamicParameters(new { });
+ if (!queryParam["F_IsFinished"].IsEmpty())
+ {
+ dp.Add("F_IsFinished", queryParam["F_IsFinished"].ToString(), DbType.String);
+ strSql.Append(" and p.F_IsFinished=@F_IsFinished ");
+ }
+ 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_CreateDate >= @startTime AND t.F_CreateDate <= @endTime ) ");
+ }
+ if (!queryParam["F_CreateUserName"].IsEmpty())
+ {
+ var arr = queryParam["F_CreateUserName"].ToString().Split(',');
+ var arrtemp = "";
+ foreach (var item in arr)
+ {
+ arrtemp += $"'{item}',";
+ }
+ arrtemp = arrtemp.TrimEnd(',');
+ strSql.Append($" and t.F_CreateUserName in ({arrtemp}) ");
+ }
+ if (!queryParam["F_BuMen"].IsEmpty())
+ {
+ dp.Add("F_BuMen", queryParam["F_BuMen"].ToString(), DbType.String);
+ strSql.Append(" and t.F_BuMen=@F_BuMen ");
+ }
+ if (!queryParam["F_QJType"].IsEmpty())
+ {
+ dp.Add("F_QJType", queryParam["F_QJType"].ToString(), DbType.String);
+ strSql.Append(" and t.F_QJType=@F_QJType ");
+ }
+ if (!queryParam["F_Description"].IsEmpty())
+ {
+ dp.Add("F_Description", "%" + queryParam["F_Description"].ToString() + "%", DbType.String);
+ strSql.Append(" and t.F_Description like @F_Description ");
+ }
+ return this.BaseRepository().FindList(strSql.ToString(), dp, pagination);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取实体数据
+ ///
+ /// 主键
+ ///
+ public StudentLeaveEntity GetEntity(string keyValue)
+ {
+ try
+ {
+ return this.BaseRepository().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().Delete(t => t.SLId == keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ /// 实体
+ ///
+ public void SaveEntity(string keyValue, StudentLeaveEntity entity)
+ {
+ try
+ {
+ if (!string.IsNullOrEmpty(keyValue))
+ {
+ entity.Modify(keyValue);
+ this.BaseRepository().Update(entity);
+ }
+ else
+ {
+ entity.Create();
+ this.BaseRepository().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 b1e53a153..174b4e427 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
@@ -273,6 +273,10 @@
+
+
+
+
From 67d38d8bf05c36b20a15a39569ad9b1f94b384a4 Mon Sep 17 00:00:00 2001
From: dyy <18335927079@163.com>
Date: Wed, 19 May 2021 16:20:58 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?=
=?UTF-8?q?=E4=B8=80=E6=AC=A1=E6=80=A7=E5=B7=A5=E8=B5=84=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/Emp_PayrollOnceController.cs | 7 ++----
.../Views/Emp_PayrollOnce/Form.cshtml | 12 ++++++---
.../Views/Emp_PayrollOnce/Index.js | 8 +++---
.../Views/Emp_PayrollOnce/StatisticIndex.js | 4 +--
.../Emp_PayrollOnce/EMP_PayrollOnceEntity.cs | 25 +++++++++++--------
5 files changed, 32 insertions(+), 24 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs
index e5b3ee28f..1c7eff821 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs
@@ -105,8 +105,8 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
IssueYear = x.Key.IssueYear,
IssueMonth = x.Key.IssueMonth,
- SpringFestival = x.Select(y => y.SpringFestival.ToDecimal()).Sum().ToString(),
- MidAutumnFestival = x.Select(y => y.MidAutumnFestival.ToDecimal()).Sum().ToString()
+ TotalPayAmount = x.Select(y => y.TotalPayAmount.ToDecimal()).Sum().ToString(),
+ FinalPayAmount = x.Select(y => y.FinalPayAmount.ToDecimal()).Sum().ToString()
}).OrderByDescending(x => x.IssueYear).ThenByDescending(x => x.IssueMonth);
return Success(datagroup);
@@ -140,9 +140,6 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
EMP_PayrollOnceEntity entity = strEntity.ToObject();
emp_PayrollOnceIBLL.SaveEntity(keyValue, entity);
- if (string.IsNullOrEmpty(keyValue))
- {
- }
return Success("保存成功!");
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml
index 32dd2dfd7..a4ae88c9c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml
@@ -16,12 +16,16 @@
+
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js
index 092aeb3bd..59cb3bc07 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js
@@ -91,13 +91,15 @@ var bootstrap = function ($, learun) {
url: top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/GetPageList',
headData: [
{ label: "姓名", name: "SalaryName", width: 100, align: "left" },
- { label: "春节福利", name: "SpringFestival", width: 100, align: "left", statistics: true },
- { label: "中秋节福利", name: "MidAutumnFestival", width: 100, align: "left", statistics: true },
+ { label: "应发金额", name: "TotalPayAmount", width: 100, align: "left", statistics: true },
+ { label: "实发金额", name: "FinalPayAmount", width: 100, align: "left", statistics: true },
{ label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
{ label: "发放年份", name: "IssueYear", width: 100, align: "left" },
+ { label: "备注", name: "Remark", width: 100, align: "left" },
],
mainId: 'SalaryID',
- isPage: true
+ isPage: true,
+ sidx: 'IssueYear desc,IssueMonth desc'
});
page.search();
},
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js
index d08462485..9b926e1a2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js
@@ -47,8 +47,8 @@ var bootstrap = function ($, learun) {
headData: [
{ label: "发放年份", name: "IssueYear", width: 100, align: "left" },
{ label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
- { label: "春节福利", name: "SpringFestival", width: 100, align: "left", statistics: true },
- { label: "中秋节福利", name: "MidAutumnFestival", width: 100, align: "left", statistics: true },
+ { label: "应发金额", name: "TotalPayAmount", width: 100, align: "left", statistics: true },
+ { label: "实发金额", name: "FinalPayAmount", width: 100, align: "left", statistics: true },
],
mainId: 'SalaryID',
isPage: false
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs
index fe1090873..ceebc772c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs
@@ -16,35 +16,40 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
#region 实体成员
///
- /// SalaryID
+ /// 工资编号
///
[Column("SALARYID")]
public string SalaryID { get; set; }
///
- /// SalaryName
+ /// 姓名
///
[Column("SALARYNAME")]
public string SalaryName { get; set; }
///
- /// IssueMonth
+ /// 发放月份
///
[Column("ISSUEMONTH")]
public string IssueMonth { get; set; }
///
- /// IssueYear
+ /// 发放年份
///
[Column("ISSUEYEAR")]
public string IssueYear { get; set; }
///
- /// SpringFestival
+ /// 应发金额
///
- [Column("SPRINGFESTIVAL")]
- public string SpringFestival { get; set; }
+ [Column("TOTALPAYAMOUNT")]
+ public string TotalPayAmount { get; set; }
///
- /// MidAutumnFestival
+ /// 实发金额
///
- [Column("MIDAUTUMNFESTIVAL")]
- public string MidAutumnFestival { get; set; }
+ [Column("FINALPAYAMOUNT")]
+ public string FinalPayAmount { get; set; }
+ ///
+ /// 备注
+ ///
+ [Column("REMARK")]
+ public string Remark { get; set; }
#endregion
From 55146d225641cb730eb253b2c9b6427b763244d4 Mon Sep 17 00:00:00 2001
From: liangkun
Date: Thu, 20 May 2021 14:11:44 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E9=99=90=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Areas/LR_SystemModule/Views/Annexes/UploadForm.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Annexes/UploadForm.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Annexes/UploadForm.js
index 3d99ae114..f3ceb3320 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Annexes/UploadForm.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Annexes/UploadForm.js
@@ -134,7 +134,8 @@ var bootstrap = function ($, learun) {
chunked: true,
chunkRetry: 3,
prepareNextFile: true,
- chunkSize:'1048576',
+ chunkSize: '1048576',
+ fileSingleSizeLimit:500*1024*1024,
// 上传参数
formData: {
__RequestVerificationToken: $.lrToken