@@ -10,12 +10,12 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | ||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | ||||
/// 创 建:超级管理员 | /// 创 建:超级管理员 | ||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// 日 期:2021-04-21 15:42 | |||||
/// 描 述:考勤记录 | |||||
/// </summary> | /// </summary> | ||||
public class EmpPayrollController : MvcControllerBase | |||||
public class Emp_PayrollController : MvcControllerBase | |||||
{ | { | ||||
private SalarySheetIBLL Emps = new SalarySheetBLL(); | |||||
private Emp_PayrollIBLL emp_PayrollIBLL = new Emp_PayrollBLL(); | |||||
#region 视图功能 | #region 视图功能 | ||||
@@ -52,7 +52,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
public ActionResult GetPageList(string pagination, string queryJson) | public ActionResult GetPageList(string pagination, string queryJson) | ||||
{ | { | ||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | Pagination paginationobj = pagination.ToObject<Pagination>(); | ||||
var data = Emps.GetPageList(paginationobj, queryJson); | |||||
var data = emp_PayrollIBLL.GetPageList(paginationobj, queryJson); | |||||
var jsonData = new | var jsonData = new | ||||
{ | { | ||||
rows = data, | rows = data, | ||||
@@ -71,7 +71,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetFormData(string keyValue) | public ActionResult GetFormData(string keyValue) | ||||
{ | { | ||||
var EMP_PayrollData = Emps.GetSalarySheetEntity( keyValue ); | |||||
var EMP_PayrollData = emp_PayrollIBLL.GetEMP_PayrollEntity( keyValue ); | |||||
var jsonData = new { | var jsonData = new { | ||||
EMP_Payroll = EMP_PayrollData, | EMP_Payroll = EMP_PayrollData, | ||||
}; | }; | ||||
@@ -88,9 +88,9 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
/// <returns></returns> | /// <returns></returns> | ||||
[HttpPost] | [HttpPost] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult DeleteForm( string keyValue) | |||||
public ActionResult DeleteForm(string keyValue) | |||||
{ | { | ||||
Emps.DeleteEntity(keyValue); | |||||
emp_PayrollIBLL.DeleteEntity(keyValue); | |||||
return Success("删除成功!"); | return Success("删除成功!"); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
@@ -104,9 +104,9 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult SaveForm(string keyValue, string strEntity) | public ActionResult SaveForm(string keyValue, string strEntity) | ||||
{ | { | ||||
SalarySheetEntity entity = strEntity.ToObject<SalarySheetEntity>(); | |||||
Emps.SaveEntity(keyValue,entity); | |||||
if (keyValue != null) | |||||
EMP_PayrollEntity entity = strEntity.ToObject<EMP_PayrollEntity>(); | |||||
emp_PayrollIBLL.SaveEntity(keyValue,entity); | |||||
if (string.IsNullOrEmpty(keyValue)) | |||||
{ | { | ||||
} | } | ||||
return Success("保存成功!"); | return Success("保存成功!"); |
@@ -1,5 +1,5 @@ | |||||
@{ | @{ | ||||
ViewBag.Title = "工资条"; | |||||
ViewBag.Title = "考勤记录"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | Layout = "~/Views/Shared/_Form.cshtml"; | ||||
} | } | ||||
<div class="lr-form-wrap" id="form"> | <div class="lr-form-wrap" id="form"> | ||||
@@ -44,7 +44,7 @@ | |||||
<input id="MeritPayLess" type="text" class="form-control" /> | <input id="MeritPayLess" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
<div class="lr-form-item-title">月一次性发放绩效</div> | |||||
<div class="lr-form-item-title">月发一次性绩效</div> | |||||
<input id="MonthlyoneMerit" type="text" class="form-control" /> | <input id="MonthlyoneMerit" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
@@ -87,6 +87,10 @@ | |||||
<div class="lr-form-item-title">加班费</div> | <div class="lr-form-item-title">加班费</div> | ||||
<input id="OvertimePay" type="text" class="form-control" /> | <input id="OvertimePay" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">值班费</div> | |||||
<input id="OnDutyfee" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
<div class="lr-form-item-title">考务费</div> | <div class="lr-form-item-title">考务费</div> | ||||
<input id="ExaminationFee" type="text" class="form-control" /> | <input id="ExaminationFee" type="text" class="form-control" /> | ||||
@@ -128,7 +132,7 @@ | |||||
<input id="Replacement" type="text" class="form-control" /> | <input id="Replacement" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
<div class="lr-form-item-title">应计合法</div> | |||||
<div class="lr-form-item-title">应发合计</div> | |||||
<input id="SendSum" type="text" class="form-control" /> | <input id="SendSum" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
@@ -164,7 +168,7 @@ | |||||
<input id="AssDeductions" type="text" class="form-control" /> | <input id="AssDeductions" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
<div class="lr-form-item-title">其他代扣</div> | |||||
<div class="lr-form-item-title">其他扣款</div> | |||||
<input id="OtherDeductions" type="text" class="form-control" /> | <input id="OtherDeductions" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
@@ -184,7 +188,7 @@ | |||||
<input id="TaxIncome" type="text" class="form-control" /> | <input id="TaxIncome" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
<div class="lr-form-item-title">实发合计</div> | |||||
<div class="lr-form-item-title">应发合计</div> | |||||
<input id="NetCombined" type="text" class="form-control" /> | <input id="NetCombined" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | <div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | ||||
@@ -192,4 +196,4 @@ | |||||
<input id="IssueMonth" type="text" class="form-control" /> | <input id="IssueMonth" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/工资项目/Form.js") | |||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_Payroll/Form.js") |
@@ -1,8 +1,8 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | ||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | ||||
* 创建人:超级管理员 | * 创建人:超级管理员 | ||||
* 日 期:2021-04-20 16:52 | |||||
* 描 述:工资条 | |||||
* 日 期:2021-04-21 15:42 | |||||
* 描 述:考勤记录 | |||||
*/ | */ | ||||
var acceptClick; | var acceptClick; | ||||
var keyValue = request('keyValue'); | var keyValue = request('keyValue'); | ||||
@@ -18,7 +18,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/工资项目/GetFormData?keyValue=' + keyValue, function (data) { | |||||
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/GetFormData?keyValue=' + keyValue, function (data) { | |||||
for (var id in data) { | for (var id in data) { | ||||
if (!!data[id].length && data[id].length > 0) { | if (!!data[id].length && data[id].length > 0) { | ||||
$('#' + id ).jfGridSet('refreshdata', data[id]); | $('#' + id ).jfGridSet('refreshdata', data[id]); | ||||
@@ -39,7 +39,7 @@ var bootstrap = function ($, learun) { | |||||
var postData = { | var postData = { | ||||
strEntity: JSON.stringify($('body').lrGetFormData()) | strEntity: JSON.stringify($('body').lrGetFormData()) | ||||
}; | }; | ||||
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/工资项目/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | // 保存成功后才回调 | ||||
if (!!callBack) { | if (!!callBack) { | ||||
callBack(); | callBack(); |
@@ -1,5 +1,5 @@ | |||||
@{ | @{ | ||||
ViewBag.Title = "工资条"; | |||||
ViewBag.Title = "考勤记录"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | <div class="lr-layout " > | ||||
@@ -24,4 +24,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/工资项目/Index.js") | |||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_Payroll/Index.js") |
@@ -1,8 +1,8 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | ||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | ||||
* 创建人:超级管理员 | * 创建人:超级管理员 | ||||
* 日 期:2021-04-20 16:52 | |||||
* 描 述:工资条 | |||||
* 日 期:2021-04-21 15:42 | |||||
* 描 述:考勤记录 | |||||
*/ | */ | ||||
var refreshGirdData; | var refreshGirdData; | ||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
@@ -22,7 +22,7 @@ var bootstrap = function ($, learun) { | |||||
learun.layerForm({ | learun.layerForm({ | ||||
id: 'form', | id: 'form', | ||||
title: '新增', | title: '新增', | ||||
url: top.$.rootUrl + '/PersonnelManagement/工资项目/Form', | |||||
url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/Form', | |||||
width: 600, | width: 600, | ||||
height: 400, | height: 400, | ||||
callBack: function (id) { | callBack: function (id) { | ||||
@@ -32,12 +32,12 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
// 编辑 | // 编辑 | ||||
$('#lr_edit').on('click', function () { | $('#lr_edit').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('dm'); | |||||
var keyValue = $('#gridtable').jfGridValue('SalaryID'); | |||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerForm({ | learun.layerForm({ | ||||
id: 'form', | id: 'form', | ||||
title: '编辑', | title: '编辑', | ||||
url: top.$.rootUrl + '/PersonnelManagement/工资项目/Form?keyValue=' + keyValue, | |||||
url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/Form?keyValue=' + keyValue, | |||||
width: 600, | width: 600, | ||||
height: 400, | height: 400, | ||||
callBack: function (id) { | callBack: function (id) { | ||||
@@ -48,11 +48,11 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
// 删除 | // 删除 | ||||
$('#lr_delete').on('click', function () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('dm'); | |||||
var keyValue = $('#gridtable').jfGridValue('SalaryID'); | |||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | learun.layerConfirm('是否确认删除该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/工资项目/DeleteForm', { keyValue: keyValue}, function () { | |||||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/DeleteForm', { keyValue: keyValue}, function () { | |||||
refreshGirdData(); | refreshGirdData(); | ||||
}); | }); | ||||
} | } | ||||
@@ -66,8 +66,8 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
// 初始化列表 | // 初始化列表 | ||||
initGird: function () { | initGird: function () { | ||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
url: top.$.rootUrl + '/PersonnelManagement/工资项目/GetPageList', | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/GetPageList', | |||||
headData: [ | headData: [ | ||||
{ label: "姓名", name: "SalaryName", width: 100, align: "left"}, | { label: "姓名", name: "SalaryName", width: 100, align: "left"}, | ||||
{ label: "岗位工资", name: "PostSalary", width: 100, align: "left"}, | { label: "岗位工资", name: "PostSalary", width: 100, align: "left"}, | ||||
@@ -79,7 +79,7 @@ var bootstrap = function ($, learun) { | |||||
{ label: "级差补贴", name: "DifferentialSub", width: 100, align: "left"}, | { label: "级差补贴", name: "DifferentialSub", width: 100, align: "left"}, | ||||
{ label: "绩效工资", name: "MeritPay", width: 100, align: "left"}, | { label: "绩效工资", name: "MeritPay", width: 100, align: "left"}, | ||||
{ label: "绩效工资减少额", name: "MeritPayLess", width: 100, align: "left"}, | { label: "绩效工资减少额", name: "MeritPayLess", width: 100, align: "left"}, | ||||
{ label: "月一次性发放绩效", name: "MonthlyoneMerit", width: 100, align: "left"}, | |||||
{ label: "月发一次性绩效", name: "MonthlyoneMerit", width: 100, align: "left"}, | |||||
{ label: "倾斜", name: "Tilt", width: 100, align: "left"}, | { label: "倾斜", name: "Tilt", width: 100, align: "left"}, | ||||
{ label: "课时费", name: "Classfees", width: 100, align: "left"}, | { label: "课时费", name: "Classfees", width: 100, align: "left"}, | ||||
{ label: "超课时", name: "SuperClass", width: 100, align: "left"}, | { label: "超课时", name: "SuperClass", width: 100, align: "left"}, | ||||
@@ -90,6 +90,7 @@ var bootstrap = function ($, learun) { | |||||
{ label: "骨干津贴", name: "KeyBenefits", width: 100, align: "left"}, | { label: "骨干津贴", name: "KeyBenefits", width: 100, align: "left"}, | ||||
{ label: "职务补", name: "PositionFill", width: 100, align: "left"}, | { label: "职务补", name: "PositionFill", width: 100, align: "left"}, | ||||
{ label: "加班费", name: "OvertimePay", width: 100, align: "left"}, | { label: "加班费", name: "OvertimePay", width: 100, align: "left"}, | ||||
{ label: "值班费", name: "OnDutyfee", width: 100, align: "left"}, | |||||
{ label: "考务费", name: "ExaminationFee", width: 100, align: "left"}, | { label: "考务费", name: "ExaminationFee", width: 100, align: "left"}, | ||||
{ label: "安全绩效", name: "SecurityPay", width: 100, align: "left"}, | { label: "安全绩效", name: "SecurityPay", width: 100, align: "left"}, | ||||
{ label: "医药费", name: "MedicalBills", width: 100, align: "left"}, | { label: "医药费", name: "MedicalBills", width: 100, align: "left"}, | ||||
@@ -100,7 +101,7 @@ var bootstrap = function ($, learun) { | |||||
{ label: "综合补助", name: "ComprehensiveSub", width: 100, align: "left"}, | { label: "综合补助", name: "ComprehensiveSub", width: 100, align: "left"}, | ||||
{ label: "综治奖", name: "ControlSub", width: 100, align: "left"}, | { label: "综治奖", name: "ControlSub", width: 100, align: "left"}, | ||||
{ label: "补发", name: "Replacement", width: 100, align: "left"}, | { label: "补发", name: "Replacement", width: 100, align: "left"}, | ||||
{ label: "应计合法", name: "SendSum", width: 100, align: "left"}, | |||||
{ label: "应发合计", name: "SendSum", width: 100, align: "left"}, | |||||
{ label: "失保", name: "LossInsurance", width: 100, align: "left"}, | { label: "失保", name: "LossInsurance", width: 100, align: "left"}, | ||||
{ label: "养保", name: "Bartender", width: 100, align: "left"}, | { label: "养保", name: "Bartender", width: 100, align: "left"}, | ||||
{ label: "职业年金", name: "OcPension", width: 100, align: "left"}, | { label: "职业年金", name: "OcPension", width: 100, align: "left"}, | ||||
@@ -109,15 +110,15 @@ var bootstrap = function ($, learun) { | |||||
{ label: "房租", name: "TheRent", width: 100, align: "left"}, | { label: "房租", name: "TheRent", width: 100, align: "left"}, | ||||
{ label: "网费", name: "InternetFee", width: 100, align: "left"}, | { label: "网费", name: "InternetFee", width: 100, align: "left"}, | ||||
{ label: "考核扣款", name: "AssDeductions", width: 100, align: "left"}, | { label: "考核扣款", name: "AssDeductions", width: 100, align: "left"}, | ||||
{ label: "其他代扣", name: "OtherDeductions", width: 100, align: "left"}, | |||||
{ label: "其他扣款", name: "OtherDeductions", width: 100, align: "left"}, | |||||
{ label: "代扣个税", name: "WithBuckletax", width: 100, align: "left"}, | { label: "代扣个税", name: "WithBuckletax", width: 100, align: "left"}, | ||||
{ label: "扣款合计", name: "DeductionsSum", width: 100, align: "left"}, | { label: "扣款合计", name: "DeductionsSum", width: 100, align: "left"}, | ||||
{ label: "纳税收入", name: "TaxRevenue", width: 100, align: "left"}, | { label: "纳税收入", name: "TaxRevenue", width: 100, align: "left"}, | ||||
{ label: "免税收入", name: "TaxIncome", width: 100, align: "left"}, | { label: "免税收入", name: "TaxIncome", width: 100, align: "left"}, | ||||
{ label: "实发合计", name: "NetCombined", width: 100, align: "left"}, | |||||
{ label: "应发合计", name: "NetCombined", width: 100, align: "left"}, | |||||
{ label: "发放月份", name: "IssueMonth", width: 100, align: "left"}, | { label: "发放月份", name: "IssueMonth", width: 100, align: "left"}, | ||||
], | ], | ||||
mainId:'dm', | |||||
mainId:'SalaryID', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); |
@@ -793,7 +793,7 @@ | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\StuLeaveManagementController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\StuLeaveManagementController.cs" /> | ||||
<Compile Include="Areas\Permission\Controllers\DepartmentReleasePermissionsController.cs" /> | <Compile Include="Areas\Permission\Controllers\DepartmentReleasePermissionsController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\EATalentTrainController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\EATalentTrainController.cs" /> | ||||
<Compile Include="Areas\PersonnelManagement\Controllers\工资项目Controller.cs" /> | |||||
<Compile Include="Areas\PersonnelManagement\Controllers\Emp_PayrollController.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | <Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | ||||
@@ -6132,10 +6132,10 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\EATalentTrain\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\EATalentTrain\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EATalentTrain\Form.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\EATalentTrain\Form.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EATalentTrain\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\EATalentTrain\Form.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\工资项目\Index.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\工资项目\Index.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\工资项目\Form.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\工资项目\Form.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\Emp_Payroll\Index.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\Emp_Payroll\Index.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\Emp_Payroll\Form.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\Emp_Payroll\Form.js" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Folder Include="Areas\LR_Desktop\Models\" /> | <Folder Include="Areas\LR_Desktop\Models\" /> | ||||
@@ -7,8 +7,8 @@ namespace Learun.Application.Mapping | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | ||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | ||||
/// 创 建:超级管理员 | /// 创 建:超级管理员 | ||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// 日 期:2021-04-21 15:42 | |||||
/// 描 述:考勤记录 | |||||
/// </summary> | /// </summary> | ||||
public class EMP_PayrollMap : EntityTypeConfiguration<EMP_PayrollEntity> | public class EMP_PayrollMap : EntityTypeConfiguration<EMP_PayrollEntity> | ||||
{ | { | ||||
@@ -1601,10 +1601,10 @@ | |||||
<Compile Include="EducationalAdministration\EATalentTrain\EATalentTrainService.cs" /> | <Compile Include="EducationalAdministration\EATalentTrain\EATalentTrainService.cs" /> | ||||
<Compile Include="EducationalAdministration\EATalentTrain\EATalentTrainBLL.cs" /> | <Compile Include="EducationalAdministration\EATalentTrain\EATalentTrainBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\EATalentTrain\EATalentTrainIBLL.cs" /> | <Compile Include="EducationalAdministration\EATalentTrain\EATalentTrainIBLL.cs" /> | ||||
<Compile Include="PersonnelManagement\工资项目\EMP_PayrollEntity.cs" /> | |||||
<Compile Include="PersonnelManagement\工资项目\工资项目Service.cs" /> | |||||
<Compile Include="PersonnelManagement\工资项目\工资项目BLL.cs" /> | |||||
<Compile Include="PersonnelManagement\工资项目\工资项目IBLL.cs" /> | |||||
<Compile Include="PersonnelManagement\Emp_Payroll\EMP_PayrollEntity.cs" /> | |||||
<Compile Include="PersonnelManagement\Emp_Payroll\Emp_PayrollService.cs" /> | |||||
<Compile Include="PersonnelManagement\Emp_Payroll\Emp_PayrollBLL.cs" /> | |||||
<Compile Include="PersonnelManagement\Emp_Payroll\Emp_PayrollIBLL.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | <ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | ||||
@@ -8,8 +8,8 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | ||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | ||||
/// 创 建:超级管理员 | /// 创 建:超级管理员 | ||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// 日 期:2021-04-21 15:42 | |||||
/// 描 述:考勤记录 | |||||
/// </summary> | /// </summary> | ||||
public class EMP_PayrollEntity | public class EMP_PayrollEntity | ||||
{ | { | ||||
@@ -254,6 +254,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// </summary> | /// </summary> | ||||
[Column("ISSUEMONTH")] | [Column("ISSUEMONTH")] | ||||
public string IssueMonth { get; set; } | public string IssueMonth { get; set; } | ||||
/// <summary> | |||||
/// OnDutyfee | |||||
/// </summary> | |||||
[Column("ONDUTYFEE")] | |||||
public string OnDutyfee { get; set; } | |||||
#endregion | #endregion | ||||
#region 扩展操作 | #region 扩展操作 | ||||
@@ -262,14 +267,15 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// </summary> | /// </summary> | ||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.SalaryID = Guid.NewGuid().ToString(); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue"></param> | /// <param name="keyValue"></param> | ||||
public void Modify( string keyValue) | |||||
public void Modify(string keyValue) | |||||
{ | { | ||||
this.SalaryID= keyValue; | |||||
this.SalaryID = keyValue; | |||||
} | } | ||||
#endregion | #endregion | ||||
#region 扩展字段 | #region 扩展字段 |
@@ -9,12 +9,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | ||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | ||||
/// 创 建:超级管理员 | /// 创 建:超级管理员 | ||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// 日 期:2021-04-21 15:42 | |||||
/// 描 述:考勤记录 | |||||
/// </summary> | /// </summary> | ||||
public class EmpSalaryBLL : EMP_PayrollEntity | |||||
public class Emp_PayrollBLL : Emp_PayrollIBLL | |||||
{ | { | ||||
private EmpSalaryBLL Emp = new EmpSalaryBLL(); | |||||
private Emp_PayrollService emp_PayrollService = new Emp_PayrollService(); | |||||
#region 获取数据 | #region 获取数据 | ||||
@@ -28,7 +28,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return Emp.GetPageList(pagination, queryJson); | |||||
return emp_PayrollService.GetPageList(pagination, queryJson); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -52,7 +52,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return Emp.GetEMP_PayrollEntity(keyValue); | |||||
return emp_PayrollService.GetEMP_PayrollEntity(keyValue); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -79,7 +79,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Emp.DeleteEntity(keyValue); | |||||
emp_PayrollService.DeleteEntity(keyValue); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -100,11 +100,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity( string keyValue, EMP_PayrollEntity entity) | |||||
public void SaveEntity(string keyValue, EMP_PayrollEntity entity) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Emp.SaveEntity(keyValue, entity); | |||||
emp_PayrollService.SaveEntity(keyValue, entity); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { |
@@ -8,10 +8,10 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | ||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | ||||
/// 创 建:超级管理员 | /// 创 建:超级管理员 | ||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// 日 期:2021-04-21 15:42 | |||||
/// 描 述:考勤记录 | |||||
/// </summary> | /// </summary> | ||||
public interface EmpSalaryIBLL | |||||
public interface Emp_PayrollIBLL | |||||
{ | { | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -35,13 +35,13 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// 删除实体数据 | /// 删除实体数据 | ||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
void DeleteEntity( string keyValue); | |||||
void DeleteEntity(string keyValue); | |||||
/// <summary> | /// <summary> | ||||
/// 保存实体数据(新增、修改) | /// 保存实体数据(新增、修改) | ||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(EmpSalaryBLL keyValue, EMP_PayrollEntity entity); | |||||
void SaveEntity(string keyValue, EMP_PayrollEntity entity); | |||||
#endregion | #endregion | ||||
} | } |
@@ -12,10 +12,10 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | ||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | ||||
/// 创 建:超级管理员 | /// 创 建:超级管理员 | ||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// 日 期:2021-04-21 15:42 | |||||
/// 描 述:考勤记录 | |||||
/// </summary> | /// </summary> | ||||
public class 工资项目Service : RepositoryFactory | |||||
public class Emp_PayrollService : RepositoryFactory | |||||
{ | { | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -32,7 +32,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | strSql.Append(@" | ||||
t.dm, | |||||
t.SalaryID, | |||||
t.SalaryName, | t.SalaryName, | ||||
t.PostSalary, | t.PostSalary, | ||||
t.PayWages, | t.PayWages, | ||||
@@ -54,6 +54,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
t.KeyBenefits, | t.KeyBenefits, | ||||
t.PositionFill, | t.PositionFill, | ||||
t.OvertimePay, | t.OvertimePay, | ||||
t.OnDutyfee, | |||||
t.ExaminationFee, | t.ExaminationFee, | ||||
t.SecurityPay, | t.SecurityPay, | ||||
t.MedicalBills, | t.MedicalBills, | ||||
@@ -110,7 +111,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return this.BaseRepository("CollegeMIS").FindEntity<EMP_PayrollEntity>(keyValue.ToInt()); | |||||
return this.BaseRepository("CollegeMIS").FindEntity<EMP_PayrollEntity>(keyValue); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -161,7 +162,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
if (keyValue != null) | |||||
if (!string.IsNullOrEmpty(keyValue)) | |||||
{ | { | ||||
entity.Modify(keyValue); | entity.Modify(keyValue); | ||||
this.BaseRepository("CollegeMIS").Update(entity); | this.BaseRepository("CollegeMIS").Update(entity); |