@@ -21,7 +21,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
private Sys_SendFileIBLL sys_SendFileIBLL = new Sys_SendFileBLL(); | private Sys_SendFileIBLL sys_SendFileIBLL = new Sys_SendFileBLL(); | ||||
#region 视图功能 | |||||
#region 视图功能 | |||||
/// <summary> | /// <summary> | ||||
/// 主页面 | /// 主页面 | ||||
@@ -32,6 +32,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | [HttpGet] | ||||
public ActionResult IndexDocument() | public ActionResult IndexDocument() | ||||
{ | { | ||||
@@ -47,6 +48,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 主页面【党政公文下发】 | /// 主页面【党政公文下发】 | ||||
/// <summary> | /// <summary> | ||||
@@ -56,11 +58,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | [HttpGet] | ||||
public ActionResult FormDocument() | public ActionResult FormDocument() | ||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 表单页 | /// 表单页 | ||||
/// <summary> | /// <summary> | ||||
@@ -70,6 +74,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 表单页【党政公文下发】 | /// 表单页【党政公文下发】 | ||||
/// <summary> | /// <summary> | ||||
@@ -91,6 +96,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 【党政公文下发】 | /// 【党政公文下发】 | ||||
/// </summary> | /// </summary> | ||||
@@ -100,6 +106,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | [HttpGet] | ||||
public ActionResult ReadList() | public ActionResult ReadList() | ||||
{ | { | ||||
@@ -111,6 +118,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 【党政公文下发】 | /// 【党政公文下发】 | ||||
/// </summary> | /// </summary> | ||||
@@ -120,9 +128,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
#endregion | #endregion | ||||
#region 获取数据 | |||||
#region 获取数据 | |||||
/// <summary> | /// <summary> | ||||
/// 获取页面显示列表数据 | /// 获取页面显示列表数据 | ||||
@@ -135,6 +144,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | Pagination paginationobj = pagination.ToObject<Pagination>(); | ||||
var data = sys_SendFileIBLL.GetPageList(paginationobj, queryJson).Where(m => m.STypeId == 1); | var data = sys_SendFileIBLL.GetPageList(paginationobj, queryJson).Where(m => m.STypeId == 1); | ||||
foreach (var item in data) | |||||
{ | |||||
var reciver=string.IsNullOrWhiteSpace(item.Receiver)?"暂无":item.Receiver; | |||||
var sql = $"SELECT COUNT(*) FROM dbo.Sys_ReceiveFile where ReadFlag=1 AND SFileId='{item.SFileId}'"; | |||||
var sendSql = $"SELECT COUNT(*) FROM dbo.Sys_ReceiveFile where SFileId='{item.SFileId}'"; | |||||
var readdt = sys_SendFileIBLL.Execute(sql); | |||||
var senddt = sys_SendFileIBLL.Execute(sendSql); | |||||
var readcount = readdt.Rows[0][0]; | |||||
var sendcount = senddt.Rows[0][0]; | |||||
item.Receiver = $"{reciver}/{readcount}/{sendcount}"; | |||||
} | |||||
var jsonData = new | var jsonData = new | ||||
{ | { | ||||
rows = data, | rows = data, | ||||
@@ -144,6 +166,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
[HttpGet] | [HttpGet] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetPageListDocument(string pagination, string queryJson) | public ActionResult GetPageListDocument(string pagination, string queryJson) | ||||
@@ -159,12 +182,25 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
[HttpGet] | [HttpGet] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetPageListParty(string pagination, string queryJson) | public ActionResult GetPageListParty(string pagination, string queryJson) | ||||
{ | { | ||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | Pagination paginationobj = pagination.ToObject<Pagination>(); | ||||
var data = sys_SendFileIBLL.GetPageList(paginationobj, queryJson).Where(m => m.STypeId == 3); | var data = sys_SendFileIBLL.GetPageList(paginationobj, queryJson).Where(m => m.STypeId == 3); | ||||
foreach (var item in data) | |||||
{ | |||||
var reciver = string.IsNullOrWhiteSpace(item.Receiver) ? "暂无" : item.Receiver; | |||||
var sql = $"SELECT COUNT(*) FROM dbo.Sys_ReceiveFile where ReadFlag=1 AND SFileId='{item.SFileId}'"; | |||||
var sendSql = $"SELECT COUNT(*) FROM dbo.Sys_ReceiveFile where SFileId='{item.SFileId}'"; | |||||
var readdt = sys_SendFileIBLL.Execute(sql); | |||||
var senddt = sys_SendFileIBLL.Execute(sendSql); | |||||
var readcount = readdt.Rows[0][0]; | |||||
var sendcount = senddt.Rows[0][0]; | |||||
item.Receiver = $"{readcount}/{sendcount}"; | |||||
} | |||||
var jsonData = new | var jsonData = new | ||||
{ | { | ||||
rows = data, | rows = data, | ||||
@@ -174,6 +210,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 获取表单数据 | /// 获取表单数据 | ||||
/// <summary> | /// <summary> | ||||
@@ -190,6 +227,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
[HttpGet] | [HttpGet] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetFormDataView(string keyValue) | public ActionResult GetFormDataView(string keyValue) | ||||
@@ -202,6 +240,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 获取表单数据 | /// 获取表单数据 | ||||
/// <summary> | /// <summary> | ||||
@@ -217,9 +256,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
#endregion | #endregion | ||||
#region 提交数据 | |||||
#region 提交数据 | |||||
/// <summary> | /// <summary> | ||||
/// 删除实体数据 | /// 删除实体数据 | ||||
@@ -233,6 +273,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
sys_SendFileIBLL.DeleteEntity(keyValue); | sys_SendFileIBLL.DeleteEntity(keyValue); | ||||
return Success("删除成功!"); | return Success("删除成功!"); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 保存实体数据(新增、修改) | /// 保存实体数据(新增、修改) | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
@@ -249,6 +290,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
entity.STypeId = 1; | entity.STypeId = 1; | ||||
} | } | ||||
sys_SendFileIBLL.SaveEntity(keyValue, entity); | sys_SendFileIBLL.SaveEntity(keyValue, entity); | ||||
return Success("保存成功!"); | return Success("保存成功!"); | ||||
} | } | ||||
@@ -264,6 +306,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
entity.STypeId = 2; | entity.STypeId = 2; | ||||
} | } | ||||
sys_SendFileIBLL.SaveEntity(keyValue, entity); | sys_SendFileIBLL.SaveEntity(keyValue, entity); | ||||
return Success("保存成功!"); | return Success("保存成功!"); | ||||
} | } | ||||
@@ -279,9 +322,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
entity.STypeId = 3; | entity.STypeId = 3; | ||||
} | } | ||||
sys_SendFileIBLL.SaveEntity(keyValue, entity); | sys_SendFileIBLL.SaveEntity(keyValue, entity); | ||||
return Success("保存成功!"); | return Success("保存成功!"); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
/// </summary> | /// </summary> | ||||
@@ -294,6 +339,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
sys_SendFileIBLL.ChangeStatusById(keyValue, 1, processId); | sys_SendFileIBLL.ChangeStatusById(keyValue, 1, processId); | ||||
return Success("操作成功!"); | return Success("操作成功!"); | ||||
} | } | ||||
[HttpPost] | [HttpPost] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult ChangeStatusByIdDocument(string keyValue) | public ActionResult ChangeStatusByIdDocument(string keyValue) | ||||
@@ -303,6 +349,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
sys_SendFileIBLL.ChangeStatusByProcessId(guid, 2); | sys_SendFileIBLL.ChangeStatusByProcessId(guid, 2); | ||||
return Success("操作成功!"); | return Success("操作成功!"); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 结束下发 | /// 结束下发 | ||||
/// </summary> | /// </summary> | ||||
@@ -316,7 +363,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
sys_SendFileIBLL.OverIssue(keyValue); | sys_SendFileIBLL.OverIssue(keyValue); | ||||
return Success("下发成功!"); | return Success("下发成功!"); | ||||
} | } | ||||
#endregion | |||||
/* public ActionResult ReceiveFile(string keyValue) | |||||
{ | |||||
return View(); | |||||
}*/ | |||||
#endregion | |||||
} | } | ||||
} | } |
@@ -157,7 +157,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
{ | |||||
label: "接收人", name: "Receiver", width: 300, align: "left" | label: "接收人", name: "Receiver", width: 300, align: "left" | ||||
}, | }, | ||||
{ | { | ||||
@@ -166,6 +166,7 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "下发时间", name: "SendTime", width: 150, align: "left" | label: "下发时间", name: "SendTime", width: 150, align: "left" | ||||
}, | }, | ||||
{ | { | ||||
label: "状态", name: "SendFlag", width: 100, align: "left", | label: "状态", name: "SendFlag", width: 100, align: "left", | ||||
formatter: function (cellvalue, row) { | formatter: function (cellvalue, row) { | ||||
@@ -178,6 +179,8 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
], | ], | ||||
mainId: 'SFileId', | mainId: 'SFileId', | ||||
isPage: true | isPage: true | ||||
@@ -158,7 +158,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
label: "接收人", name: "Receiver", width: 300, align: "left" | |||||
label: "接收人/阅读数/发文章数", name: "Receiver", width: 300, align: "left" | |||||
}, | }, | ||||
{ | { | ||||
label: "下发人", name: "Sender", width: 100, align: "left" | label: "下发人", name: "Sender", width: 100, align: "left" | ||||
@@ -166,6 +166,7 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "下发时间", name: "SendTime", width: 150, align: "left" | label: "下发时间", name: "SendTime", width: 150, align: "left" | ||||
}, | }, | ||||
{ | { | ||||
label: "状态", name: "SendFlag", width: 100, align: "left", | label: "状态", name: "SendFlag", width: 100, align: "left", | ||||
formatter: function (cellvalue, row) { | formatter: function (cellvalue, row) { | ||||
@@ -178,6 +179,10 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
label: "阅读人数/总数", name: "Receiver", width: 150, align: "left", | |||||
}, | |||||
], | ], | ||||
mainId: 'SFileId', | mainId: 'SFileId', | ||||
isPage: true | isPage: true | ||||
@@ -7,6 +7,7 @@ | |||||
<meta name="renderer" content="webkit"> | <meta name="renderer" content="webkit"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="icon" href="~/favicon.ico"> | <link rel="icon" href="~/favicon.ico"> | ||||
<meta http-equiv="refresh" content="1200"/> | |||||
<title>JS插件展示页面|智慧校园|快速开发平台|智慧校园敏捷开发框架</title> | <title>JS插件展示页面|智慧校园|快速开发平台|智慧校园敏捷开发框架</title> | ||||
<link href="~/Content/fontApp/iconfont.css" rel="stylesheet" /> | <link href="~/Content/fontApp/iconfont.css" rel="stylesheet" /> | ||||
<link href="~/Content/bootstrap/bootstrap.min.css" rel="stylesheet" /> | <link href="~/Content/bootstrap/bootstrap.min.css" rel="stylesheet" /> | ||||
@@ -78,8 +78,8 @@ | |||||
<textarea id="des" class="form-control" style="height: 120px;"></textarea> | <textarea id="des" class="form-control" style="height: 120px;"></textarea> | ||||
</div> | </div> | ||||
<div class="col-xs-12 flow-btn"> | <div class="col-xs-12 flow-btn"> | ||||
<a id="release" class="btn btn-success">创建流程</a> | |||||
<a id="savedraft" class="btn btn-default">保存草稿</a> | <a id="savedraft" class="btn btn-default">保存草稿</a> | ||||
<a id="release" class="btn btn-success">提交流程</a> | |||||
<a id="sign" class="btn btn-info">加签</a> | <a id="sign" class="btn btn-info">加签</a> | ||||
<a id="confirm" class="btn btn-info">确认阅读</a> | <a id="confirm" class="btn btn-info">确认阅读</a> | ||||
</div> | </div> | ||||
@@ -0,0 +1,117 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using Learun.Application.TwoDevelopment.PersonnelManagement; | |||||
using System.Web.Mvc; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// </summary> | |||||
public class 工资项目Controller : MvcControllerBase | |||||
{ | |||||
private 工资项目IBLL 工资项目IBLL = new 工资项目BLL(); | |||||
#region 视图功能 | |||||
/// <summary> | |||||
/// 主页面 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Index() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 表单页 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Form() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetPageList(string pagination, string queryJson) | |||||
{ | |||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||||
var data = 工资项目IBLL.GetPageList(paginationobj, queryJson); | |||||
var jsonData = new | |||||
{ | |||||
rows = data, | |||||
total = paginationobj.total, | |||||
page = paginationobj.page, | |||||
records = paginationobj.records | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetFormData(string keyValue) | |||||
{ | |||||
var EMP_PayrollData = 工资项目IBLL.GetEMP_PayrollEntity( keyValue ); | |||||
var jsonData = new { | |||||
EMP_Payroll = EMP_PayrollData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult DeleteForm( keyValue) | |||||
{ | |||||
工资项目IBLL.DeleteEntity(keyValue); | |||||
return Success("删除成功!"); | |||||
} | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="strEntity">实体</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[ValidateAntiForgeryToken] | |||||
[AjaxOnly] | |||||
public ActionResult SaveForm( keyValue, string strEntity) | |||||
{ | |||||
EMP_PayrollEntity entity = strEntity.ToObject<EMP_PayrollEntity>(); | |||||
工资项目IBLL.SaveEntity(keyValue,entity); | |||||
if (keyValue != null) | |||||
{ | |||||
} | |||||
return Success("保存成功!"); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,195 @@ | |||||
@{ | |||||
ViewBag.Title = "工资条"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">姓名</div> | |||||
<input id="SalaryName" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">岗位工资</div> | |||||
<input id="PostSalary" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">薪级工资</div> | |||||
<input id="PayWages" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">提高百分之十</div> | |||||
<input id="UpTenpercent" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">校内补贴</div> | |||||
<input id="SchoolSub" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">临时性补贴</div> | |||||
<input id="TemporarySub" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">职级工资</div> | |||||
<input id="RankWage" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">级差补贴</div> | |||||
<input id="DifferentialSub" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">绩效工资</div> | |||||
<input id="MeritPay" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">绩效工资减少额</div> | |||||
<input id="MeritPayLess" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">月一次性发放绩效</div> | |||||
<input id="MonthlyoneMerit" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">倾斜</div> | |||||
<input id="Tilt" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">课时费</div> | |||||
<input id="Classfees" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">超课时</div> | |||||
<input id="SuperClass" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">培训课酬</div> | |||||
<input id="TrainingDollars" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">奖金</div> | |||||
<input id="Bonus" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">婴补</div> | |||||
<input id="BabySubsidies" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">班主任</div> | |||||
<input id="ClassTeacher" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">骨干津贴</div> | |||||
<input id="KeyBenefits" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">职务补</div> | |||||
<input id="PositionFill" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">加班费</div> | |||||
<input id="OvertimePay" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">考务费</div> | |||||
<input id="ExaminationFee" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">安全绩效</div> | |||||
<input id="SecurityPay" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">医药费</div> | |||||
<input id="MedicalBills" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">防暑降温</div> | |||||
<input id="CoolingPurposes" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">房补</div> | |||||
<input id="HousSub" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">物业补贴</div> | |||||
<input id="PropertySub" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">采暖补贴</div> | |||||
<input id="HeatingSub" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">综合补助</div> | |||||
<input id="ComprehensiveSub" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">综治奖</div> | |||||
<input id="ControlSub" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">补发</div> | |||||
<input id="Replacement" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">应计合法</div> | |||||
<input id="SendSum" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">失保</div> | |||||
<input id="LossInsurance" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">养保</div> | |||||
<input id="Bartender" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">职业年金</div> | |||||
<input id="OcPension" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">房积金</div> | |||||
<input id="HousFund" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">医保</div> | |||||
<input id="HealthCare" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">房租</div> | |||||
<input id="TheRent" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">网费</div> | |||||
<input id="InternetFee" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">考核扣款</div> | |||||
<input id="AssDeductions" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">其他代扣</div> | |||||
<input id="OtherDeductions" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">代扣个税</div> | |||||
<input id="WithBuckletax" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">扣款合计</div> | |||||
<input id="DeductionsSum" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">纳税收入</div> | |||||
<input id="TaxRevenue" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">免税收入</div> | |||||
<input id="TaxIncome" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">实发合计</div> | |||||
<input id="NetCombined" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" > | |||||
<div class="lr-form-item-title">发放月份</div> | |||||
<input id="IssueMonth" type="text" class="form-control" /> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/工资项目/Form.js") |
@@ -0,0 +1,50 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-04-20 16:52 | |||||
* 描 述:工资条 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page = { | |||||
init: function () { | |||||
$('.lr-form-wrap').lrscroll(); | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/工资项目/GetFormData?keyValue=' + keyValue, function (data) { | |||||
for (var id in data) { | |||||
if (!!data[id].length && data[id].length > 0) { | |||||
$('#' + id ).jfGridSet('refreshdata', data[id]); | |||||
} | |||||
else { | |||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
}; | |||||
// 保存数据 | |||||
acceptClick = function (callBack) { | |||||
if (!$('body').lrValidform()) { | |||||
return false; | |||||
} | |||||
var postData = { | |||||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||||
}; | |||||
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/工资项目/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,27 @@ | |||||
@{ | |||||
ViewBag.Title = "工资条"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div class="lr-layout " > | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||||
<div class="lr-layout-tool"> | |||||
<div class="lr-layout-tool-left"> | |||||
</div> | |||||
<div class="lr-layout-tool-right"> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||||
</div> | |||||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/工资项目/Index.js") |
@@ -0,0 +1,134 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-04-20 16:52 | |||||
* 描 述:工资条 | |||||
*/ | |||||
var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page = { | |||||
init: function () { | |||||
page.initGird(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 新增 | |||||
$('#lr_add').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '新增', | |||||
url: top.$.rootUrl + '/PersonnelManagement/工资项目/Form', | |||||
width: 600, | |||||
height: 400, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
}); | |||||
// 编辑 | |||||
$('#lr_edit').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('dm'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '编辑', | |||||
url: top.$.rootUrl + '/PersonnelManagement/工资项目/Form?keyValue=' + keyValue, | |||||
width: 600, | |||||
height: 400, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 删除 | |||||
$('#lr_delete').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('dm'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/工资项目/DeleteForm', { keyValue: keyValue}, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 打印 | |||||
$('#lr_print').on('click', function () { | |||||
$('#gridtable').jqprintTable(); | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
url: top.$.rootUrl + '/PersonnelManagement/工资项目/GetPageList', | |||||
headData: [ | |||||
{ label: "姓名", name: "SalaryName", width: 100, align: "left"}, | |||||
{ label: "岗位工资", name: "PostSalary", width: 100, align: "left"}, | |||||
{ label: "薪级工资", name: "PayWages", width: 100, align: "left"}, | |||||
{ label: "提高百分之十", name: "UpTenpercent", width: 100, align: "left"}, | |||||
{ label: "校内补贴", name: "SchoolSub", width: 100, align: "left"}, | |||||
{ label: "临时性补贴", name: "TemporarySub", width: 100, align: "left"}, | |||||
{ label: "职级工资", name: "RankWage", width: 100, align: "left"}, | |||||
{ label: "级差补贴", name: "DifferentialSub", width: 100, align: "left"}, | |||||
{ label: "绩效工资", name: "MeritPay", width: 100, align: "left"}, | |||||
{ label: "绩效工资减少额", name: "MeritPayLess", width: 100, align: "left"}, | |||||
{ label: "月一次性发放绩效", name: "MonthlyoneMerit", width: 100, align: "left"}, | |||||
{ label: "倾斜", name: "Tilt", width: 100, align: "left"}, | |||||
{ label: "课时费", name: "Classfees", width: 100, align: "left"}, | |||||
{ label: "超课时", name: "SuperClass", width: 100, align: "left"}, | |||||
{ label: "培训课酬", name: "TrainingDollars", width: 100, align: "left"}, | |||||
{ label: "奖金", name: "Bonus", width: 100, align: "left"}, | |||||
{ label: "婴补", name: "BabySubsidies", width: 100, align: "left"}, | |||||
{ label: "班主任", name: "ClassTeacher", width: 100, align: "left"}, | |||||
{ label: "骨干津贴", name: "KeyBenefits", width: 100, align: "left"}, | |||||
{ label: "职务补", name: "PositionFill", width: 100, align: "left"}, | |||||
{ label: "加班费", name: "OvertimePay", width: 100, align: "left"}, | |||||
{ label: "考务费", name: "ExaminationFee", width: 100, align: "left"}, | |||||
{ label: "安全绩效", name: "SecurityPay", width: 100, align: "left"}, | |||||
{ label: "医药费", name: "MedicalBills", width: 100, align: "left"}, | |||||
{ label: "防暑降温", name: "CoolingPurposes", width: 100, align: "left"}, | |||||
{ label: "房补", name: "HousSub", width: 100, align: "left"}, | |||||
{ label: "物业补贴", name: "PropertySub", width: 100, align: "left"}, | |||||
{ label: "采暖补贴", name: "HeatingSub", width: 100, align: "left"}, | |||||
{ label: "综合补助", name: "ComprehensiveSub", width: 100, align: "left"}, | |||||
{ label: "综治奖", name: "ControlSub", width: 100, align: "left"}, | |||||
{ label: "补发", name: "Replacement", width: 100, align: "left"}, | |||||
{ label: "应计合法", name: "SendSum", width: 100, align: "left"}, | |||||
{ label: "失保", name: "LossInsurance", width: 100, align: "left"}, | |||||
{ label: "养保", name: "Bartender", width: 100, align: "left"}, | |||||
{ label: "职业年金", name: "OcPension", width: 100, align: "left"}, | |||||
{ label: "房积金", name: "HousFund", width: 100, align: "left"}, | |||||
{ label: "医保", name: "HealthCare", width: 100, align: "left"}, | |||||
{ label: "房租", name: "TheRent", width: 100, align: "left"}, | |||||
{ label: "网费", name: "InternetFee", width: 100, align: "left"}, | |||||
{ label: "考核扣款", name: "AssDeductions", width: 100, align: "left"}, | |||||
{ label: "其他代扣", name: "OtherDeductions", width: 100, align: "left"}, | |||||
{ label: "代扣个税", name: "WithBuckletax", width: 100, align: "left"}, | |||||
{ label: "扣款合计", name: "DeductionsSum", width: 100, align: "left"}, | |||||
{ label: "纳税收入", name: "TaxRevenue", width: 100, align: "left"}, | |||||
{ label: "免税收入", name: "TaxIncome", width: 100, align: "left"}, | |||||
{ label: "实发合计", name: "NetCombined", width: 100, align: "left"}, | |||||
{ label: "发放月份", name: "IssueMonth", width: 100, align: "left"}, | |||||
], | |||||
mainId:'dm', | |||||
isPage: true | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
$('#gridtable').jfGridSet('reload'); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -793,6 +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" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | <Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | ||||
@@ -6131,6 +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" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Folder Include="Areas\LR_Desktop\Models\" /> | <Folder Include="Areas\LR_Desktop\Models\" /> | ||||
@@ -4,7 +4,9 @@ | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<script src="~/Content/echarts/echarts.min.js"></script> | <script src="~/Content/echarts/echarts.min.js"></script> | ||||
<head> | |||||
<meta http-equiv="refresh" content="1200"/> | |||||
</head> | |||||
@Html.AppendCssFile("/Views/Home/AdminDesktop/Index.css") | @Html.AppendCssFile("/Views/Home/AdminDesktop/Index.css") | ||||
<style> | <style> | ||||
.lr-msg-line > a { | .lr-msg-line > a { | ||||
@@ -302,5 +302,8 @@ $(function () { | |||||
e(g.target || []); | e(g.target || []); | ||||
a(g.chart || []) | a(g.chart || []) | ||||
} | } | ||||
}) | }) | ||||
}); | }); |
@@ -545,6 +545,7 @@ | |||||
<Compile Include="EducationalAdministration\StuLeaveManagementMap.cs" /> | <Compile Include="EducationalAdministration\StuLeaveManagementMap.cs" /> | ||||
<Compile Include="Permission\DepartmentReleasePermissionsMap.cs" /> | <Compile Include="Permission\DepartmentReleasePermissionsMap.cs" /> | ||||
<Compile Include="EducationalAdministration\EATalentTrainMap.cs" /> | <Compile Include="EducationalAdministration\EATalentTrainMap.cs" /> | ||||
<Compile Include="PersonnelManagement\EMP_PayrollMap.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | <ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | ||||
@@ -0,0 +1,29 @@ | |||||
using Learun.Application.TwoDevelopment.PersonnelManagement; | |||||
using System.Data.Entity.ModelConfiguration; | |||||
namespace Learun.Application.Mapping | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// </summary> | |||||
public class EMP_PayrollMap : EntityTypeConfiguration<EMP_PayrollEntity> | |||||
{ | |||||
public EMP_PayrollMap() | |||||
{ | |||||
#region 表、主键 | |||||
//表 | |||||
this.ToTable("EMP_PAYROLL"); | |||||
//主键 | |||||
this.HasKey(t => t.dm); | |||||
#endregion | |||||
#region 配置关系 | |||||
#endregion | |||||
} | |||||
} | |||||
} | |||||
@@ -41,6 +41,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
} | } | ||||
public DataTable Execute(string sql) | |||||
{ | |||||
return sys_SendFileService.Execute(sql); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取页面显示列表数据 | /// 获取页面显示列表数据 | ||||
/// <summary> | /// <summary> | ||||
@@ -19,6 +19,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
[Column("SFILEID")] | [Column("SFILEID")] | ||||
public string SFileId { get; set; } | public string SFileId { get; set; } | ||||
[Column(name:"ReadFlag")] | |||||
public string ReadFlag { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// SenderId | /// SenderId | ||||
/// </summary> | /// </summary> | ||||
@@ -21,6 +21,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// <param name="queryJson">查询参数</param> | /// <param name="queryJson">查询参数</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
IEnumerable<Sys_SendFileEntity> GetPageList(Pagination pagination, string queryJson); | IEnumerable<Sys_SendFileEntity> GetPageList(Pagination pagination, string queryJson); | ||||
DataTable Execute(string sql); | |||||
IEnumerable<Sys_SendFileEntity> GetList(); | IEnumerable<Sys_SendFileEntity> GetList(); | ||||
/// <summary> | /// <summary> | ||||
/// 获取Sys_SendFile表实体数据 | /// 获取Sys_SendFile表实体数据 | ||||
@@ -68,6 +68,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
} | } | ||||
public DataTable Execute(string sql) | |||||
{ | |||||
return this.BaseRepository().FindTable(sql); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取页面显示列表数据 | /// 获取页面显示列表数据 | ||||
/// <summary> | /// <summary> | ||||
@@ -1601,6 +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" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | <ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | ||||
@@ -0,0 +1,279 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.ComponentModel.DataAnnotations.Schema; | |||||
namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// </summary> | |||||
public class EMP_PayrollEntity | |||||
{ | |||||
#region 实体成员 | |||||
/// <summary> | |||||
/// SalaryID | |||||
/// </summary> | |||||
[Column("SALARYID")] | |||||
public string SalaryID { get; set; } | |||||
/// <summary> | |||||
/// SalaryName | |||||
/// </summary> | |||||
[Column("SALARYNAME")] | |||||
public string SalaryName { get; set; } | |||||
/// <summary> | |||||
/// PostSalary | |||||
/// </summary> | |||||
[Column("POSTSALARY")] | |||||
public string PostSalary { get; set; } | |||||
/// <summary> | |||||
/// PayWages | |||||
/// </summary> | |||||
[Column("PAYWAGES")] | |||||
public string PayWages { get; set; } | |||||
/// <summary> | |||||
/// UpTenpercent | |||||
/// </summary> | |||||
[Column("UPTENPERCENT")] | |||||
public string UpTenpercent { get; set; } | |||||
/// <summary> | |||||
/// SchoolSub | |||||
/// </summary> | |||||
[Column("SCHOOLSUB")] | |||||
public string SchoolSub { get; set; } | |||||
/// <summary> | |||||
/// TemporarySub | |||||
/// </summary> | |||||
[Column("TEMPORARYSUB")] | |||||
public string TemporarySub { get; set; } | |||||
/// <summary> | |||||
/// RankWage | |||||
/// </summary> | |||||
[Column("RANKWAGE")] | |||||
public string RankWage { get; set; } | |||||
/// <summary> | |||||
/// DifferentialSub | |||||
/// </summary> | |||||
[Column("DIFFERENTIALSUB")] | |||||
public string DifferentialSub { get; set; } | |||||
/// <summary> | |||||
/// MeritPay | |||||
/// </summary> | |||||
[Column("MERITPAY")] | |||||
public string MeritPay { get; set; } | |||||
/// <summary> | |||||
/// MeritPayLess | |||||
/// </summary> | |||||
[Column("MERITPAYLESS")] | |||||
public string MeritPayLess { get; set; } | |||||
/// <summary> | |||||
/// MonthlyoneMerit | |||||
/// </summary> | |||||
[Column("MONTHLYONEMERIT")] | |||||
public string MonthlyoneMerit { get; set; } | |||||
/// <summary> | |||||
/// Tilt | |||||
/// </summary> | |||||
[Column("TILT")] | |||||
public string Tilt { get; set; } | |||||
/// <summary> | |||||
/// Classfees | |||||
/// </summary> | |||||
[Column("CLASSFEES")] | |||||
public string Classfees { get; set; } | |||||
/// <summary> | |||||
/// SuperClass | |||||
/// </summary> | |||||
[Column("SUPERCLASS")] | |||||
public string SuperClass { get; set; } | |||||
/// <summary> | |||||
/// TrainingDollars | |||||
/// </summary> | |||||
[Column("TRAININGDOLLARS")] | |||||
public string TrainingDollars { get; set; } | |||||
/// <summary> | |||||
/// Bonus | |||||
/// </summary> | |||||
[Column("BONUS")] | |||||
public string Bonus { get; set; } | |||||
/// <summary> | |||||
/// BabySubsidies | |||||
/// </summary> | |||||
[Column("BABYSUBSIDIES")] | |||||
public string BabySubsidies { get; set; } | |||||
/// <summary> | |||||
/// ClassTeacher | |||||
/// </summary> | |||||
[Column("CLASSTEACHER")] | |||||
public string ClassTeacher { get; set; } | |||||
/// <summary> | |||||
/// KeyBenefits | |||||
/// </summary> | |||||
[Column("KEYBENEFITS")] | |||||
public string KeyBenefits { get; set; } | |||||
/// <summary> | |||||
/// PositionFill | |||||
/// </summary> | |||||
[Column("POSITIONFILL")] | |||||
public string PositionFill { get; set; } | |||||
/// <summary> | |||||
/// OvertimePay | |||||
/// </summary> | |||||
[Column("OVERTIMEPAY")] | |||||
public string OvertimePay { get; set; } | |||||
/// <summary> | |||||
/// ExaminationFee | |||||
/// </summary> | |||||
[Column("EXAMINATIONFEE")] | |||||
public string ExaminationFee { get; set; } | |||||
/// <summary> | |||||
/// SecurityPay | |||||
/// </summary> | |||||
[Column("SECURITYPAY")] | |||||
public string SecurityPay { get; set; } | |||||
/// <summary> | |||||
/// MedicalBills | |||||
/// </summary> | |||||
[Column("MEDICALBILLS")] | |||||
public string MedicalBills { get; set; } | |||||
/// <summary> | |||||
/// CoolingPurposes | |||||
/// </summary> | |||||
[Column("COOLINGPURPOSES")] | |||||
public string CoolingPurposes { get; set; } | |||||
/// <summary> | |||||
/// HousSub | |||||
/// </summary> | |||||
[Column("HOUSSUB")] | |||||
public string HousSub { get; set; } | |||||
/// <summary> | |||||
/// PropertySub | |||||
/// </summary> | |||||
[Column("PROPERTYSUB")] | |||||
public string PropertySub { get; set; } | |||||
/// <summary> | |||||
/// HeatingSub | |||||
/// </summary> | |||||
[Column("HEATINGSUB")] | |||||
public string HeatingSub { get; set; } | |||||
/// <summary> | |||||
/// ComprehensiveSub | |||||
/// </summary> | |||||
[Column("COMPREHENSIVESUB")] | |||||
public string ComprehensiveSub { get; set; } | |||||
/// <summary> | |||||
/// ControlSub | |||||
/// </summary> | |||||
[Column("CONTROLSUB")] | |||||
public string ControlSub { get; set; } | |||||
/// <summary> | |||||
/// Replacement | |||||
/// </summary> | |||||
[Column("REPLACEMENT")] | |||||
public string Replacement { get; set; } | |||||
/// <summary> | |||||
/// SendSum | |||||
/// </summary> | |||||
[Column("SENDSUM")] | |||||
public string SendSum { get; set; } | |||||
/// <summary> | |||||
/// LossInsurance | |||||
/// </summary> | |||||
[Column("LOSSINSURANCE")] | |||||
public string LossInsurance { get; set; } | |||||
/// <summary> | |||||
/// Bartender | |||||
/// </summary> | |||||
[Column("BARTENDER")] | |||||
public string Bartender { get; set; } | |||||
/// <summary> | |||||
/// OcPension | |||||
/// </summary> | |||||
[Column("OCPENSION")] | |||||
public string OcPension { get; set; } | |||||
/// <summary> | |||||
/// HousFund | |||||
/// </summary> | |||||
[Column("HOUSFUND")] | |||||
public string HousFund { get; set; } | |||||
/// <summary> | |||||
/// HealthCare | |||||
/// </summary> | |||||
[Column("HEALTHCARE")] | |||||
public string HealthCare { get; set; } | |||||
/// <summary> | |||||
/// TheRent | |||||
/// </summary> | |||||
[Column("THERENT")] | |||||
public string TheRent { get; set; } | |||||
/// <summary> | |||||
/// InternetFee | |||||
/// </summary> | |||||
[Column("INTERNETFEE")] | |||||
public string InternetFee { get; set; } | |||||
/// <summary> | |||||
/// AssDeductions | |||||
/// </summary> | |||||
[Column("ASSDEDUCTIONS")] | |||||
public string AssDeductions { get; set; } | |||||
/// <summary> | |||||
/// OtherDeductions | |||||
/// </summary> | |||||
[Column("OTHERDEDUCTIONS")] | |||||
public string OtherDeductions { get; set; } | |||||
/// <summary> | |||||
/// WithBuckletax | |||||
/// </summary> | |||||
[Column("WITHBUCKLETAX")] | |||||
public string WithBuckletax { get; set; } | |||||
/// <summary> | |||||
/// DeductionsSum | |||||
/// </summary> | |||||
[Column("DEDUCTIONSSUM")] | |||||
public string DeductionsSum { get; set; } | |||||
/// <summary> | |||||
/// TaxRevenue | |||||
/// </summary> | |||||
[Column("TAXREVENUE")] | |||||
public string TaxRevenue { get; set; } | |||||
/// <summary> | |||||
/// TaxIncome | |||||
/// </summary> | |||||
[Column("TAXINCOME")] | |||||
public string TaxIncome { get; set; } | |||||
/// <summary> | |||||
/// NetCombined | |||||
/// </summary> | |||||
[Column("NETCOMBINED")] | |||||
public string NetCombined { get; set; } | |||||
/// <summary> | |||||
/// IssueMonth | |||||
/// </summary> | |||||
[Column("ISSUEMONTH")] | |||||
public string IssueMonth { get; set; } | |||||
#endregion | |||||
#region 扩展操作 | |||||
/// <summary> | |||||
/// 新增调用 | |||||
/// </summary> | |||||
public void Create() | |||||
{ | |||||
} | |||||
/// <summary> | |||||
/// 编辑调用 | |||||
/// </summary> | |||||
/// <param name="keyValue"></param> | |||||
public void Modify( keyValue) | |||||
{ | |||||
this. = keyValue; | |||||
} | |||||
#endregion | |||||
#region 扩展字段 | |||||
#endregion | |||||
} | |||||
} | |||||
@@ -0,0 +1,125 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.Data; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// </summary> | |||||
public class 工资项目BLL : 工资项目IBLL | |||||
{ | |||||
private 工资项目Service 工资项目Service = new 工资项目Service(); | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<EMP_PayrollEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return 工资项目Service.GetPageList(pagination, queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取EMP_Payroll表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public EMP_PayrollEntity GetEMP_PayrollEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return 工资项目Service.GetEMP_PayrollEntity(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
public void DeleteEntity( keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
工资项目Service.DeleteEntity(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="entity">实体</param> | |||||
/// <returns></returns> | |||||
public void SaveEntity( keyValue, EMP_PayrollEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
工资项目Service.SaveEntity(keyValue, entity); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,48 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// </summary> | |||||
public interface 工资项目IBLL | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
IEnumerable<EMP_PayrollEntity> GetPageList(Pagination pagination, string queryJson); | |||||
/// <summary> | |||||
/// 获取EMP_Payroll表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
EMP_PayrollEntity GetEMP_PayrollEntity(string keyValue); | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
void DeleteEntity( keyValue); | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="entity">实体</param> | |||||
void SaveEntity( keyValue, EMP_PayrollEntity entity); | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,191 @@ | |||||
using Dapper; | |||||
using Learun.DataBase.Repository; | |||||
using Learun.Util; | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Data; | |||||
using System.Text; | |||||
namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-04-20 16:52 | |||||
/// 描 述:工资条 | |||||
/// </summary> | |||||
public class 工资项目Service : RepositoryFactory | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">查询参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<EMP_PayrollEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT "); | |||||
strSql.Append(@" | |||||
t.dm, | |||||
t.SalaryName, | |||||
t.PostSalary, | |||||
t.PayWages, | |||||
t.UpTenpercent, | |||||
t.SchoolSub, | |||||
t.TemporarySub, | |||||
t.RankWage, | |||||
t.DifferentialSub, | |||||
t.MeritPay, | |||||
t.MeritPayLess, | |||||
t.MonthlyoneMerit, | |||||
t.Tilt, | |||||
t.Classfees, | |||||
t.SuperClass, | |||||
t.TrainingDollars, | |||||
t.Bonus, | |||||
t.BabySubsidies, | |||||
t.ClassTeacher, | |||||
t.KeyBenefits, | |||||
t.PositionFill, | |||||
t.OvertimePay, | |||||
t.ExaminationFee, | |||||
t.SecurityPay, | |||||
t.MedicalBills, | |||||
t.CoolingPurposes, | |||||
t.HousSub, | |||||
t.PropertySub, | |||||
t.HeatingSub, | |||||
t.ComprehensiveSub, | |||||
t.ControlSub, | |||||
t.Replacement, | |||||
t.SendSum, | |||||
t.LossInsurance, | |||||
t.Bartender, | |||||
t.OcPension, | |||||
t.HousFund, | |||||
t.HealthCare, | |||||
t.TheRent, | |||||
t.InternetFee, | |||||
t.AssDeductions, | |||||
t.OtherDeductions, | |||||
t.WithBuckletax, | |||||
t.DeductionsSum, | |||||
t.TaxRevenue, | |||||
t.TaxIncome, | |||||
t.NetCombined, | |||||
t.IssueMonth | |||||
"); | |||||
strSql.Append(" FROM EMP_Payroll t "); | |||||
strSql.Append(" WHERE 1=1 "); | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
return this.BaseRepository("CollegeMIS").FindList<EMP_PayrollEntity>(strSql.ToString(),dp, pagination); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取EMP_Payroll表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public EMP_PayrollEntity GetEMP_PayrollEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<EMP_PayrollEntity>(keyValue.ToInt()); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
public void DeleteEntity( keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
this.BaseRepository("CollegeMIS").Delete<EMP_PayrollEntity>(t=>t.dm == keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 保存实体数据(新增、修改) | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <param name="entity">实体</param> | |||||
public void SaveEntity( keyValue, EMP_PayrollEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
if (keyValue != null) | |||||
{ | |||||
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 | |||||
} | |||||
} |