139 lines
5.9 KiB
Plaintext
139 lines
5.9 KiB
Plaintext
@page
|
||
@model ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout.PrintAllCheckoutTemporaryModel
|
||
|
||
<link href="~/assetsclient/pages/checkouts/css/printonerollcall.css" rel="stylesheet" />
|
||
@{
|
||
<link href="~/assetsclient/pages/checkouts/css/checkoutprintall.css" rel="stylesheet" />
|
||
|
||
var btnActive = "btn-active";
|
||
var btnDeactive = "btn-deactive";
|
||
var inputDeactive = "input-deactive";
|
||
}
|
||
|
||
|
||
<div class="content-container">
|
||
<div class="container-fluid">
|
||
<div class="row p-2">
|
||
<div class="col p-0 m-0 d-flex align-items-center justify-content-between">
|
||
<div class="col d-flex align-items-center justify-content-start">
|
||
<div>
|
||
<h4 class="title d-flex align-items-center">پرینت گروهی</h4>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<a asp-page="./CheckoutTemporary" class="back-btn">
|
||
<span>بازگشت</span>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!--دکمه ها -->
|
||
<div class="container-fluid">
|
||
<div class="row px-2">
|
||
<div class="card border-0 print-card">
|
||
<div class="row">
|
||
<div class="col-12 mt-30">
|
||
@{
|
||
<form style="display: none" class="" role="form" name="search-theme-form" autocomplete="off"
|
||
method="get"
|
||
data-ajax="true"
|
||
data-ajax-method="get"
|
||
data-ajax-update="#mainPanel"
|
||
data-ajax-mode="replace"
|
||
data-ajax-url="@Url.Page("/Company/CustomizeCheckout/PrintAllCheckoutTemporary", "PrintAll")">
|
||
<div id="copyInputs"></div>
|
||
<input type="submit" id="sendData" class="sendData" style="display: none" />
|
||
</form>
|
||
@if (@Model.DividList != null)
|
||
{
|
||
<div style="display: grid;gap: 0.25rem;">
|
||
@foreach (var btn in @Model.DividList.CustomizeCheckoutGroupPrintViewModels)
|
||
{
|
||
<div class="d-flex"><span>
|
||
@for (int j = 0; j < @btn.CustomizeCheckoutIdList.Count; j++)
|
||
{
|
||
<input type="hidden" asp-for="sendIds.CustomizeCheckoutIdList[j]" value="@btn.CustomizeCheckoutIdList[j]" />
|
||
}
|
||
</span>
|
||
|
||
<a class="btn-print-all text-nowrap me-2 counter" style="padding: 6px 12px !important;width: 70px;text-align: center;">
|
||
<span>از</span> <span style="font-family: 'IranSans';">@btn.StartPrint</span><span> </span> <span>تا</span> <span style="font-family: 'IranSans';">@btn.EndPrint</span>
|
||
</a>
|
||
|
||
<a class="btn-search btn-search-click py-1 px-2 send" style="padding: 6px 12px !important;width: 80px;text-align: center;cursor: pointer;"> پرینت</a>
|
||
|
||
@if (btn.StartPrint == 1)
|
||
{
|
||
<a asp-page="./CheckoutTemporary" style="padding: 6px 12px !important;width: 80px;cursor: pointer;margin: 0 6px 0 0;background-color: #454D5C;color: #ffffff;text-align: center;align-items: center;display: flex;justify-content: center;border-radius: 7px; font-size: 12px;" type="button">
|
||
بازگشت
|
||
</a>
|
||
}
|
||
</div>
|
||
}
|
||
</div>
|
||
}
|
||
}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="container-fluid">
|
||
<div class="row px-lg-2 p-auto">
|
||
<div class="wrapper bg-white my-2 card" style="padding: 0 0 47px 0;">
|
||
<div id="mainPanel" style="max-width: 22cm;margin-right: auto;width: 100%;">
|
||
|
||
<div class="modal-body py-0 print" id="printThis">
|
||
|
||
@foreach (var item in Model.GroupPrintList)
|
||
{
|
||
<partial name="_Partials/PrintDetailsCheckoutTemporaryRaw" model="item"/>
|
||
}
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
@section Script {
|
||
<script src="~/lib/jquery-ajax-unobtrusive/jquery.unobtrusive-ajax.min.js"></script>
|
||
|
||
<script>
|
||
$(document).ready(function () {
|
||
$('.send').on('click',
|
||
function (e) {
|
||
e.preventDefault();
|
||
|
||
$('.remover').remove();
|
||
var index = 0;
|
||
$(this).siblings('span').find('input[type="hidden"]').each(function () {
|
||
let ipValue = $(this).val();
|
||
|
||
const html = `<input type="hidden" class="remover" name="sendIds.CustomizeCheckoutIdList[${index}]" value="${ipValue}" />`;
|
||
$('#copyInputs').append(html);
|
||
index += 1;
|
||
});
|
||
|
||
//$(this).next('.form-inline').find('.sendData').click();
|
||
|
||
//$(this).next('.form-inline').find('.sendData').remove();
|
||
|
||
$('#sendData').click();
|
||
let counter = $(this).siblings('.counter');
|
||
$(counter).addClass('btncounter-text-disable');
|
||
$(this).addClass('btn-text-disable');
|
||
|
||
|
||
});
|
||
|
||
});
|
||
</script>
|
||
} |