49 lines
1.0 KiB
Plaintext
49 lines
1.0 KiB
Plaintext
@model CompanyManagment.App.Contracts.CustomizeCheckout.CustomizeCheckoutBatchPrintViewModel
|
|
|
|
<link href="~/assetsclient/pages/checkouts/css/printonerollcall.css" rel="stylesheet" />
|
|
@{
|
|
<style>
|
|
@@media print {
|
|
#printSize {
|
|
width: 20cm !important;
|
|
margin: 3mm 0 0 4mm !important;
|
|
}
|
|
}
|
|
</style>
|
|
}
|
|
|
|
<div class="modal-body print" style="width: 210mm; float: left;" id="printThis">
|
|
|
|
@foreach (var items in @Model.CustomizeCheckoutViewModels)
|
|
{
|
|
<partial name="_Partials/PrintDetailsCheckoutTemporaryRaw" model="items" />
|
|
}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
printElement(document.getElementById("printThis"));
|
|
});
|
|
|
|
function printElement(elem) {
|
|
var domClone = elem.cloneNode(true);
|
|
|
|
var $printSection = document.getElementById("printSection");
|
|
|
|
if (!$printSection) {
|
|
$printSection = document.createElement("div");
|
|
$printSection.id = "printSection";
|
|
document.body.appendChild($printSection);
|
|
}
|
|
|
|
$printSection.innerHTML = "";
|
|
$printSection.appendChild(domClone);
|
|
window.print();
|
|
}
|
|
</script> |