72 lines
2.6 KiB
Plaintext
72 lines
2.6 KiB
Plaintext
@{
|
||
Layout = null;
|
||
}
|
||
|
||
<!DOCTYPE html>
|
||
<html lang="zh-cn">
|
||
<head>
|
||
<meta name="renderer" content="webkit">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||
<meta content="always" name="referrer" />
|
||
<title>@ViewBag.Title</title>
|
||
<link rel="stylesheet" href="~/statics/bundles/bundle.min.css?v=@(HtmlUtil.JsVersion)">
|
||
@RenderSection("CSS", false)
|
||
<script src="~/statics/bundles/jquery.js?v=@(HtmlUtil.JsVersion)"></script>
|
||
</head>
|
||
|
||
<body class="infopage">
|
||
|
||
<div class="page-content" id="infopage">
|
||
@RenderBody()
|
||
</div>
|
||
|
||
<a onfocus="this.blur();" download="code.csv" id="createInvote" class="ipt-todo hide"></a>
|
||
<script src="~/statics/bundles/bundle.js?v=@(HtmlUtil.JsVersion)"></script>
|
||
<script src="~/statics/bundles/vue.js?v=@(HtmlUtil.JsVersion)"></script>
|
||
<script src="~/Scripts/utils.js?v=@(HtmlUtil.JsVersion)"></script>
|
||
<script src="/Front/otcformat?v=@(HtmlUtil.JsVersion)"></script>
|
||
<script>
|
||
var main = main || { version: "1.1" };
|
||
main.rights = main.rights || {};
|
||
main.config = main.config || { };
|
||
main.config.CanSelectCreditVariety = "@YLErp.PS.Config.ClientElement.CanSelectCreditVariety" == "True";
|
||
var errorMsg = "@ViewBag.Error";
|
||
if (errorMsg) {
|
||
main.alert(errorMsg);
|
||
}
|
||
|
||
//处理负数四舍五入问题(源码-4.055 => -4.05,需求为-4.055 => -4.06)
|
||
if (numeral && numeral.fn.format) {
|
||
var oldFormat = numeral.fn.format;
|
||
numeral.fn.format = function (inputString, roundingFunction) {
|
||
var value = this._value;
|
||
if (value < 0) {
|
||
this._value = -1 * value;
|
||
return "-" + oldFormat.call(this, inputString, roundingFunction);
|
||
}
|
||
return oldFormat.call(this, inputString, roundingFunction);
|
||
}
|
||
}
|
||
</script>
|
||
|
||
@await Html.PartialAsync("_PartialLayout")
|
||
@RenderSection("JS", false)
|
||
|
||
<script>
|
||
$(function () {
|
||
//$('.modal-dialog').draggable();
|
||
function setGridWidth() {
|
||
let $p = $('#listGrid').closest('.ui-jqgrid').parent() || $(".page-content");
|
||
let width = $p.width();
|
||
if ($p.is(".page-content")) {
|
||
width -= 28;
|
||
}
|
||
$("#listGrid").jqGrid('setGridWidth', width);
|
||
}
|
||
setGridWidth();
|
||
$(window).on('resize.jqGrid', setGridWidth);
|
||
});
|
||
</script>
|
||
</body>
|
||
</html> |