Ver a proveniência

【修改】一次性工资管理;

金隅分支
dyy há 3 anos
ascendente
cometimento
67d38d8bf0
5 ficheiros alterados com 32 adições e 24 eliminações
  1. +2
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs
  2. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml
  3. +5
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js
  4. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js
  5. +15
    -10
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs

+ 2
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollOnceController.cs Ver ficheiro

@@ -105,8 +105,8 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
IssueYear = x.Key.IssueYear,
IssueMonth = x.Key.IssueMonth,
SpringFestival = x.Select(y => y.SpringFestival.ToDecimal()).Sum().ToString(),
MidAutumnFestival = x.Select(y => y.MidAutumnFestival.ToDecimal()).Sum().ToString()
TotalPayAmount = x.Select(y => y.TotalPayAmount.ToDecimal()).Sum().ToString(),
FinalPayAmount = x.Select(y => y.FinalPayAmount.ToDecimal()).Sum().ToString()
}).OrderByDescending(x => x.IssueYear).ThenByDescending(x => x.IssueMonth);

return Success(datagroup);
@@ -140,9 +140,6 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
EMP_PayrollOnceEntity entity = strEntity.ToObject<EMP_PayrollOnceEntity>();
emp_PayrollOnceIBLL.SaveEntity(keyValue, entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion


+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.cshtml Ver ficheiro

@@ -16,12 +16,16 @@
<input id="IssueYear" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="EMP_PayrollOnce">
<div class="lr-form-item-title">春节福利</div>
<input id="SpringFestival" type="text" class="form-control" />
<div class="lr-form-item-title">应发金额</div>
<input id="TotalPayAmount" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="EMP_PayrollOnce">
<div class="lr-form-item-title">中秋节福利</div>
<input id="MidAutumnFestival" type="text" class="form-control" />
<div class="lr-form-item-title">实发金额</div>
<input id="FinalPayAmount" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="EMP_PayrollOnce">
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:50px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Form.js")

+ 5
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/Index.js Ver ficheiro

@@ -91,13 +91,15 @@ var bootstrap = function ($, learun) {
url: top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/GetPageList',
headData: [
{ label: "姓名", name: "SalaryName", width: 100, align: "left" },
{ label: "春节福利", name: "SpringFestival", width: 100, align: "left", statistics: true },
{ label: "中秋节福利", name: "MidAutumnFestival", width: 100, align: "left", statistics: true },
{ label: "应发金额", name: "TotalPayAmount", width: 100, align: "left", statistics: true },
{ label: "实发金额", name: "FinalPayAmount", width: 100, align: "left", statistics: true },
{ label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
{ label: "发放年份", name: "IssueYear", width: 100, align: "left" },
{ label: "备注", name: "Remark", width: 100, align: "left" },
],
mainId: 'SalaryID',
isPage: true
isPage: true,
sidx: 'IssueYear desc,IssueMonth desc'
});
page.search();
},


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_PayrollOnce/StatisticIndex.js Ver ficheiro

@@ -47,8 +47,8 @@ var bootstrap = function ($, learun) {
headData: [
{ label: "发放年份", name: "IssueYear", width: 100, align: "left" },
{ label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
{ label: "春节福利", name: "SpringFestival", width: 100, align: "left", statistics: true },
{ label: "中秋节福利", name: "MidAutumnFestival", width: 100, align: "left", statistics: true },
{ label: "应发金额", name: "TotalPayAmount", width: 100, align: "left", statistics: true },
{ label: "实发金额", name: "FinalPayAmount", width: 100, align: "left", statistics: true },
],
mainId: 'SalaryID',
isPage: false


+ 15
- 10
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_PayrollOnce/EMP_PayrollOnceEntity.cs Ver ficheiro

@@ -16,35 +16,40 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
#region 实体成员
/// <summary>
/// SalaryID
/// 工资编号
/// </summary>
[Column("SALARYID")]
public string SalaryID { get; set; }
/// <summary>
/// SalaryName
/// 姓名
/// </summary>
[Column("SALARYNAME")]
public string SalaryName { get; set; }
/// <summary>
/// IssueMonth
/// 发放月份
/// </summary>
[Column("ISSUEMONTH")]
public string IssueMonth { get; set; }
/// <summary>
/// IssueYear
/// 发放年份
/// </summary>
[Column("ISSUEYEAR")]
public string IssueYear { get; set; }
/// <summary>
/// SpringFestival
/// 应发金额
/// </summary>
[Column("SPRINGFESTIVAL")]
public string SpringFestival { get; set; }
[Column("TOTALPAYAMOUNT")]
public string TotalPayAmount { get; set; }
/// <summary>
/// MidAutumnFestival
/// 实发金额
/// </summary>
[Column("MIDAUTUMNFESTIVAL")]
public string MidAutumnFestival { get; set; }
[Column("FINALPAYAMOUNT")]
public string FinalPayAmount { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column("REMARK")]
public string Remark { get; set; }

#endregion



Carregando…
Cancelar
Guardar