ソースを参照

工资条打印

新疆警官学校中职
ndbs 1年前
コミット
fd84f07793
4個のファイルの変更337行の追加0行の削除
  1. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WageScheduleController.cs
  2. +57
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexPrint.cshtml
  3. +269
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexPrint.js
  4. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WageScheduleController.cs ファイルの表示

@@ -30,6 +30,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
return View();
}
/// <summary>
/// 主页面
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexPrint()
{
return View();
}
/// <summary>
/// 我的工资条
/// </summary>
/// <returns></returns>


+ 57
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexPrint.cshtml ファイルの表示

@@ -0,0 +1,57 @@
@{
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-6 lr-form-item">
<div class="lr-form-item-title">年份</div>
<div id="IssueYear"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">月份</div>
<div id="IssueMonth"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">人员类别</div>
<div id="PeopleType"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">岗位等级</div>
<div id="PostType"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">薪级</div>
<div id="PayGrade"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">姓名</div>
<input id="EmpName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">银行卡号</div>
<input id="WageCardNo" type="text" class="form-control" />
</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">
</div>*@
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/WageSchedule/IndexPrint.js")

+ 269
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/IndexPrint.js ファイルの表示

@@ -0,0 +1,269 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-07 11:54
* 描 述:工资条
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
$('#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' });
$('#PeopleType').lrselect({
placeholder: "请选择人员类别",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/PeopleType',
value: 'PeopleType',
text: 'PeopleType'
});
$('#PostType').lrselect({
placeholder: "请选择岗位等级",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/PostType',
value: 'PostType',
text: 'PostType'
});
$('#PayGrade').lrselect({
placeholder: "请选择薪级",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/PayGrade',
value: 'PayGrade',
text: 'PayGrade'
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/Form',
width: 800,
height: 800,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
if (CheckMark.indexOf('1') != -1) {
learun.alert.warning("选中记录中包含已审核项目!");
return;
}
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/Form?keyValue=' + keyValue,
width: 800,
height: 800,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
if (learun.checkrow(keyValue)) {
if (CheckMark.indexOf('1') != -1) {
learun.alert.warning("选中记录中包含已审核项目!");
return;
}
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
//审核
$('#lr_check').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
if (CheckMark.indexOf('1') != -1) {
learun.alert.warning("选中记录中包含已审核项目!");
return;
}
learun.layerConfirm('是否确认审核该项?', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/CheckForm', { keyValue: keyValue, Status: '1' }, function () {
refreshGirdData();
});
}
});
}
});
//去审
$('#lr_uncheck').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark');
var CheckMarkArr = CheckMark.split(',');
if ($.inArray('0', CheckMarkArr) != -1 || $.inArray('', CheckMarkArr) != -1) {
learun.alert.warning("选中记录中包含未审核项目!");
return;
}
learun.layerConfirm('是否确认取消审核该项?', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/CheckForm', { keyValue: keyValue, Status: '2' }, function () {
refreshGirdData();
});
}
});
}
});
//审核全部
$('#lr_checkall').on('click', function () {
learun.layerConfirm('是否确认全部审核?', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/CheckForm', { keyValue: null, Status: '0' }, function () {
refreshGirdData();
});
}
});
});
///上传
$('#lr_import').on('click',
function () {
learun.layerForm({
id: 'form',
title: '导入',
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/ImportForm',
width: 600,
height: 400,
btn: null,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
},
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/GetPageList',
headData: [
{ label: '序号', name: 'No', width: 70, align: "left" },
{ label: '姓名', name: 'EmpName', width: 70, align: "left" },
{ label: '工资卡号', name: 'WageCardNo', width: 130, align: "left" },
{ label: '人员类别', name: 'PeopleType', width: 70, align: "left" },
{ label: '岗位等级', name: 'PostType', width: 70, align: "left" },
{ label: '薪级', name: 'PayGrade', width: 50, align: "left" },
{ label: '应发合计', name: 'TotalGrossPay', width: 70, align: "left", statistics: true },
//{
// label: '基本工资', name: '基本工资', width: 130, align: "center", statistics: true,
// children: [
{ label: '岗位工资', name: 'PostWage', width: 70, align: "left", statistics: true },
{ label: '薪级工资', name: 'PayGradeWage', width: 70, align: "left", statistics: true },
{ label: '百分之十', name: 'TenPercent', width: 70, align: "left", statistics: true },
//{ label: '小计', name: 'BasePay', width: 70, align: "left", statistics: true }
// ]
//},
//{
// label: '绩效工资', name: '绩效工资', width: 70, align: "center", statistics: true,
// children: [
{ label: '基础绩效', name: 'BasicsPerformance', width: 70, align: "left", statistics: true },
{ label: '奖励绩效', name: 'AwardPerformance', width: 70, align: "left", statistics: true },
// ]
//},
//{
// label: '单列绩效', name: '单列绩效', width: 70, align: "center", statistics: true,
// children: [
{ label: '基础绩效', name: 'SeparateBasicsPerformance', width: 70, align: "left", statistics: true },
{ label: '奖励绩效', name: 'SeparateAwardPerformance', width: 70, align: "left", statistics: true },
// ]
//},
//{
// label: '津贴补贴', name: '津贴补贴', width: 130, align: "center", statistics: true,
// children: [
{ label: '艰边津贴', name: 'RoughEdgeAllowance', width: 70, align: "left", statistics: true },
{ label: '民族津贴', name: 'NationAllowance', width: 70, align: "left", statistics: true },
{ label: '教龄补贴', name: 'TeachAllowance', width: 70, align: "left", statistics: true },
{ label: '特级教师津贴', name: 'SuperfineTeacherResearch', width: 80, align: "left", statistics: true },
// ]
//},
//{
//label: '改革性补贴', name: '改革性补贴', width: 70, align: "center", statistics: true,
//children: [
{ label: '交通补贴', name: 'Transportation', width: 70, align: "left", statistics: true },
{ label: '物业补贴', name: 'RealeState', width: 70, align: "left", statistics: true },
{ label: '工改保留补贴', name: 'WorkKeep', width: 90, align: "left", statistics: true },
// ]
//},
{ label: '女职工卫生费', name: 'GirlStaffSanitation', width: 90, align: "left", statistics: true },
{ label: '乡镇补贴', name: 'TownshipSubsidy', width: 130, align: "center", statistics: true },
{ label: '住房补贴', name: 'HousingAllowance', width: 80, align: "left", statistics: true },
{ label: '住房公积金', name: 'HousingFundAllowance', width: 80, align: "left", statistics: true },
{ label: '其他', name: 'OtherOne', width: 70, align: "left", statistics: true },
{ label: '代扣合计', name: 'DeductionsSubtotal', width: 70, align: "left", statistics: true },
//{
// label: '代扣代缴', name: '代扣代缴', width: 130, align: "center", statistics: true,
// children: [
{ label: '公积金', name: 'AccumulationFund', width: 70, align: "left", statistics: true },
{ label: '养老保险', name: 'EndowmentInsurance', width: 70, align: "left", statistics: true },
{ label: '职业年金', name: 'OccupationalAnnuities', width: 70, align: "left", statistics: true },
{ label: '医疗保险', name: 'MedicalInsurance', width: 70, align: "left", statistics: true },
{ label: '失业保险', name: 'UnemploymentInsurance', width: 70, align: "left", statistics: true },
{ label: '工会工费', name: 'LaborUnionWage', width: 70, align: "left", statistics: true },
{ label: '个人所得税', name: 'PersonalIncomeTax', width: 70, align: "left", statistics: true },
{ label: '其他', name: 'Other', width: 70, align: "left", statistics: true },
// ]
//},
//{ label: '财政直达', name: 'FiscalDirect', width: 70, align: "left", statistics: true },
//{ label: '银行代扣', name: 'BankWithholding', width: 70, align: "left", statistics: true },
{ label: '实发合计', name: 'NetCombined', width: 70, align: "left", statistics: true },
//{ label: '创建用户', name: 'CreateUser', width: 70, align: "left" },
//{ label: '创建时间', name: 'CreateTime', width: 130, align: "left" },
{ label: '发放月份', name: 'IssueMonth', width: 70, align: "left" },
{ label: '发放年份', name: 'IssueYear', width: 70, align: "left" },
{
label: "审核状态", name: "F_EnabledMark", width: 70, align: "center",
formatter: function (cellvalue) {
return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
}
},
],
mainId: 'Id',
isPage: true,
rows: 300,
sidx: 'IssueYear desc, IssueMonth desc, CreateTime desc ',
isMultiselect: true
});
page.search();
},
search: function (param) {
param = param || {};
param.Sqlparam = "";
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj ファイルの表示

@@ -1430,6 +1430,7 @@
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\ImportForm.css" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\ImportForm.js" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexMy.js" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexPrint.js" />
<Content Include="Areas\EvaluationTeach\Views\Eval_Main\AnswerIndex.js" />
<Content Include="Areas\EvaluationTeach\Views\Eval_Main\TeacherIndex2.js" />
<Content Include="Areas\EvaluationTeach\Views\Eval_Main\TeacherIndex.js" />
@@ -8023,6 +8024,7 @@
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexMy.cshtml" />
<Content Include="Content\excel\SalarySheetImport.xls" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\ImportForm.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexPrint.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />


読み込み中…
キャンセル
保存