| | |
| | | @using zhengcaioa.Models; |
| | | @{ |
| | | Layout = null; |
| | | |
| | | List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; |
| | | } |
| | | |
| | | <!DOCTYPE html> |
| | |
| | | <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="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | <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;"> |
| | |
| | | <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" href="javascript:void(0)" onclick="saveCheck();" style="margin-left:4px; border-radius:4px;"> |
| | | <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> |
| | |
| | | else { |
| | | $("#panelss").hide(); |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | var hh = document.body.clientHeight - $("#top").height() * 2 - 75; |
| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/SalaryCheck/SaveCheck", |
| | |
| | | |
| | | if (data.Result) { |
| | | parent.layer.msg('设置成功', { icon: 6 }); |
| | | _pageAutoClose();//自动关闭页面方法 |
| | | _pageAutoClose();//自动关闭页面方法 |
| | | } |
| | | else { |
| | | // toastr.error("失败"); |
| | |
| | | |
| | | //用户只能输入正负数与小数 |
| | | 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> |