@Html.AppendJsFile("/Areas/EducationalAdministration/Views/WageSchedule/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js
index a787df44b..a160c9a33 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js
@@ -8,8 +8,7 @@ var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
- var selectedRow = learun.frameTab.currentIframe().selectedRow;
- console.log(selectedRow);
+ //var selectedRow = learun.frameTab.currentIframe().selectedRow;
var page = {
init: function () {
page.initData();
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.cshtml
index 6791db429..20a5dba0b 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.cshtml
@@ -10,21 +10,33 @@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.js
index 7647c058b..3a08c880f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.js
@@ -4,7 +4,6 @@
* 日 期:2022-11-07 11:54
* 描 述:工资条
*/
-var selectedRow;
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
@@ -25,13 +24,33 @@ var bootstrap = function ($, learun) {
text: 'text'
});
$('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' });
+ $('#PeopleType').lrselect({
+ placeholder: "请选择人员类别",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/PeopleType',
+ value: 'PeopleType',
+ text: 'PeopleType'
+ });
+ $('#PostType').lrselect({
+ placeholder: "请选择岗位等级",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/PostType',
+ value: 'PostType',
+ text: 'PostType'
+ });
+ $('#PayGrade').lrselect({
+ placeholder: "请选择薪级",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/PayGrade',
+ value: 'PayGrade',
+ text: 'PayGrade'
+ });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
- selectedRow = null;
learun.layerForm({
id: 'form',
title: '新增',
@@ -46,8 +65,12 @@ var bootstrap = function ($, learun) {
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
- selectedRow = $('#gridtable').jfGridGet('rowdata');
if (learun.checkrow(keyValue)) {
+ var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
+ if (CheckMark.indexOf('1') != -1) {
+ learun.alert.warning("选中记录中包含已审核项目!");
+ return;
+ }
learun.layerForm({
id: 'form',
title: '编辑',
@@ -63,7 +86,12 @@ var bootstrap = function ($, learun) {
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
+ var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
if (learun.checkrow(keyValue)) {
+ if (CheckMark.indexOf('1') != -1) {
+ learun.alert.warning("选中记录中包含已审核项目!");
+ return;
+ }
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/DeleteForm', { keyValue: keyValue }, function () {
@@ -73,15 +101,61 @@ var bootstrap = function ($, learun) {
});
}
});
+ //审核
+ $('#lr_check').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ if (learun.checkrow(keyValue)) {
+ var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
+ if (CheckMark.indexOf('1') != -1) {
+ learun.alert.warning("选中记录中包含已审核项目!");
+ return;
+ }
+ learun.layerConfirm('是否确认审核该项?', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/CheckForm', { keyValue: keyValue, Status: '2' }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ //去审
+ $('#lr_uncheck').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ if (learun.checkrow(keyValue)) {
+ var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
+ var CheckMarkArr = CheckMark.split(',');
+ if ($.inArray('0', CheckMarkArr) != -1 || $.inArray('', CheckMarkArr) != -1) {
+ learun.alert.warning("选中记录中包含未审核项目!");
+ return;
+ }
+ learun.layerConfirm('是否确认取消审核该项?', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/CheckForm', { keyValue: keyValue, Status: '2' }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ //审核全部
+ $('#lr_checkall').on('click', function () {
+ learun.layerConfirm('是否确认全部审核?', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/CheckForm', { keyValue: null, Status: '0' }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ });
},
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/GetPageList',
headData: [
{ label: '序号', name: 'No', width: 70, align: "left" },
- { label: '工资卡号', name: 'WageCardNo', width: 130, align: "left" },
{ label: '姓名', name: 'EmpName', width: 70, align: "left" },
- { label: '身份证号', name: 'IdCardNo', width: 140, align: "left" },
+ { label: '工资卡号', name: 'WageCardNo', width: 130, align: "left" },
{ label: '人员类别', name: 'PeopleType', width: 70, align: "left" },
{ label: '岗位等级', name: 'PostType', width: 70, align: "left" },
{ label: '薪级', name: 'PayGrade', width: 50, align: "left" },
@@ -95,40 +169,54 @@ var bootstrap = function ($, learun) {
//{ label: '小计', name: 'BasePay', width: 70, align: "left", statistics: true }
]
},
+ {
+ label: '绩效工资', name: '绩效工资', width: 70, align: "center", statistics: true,
+ children: [
+ { label: '基础绩效', name: 'BasicsPerformance', width: 70, align: "left", statistics: true },
+ { label: '奖励绩效', name: 'AwardPerformance', width: 70, align: "left", statistics: true },
+ ]
+ },
+ {
+ label: '单列绩效', name: '单列绩效', width: 70, align: "center", statistics: true,
+ children: [
+ { label: '基础绩效', name: 'SeparateBasicsPerformance', width: 70, align: "left", statistics: true },
+ { label: '奖励绩效', name: 'SeparateAwardPerformance', width: 70, align: "left", statistics: true },
+ ]
+ },
{
label: '津贴补贴', name: '津贴补贴', width: 130, align: "center", statistics: true,
children: [
{ label: '艰边津贴', name: 'RoughEdgeAllowance', width: 70, align: "left", statistics: true },
{ label: '民族津贴', name: 'NationAllowance', width: 70, align: "left", statistics: true },
- { label: '教师津贴', name: 'TeachAllowance', width: 70, align: "left", statistics: true },
+ { label: '教龄补贴', name: 'TeachAllowance', width: 70, align: "left", statistics: true },
+ { label: '特级教师津贴', name: 'SuperfineTeacherResearch', width: 80, align: "left", statistics: true },
//{ label: '小计', name: 'SubsidiesAllowances', width: 70, align: "left", statistics: true },
]
},
- { label: '基础性绩效', name: 'BasicsPerformance', width: 70, align: "left", statistics: true },
- { label: '女职工卫生费', name: 'GirlStaffSanitation', width: 70, align: "left", statistics: true },
{
label: '改革性补贴', name: '改革性补贴', width: 70, align: "center", statistics: true,
children: [
{ label: '交通补贴', name: 'Transportation', width: 70, align: "left", statistics: true },
{ label: '物业补贴', name: 'RealeState', width: 70, align: "left", statistics: true },
{ label: '工改保留补贴', name: 'WorkKeep', width: 90, align: "left", statistics: true },
- //{ label: '小计', name: 'ReformSubsidySum', width: 70, align: "left", statistics: true }
]
},
+ { label: '女职工卫生费', name: 'GirlStaffSanitation', width: 90, align: "left", statistics: true },
+ { label: '乡镇补贴', name: 'TownshipSubsidy', width: 130, align: "center", statistics: true },
{ label: '住房补贴', name: 'HousingAllowance', width: 80, align: "left", statistics: true },
{ label: '住房公积金', name: 'HousingFundAllowance', width: 80, align: "left", statistics: true },
- { label: '特级教师津贴和乡镇补贴', name: 'TeacherAndTown', width: 130, align: "center", statistics: true },
+ { label: '其他', name: 'OtherOne', width: 70, align: "left", statistics: true },
+ { label: '代扣合计', name: 'DeductionsSubtotal', width: 70, align: "left", statistics: true },
{
- label: '扣款', name: '扣款', width: 130, align: "center", statistics: true,
+ label: '代扣代缴', name: '代扣代缴', width: 130, align: "center", statistics: true,
children: [
- //{ label: '小计', name: 'DeductionsSubtotal', width: 70, align: "left", statistics: true },
{ label: '公积金', name: 'AccumulationFund', width: 70, align: "left", statistics: true },
- { label: '工会工费', name: 'LaborUnionWage', width: 70, align: "left", statistics: true },
- { label: '个人所得税', name: 'PersonalIncomeTax', width: 70, align: "left", statistics: true },
{ label: '养老保险', name: 'EndowmentInsurance', width: 70, align: "left", statistics: true },
{ label: '职业年金', name: 'OccupationalAnnuities', width: 70, align: "left", statistics: true },
{ label: '医疗保险', name: 'MedicalInsurance', width: 70, align: "left", statistics: true },
{ label: '失业保险', name: 'UnemploymentInsurance', width: 70, align: "left", statistics: true },
+ { label: '工会工费', name: 'LaborUnionWage', width: 70, align: "left", statistics: true },
+ { label: '个人所得税', name: 'PersonalIncomeTax', width: 70, align: "left", statistics: true },
{ label: '其他', name: 'Other', width: 70, align: "left", statistics: true }
]
},
@@ -139,16 +227,24 @@ var bootstrap = function ($, learun) {
//{ label: '创建时间', name: 'CreateTime', width: 130, align: "left" },
{ label: '发放月份', name: 'IssueMonth', width: 70, align: "left" },
{ label: '发放年份', name: 'IssueYear', width: 70, align: "left" },
+ {
+ label: "审核状态", name: "F_EnabledMark", width: 70, align: "center",
+ formatter: function (cellvalue) {
+ return cellvalue == "1" ? "
已审核" : "
未审核";
+ }
+ },
],
mainId: 'Id',
isPage: true,
rows: 300,
- sidx: 'CreateTime',
+ sidx: 'IssueYear desc, IssueMonth desc, CreateTime desc ',
+ isMultiselect: true
});
page.search();
},
search: function (param) {
param = param || {};
+ param.Sqlparam = "";
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexMy.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexMy.cshtml
new file mode 100644
index 000000000..709eb7792
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexMy.cshtml
@@ -0,0 +1,44 @@
+@{
+ ViewBag.Title = "工资条";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/WageSchedule/IndexMy.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexMy.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexMy.js
new file mode 100644
index 000000000..57553438e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexMy.js
@@ -0,0 +1,126 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2022-11-07 11:54
+ * 描 述:工资条
+ */
+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' });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 打印
+ $('#lr_print').on('click', function () {
+ $('#gridtable').jqprintTable();
+ });
+ },
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/GetPageList',
+ headData: [
+ { label: '序号', name: 'No', width: 70, align: "left" },
+ { label: '姓名', name: 'EmpName', width: 70, align: "left" },
+ { label: '工资卡号', name: 'WageCardNo', width: 130, align: "left" },
+ { label: '人员类别', name: 'PeopleType', width: 70, align: "left" },
+ { label: '岗位等级', name: 'PostType', width: 70, align: "left" },
+ { label: '薪级', name: 'PayGrade', width: 50, align: "left" },
+ { label: '应发合计', name: 'TotalGrossPay', width: 70, align: "left", statistics: true },
+ {
+ label: '基本工资', name: '基本工资', width: 130, align: "center", statistics: true,
+ children: [
+ { label: '岗位工资', name: 'PostWage', width: 70, align: "left", statistics: true },
+ { label: '薪级工资', name: 'PayGradeWage', width: 70, align: "left", statistics: true },
+ { label: '百分之十', name: 'TenPercent', width: 70, align: "left", statistics: true },
+ ]
+ },
+ {
+ label: '绩效工资', name: '绩效工资', width: 70, align: "center", statistics: true,
+ children: [
+ { label: '基础绩效', name: 'BasicsPerformance', width: 70, align: "left", statistics: true },
+ { label: '奖励绩效', name: 'AwardPerformance', width: 70, align: "left", statistics: true },
+ ]
+ },
+ {
+ label: '单列绩效', name: '单列绩效', width: 70, align: "center", statistics: true,
+ children: [
+ { label: '基础绩效', name: 'SeparateBasicsPerformance', width: 70, align: "left", statistics: true },
+ { label: '奖励绩效', name: 'SeparateAwardPerformance', width: 90, align: "left", statistics: true },
+ ]
+ },
+ {
+ label: '津贴补贴', name: '津贴补贴', width: 130, align: "center", statistics: true,
+ children: [
+ { label: '艰边津贴', name: 'RoughEdgeAllowance', width: 70, align: "left", statistics: true },
+ { label: '民族津贴', name: 'NationAllowance', width: 70, align: "left", statistics: true },
+ { label: '教龄补贴', name: 'TeachAllowance', width: 70, align: "left", statistics: true },
+ { label: '特级教师津贴', name: 'SuperfineTeacherResearch', width: 100, align: "left", statistics: true },
+ ]
+ },
+ {
+ label: '改革性补贴', name: '改革性补贴', width: 70, align: "center", statistics: true,
+ children: [
+ { label: '交通补贴', name: 'Transportation', width: 70, align: "left", statistics: true },
+ { label: '物业补贴', name: 'RealeState', width: 70, align: "left", statistics: true },
+ { label: '工改保留补贴', name: 'WorkKeep', width: 90, align: "left", statistics: true },
+ ]
+ },
+ { label: '女职工卫生费', name: 'GirlStaffSanitation', width: 90, align: "left", statistics: true },
+ { label: '乡镇补贴', name: 'TownshipSubsidy', width: 130, align: "center", statistics: true },
+ { label: '住房补贴', name: 'HousingAllowance', width: 80, align: "left", statistics: true },
+ { label: '住房公积金', name: 'HousingFundAllowance', width: 80, align: "left", statistics: true },
+ { label: '其他', name: 'OtherOne', width: 70, align: "left", statistics: true },
+ { label: '代扣合计', name: 'DeductionsSubtotal', width: 70, align: "left", statistics: true },
+ {
+ label: '代扣代缴', name: '代扣代缴', width: 130, align: "center", statistics: true,
+ children: [
+ { label: '公积金', name: 'AccumulationFund', width: 70, align: "left", statistics: true },
+ { label: '养老保险', name: 'EndowmentInsurance', width: 70, align: "left", statistics: true },
+ { label: '职业年金', name: 'OccupationalAnnuities', width: 70, align: "left", statistics: true },
+ { label: '医疗保险', name: 'MedicalInsurance', width: 70, align: "left", statistics: true },
+ { label: '失业保险', name: 'UnemploymentInsurance', width: 70, align: "left", statistics: true },
+ { label: '工会工费', name: 'LaborUnionWage', width: 70, align: "left", statistics: true },
+ { label: '个人所得税', name: 'PersonalIncomeTax', width: 70, align: "left", statistics: true },
+ { label: '其他', name: 'Other', width: 70, align: "left", statistics: true }
+ ]
+ },
+ { label: '实发合计', name: 'NetCombined', width: 70, align: "left", statistics: true },
+ { label: '发放月份', name: 'IssueMonth', width: 70, align: "left" },
+ { label: '发放年份', name: 'IssueYear', width: 70, align: "left" },
+ ],
+ mainId: 'Id',
+ isPage: true,
+ rows: 300,
+ sidx: 'CreateTime',
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.Sqlparam = "1";
+ $('#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 fd925a48c..f88883df2 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
@@ -1425,6 +1425,7 @@
+
@@ -8015,6 +8016,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleBLL.cs
index da246672b..886529b8f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleBLL.cs
@@ -2,6 +2,7 @@
using System;
using System.Data;
using System.Collections.Generic;
+using System.Linq;
namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
@@ -23,7 +24,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
///
查询参数
///
- public IEnumerable
GetList( string queryJson )
+ public IEnumerable GetList(string queryJson)
{
try
{
@@ -91,6 +92,61 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
+ public List GetPeopleType()
+ {
+ try
+ {
+ return wageScheduleService.GetPeopleType().Select(x => new WageScheduleEntity { Id = x.PeopleType, PeopleType = x.PeopleType }).Distinct().ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+ public List GetPostType()
+ {
+ try
+ {
+ return wageScheduleService.GetPostType().Select(x => new WageScheduleEntity { Id = x.PostType, PostType = x.PostType }).Distinct().ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+ public List GetPayGrade()
+ {
+ try
+ {
+ return wageScheduleService.GetPayGrade().Select(x => new WageScheduleEntity { Id = x.PayGrade, PayGrade = x.PayGrade }).Distinct().ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
#endregion
#region 提交数据
@@ -142,6 +198,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
+ public void CheckEntity(string keyValue,string Status)
+ {
+ try
+ {
+ wageScheduleService.CheckEntity(keyValue, Status);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
#endregion
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleEntity.cs
index 763e5b20d..79d44d371 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleEntity.cs
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 日 期:2022-11-07 11:54
/// 描 述:工资条
///
- public class WageScheduleEntity
+ public class WageScheduleEntity
{
#region 实体成员
///
@@ -33,12 +33,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("EMPNAME")]
public string EmpName { get; set; }
///
- /// 账号/身份证号
- ///
- ///
- [Column("IDCARDNO")]
- public string IdCardNo { get; set; }
- ///
/// 人员类别
///
///
@@ -165,7 +159,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("TEACHERANDTOWN")]
public decimal? TeacherAndTown { get; set; }
///
- /// 扣款小计
+ /// 代扣合计
///
///
[Column("DEDUCTIONSSUBTOTAL")]
@@ -219,6 +213,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("OTHER")]
public decimal? Other { get; set; }
///
+ /// 其他
+ ///
+ ///
+ [Column("OTHERONE")]
+ public decimal? OtherOne { get; set; }
+ ///
/// 财政直达
///
///
@@ -278,6 +278,42 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("ISSUEYEAR")]
public string IssueYear { get; set; }
+ ///
+ /// 发放年份
+ ///
+ ///
+ [Column("AWARDPERFORMANCE")]
+ public decimal? AwardPerformance { get; set; }
+ ///
+ /// 发放年份
+ ///
+ ///
+ [Column("TOWNSHIPSUBSIDY")]
+ public decimal? TownshipSubsidy { get; set; }
+ ///
+ /// 发放年份
+ ///
+ ///
+ [Column("SEPARATEBASICSPERFORMANCE")]
+ public decimal? SeparateBasicsPerformance { get; set; }
+ ///
+ /// 发放年份
+ ///
+ ///
+ [Column("SEPARATEAWARDPERFORMANCE")]
+ public decimal? SeparateAwardPerformance { get; set; }
+ ///
+ /// 特级教师津贴
+ ///
+ ///
+ [Column("SUPERFINETEACHERRESEARCH")]
+ public decimal? SuperfineTeacherResearch { get; set; }
+ ///
+ /// 审核标识
+ ///
+ ///
+ [Column("F_ENABLEDMARK")]
+ public string F_EnabledMark { get; set; }
#endregion
#region 扩展操作
@@ -289,6 +325,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
this.Id = Guid.NewGuid().ToString();
this.CreateTime = DateTime.Now;
this.CreateUser = LoginUserInfo.Get().userId;
+ this.F_EnabledMark = "0";
}
///
/// 编辑调用
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleIBLL.cs
index d1895dbd8..1c648eed2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleIBLL.cs
@@ -34,6 +34,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 主键
///
WageScheduleEntity GetEntity(string keyValue);
+
+ List GetPeopleType();
+ List GetPostType();
+ List GetPayGrade();
+
#endregion
#region 提交数据
@@ -49,6 +54,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 主键
/// 实体
void SaveEntity(string keyValue, WageScheduleEntity entity);
+
+ void CheckEntity(string keyValue,string Status);
+
#endregion
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs
index d5feb7df5..8dbdb7a58 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs
@@ -4,6 +4,7 @@ using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
+using System.Linq;
using System.Text;
namespace Learun.Application.TwoDevelopment.EducationalAdministration
@@ -63,15 +64,20 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
try
{
+ var baseDataName = this.BaseRepository().getDbConnection().Database;
var strSql = new StringBuilder();
- strSql.Append("SELECT t.* FROM WageSchedule t where 1=1 ");
+ strSql.Append(" SELECT t.*,u.F_Account,u.F_RealName FROM WageSchedule t ");
+ strSql.Append($" left join {baseDataName}.dbo.LR_Base_User u on t.empname=u.F_RealName ");
+ strSql.Append(" where 1=1 ");
var userInfo = LoginUserInfo.Get();
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
- if (userInfo.Description != "管理员")
+ //sql条件
+ if (!queryParam["Sqlparam"].IsEmpty())
{
- strSql.Append(" AND t.IdCardNo = '" + userInfo.IdentityCardNo + "' ");
+ strSql.Append(" and t.F_EnabledMark = '1' ");
+ strSql.Append(" AND u.F_Account = '" + userInfo.account + "' ");
}
if (!queryParam["EmpName"].IsEmpty())
{
@@ -83,6 +89,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dp.Add("PeopleType", "%" + queryParam["PeopleType"].ToString() + "%", DbType.String);
strSql.Append(" AND t.PeopleType like @PeopleType ");
}
+ if (!queryParam["WageCardNo"].IsEmpty())
+ {
+ dp.Add("WageCardNo", "%" + queryParam["WageCardNo"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.WageCardNo = @WageCardNo ");
+ }
if (!queryParam["IssueMonth"].IsEmpty())
{
dp.Add("IssueMonth", queryParam["IssueMonth"].ToString(), DbType.String);
@@ -132,6 +143,70 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
+
+ public List GetPeopleType()
+ {
+ try
+ {
+ string sql = " select distinct PeopleType from WageSchedule where 1=1 and PeopleType is not null order by PeopleType asc ";
+ return this.BaseRepository("CollegeMIS").FindList(sql).ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ public List GetPostType()
+ {
+ try
+ {
+ string sql = " select distinct PostType from WageSchedule where 1=1 and PostType is not null order by PostType asc ";
+ return this.BaseRepository("CollegeMIS").FindList(sql).ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+ ///
+ /// 薪级
+ ///
+ ///
+ ///
+ public List GetPayGrade()
+ {
+ try
+ {
+ string sql = " select distinct PayGrade from WageSchedule where 1=1 and PayGrade is not null order by PayGrade asc";
+ return this.BaseRepository("CollegeMIS").FindList(sql).ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
#endregion
#region 提交数据
@@ -142,12 +217,65 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 主键
public void DeleteEntity(string keyValue)
{
+ var db = this.BaseRepository("CollegeMIS").BeginTrans();
+ try
+ {
+ //多个启用
+ var keyValueArr = keyValue.Split(',');
+ foreach (var item in keyValueArr)
+ {
+ db.Delete(t => t.Id == item);
+ }
+ db.Commit();
+ }
+ catch (Exception ex)
+ {
+ db.Rollback();
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void CheckEntity(string keyValue, string Status)
+ {
+ var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
- this.BaseRepository("CollegeMIS").Delete(t => t.Id == keyValue);
+ if (Status == "0")//审核全部
+ {
+ db.ExecuteBySql("update WageSchedule set F_EnabledMark=1 ");
+ }
+ //多个
+ var keyValueArr = keyValue.Split(',');
+ if (Status == "1")
+ {
+ foreach (var item in keyValueArr)
+ {
+ db.ExecuteBySql("update WageSchedule set F_EnabledMark=1 where Id = '" + item + "' ");
+ }
+ }
+ else if (Status == "2")
+ {
+ foreach (var item in keyValueArr)
+ {
+ db.ExecuteBySql("update WageSchedule set F_EnabledMark=0 where Id = '" + item + "' ");
+ }
+ }
+ db.Commit();
}
catch (Exception ex)
{
+ db.Rollback();
if (ex is ExceptionEx)
{
throw;