Преглед изворни кода

Merge branch '金隅分支' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 金隅分支

金隅分支
zhangli пре 3 година
родитељ
комит
76d12935a1
9 измењених фајлова са 147 додато и 190 уклоњено
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollController.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_Payroll/Form.cshtml
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_Payroll/Form.js
  4. +36
    -40
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_Payroll/Index.cshtml
  5. +73
    -85
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_Payroll/Index.js
  6. +6
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_Payroll/EMP_PayrollEntity.cs
  7. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_Payroll/Emp_PayrollBLL.cs
  8. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_Payroll/Emp_PayrollIBLL.cs
  9. +26
    -56
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_Payroll/Emp_PayrollService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/Emp_PayrollController.cs Прегледај датотеку

@@ -11,7 +11,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-04-21 15:42
/// 描 述:考勤记录
/// 描 述:工资条
/// </summary>
public class Emp_PayrollController : MvcControllerBase
{


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_Payroll/Form.cshtml Прегледај датотеку

@@ -1,5 +1,5 @@
@{
ViewBag.Title = "考勤记录";
ViewBag.Title = "工资条";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
@@ -197,7 +197,7 @@
</div>
<div class="col-xs-6 lr-form-item" data-table="EMP_Payroll" >
<div class="lr-form-item-title">发放年份</div>
<input id="IssueYears" type="text" class="form-control" />
<input id="IssueYear" type="text" class="form-control" />
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_Payroll/Form.js")

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_Payroll/Form.js Прегледај датотеку

@@ -2,7 +2,7 @@
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-04-21 15:42
* 描 述:考勤记录
* 描 述:工资条
*/
var acceptClick;
var keyValue = request('keyValue');


+ 36
- 40
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_Payroll/Index.cshtml Прегледај датотеку

@@ -1,55 +1,51 @@
@{
ViewBag.Title = "考勤记录";
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 class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">年度</div>
<div id="IuuseYears"></div>
</div>
@*<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">学期</div>
<div id="MPSemester"></div>
</div>*@
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">月份</div>
<div id="IssueMonth"></div>
</div>
@*<div class="col-xs-12 lr-form-item">
<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 class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">年份</div>
<div id="IssueYear"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">月份</div>
<div id="IssueMonth"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">姓名</div>
<input id="SalaryName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">部门</div>
<div id="MPDepartment"></div>
</div>*@
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">接收人</div>
<div id="SalaryName"></div>
<div id="Department"></div>
</div>
</div>
</div>
</div>
</div>
</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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
<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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>


@Html.AppendJsFile("/Areas/PersonnelManagement/Views/Emp_Payroll/Index.js")

+ 73
- 85
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/Emp_Payroll/Index.js Прегледај датотеку

@@ -2,7 +2,7 @@
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-04-21 15:42
* 描 述:考勤记录
* 描 述:工资条
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
@@ -14,39 +14,27 @@ var bootstrap = function ($, learun) {
page.bind();
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
//学年
$('#IuuseYears').lrselect({
placeholder: "请选择年度",
allowSearch: true,
url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/IuuseYears',
value: 'value',
text: 'text'
});
//学期
//$('#MPSemester').lrselect({
// placeholder: "请选择学期",
// allowSearch: true,
// url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterDataTwo',
// value: 'value',
// text: 'text'
//});
$('#IssueMonth').lrDataItemSelect({ code: 'IssueMonth' });

//$('#MPDepartment').lrselect({
// type: 'tree',
// // 展开最大高度
// maxHeight: 200,
// // 是否允许搜索
// allowSearch: true,
// // 访问数据接口地址
// url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
$('#SalaryName')
.lrselect({ type: 'default', allowSearch: true, value: 'SalaryID', text: 'SalaryName' })
// 刷新
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
//年份
$('#IssueYear').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear',
value: 'value',
text: 'text'
});
$('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' });
$('#Department').lrselect({
type: 'tree',
// 展开最大高度
maxHeight: 200,
// 是否允许搜索
allowSearch: true,
// 访问数据接口地址
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
@@ -85,7 +73,7 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -102,64 +90,64 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/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: "OnDutyfee", 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: "SalaryName", width: 100, align: "left" },
{ label: "岗位工资", name: "PostSalary", width: 100, align: "left", statistics: true },
{ label: "薪级工资", name: "PayWages", width: 100, align: "left", statistics: true },
{ label: "提高百分之十", name: "UpTenpercent", width: 100, align: "left", statistics: true },
{ label: "校内补贴", name: "SchoolSub", width: 100, align: "left", statistics: true },
{ label: "临时性补贴", name: "TemporarySub", width: 100, align: "left", statistics: true },
{ label: "职级工资", name: "RankWage", width: 100, align: "left", statistics: true },
{ label: "级差补贴", name: "DifferentialSub", width: 100, align: "left", statistics: true },
{ label: "绩效工资", name: "MeritPay", width: 100, align: "left", statistics: true },
{ label: "绩效工资减少额", name: "MeritPayLess", width: 100, align: "left", statistics: true },
{ label: "月发一次性绩效", name: "MonthlyoneMerit", width: 100, align: "left", statistics: true },
{ label: "倾斜", name: "Tilt", width: 100, align: "left", statistics: true },
{ label: "课时费", name: "Classfees", width: 100, align: "left", statistics: true },
{ label: "超课时", name: "SuperClass", width: 100, align: "left", statistics: true },
{ label: "培训课酬", name: "TrainingDollars", width: 100, align: "left", statistics: true },
{ label: "奖金", name: "Bonus", width: 100, align: "left", statistics: true },
{ label: "婴补", name: "BabySubsidies", width: 100, align: "left", statistics: true },
{ label: "班主任", name: "ClassTeacher", width: 100, align: "left", statistics: true },
{ label: "骨干津贴", name: "KeyBenefits", width: 100, align: "left", statistics: true },
{ label: "职务补", name: "PositionFill", width: 100, align: "left", statistics: true },
{ label: "加班费", name: "OvertimePay", width: 100, align: "left", statistics: true },
{ label: "值班费", name: "OnDutyfee", width: 100, align: "left", statistics: true },
{ label: "考务费", name: "ExaminationFee", width: 100, align: "left", statistics: true },
{ label: "安全绩效", name: "SecurityPay", width: 100, align: "left", statistics: true },
{ label: "医药费", name: "MedicalBills", width: 100, align: "left", statistics: true },
{ label: "防暑降温", name: "CoolingPurposes", width: 100, align: "left", statistics: true },
{ label: "房补", name: "HousSub", width: 100, align: "left", statistics: true },
{ label: "物业补贴", name: "PropertySub", width: 100, align: "left", statistics: true },
{ label: "采暖补贴", name: "HeatingSub", width: 100, align: "left", statistics: true },
{ label: "综合补助", name: "ComprehensiveSub", width: 100, align: "left", statistics: true },
{ label: "综治奖", name: "ControlSub", width: 100, align: "left", statistics: true },
{ label: "补发", name: "Replacement", width: 100, align: "left", statistics: true },
{ label: "应发合计", name: "SendSum", width: 100, align: "left", statistics: true },
{ label: "失保", name: "LossInsurance", width: 100, align: "left", statistics: true },
{ label: "养保", name: "Bartender", width: 100, align: "left", statistics: true },
{ label: "职业年金", name: "OcPension", width: 100, align: "left", statistics: true },
{ label: "房积金", name: "HousFund", width: 100, align: "left", statistics: true },
{ label: "医保", name: "HealthCare", width: 100, align: "left", statistics: true },
{ label: "房租", name: "TheRent", width: 100, align: "left", statistics: true },
{ label: "网费", name: "InternetFee", width: 100, align: "left", statistics: true },
{ label: "考核扣款", name: "AssDeductions", width: 100, align: "left", statistics: true },
{ label: "其他扣款", name: "OtherDeductions", width: 100, align: "left", statistics: true },
{ label: "代扣个税", name: "WithBuckletax", width: 100, align: "left", statistics: true },
{ label: "扣款合计", name: "DeductionsSum", width: 100, align: "left", statistics: true },
{ label: "纳税收入", name: "TaxRevenue", width: 100, align: "left", statistics: true },
{ label: "免税收入", name: "TaxIncome", width: 100, align: "left", statistics: true },
{ label: "应发合计", name: "NetCombined", width: 100, align: "left", statistics: true },
{ label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
{ label: "发放年份", name: "IssueYears", width: 100, align: "left" },
{ label: "发放年份", name: "IssueYear", width: 100, align: "left" },
],
mainId:'SalaryID',
mainId: 'SalaryID',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {


+ 6
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_Payroll/EMP_PayrollEntity.cs Прегледај датотеку

@@ -10,7 +10,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-04-21 15:42
/// 描 述:考勤记录
/// 描 述:工资条
/// </summary>
public class EMP_PayrollEntity
{
@@ -260,8 +260,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// </summary>
[Column("ONDUTYFEE")]
public string OnDutyfee { get; set; }
[Column(name:"ISSUEYEARS")]
public string IssueYears { get; set; }
/// <summary>
/// IssueYear
/// </summary>
[Column("ISSUEYEAR")]
public string IssueYear { get; set; }

#endregion



+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_Payroll/Emp_PayrollBLL.cs Прегледај датотеку

@@ -10,7 +10,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-04-21 15:42
/// 描 述:考勤记录
/// 描 述:工资条
/// </summary>
public class Emp_PayrollBLL : Emp_PayrollIBLL
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_Payroll/Emp_PayrollIBLL.cs Прегледај датотеку

@@ -9,7 +9,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-04-21 15:42
/// 描 述:考勤记录
/// 描 述:工资条
/// </summary>
public interface Emp_PayrollIBLL
{


+ 26
- 56
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/Emp_Payroll/Emp_PayrollService.cs Прегледај датотеку

@@ -13,7 +13,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-04-21 15:42
/// 描 述:考勤记录
/// 描 述:工资条
/// </summary>
public class Emp_PayrollService : RepositoryFactory
{
@@ -30,64 +30,34 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.SalaryID,
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.OnDutyfee,
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("SELECT t.* ");
strSql.Append(" FROM EMP_Payroll t");
strSql.Append(" left join EmpInfo e on t.SalaryID=e.SalaryNumber ");
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);
if (!queryParam["IssueYear"].IsEmpty())
{
dp.Add("IssueYear", queryParam["IssueYear"].ToString(), DbType.String);
strSql.Append(" AND t.IssueYear = @IssueYear ");
}
if (!queryParam["IssueMonth"].IsEmpty())
{
dp.Add("IssueMonth", queryParam["IssueMonth"].ToString(), DbType.String);
strSql.Append(" AND t.IssueMonth = @IssueMonth ");
}
if (!queryParam["SalaryName"].IsEmpty())
{
dp.Add("SalaryName", "%" + queryParam["SalaryName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.SalaryName Like @SalaryName ");
}
if (!queryParam["Department"].IsEmpty())
{
dp.Add("Department", queryParam["Department"].ToString(), DbType.String);
strSql.Append(" AND e.F_DepartmentId = @Department ");
}
return this.BaseRepository("CollegeMIS").FindList<EMP_PayrollEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
@@ -138,7 +108,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
try
{
this.BaseRepository("CollegeMIS").Delete<EMP_PayrollEntity>(t=>t.SalaryID == keyValue);
this.BaseRepository("CollegeMIS").Delete<EMP_PayrollEntity>(t => t.SalaryID == keyValue);
}
catch (Exception ex)
{


Loading…
Откажи
Сачувај