268 lines
12 KiB
Plaintext
268 lines
12 KiB
Plaintext
@using Microsoft.Extensions.Configuration
|
|
@inject IConfiguration Configuration
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="th">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>@MyHelper.GetConfig(Configuration, "SiteInformation:sitename")</title>
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
<link href="~/BackendScript/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="~/BackendScript/css/bootstrap-reset.css" rel="stylesheet">
|
|
<!--external css-->
|
|
<link href="~/BackendScript/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
|
|
|
<!--dynamic table-->
|
|
<!-- <link href="~/BackendScript/assets/advanced-datatable/media/css/demo_page.css" rel="stylesheet" /> -->
|
|
<!-- <link href="~/BackendScript/assets/advanced-datatable/media/css/demo_table.css" rel="stylesheet" /> -->
|
|
<link href="~/BackendScript/js/datatables/datatables.min.css" rel="stylesheet" />
|
|
<link href="~/DataTables-1.10.16/css/select.dataTables.min.css" rel="stylesheet" />
|
|
|
|
<!--right slidebar-->
|
|
<link href="~/BackendScript/css/slidebars.css" rel="stylesheet">
|
|
|
|
<!--Date Picker 2-->
|
|
<link href="~/lib/jquery.calendars/css/jquery.calendars.picker.css" rel="stylesheet">
|
|
|
|
<!--Select2-->
|
|
<link href='~/select2/css/select2.min.css' rel='stylesheet' type='text/css'>
|
|
|
|
<!-- Custom styles for this template -->
|
|
<link href="~/BackendScript/css/style.css" rel="stylesheet">
|
|
<link href="~/BackendScript/css/style-responsive.css" rel="stylesheet" />
|
|
<link href="~/BackendScript/css/style-custom.css" rel="stylesheet">
|
|
|
|
|
|
<link href="~/css/frame.css" rel="stylesheet">
|
|
<link href="~/css/mycustom.css" rel="stylesheet">
|
|
|
|
|
|
@RenderSection("HeadPlaceHolder", required: false)
|
|
|
|
</head>
|
|
|
|
<body data-fontsize="1">
|
|
|
|
<div id="container">
|
|
<div class="no-print">
|
|
<!--header start-->
|
|
<header class="header">
|
|
<div class="navbar-header">
|
|
<!--logo start-->
|
|
<div class="logo-wrapper">
|
|
<img alt="homepage" src="~/BackendScript/img/logo.png" height="55" />
|
|
</div>
|
|
<!--logo end-->
|
|
<div class="sidebar-toggle-box">
|
|
<i class="fa fa-bars"></i>
|
|
</div>
|
|
|
|
<div class="nav notify-row" id="top_menu">
|
|
<!-- notification start -->
|
|
<ul class="nav top-menu"></ul>
|
|
<!-- notification end -->
|
|
</div>
|
|
<div class="right-zone">
|
|
|
|
<div style="display: flex; padding-top:6px;">
|
|
<span class="allfontsize" data-fontsize="1" style="font-size:18px; width:20px; height:30px; display:flex; align-items:center; justify-content:center;">A</span>
|
|
<span class="allfontsize" data-fontsize="2" style="font-size:22px; width:20px; height:30px; display:flex; align-items:center; justify-content:center;">A</span>
|
|
<span class="allfontsize" data-fontsize="3" style="font-size:26px; width:20px; height:30px; display:flex; align-items:center; justify-content:center; font-weight:bold;">A</span>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<div data-toggle="dropdown" style="display: flex; cursor: pointer; align-items: center;">
|
|
<span class="username" style="font-size:19px; line-height:23px; font-weight:bold;" id="username">no user</span>
|
|
<b class="caret"></b>
|
|
</div>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right">
|
|
<li>
|
|
<a href="javascript:window_open_from_root('@MyHelper.GetConfig(Configuration, "SiteInformation:mainsite")/Organization/workFlowTask');">
|
|
<i class="fa fa-tasks" style="font-size: 14px"></i>
|
|
งานของคุณ
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="javascript:window_open_from_root('@MyHelper.GetConfig(Configuration, "SiteInformation:mainsite")/profile/activity_logs');">
|
|
<i class="fa fa-history" style="font-size: 14px"></i>
|
|
ประวัติการใช้งาน
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="javascript:window_open_from_root('@MyHelper.GetConfig(Configuration, "SiteInformation:mainsite")/profile');">
|
|
<i class="fa fa-user" style="font-size: 14px"></i>
|
|
ตั้งค่าบัญชี
|
|
</a>
|
|
</li>
|
|
<li class="dropdown-divider"></li>
|
|
<li>
|
|
<a href="javascript:window_open_from_root('@MyHelper.GetConfig(Configuration, "SiteInformation:appsite")/home/logout');">
|
|
<i class="fa fa-power-off" style="font-size: 14px"></i>
|
|
ออกจากระบบ
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<!--header end-->
|
|
<!--sidebar start-->
|
|
<aside>
|
|
<div id="sidebar" class="nav-collapse ">
|
|
<ul class="sidebar-menu" id="nav-accordion">
|
|
<div class="home-menu">
|
|
<a href="javascript:window_open_from_root('@MyHelper.GetConfig(Configuration, "SiteInformation:mainsite")');" class="desktop-hide">
|
|
<div class="sidebar-head">หน้าแรก</div>
|
|
</a>
|
|
<div class="sidebar-toggle-box">
|
|
<i class="fa fa-bars"></i>
|
|
</div>
|
|
</div>
|
|
<li class="sub-menu">
|
|
<a href="javascript:window_close()">
|
|
<i class="fa fa-sign-out"></i>
|
|
<span>กลับ</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</aside>
|
|
<!--sidebar end-->
|
|
</div>
|
|
<!--main content start-->
|
|
<div id="main-content">
|
|
<div>
|
|
@RenderBody()
|
|
</div>
|
|
</div>
|
|
<!--main content end-->
|
|
</div>
|
|
|
|
<!-- js placed at the end of the document so the pages load faster -->
|
|
<script src="~/BackendScript/js/jquery.js"></script>
|
|
<script src="~/BackendScript/js/bootstrap.bundle.min.js"></script>
|
|
<script src="~/BackendScript/js/jquery.dcjqaccordion.2.7.js" class="include" type="text/javascript"></script>
|
|
<script src="~/BackendScript/js/jquery.scrollTo.min.js"></script>
|
|
<script src="~/BackendScript/js/jquery.nicescroll.js" type="text/javascript"></script>
|
|
<script src="~/BackendScript/js/jquery.sparkline.js" type="text/javascript"></script>
|
|
<script src="~/BackendScript/js/respond.min.js"></script>
|
|
|
|
<script src="~/BackendScript/js/jQuery-Mask-Plugin-master/dist/jquery.mask.min.js"></script>
|
|
<script src="~/BackendScript/js/jquery-maskmoney-master/dist/jquery.maskMoney.min.js"></script>
|
|
<script src="~/BackendScript/js/jsrsasign-all-min.js"></script>
|
|
|
|
<script src="~/DataTables-1.10.16/js/jquery.dataTables.js" type="text/javascript"></script>
|
|
<script src="~/DataTables-1.10.16/js/dataTables.bootstrap4.min.js" type="text/javascript"></script>
|
|
<script src="~/DataTables-1.10.16/js/dataTables.select.min.js" type="text/javascript"></script>
|
|
|
|
<!--right slidebar-->
|
|
<script src="~/BackendScript/js/slidebars.min.js"></script>
|
|
|
|
<!--common script for all pages-->
|
|
<script src="~/BackendScript/js/common-scripts.js"></script>
|
|
|
|
<!--Date Picker 2-->
|
|
<script src="~/BackendScript/assets/bootstrap-daterangepicker/moment.min.js"></script>
|
|
<script src="~/lib/jquery.calendars/js/jquery.plugin.min.js"></script>
|
|
<script src="~/lib/jquery.calendars/js/jquery.calendars.min.js"></script>
|
|
<script src="~/lib/jquery.calendars/js/jquery.calendars.plus.min.js"></script>
|
|
<script src="~/lib/jquery.calendars/js/jquery.calendars.picker.min.js"></script>
|
|
<script src="~/lib/jquery.calendars/js/jquery.calendars.thai.min.js"></script>
|
|
<script src="~/lib/jquery.calendars/js/jquery.calendars.thai-th.js"></script>
|
|
<script src="~/lib/jquery.calendars/js/jquery.calendars.picker-th.js"></script>
|
|
|
|
|
|
<!--Select2-->
|
|
<script src='~/select2/js/select2.min.js' type='text/javascript'></script>
|
|
|
|
<!-- Loading -->
|
|
<script src="~/BackendScript/js/loadingoverlay.js"></script>
|
|
|
|
<script>
|
|
var appsite = "@MyHelper.GetConfig(Configuration, "SiteInformation:appsite")";
|
|
var apisite = "@MyHelper.GetConfig(Configuration, "SiteInformation:apisite")";
|
|
</script>
|
|
|
|
<script src="~/js/coregen.js?version=@MyHelper.GetDummyText()"></script>
|
|
@RenderSection("FooterPlaceHolder", required: false)
|
|
<iframe id="myframe" class="iframe-con" src=""></iframe>
|
|
|
|
<script>
|
|
$('.allfontsize').click(function () {
|
|
var fontsize = $(this).data('fontsize');
|
|
$('body').attr('data-fontsize', fontsize);
|
|
});
|
|
$("#username").text(getCookie("emp_name"));
|
|
|
|
$(document).ready(function(){
|
|
|
|
$( document ).on( 'focus', ':input', function(){
|
|
$( this ).attr( 'autocomplete', 'off' );
|
|
});
|
|
|
|
$('.money').maskMoney();
|
|
|
|
$(document).on('change', 'input.money', function() {
|
|
var value = parseFloat(parseFloat($(this).val()).toFixed(2));
|
|
$(this).maskMoney();
|
|
$(this).unbind("focus.maskMoney");
|
|
$(this).unbind("blur.maskMoney");
|
|
$(this).maskMoney('mask', value);
|
|
});
|
|
$(document).on('focus', 'input.money:not([readonly], :disabled)', function() {
|
|
$(this).maskMoney('destroy');
|
|
var val = $(this).maskMoney('unmasked')[0];
|
|
val = val === 0 ? '' : val;
|
|
$(this).val(val);
|
|
});
|
|
$(document).on('blur', 'input.money', function() {
|
|
preventDefault(event);
|
|
var value = $(this).val();
|
|
if (typeof value === 'string' && !value.includes(',')) {
|
|
$(this).val($(this).val());
|
|
$(this).change();
|
|
}
|
|
});
|
|
$('input.money').keypress(function(e){
|
|
e = e || window.event;
|
|
var key = e.which || e.charCode || e.keyCode,
|
|
keyPressedChar = "",
|
|
selection,
|
|
startPos,
|
|
endPos,
|
|
value;
|
|
|
|
if ((key >= 48 && key <= 57) || e.key == '.') {
|
|
} else {
|
|
preventDefault(e);
|
|
}
|
|
});
|
|
|
|
function preventDefault(e) {
|
|
if (e.preventDefault) { //standard browsers
|
|
e.preventDefault();
|
|
} else { // old internet explorer
|
|
e.returnValue = false;
|
|
}
|
|
}
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|