From f9e9eca88219afbd072757b38febcea5eb6d4637 Mon Sep 17 00:00:00 2001 From: ndbs Date: Tue, 28 Feb 2023 11:39:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=80=9A=E7=9F=A5-?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=BF=AB=E9=80=9F=E6=A8=A1=E7=B3=8A=E6=A3=80?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Areas/LR_OAModule/Views/Notice/ViewIndex.cshtml | 2 +- .../Learun.Application.OA/Notice/NoticeService.cs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/ViewIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/ViewIndex.cshtml index 92f2d2137..a7c31cb78 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/ViewIndex.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/ViewIndex.cshtml @@ -8,7 +8,7 @@
- +
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs index be706c3fb..caa5fbbd4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs @@ -396,9 +396,10 @@ SELECT ruserid from [dbo].[LR_OA_NewsShouldRead] where newsid='{news.F_NewsId}' var deptId = userinfo.departmentId; var postIds = userinfo.postIds; var strSql = new StringBuilder(); - strSql.Append("SELECT t.*,r.RNewsId,r.RTime FROM LR_OA_News t "); + strSql.Append("SELECT t.*,r.RNewsId,r.RTime,d.F_FullName FROM LR_OA_News t "); strSql.Append(" left join LR_OA_NewsRead r on t.F_NewsId = r.NewsId and r.RUserId=@userId "); strSql.Append(" left join lr_base_user u on u.F_UserId=@userId "); + strSql.Append(" left join LR_BASE_DEPARTMENT d on d.F_DepartmentId = t.F_SendDeptId "); strSql.Append(" WHERE t.F_TypeId = 2 and t.F_DeleteMark=0 and t.F_EnabledMark=1 "); if (userinfo.account.Contains("20")) { @@ -440,7 +441,10 @@ SELECT ruserid from [dbo].[LR_OA_NewsShouldRead] where newsid='{news.F_NewsId}' var dp = new DynamicParameters(new { }); if (!queryParam["keyword"].IsEmpty()) { - strSql.Append($" AND t.F_FullHead Like '{queryParam["keyword"].ToString()}' "); + + var keyword = "%" + queryParam["keyword"].ToString() + "%"; + strSql.Append(@" AND ( t.F_FullHead like '" + keyword + "' or t.F_Category like '" + keyword + "' or t.F_CreateUserName like '" + keyword + + "' or t.F_SourceName like'"+ keyword + "' or t.F_SourceAddress like '"+ keyword + "' "); } if (!queryParam["categoryId"].IsEmpty()) { From e7a5aa78f36b761b61a0fa5e603a68999a3fed27 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Tue, 28 Feb 2023 14:28:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B7=A5=E8=B5=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=92=8C=E4=B8=AA=E4=BA=BA=E5=B7=A5=E8=B5=84?= =?UTF-8?q?=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/SalaryInfoController.cs | 128 ++++++++++ .../Views/SalaryInfo/Form.cshtml | 143 ++++++++++++ .../Views/SalaryInfo/Form.js | 50 ++++ .../Views/SalaryInfo/Index.cshtml | 53 +++++ .../Views/SalaryInfo/Index.js | 157 +++++++++++++ .../Views/SalaryInfo/IndexPersonal.cshtml | 39 ++++ .../Views/SalaryInfo/IndexPersonal.js | 157 +++++++++++++ .../Learun.Application.Web.csproj | 7 + .../Learun.Application.Mapping.csproj | 1 + .../ReceiveSendFeeManagement/SalaryInfoMap.cs | 29 +++ .../Learun.Application.TwoDevelopment.csproj | 4 + .../SalaryInfo/SalaryInfoBLL.cs | 125 ++++++++++ .../SalaryInfo/SalaryInfoEntity.cs | 219 ++++++++++++++++++ .../SalaryInfo/SalaryInfoIBLL.cs | 48 ++++ .../SalaryInfo/SalaryInfoService.cs | 174 ++++++++++++++ 15 files changed, 1334 insertions(+) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/SalaryInfoController.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/ReceiveSendFeeManagement/SalaryInfoMap.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoBLL.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoEntity.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoIBLL.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoService.cs diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/SalaryInfoController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/SalaryInfoController.cs new file mode 100644 index 000000000..9a9ef91f7 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/SalaryInfoController.cs @@ -0,0 +1,128 @@ +using Learun.Util; +using System.Data; +using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement; +using System.Web.Mvc; +using System.Collections.Generic; + +namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-02-27 15:25 + /// 描 述:工资条 + /// + public class SalaryInfoController : MvcControllerBase + { + private SalaryInfoIBLL salaryInfoIBLL = new SalaryInfoBLL(); + + #region 视图功能 + + /// + /// 主页面 + /// + /// + [HttpGet] + public ActionResult Index() + { + return View(); + } + /// + /// 表单页 + /// + /// + [HttpGet] + public ActionResult Form() + { + return View(); + } + /// + /// 个人工资条 + /// + /// + [HttpGet] + public ActionResult IndexPersonal() + { + return View(); + } + + #endregion + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetPageList(string pagination, string queryJson) + { + Pagination paginationobj = pagination.ToObject(); + var data = salaryInfoIBLL.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 SalaryInfoData = salaryInfoIBLL.GetSalaryInfoEntity(keyValue); + var jsonData = new + { + SalaryInfo = SalaryInfoData, + }; + return Success(jsonData); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + salaryInfoIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + SalaryInfoEntity entity = strEntity.ToObject(); + salaryInfoIBLL.SaveEntity(keyValue, entity); + if (string.IsNullOrEmpty(keyValue)) + { + } + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.cshtml new file mode 100644 index 000000000..2f3087000 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.cshtml @@ -0,0 +1,143 @@ +@{ + ViewBag.Title = "工资条"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
年度*
+ +
+
+
月份*
+ +
+
+
姓名*
+ +
+
+
身份证号*
+ +
+
+
工资类别*
+ +
+
+
岗位工资*
+ +
+
+
薪级工资*
+ +
+
+
高定工资*
+ +
+
+
基础绩效*
+ +
+
+
保留地区补贴@*及保留额*@*
+ +
+
+
奖励性绩效*
+ +
+
+
艰苦边远@*地区*@津贴*
+ +
+
+
南疆工作补贴*
+ +
+
+
教护龄津贴*
+ +
+
+
核增绩效工资*
+ +
+
+
班主任补贴*
+ +
+
+
补发基本工资*
+ +
+
+
补发津补贴*
+ +
+
+
补发绩效工资*
+ +
+
+
补发其它津补@*贴*@*
+ +
+
+
补发其它工资*
+ +
+
+
基础绩效奖*
+ +
+
+
补发奖励@*性*@绩效*
+ +
+
+
应发工资*
+ +
+
+
个人所得税*
+ +
+
+
预扣保险年金*
+ +
+
+
住房公积金*
+ +
+
+
养老保险*
+ +
+
+
医疗保险*
+ +
+
+
职业年金*
+ +
+
+
失业保险金*
+ +
+
+
大额医疗互助*
+ +
+
+
扣发工资*
+ +
+
+
实发工资*
+ +
+
+@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.js new file mode 100644 index 000000000..2cc95bbc5 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Form.js @@ -0,0 +1,50 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-02-27 15:25 + * 描 述:工资条 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/ReceiveSendFeeManagement/SalaryInfo/GetFormData?keyValue=' + keyValue, function (data) { + for (var id in data) { + if (!!data[id].length && data[id].length > 0) { + $('#' + id ).jfGridSet('refreshdata', data[id]); + } + else { + $('[data-table="' + id + '"]').lrSetFormData(data[id]); + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/ReceiveSendFeeManagement/SalaryInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.cshtml new file mode 100644 index 000000000..dd16c194d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.cshtml @@ -0,0 +1,53 @@ +@{ + ViewBag.Title = "工资条"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+
部门
+
+
+
+
年度
+
+
+
+
月份
+
+
+
+
职工编号
+ +
+
+
姓名
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.js new file mode 100644 index 000000000..046f06abc --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/Index.js @@ -0,0 +1,157 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-02-27 15:25 + * 描 述:工资条 + */ +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); + + //年度 + $('#YearNo').lrselect({ + url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GenerateNearByYear', + value: 'value', + text: 'text' + }); + //月份 + $('#MonthNo').lrDataItemSelect({ code: 'MonthInt' }); + // 部门选择 + $('#F_DepartmentId').lrselect({ + type: 'tree', + // 是否允许搜索 + 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 + '/ReceiveSendFeeManagement/SalaryInfo/Form', + width: 900, + height: 800, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + }); + // 编辑 + $('#lr_edit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/ReceiveSendFeeManagement/SalaryInfo/Form?keyValue=' + keyValue, + width: 950, + height: 700, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); + // 删除 + $('#lr_delete').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerConfirm('是否确认删除该项!', function (res) { + if (res) { + learun.deleteForm(top.$.rootUrl + '/ReceiveSendFeeManagement/SalaryInfo/DeleteForm', { keyValue: keyValue }, function () { + refreshGirdData(); + }); + } + }); + } + }); + // 打印 + $('#lr_print').on('click', function () { + $('#gridtable').jqprintTable(); + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').jfGrid({ + url: top.$.rootUrl + '/ReceiveSendFeeManagement/SalaryInfo/GetPageList', + headData: [{ + label: "部门", name: "F_DepartmentId", width: 100, 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: "YearNo", width: 100, align: "left" }, + { label: "月份", name: "MonthNo", width: 100, align: "left" }, + { label: "职工编号", name: "EmpNo", width: 100, align: "left" }, + { label: "姓名", name: "EmpName", width: 100, align: "left" }, + { label: "身份证号", name: "IdCard", width: 150, align: "left" }, + { label: "工资类别", name: "SalaryType", width: 100, align: "left" }, + { label: "岗位工资", name: "GangWeiGZ", width: 100, align: "left" }, + { label: "薪级工资", name: "XinJiGZ", width: 100, align: "left" }, + { label: "高定工资", name: "GaoDingGZ", width: 100, align: "left" }, + { label: "按比例核定的基础性绩效工资", name: "JiChuJiXiaoGZ", width: 100, align: "left" }, + { label: "保留地区补贴及保留额", name: "BaoLiuBuTie", width: 100, align: "left" }, + { label: "奖励性绩效", name: "JiangLiJX", width: 100, align: "left" }, + { label: "艰苦边远地区津贴", name: "JianKuJT", width: 100, align: "left" }, + { label: "南疆工作补贴", name: "NanJiangBT", width: 100, align: "left" }, + { label: "教护龄津贴", name: "JiaoHuLingJT", width: 100, align: "left" }, + { label: "核增绩效工资", name: "HeZengJX", width: 100, align: "left" }, + { label: "班主任补贴", name: "BanZhuRenBT", width: 100, align: "left" }, + { label: "补发基本工资", name: "BuFaGZ", width: 100, align: "left" }, + { label: "补发津补贴", name: "BuFaJT", width: 100, align: "left" }, + { label: "补发绩效工资", name: "BuFaJX", width: 100, align: "left" }, + { label: "补发其它津补贴", name: "BuFaQTJT", width: 100, align: "left" }, + { label: "补发其它工资", name: "BuFaQTGZ", width: 100, align: "left" }, + { label: "基础绩效奖", name: "JiChuJX", width: 100, align: "left" }, + { label: "补发奖励性绩效", name: "BuFaJiangLiJX", width: 100, align: "left" }, + { label: "应发工资", name: "YingFaGZ", width: 100, align: "left" }, + { label: "个人所得税", name: "GeRenSDS", width: 100, align: "left" }, + { label: "预扣保险及年金", name: "YuKouBXNJ", width: 100, align: "left" }, + { label: "住房公积金", name: "ZhuFangGJJ", width: 100, align: "left" }, + { label: "养老保险", name: "YangLaoBX", width: 100, align: "left" }, + { label: "医疗保险", name: "YiLiaoBX", width: 100, align: "left" }, + { label: "职业年金", name: "ZhiYeNJ", width: 100, align: "left" }, + { label: "失业保险金", name: "ShiYeBXJ", width: 100, align: "left" }, + { label: "大额医疗互助", name: "YiLiao", width: 100, align: "left" }, + { label: "扣发工资", name: "KouFaGZ", width: 100, align: "left" }, + { label: "实发工资", name: "ShiFaGZ", width: 100, align: "left" }, + ], + mainId: 'Id', + 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/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.cshtml new file mode 100644 index 000000000..572cc8853 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.cshtml @@ -0,0 +1,39 @@ +@{ + ViewBag.Title = "个人工资条"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+
部门
+
+
+
+
年度
+
+
+
+
月份
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.js new file mode 100644 index 000000000..570d6ab80 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/SalaryInfo/IndexPersonal.js @@ -0,0 +1,157 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-02-27 15:25 + * 描 述:工资条 + */ +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); + + //年度 + $('#YearNo').lrselect({ + url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GenerateNearByYear', + value: 'value', + text: 'text' + }); + //月份 + $('#MonthNo').lrDataItemSelect({ code: 'MonthInt' }); + // 部门选择 + $('#F_DepartmentId').lrselect({ + type: 'tree', + // 是否允许搜索 + 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 + '/ReceiveSendFeeManagement/SalaryInfo/Form', + width: 900, + height: 800, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + }); + // 编辑 + $('#lr_edit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/ReceiveSendFeeManagement/SalaryInfo/Form?keyValue=' + keyValue, + width: 950, + height: 700, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); + // 删除 + $('#lr_delete').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerConfirm('是否确认删除该项!', function (res) { + if (res) { + learun.deleteForm(top.$.rootUrl + '/ReceiveSendFeeManagement/SalaryInfo/DeleteForm', { keyValue: keyValue }, function () { + refreshGirdData(); + }); + } + }); + } + }); + // 打印 + $('#lr_print').on('click', function () { + $('#gridtable').jqprintTable(); + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').jfGrid({ + url: top.$.rootUrl + '/ReceiveSendFeeManagement/SalaryInfo/GetPageList', + headData: [{ + label: "部门", name: "F_DepartmentId", width: 100, 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: "YearNo", width: 100, align: "left" }, + { label: "月份", name: "MonthNo", width: 100, align: "left" }, + { label: "职工编号", name: "EmpNo", width: 100, align: "left" }, + { label: "姓名", name: "EmpName", width: 100, align: "left" }, + { label: "身份证号", name: "IdCard", width: 150, align: "left" }, + { label: "工资类别", name: "SalaryType", width: 100, align: "left" }, + { label: "岗位工资", name: "GangWeiGZ", width: 100, align: "left" }, + { label: "薪级工资", name: "XinJiGZ", width: 100, align: "left" }, + { label: "高定工资", name: "GaoDingGZ", width: 100, align: "left" }, + { label: "按比例核定的基础性绩效工资", name: "JiChuJiXiaoGZ", width: 100, align: "left" }, + { label: "保留地区补贴及保留额", name: "BaoLiuBuTie", width: 100, align: "left" }, + { label: "奖励性绩效", name: "JiangLiJX", width: 100, align: "left" }, + { label: "艰苦边远地区津贴", name: "JianKuJT", width: 100, align: "left" }, + { label: "南疆工作补贴", name: "NanJiangBT", width: 100, align: "left" }, + { label: "教护龄津贴", name: "JiaoHuLingJT", width: 100, align: "left" }, + { label: "核增绩效工资", name: "HeZengJX", width: 100, align: "left" }, + { label: "班主任补贴", name: "BanZhuRenBT", width: 100, align: "left" }, + { label: "补发基本工资", name: "BuFaGZ", width: 100, align: "left" }, + { label: "补发津补贴", name: "BuFaJT", width: 100, align: "left" }, + { label: "补发绩效工资", name: "BuFaJX", width: 100, align: "left" }, + { label: "补发其它津补贴", name: "BuFaQTJT", width: 100, align: "left" }, + { label: "补发其它工资", name: "BuFaQTGZ", width: 100, align: "left" }, + { label: "基础绩效奖", name: "JiChuJX", width: 100, align: "left" }, + { label: "补发奖励性绩效", name: "BuFaJiangLiJX", width: 100, align: "left" }, + { label: "应发工资", name: "YingFaGZ", width: 100, align: "left" }, + { label: "个人所得税", name: "GeRenSDS", width: 100, align: "left" }, + { label: "预扣保险及年金", name: "YuKouBXNJ", width: 100, align: "left" }, + { label: "住房公积金", name: "ZhuFangGJJ", width: 100, align: "left" }, + { label: "养老保险", name: "YangLaoBX", width: 100, align: "left" }, + { label: "医疗保险", name: "YiLiaoBX", width: 100, align: "left" }, + { label: "职业年金", name: "ZhiYeNJ", width: 100, align: "left" }, + { label: "失业保险金", name: "ShiYeBXJ", width: 100, align: "left" }, + { label: "大额医疗互助", name: "YiLiao", width: 100, align: "left" }, + { label: "扣发工资", name: "KouFaGZ", width: 100, align: "left" }, + { label: "实发工资", name: "ShiFaGZ", width: 100, align: "left" }, + ], + mainId: 'Id', + isPage: true + }); + page.search(); + }, + search: function (param) { + param = param || {}; + param.SqlParameter = " and e.EmpNo='" + learun.clientdata.get(['userinfo']).account + "'" + $('#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 a23ffb3b4..1d9b1ec47 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 @@ -852,6 +852,7 @@ + @@ -1640,6 +1641,7 @@ + @@ -6655,6 +6657,10 @@ + + + + @@ -8009,6 +8015,7 @@ + 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 04ea0f95c..ea1e27f16 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 @@ -606,6 +606,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/ReceiveSendFeeManagement/SalaryInfoMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/ReceiveSendFeeManagement/SalaryInfoMap.cs new file mode 100644 index 000000000..812102006 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/ReceiveSendFeeManagement/SalaryInfoMap.cs @@ -0,0 +1,29 @@ +using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement; +using System.Data.Entity.ModelConfiguration; + +namespace Learun.Application.Mapping +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-02-27 15:25 + /// 描 述:工资条 + /// + public class SalaryInfoMap : EntityTypeConfiguration + { + public SalaryInfoMap() + { + #region 表、主键 + //表 + this.ToTable("SALARYINFO"); + //主键 + this.HasKey(t => t.Id); + #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 7b40667e2..280eb35ff 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 @@ -1851,6 +1851,10 @@ + + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoBLL.cs new file mode 100644 index 000000000..43039f63d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoBLL.cs @@ -0,0 +1,125 @@ +using Learun.Util; +using System; +using System.Data; +using System.Collections.Generic; + +namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-02-27 15:25 + /// 描 述:工资条 + /// + public class SalaryInfoBLL : SalaryInfoIBLL + { + private SalaryInfoService salaryInfoService = new SalaryInfoService(); + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + return salaryInfoService.GetPageList(pagination, queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 获取SalaryInfo表实体数据 + /// + /// 主键 + /// + public SalaryInfoEntity GetSalaryInfoEntity(string keyValue) + { + try + { + return salaryInfoService.GetSalaryInfoEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + salaryInfoService.DeleteEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + public void SaveEntity(string keyValue, SalaryInfoEntity entity) + { + try + { + salaryInfoService.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/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoEntity.cs new file mode 100644 index 000000000..4003cb52d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoEntity.cs @@ -0,0 +1,219 @@ +using Learun.Util; +using System; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-02-27 15:25 + /// 描 述:工资条 + /// + public class SalaryInfoEntity + { + #region 实体成员 + /// + /// Id + /// + [Column("ID")] + public string Id { get; set; } + /// + /// 年度 + /// + [Column("YEARNO")] + public string YearNo { get; set; } + /// + /// 月份 + /// + [Column("MONTHNO")] + public int? MonthNo { get; set; } + /// + /// 姓名 + /// + [Column("EMPNAME")] + public string EmpName { get; set; } + /// + /// 身份证号 + /// + [Column("IDCARD")] + public string IdCard { get; set; } + /// + /// 工资类别 + /// + [Column("SALARYTYPE")] + public string SalaryType { get; set; } + /// + /// 岗位工资 + /// + [Column("GANGWEIGZ")] + public decimal? GangWeiGZ { get; set; } + /// + /// 薪级工资 + /// + [Column("XINJIGZ")] + public decimal? XinJiGZ { get; set; } + /// + /// 高定工资 + /// + [Column("GAODINGGZ")] + public decimal? GaoDingGZ { get; set; } + /// + /// 按比例核定的基础性绩效工资 + /// + [Column("JICHUJIXIAOGZ")] + public decimal? JiChuJiXiaoGZ { get; set; } + /// + /// 保留地区补贴及保留额 + /// + [Column("BAOLIUBUTIE")] + public decimal? BaoLiuBuTie { get; set; } + /// + /// 奖励性绩效 + /// + [Column("JIANGLIJX")] + public decimal? JiangLiJX { get; set; } + /// + /// 艰苦边远地区津贴 + /// + [Column("JIANKUJT")] + public decimal? JianKuJT { get; set; } + /// + /// 南疆工作补贴 + /// + [Column("NANJIANGBT")] + public decimal? NanJiangBT { get; set; } + /// + /// 教护龄津贴 + /// + [Column("JIAOHULINGJT")] + public decimal? JiaoHuLingJT { get; set; } + /// + /// 核增绩效工资 + /// + [Column("HEZENGJX")] + public decimal? HeZengJX { get; set; } + /// + /// 班主任补贴 + /// + [Column("BANZHURENBT")] + public decimal? BanZhuRenBT { get; set; } + /// + /// 补发基本工资 + /// + [Column("BUFAGZ")] + public decimal? BuFaGZ { get; set; } + /// + /// 补发津补贴 + /// + [Column("BUFAJT")] + public decimal? BuFaJT { get; set; } + /// + /// 补发绩效工资 + /// + [Column("BUFAJX")] + public decimal? BuFaJX { get; set; } + /// + /// 补发其它津补贴 + /// + [Column("BUFAQTJT")] + public decimal? BuFaQTJT { get; set; } + /// + /// 补发其它工资 + /// + [Column("BUFAQTGZ")] + public decimal? BuFaQTGZ { get; set; } + /// + /// 基础绩效奖 + /// + [Column("JICHUJX")] + public decimal? JiChuJX { get; set; } + /// + /// 补发奖励性绩效 + /// + [Column("BUFAJIANGLIJX")] + public decimal? BuFaJiangLiJX { get; set; } + /// + /// 应发工资 + /// + [Column("YINGFAGZ")] + public decimal? YingFaGZ { get; set; } + /// + /// 个人所得税 + /// + [Column("GERENSDS")] + public decimal? GeRenSDS { get; set; } + /// + /// 预扣保险及年金 + /// + [Column("YUKOUBXNJ")] + public decimal? YuKouBXNJ { get; set; } + /// + /// 住房公积金 + /// + [Column("ZHUFANGGJJ")] + public decimal? ZhuFangGJJ { get; set; } + /// + /// 养老保险 + /// + [Column("YANGLAOBX")] + public decimal? YangLaoBX { get; set; } + /// + /// 医疗保险 + /// + [Column("YILIAOBX")] + public decimal? YiLiaoBX { get; set; } + /// + /// 职业年金 + /// + [Column("ZHIYENJ")] + public decimal? ZhiYeNJ { get; set; } + /// + /// 失业保险金 + /// + [Column("SHIYEBXJ")] + public decimal? ShiYeBXJ { get; set; } + /// + /// 大额医疗互助 + /// + [Column("YILIAO")] + public decimal? YiLiao { get; set; } + /// + /// 扣发工资 + /// + [Column("KOUFAGZ")] + public decimal? KouFaGZ { get; set; } + /// + /// 实发工资 + /// + [Column("SHIFAGZ")] + public decimal? ShiFaGZ { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.Id = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.Id = keyValue; + } + #endregion + #region 扩展字段 + [NotMapped] + public string F_DepartmentId { get; set; } + [NotMapped] + public string EmpNo { get; set; } + #endregion + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoIBLL.cs new file mode 100644 index 000000000..79ccc034b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoIBLL.cs @@ -0,0 +1,48 @@ +using Learun.Util; +using System.Data; +using System.Collections.Generic; + +namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-02-27 15:25 + /// 描 述:工资条 + /// + public interface SalaryInfoIBLL + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + IEnumerable GetPageList(Pagination pagination, string queryJson); + /// + /// 获取SalaryInfo表实体数据 + /// + /// 主键 + /// + SalaryInfoEntity GetSalaryInfoEntity(string keyValue); + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + void DeleteEntity(string keyValue); + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + void SaveEntity(string keyValue, SalaryInfoEntity entity); + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoService.cs new file mode 100644 index 000000000..b4a8c4411 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/SalaryInfo/SalaryInfoService.cs @@ -0,0 +1,174 @@ +using Dapper; +using Learun.DataBase.Repository; +using Learun.Util; +using System; +using System.Collections.Generic; +using System.Data; +using System.Text; + +namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-02-27 15:25 + /// 描 述:工资条 + /// + public class SalaryInfoService : RepositoryFactory + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(@" + t.*,e.F_DepartmentId,e.EmpNo + "); + strSql.Append(" FROM SalaryInfo t "); + strSql.Append(" left join empinfo e on t.IdCard=e.IdentityCardNo "); + strSql.Append(" WHERE 1=1 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["YearNo"].IsEmpty()) + { + dp.Add("YearNo",queryParam["YearNo"].ToString(), DbType.String); + strSql.Append(" AND t.YearNo = @YearNo "); + } + if (!queryParam["MonthNo"].IsEmpty()) + { + dp.Add("MonthNo", queryParam["MonthNo"].ToString(), DbType.String); + strSql.Append(" AND t.MonthNo = @MonthNo "); + } + if (!queryParam["EmpNo"].IsEmpty()) + { + dp.Add("EmpNo", "%" + queryParam["EmpNo"].ToString() + "%", DbType.String); + strSql.Append(" AND e.EmpNo Like @EmpNo "); + } + if (!queryParam["F_DepartmentId"].IsEmpty()) + { + dp.Add("F_DepartmentId", queryParam["F_DepartmentId"].ToString(), DbType.String); + strSql.Append(" AND e.F_DepartmentId = @F_DepartmentId "); + } + if (!queryParam["EmpName"].IsEmpty()) + { + dp.Add("EmpName", "%" + queryParam["EmpName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.EmpName Like @EmpName "); + } + if (!queryParam["SqlParameter"].IsEmpty()) + { + strSql.Append(queryParam["SqlParameter"].ToString()); + } + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取SalaryInfo表实体数据 + /// + /// 主键 + /// + public SalaryInfoEntity GetSalaryInfoEntity(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, SalaryInfoEntity 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 + + } +}