@model HrSalaryDTO;
|
@using DTO;
|
@using zhengcaioa.Models;
|
@{
|
Layout = null;
|
|
List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
|
}
|
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="description" content="">
|
<meta name="author" content="ThemeBucket">
|
<link href="~/css/bootstrap.min.css" rel="stylesheet">
|
<link href="~/css/font-awesome.min.css" rel="stylesheet">
|
<link href="~/css/animate.min.css" rel="stylesheet">
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
|
<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
|
|
<!-- jqgrid-->
|
<script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
|
<script src="~/js/bootstrap.min.js"></script>
|
|
<!--容器-->
|
<script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
|
<script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
|
<script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
|
<script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
|
<script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
|
<script src="~/js/TUJS.js"></script>
|
|
<style type="text/css">
|
|
div.clearfix > label {
|
padding-top: 8px;
|
}
|
|
.col-md-1.control-label {
|
padding-right: 0px;
|
font-weight: 400;
|
}
|
</style>
|
|
|
</head>
|
|
<body class="gray-bg" style="overflow:auto">
|
<form id="fm" method="post">
|
<div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
|
<div class="row">
|
<div class="col-sm-6 col-md-6">
|
@*<div class="ibox float-e-margins"></div>*@
|
<div id="div_content" class="ibox-content" style="background-color:white;">
|
<div class="row">
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">员工姓名</label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" labtype="txt" addvisible="true" readonly="readonly" type="text" value="@Model.UserName">
|
<input type="hidden" name="Id" value="@Model.Id" />
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">工作部门</label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" labtype="txt" addvisible="true" readonly="readonly" type="text" value="@Model.DeptName">
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">奖金</label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" id="Jiangjin" name="Jiangjin" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jiangjin" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">补发工资</label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" id="Bufagongzi" name="Bufagongzi" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Bufagongzi" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">赔偿</label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" id="Peichang" name="Peichang" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Peichang" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="CheckNum(this);">
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">纠错</label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" id="Jiucuo" name="Jiucuo" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jiucuo" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="CheckNum(this);">
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">预发工资合计</label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" id="Yufagongziheji" name="Yufagongziheji" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Yufagongziheji" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="CheckNum(this);">
|
</div>
|
</div>
|
|
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-6 col-md-6">
|
<div class="panel panel-default" id="panelss" >
|
<div class="panel-heading">
|
申诉内容
|
</div>
|
<div class="panel-body">
|
<div class="row">
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">申诉理由<i class="red">*</i></label>
|
<div class="col-sm-9 col-md-9">
|
<textarea class="form-control bt" readonly="readonly" style="resize:none;overflow-y:hidden; height:150px;">@Model.reason</textarea>
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">争议金额<i class="red">*</i></label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" type="text" value="@Model.amount" readonly="readonly">
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-3 col-md-3 control-label">制度依据<i class="red">*</i></label>
|
<div class="col-sm-9 col-md-9">
|
<input class="form-control" labtype="txt" type="text" readonly="readonly" value="@Model.basis">
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
|
<div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“取消”">
|
<a class="btn btn-success" href="javascript:void(0)" onclick="_pageAutoClose();" style="margin-left:4px; border-radius:4px;">
|
<i class="glyphicon glyphicon-remove"></i> <span class="bold">取消</span>
|
</a>
|
<a class="btn btn-success Update" href="javascript:void(0)" onclick="saveCheck();" style="margin-left:4px; border-radius:4px;display:none;">
|
<i class="glyphicon glyphicon-ok"></i> <span class="bold">提交</span>
|
</a>
|
</div>
|
</div>
|
|
</form>
|
|
<script type="text/javascript">
|
$(function () {
|
var pl = '@Model.reason';
|
if (pl.length > 0) {
|
|
}
|
else {
|
$("#panelss").hide();
|
}
|
|
});
|
|
var hh = document.body.clientHeight - $("#top").height() * 2 - 75;
|
$("#div_content").height(hh);
|
|
toastr.options = {
|
"closeButton": true,
|
"debug": false,
|
"progressBar": true,
|
"positionClass": "toast-bottom-right",
|
"onclick": null,
|
"showDuration": "300",
|
"hideDuration": "600",
|
"timeOut": "4500",
|
"extendedTimeOut": "600",
|
"showEasing": "swing",
|
"hideEasing": "linear",
|
"showMethod": "fadeIn",
|
"hideMethod": "fadeOut"
|
};
|
|
// 保存
|
function saveCheck() {
|
|
if ($("#Jiangjin").val() == '') {
|
toastr.warning("奖金不能为空");
|
return;
|
}
|
if ($("#Bufagongzi").val() == '') {
|
toastr.warning("补发工资不能为空");
|
return;
|
}
|
if ($("#Peichang").val() == '') {
|
toastr.warning("赔偿不能为空");
|
return;
|
}
|
if ($("#Jiucuo").val() == '') {
|
toastr.warning("纠错不能为空");
|
return;
|
}
|
|
|
$.ajax({
|
type: "POST",
|
url: "/SalaryCheck/SaveCheck",
|
dataType: "json",
|
global: false,
|
data: $('#fm').serialize(),
|
success: function (data) {
|
|
if (data.Result) {
|
parent.layer.msg('设置成功', { icon: 6 });
|
_pageAutoClose();//自动关闭页面方法
|
}
|
else {
|
// toastr.error("失败");
|
parent.layer.msg(data.Message, { icon: 5 });
|
}
|
|
},
|
error: function () {
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
}
|
|
|
function _pageAutoClose() {
|
parent.window._reloadPageData();
|
var index = parent.layer.getFrameIndex(window.name);
|
parent.layer.isRefresh = true;
|
parent.layer.closeAll('loading');
|
parent.layer.close(index);
|
return false;
|
}
|
|
//用户只能输入正负数与小数
|
function CheckNum(obj) {
|
|
if (isNaN(obj.value) && !/^-$/.test(obj.value)) {
|
obj.value = "";
|
}
|
if (!/^[+-]?\d*\.{0,1}\d{0,1}$/.test(obj.value)) {
|
obj.value = obj.value.replace(/\.\d{2,}$/, obj.value.substr(obj.value.indexOf('.'), 3));
|
}
|
|
}
|
|
var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
|
|
|
|
$(function () {
|
var data = JSON.parse(ActionInfo22);
|
for (var o in data) {
|
$("." + data[o].PageShortcut).show();
|
|
}
|
});
|
</script>
|
</body>
|
</html>
|