|
|
@@ -13,9 +13,9 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers |
|
|
|
/// 日 期:2021-04-20 16:52 |
|
|
|
/// 描 述:工资条 |
|
|
|
/// </summary> |
|
|
|
public class 工资项目Controller : MvcControllerBase |
|
|
|
public class EmpPayrollController : MvcControllerBase |
|
|
|
{ |
|
|
|
private 工资项目IBLL 工资项目IBLL = new 工资项目BLL(); |
|
|
|
private SalarySheetIBLL Emps = new SalarySheetBLL(); |
|
|
|
|
|
|
|
#region 视图功能 |
|
|
|
|
|
|
@@ -52,7 +52,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers |
|
|
|
public ActionResult GetPageList(string pagination, string queryJson) |
|
|
|
{ |
|
|
|
Pagination paginationobj = pagination.ToObject<Pagination>(); |
|
|
|
var data = 工资项目IBLL.GetPageList(paginationobj, queryJson); |
|
|
|
var data = Emps.GetPageList(paginationobj, queryJson); |
|
|
|
var jsonData = new |
|
|
|
{ |
|
|
|
rows = data, |
|
|
@@ -71,7 +71,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult GetFormData(string keyValue) |
|
|
|
{ |
|
|
|
var EMP_PayrollData = 工资项目IBLL.GetEMP_PayrollEntity( keyValue ); |
|
|
|
var EMP_PayrollData = Emps.GetSalarySheetEntity( keyValue ); |
|
|
|
var jsonData = new { |
|
|
|
EMP_Payroll = EMP_PayrollData, |
|
|
|
}; |
|
|
@@ -88,9 +88,9 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers |
|
|
|
/// <returns></returns> |
|
|
|
[HttpPost] |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult DeleteForm( keyValue) |
|
|
|
public ActionResult DeleteForm( string keyValue) |
|
|
|
{ |
|
|
|
工资项目IBLL.DeleteEntity(keyValue); |
|
|
|
Emps.DeleteEntity(keyValue); |
|
|
|
return Success("删除成功!"); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -102,10 +102,10 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers |
|
|
|
[HttpPost] |
|
|
|
[ValidateAntiForgeryToken] |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult SaveForm( keyValue, string strEntity) |
|
|
|
public ActionResult SaveForm(string keyValue, string strEntity) |
|
|
|
{ |
|
|
|
EMP_PayrollEntity entity = strEntity.ToObject<EMP_PayrollEntity>(); |
|
|
|
工资项目IBLL.SaveEntity(keyValue,entity); |
|
|
|
SalarySheetEntity entity = strEntity.ToObject<SalarySheetEntity>(); |
|
|
|
Emps.SaveEntity(keyValue,entity); |
|
|
|
if (keyValue != null) |
|
|
|
{ |
|
|
|
} |
|
|
|