Add rotating shift report

This commit is contained in:
MahanCh
2025-05-13 19:21:26 +03:30
parent 429b9aad27
commit ec0996f53c
7 changed files with 7888 additions and 310 deletions

View File

@@ -0,0 +1,44 @@
@{
}
<link href="~/assetsadmin/page/checkouts/css/printdetailsrollcall.css" rel="stylesheet" />
<div class="modal-header" style="border-bottom: unset">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<form asp-page="./Index" asp-page-handler="Details"
method="post"
data-ajax="true"
data-callback=""
data-action="Refresh"
enctype="multipart/form-data">
<div class="modal-body print" id="printThis">
<div class="row">
<div class="col-md-12">
<fieldset style="border: 1px solid black;
padding: revert;
border-radius: 10px;
height: 28cm;
margin: 3mm 5mm 0 5mm; ">
<div class="row" dir="rtl">
<div class="col-xs-3 d-inline-block"><fieldset style="border: 1px solid black; border-radius: 15px; padding: 1px 15px 1px 15px; margin-top: 5px; width: 60%; font-size: 12px; text-align: center;"> @Model.ContractNo</fieldset></div>
<div class="col-xs-6 d-inline-block text-center"><p style="margin-top:10px !important;font-size: 18px; font-family: 'IranNastaliq' !important; ">بسمه تعالی</p> <p style="font-size: 15px; font-weight: bold">فیش حقوقی و رسید پرداخت حقوق</p> </div>
<div class="col-xs-3 d-inline-block"></div>
</div>
</fieldset>
</div>
</div>
</div>
<div class="modal-footer" style="border-top: unset; padding: 1px 15px 10px;">
<button id="btnPrint" type="button" class="btn btn-success btn-rounded waves-effect waves-light">پرینت</button>
<button type="button" id="closingOnePrint" class="btn btn-warning btn-rounded waves-effect waves-light m-b-10" data-dismiss="modal">انصراف</button>
</div>
</form>
<script src="~/assetsadmin/page/checkouts/js/printdetailsrollcall.js"></script>

View File

@@ -0,0 +1,5 @@
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}

View File

@@ -3,15 +3,15 @@
@model ServiceHost.Areas.Client.Pages.Company.Checkouts.IndexModel
@{
string clientVersion = _0_Framework.Application.Version.StyleVersion;
string clientVersion = _0_Framework.Application.Version.StyleVersion;
Layout = "Shared/_ClientLayout";
ViewData["Title"] = " - " + "فیش حقوقی";
int i = 0;
Layout = "Shared/_ClientLayout";
ViewData["Title"] = " - " + "فیش حقوقی";
int i = 0;
}
@section Styles {
<link href="~/AssetsClient/css/table-style.css?ver=@clientVersion" rel="stylesheet" />
<link href="~/AssetsClient/css/table-style.css?ver=@clientVersion" rel="stylesheet" />
<link href="~/AssetsClient/css/table-responsive.css?ver=@clientVersion" rel="stylesheet" />
<link href="~/AssetsClient/css/select2.css?ver=@clientVersion" rel="stylesheet" />
<link href="~/AssetsClient/css/datetimepicker.css?ver=@clientVersion" rel="stylesheet" />
@@ -46,6 +46,28 @@
background-color: #2ca4a4;
}
.btnRSR {
border: 1px solid transparent;
width: 30px;
height: 30px;
border-radius: 5px;
padding: 3px 1px;
color: #017E10;
margin: auto 0 auto 1px;
background-color: #B9F6C0;
transition: ease-in-out .3s;
}
.btnRSR:hover {
background-color: #afe7b6;
}
.table-contracts .checkout-list .width10 {
width: 15%;
}
@@media screen and (max-width: 767px) {
.goToTop {
position: fixed;
@@ -61,16 +83,23 @@
.lessThan992 {
display: none;
}
#MainModal{
visibility :visible !important;
#MainModal {
visibility: visible !important;
}
}
@@media screen and (max-width: 991px) {
.moreThan992 {
display: none;
}
}
}
@@media (max-width: 576px) {
.table-contracts .Rtable .Rtable-row .Rtable-contract .Rtable-cell--heading span, .table-contracts .Rtable .Rtable-row .Rtable-contract .Rtable-cell--content {
font-weight: 800 !important;
font-size: 9px !important;
}
}
</style>
}
@@ -124,7 +153,7 @@
<div class="col-12">
<div class="d-grid search-section gap-2" data-title="جستجو لیست قرارداد" data-intro="شما در این لیست قرارداد میتوانید جستجو کنید.">
<div class="d-grid grid-cols-2 gap-2 col-span-2">
<div class="d-grid grid-cols-2 gap-2 col-span-2">
<div class="wrapper-dropdown-year btn-dropdown" id="dropdown-year">
<span class="selected-display" id="destination-year">سال</span>
<svg class="arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
@@ -142,19 +171,19 @@
<li class="item" value-data-year=" ">سال</li>
@foreach (string year in @Model.YearlyList)
{
<li class="item" value-data-year="@year">@year</li>
<li class="item" value-data-year="@year">@year</li>
}
</ul>
<input type="hidden" id="sendDropdownYear" asp-for="SearchModel.Year" />
</div>
<input type="hidden" id="sendDropdownYear" asp-for="SearchModel.Year" />
</div>
<div class="wrapper-dropdown-month btn-dropdown" id="dropdown-month">
<span class="selected-display" id="destination-month">ماه</span>
<svg class="arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<ul class="dropdown-month boxes">
@* <div class="scroll">
<div class="wrapper-dropdown-month btn-dropdown" id="dropdown-month">
<span class="selected-display" id="destination-month">ماه</span>
<svg class="arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<ul class="dropdown-month boxes">
@* <div class="scroll">
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="226" viewBox="0 0 26 226">
<g id="container_line" transform="translate(3 3)">
<rect id="rectangle" width="26" height="226" transform="translate(-3 -3)" fill="none" opacity="0" />
@@ -162,281 +191,244 @@
</g>
</svg>
</div> *@
<li class="item" value-data-month=" ">ماه</li>
<li class="item" value-data-month="01">فروردین</li>
<li class="item" value-data-month="02">اردیبهشت</li>
<li class="item" value-data-month="03">خرداد</li>
<li class="item" value-data-month="04">تیر</li>
<li class="item" value-data-month="05">مرداد</li>
<li class="item" value-data-month="06">شهریور</li>
<li class="item" value-data-month="07">مهر</li>
<li class="item" value-data-month="08">آبان</li>
<li class="item" value-data-month="09">آذر</li>
<li class="item" value-data-month="10">دی</li>
<li class="item" value-data-month="11">بهمن</li>
<li class="item" value-data-month="12">اسفند</li>
</ul>
<input type="hidden" id="sendDropdownMonth" asp-for="SearchModel.Month" />
<li class="item" value-data-month=" ">ماه</li>
<li class="item" value-data-month="01">فروردین</li>
<li class="item" value-data-month="02">اردیبهشت</li>
<li class="item" value-data-month="03">خرداد</li>
<li class="item" value-data-month="04">تیر</li>
<li class="item" value-data-month="05">مرداد</li>
<li class="item" value-data-month="06">شهریور</li>
<li class="item" value-data-month="07">مهر</li>
<li class="item" value-data-month="08">آبان</li>
<li class="item" value-data-month="09">آذر</li>
<li class="item" value-data-month="10">دی</li>
<li class="item" value-data-month="11">بهمن</li>
<li class="item" value-data-month="12">اسفند</li>
</ul>
<input type="hidden" id="sendDropdownMonth" asp-for="SearchModel.Month" />
</div>
</div>
<div class="col-span-2"><input type="text" class="form-control date start-date" asp-for="SearchModel.ContractStart" placeholder="تاریخ شروع"></div>
<div class="col-span-2"><input type="text" class="form-control date end-date" asp-for="SearchModel.ContractEnd" placeholder="تاریخ پایان"></div>
<div class="col-span-2">
<select id="getPersonnel" class="form-select " asp-for="SearchModel.EmployeeId">
<option value="0"> انتخاب پرسنل </option>
@foreach (var person in @Model.Employees)
{
var black = person.Black ? "blackSelect" : "";
<option style="font-family: 'IranSans' !important;" class="@(black)" value="@person.Id"> @person.EmployeeFullName</option>
}
</select>
</div>
<div class="col-span-2">
<div class="wrapper-dropdown" id="dropdown">
<span class="selected-display" id="destination">مرتب سازی</span>
<svg class="arrow" id="drp-arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<ul class="dropdown">
<li class="item" value-data="CreationDate-Max">مرتب سازی</li>
<li class="item" value-data="CreationDate-Min">تاریخ ایجاد قراداد - کوچک به بزرگ</li>
<li class="item" value-data="Signature-Min">امضاء نشده ها</li>
<li class="item" value-data="Signature-Max">امضاء شده ها</li>
<li class="item" value-data="PersonelCode-Min">شماره پرسنلی - کوچک به بزرگ</li>
<li class="item" value-data="PersonelCode-Max">شماره پرسنلی - بزرگ به کوچک</li>
<li class="item" value-data="ContractStart-Min">تاریخ آغاز قراداد - کوچک به بزرگ</li>
<li class="item" value-data="ContractStart-Max">تاریخ آغاز قراداد - بزرگ به کوچک</li>
</ul>
<input type="hidden" id="sendSorting" asp-for="SearchModel.Sorting" />
</div>
</div>
<div class="d-flex gap-2 col-span-2">
<button class="btn-search btn-w-size btn-search-click text-nowrap d-flex align-items-center justify-content-center" id="searchBtn" type="submit">
<span>جستجو</span>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="20" height="20" class="ms-1">
<path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" />
</svg>
</button>
<a href="/Client/Company/Checkouts" class="btn-clear-filter btn-w-size text-nowrap d-flex align-items-center justify-content-center disable" id="filterRemove">
<span>حذف جستجو</span>
</a>
</div>
</div>
</div>
<div class="col-span-2"><input type="text" class="form-control date start-date" asp-for="SearchModel.ContractStart" placeholder="تاریخ شروع"></div>
<div class="col-span-2"><input type="text" class="form-control date end-date" asp-for="SearchModel.ContractEnd" placeholder="تاریخ پایان"></div>
<div class="col-span-2">
<select id="getPersonnel" class="form-select " asp-for="SearchModel.EmployeeId">
<option value="0"> انتخاب پرسنل </option>
@foreach (var person in @Model.Employees)
{
var black = person.Black ? "blackSelect" : "";
<option style="font-family: 'IranSans' !important;" class="@(black)" value="@person.Id"> @person.EmployeeFullName</option>
}
</select>
</div>
<div class="col-span-2">
<div class="wrapper-dropdown" id="dropdown">
<span class="selected-display" id="destination">مرتب سازی</span>
<svg class="arrow" id="drp-arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<ul class="dropdown">
<li class="item" value-data="CreationDate-Max">مرتب سازی</li>
<li class="item" value-data="CreationDate-Min">تاریخ ایجاد قراداد - کوچک به بزرگ</li>
<li class="item" value-data="Signature-Min">امضاء نشده ها</li>
<li class="item" value-data="Signature-Max">امضاء شده ها</li>
<li class="item" value-data="PersonelCode-Min">شماره پرسنلی - کوچک به بزرگ</li>
<li class="item" value-data="PersonelCode-Max">شماره پرسنلی - بزرگ به کوچک</li>
<li class="item" value-data="ContractStart-Min">تاریخ آغاز قراداد - کوچک به بزرگ</li>
<li class="item" value-data="ContractStart-Max">تاریخ آغاز قراداد - بزرگ به کوچک</li>
</ul>
<input type="hidden" id="sendSorting" asp-for="SearchModel.Sorting" />
</div>
</div>
<div class="d-flex gap-2 col-span-2">
<button class="btn-search btn-w-size btn-search-click text-nowrap d-flex align-items-center justify-content-center" id="searchBtn" type="submit">
<span>جستجو</span>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="20" height="20" class="ms-1">
<path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" />
</svg>
</button>
<a href="/Client/Company/Checkouts" class="btn-clear-filter btn-w-size text-nowrap d-flex align-items-center justify-content-center disable" id="filterRemove">
<span>حذف جستجو</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
<!-- Search Box -->
<!-- End Search Box -->
<!-- List Items -->
<div class="container-fluid">
<div class="row px-lg-2 p-auto">
<div class="wrapper bg-white my-2 list-box table-contracts">
<!-- Search Box -->
<!-- End Search Box -->
<!-- List Items -->
<div class="container-fluid">
<div class="row px-lg-2 p-auto">
<div class="wrapper bg-white my-2 list-box table-contracts">
<!-- Advance Search Box -->
<div class="container-fluid d-block d-md-none">
<div class="row d-flex align-items-center justify-content-between">
<div class="search-box bg-white">
<div class="col text-center">
<button class="btn-search w-100" type="button" data-bs-toggle="modal" data-bs-target="#searchModal">
<span>جستجو پیشرفته</span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<circle cx="11" cy="11" r="6" stroke="white" />
<path d="M20 20L17 17" stroke="white" stroke-linecap="round" />
</svg>
</button>
<!-- Advance Search Box -->
<div class="container-fluid d-block d-md-none">
<div class="row d-flex align-items-center justify-content-between">
<div class="search-box bg-white">
<div class="col text-center">
<button class="btn-search w-100" type="button" data-bs-toggle="modal" data-bs-target="#searchModal">
<span>جستجو پیشرفته</span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<circle cx="11" cy="11" r="6" stroke="white" />
<path d="M20 20L17 17" stroke="white" stroke-linecap="round" />
</svg>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- End Advance Search Box -->
<!-- End Advance Search Box -->
@if (@Model.Checkouts.Count > 0)
{
<div class="d-flex d-md-none align-items-center justify-content-between my-1">
<div class="select-all d-flex align-items-center">
<input type="checkbox" class="form-check-input checkAll" name="" id="checkAll1">
<label for="checkAll1">انتخاب همه</label>
</div>
<button class="btn-print-all" type="button" onclick="printAll()">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" stroke="#1E293B" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" stroke="#1E293B" />
<path d="M7.91675 11.25L11.2501 11.25" stroke="#1E293B" stroke-linecap="round" />
<path d="M7.91675 13.75L12.0834 13.75" stroke="#1E293B" stroke-linecap="round" />
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" stroke="#1E293B" />
</svg>
<span>پرینت گروهی</span>
</button>
</div>
<div class="container-fluid d-none d-md-block">
<div class="row">
<div class="d-none d-md-flex align-items-center justify-content-between my-1 px-1">
<div>
<p class="m-0">لیست فیش حقوقی</p>
</div>
<div class="d-flex align-items-center">
<button onclick="printAll()" class="btn-print-all text-nowrap" type="button" data-title="پرینت گروهی" data-intro="شما برای گرفتن پرینت گروهی ابتدا باید ردیف را انتخاب کنید و سپس دکمه پرینت گروهی بزنید.">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" stroke="#1E293B" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" stroke="#1E293B" />
<path d="M7.91675 11.25L11.2501 11.25" stroke="#1E293B" stroke-linecap="round" />
<path d="M7.91675 13.75L12.0834 13.75" stroke="#1E293B" stroke-linecap="round" />
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" stroke="#1E293B" />
</svg>
<span>پرینت گروهی</span>
</button>
</div>
</div>
</div>
</div>
<div class="checkout-list Rtable Rtable--5cols Rtable--collapse tb">
<div class="Rtable-row Rtable-row--head align-items-center sticky-div">
<div class="Rtable-cell column-heading width1">
<span class="d-flex justify-content-center text-white align-items-center justify-content-between">
<input type="checkbox" class="form-check-input checkAll" name="" id="checkAll2">
<label for="checkAll2" class="prevent-select">ردیف</label>
</span>
<div class="d-flex d-md-none align-items-center justify-content-between my-1">
<div class="select-all d-flex align-items-center">
<input type="checkbox" class="form-check-input checkAll" name="" id="checkAll1">
<label for="checkAll1">انتخاب همه</label>
</div>
<div class="Rtable-cell column-heading width2">شماره پرسنلی</div>
<div class="Rtable-cell column-heading width3">سال</div>
<div class="Rtable-cell column-heading width4">ماه</div>
<div class="Rtable-cell column-heading width5">شماره قرارداد</div>
<div class="Rtable-cell column-heading width6">نام پرسنل</div>
<div class="Rtable-cell column-heading width7">آغاز قرارداد</div>
<div class="Rtable-cell column-heading width8">پایان قرارداد</div>
<div class="Rtable-cell column-heading width9">امضاء پرسنل</div>
<div class="Rtable-cell column-heading width10 text-end">عملیات</div>
<button class="btn-print-all" type="button" onclick="printAll()">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" stroke="#1E293B" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" stroke="#1E293B" />
<path d="M7.91675 11.25L11.2501 11.25" stroke="#1E293B" stroke-linecap="round" />
<path d="M7.91675 13.75L12.0834 13.75" stroke="#1E293B" stroke-linecap="round" />
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" stroke="#1E293B" />
</svg>
<span>پرینت گروهی</span>
</button>
</div>
<div class="container-fluid d-none d-md-block">
<div class="row">
<div class="d-none d-md-flex align-items-center justify-content-between my-1 px-1">
<div>
<p class="m-0">لیست فیش حقوقی</p>
</div>
<div class="d-flex align-items-center">
<button onclick="printAll()" class="btn-print-all text-nowrap" type="button" data-title="پرینت گروهی" data-intro="شما برای گرفتن پرینت گروهی ابتدا باید ردیف را انتخاب کنید و سپس دکمه پرینت گروهی بزنید.">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" stroke="#1E293B" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" stroke="#1E293B" />
<path d="M7.91675 11.25L11.2501 11.25" stroke="#1E293B" stroke-linecap="round" />
<path d="M7.91675 13.75L12.0834 13.75" stroke="#1E293B" stroke-linecap="round" />
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" stroke="#1E293B" />
</svg>
<span>پرینت گروهی</span>
</button>
</div>
</div>
</div>
</div>
<div class="checkout-list Rtable Rtable--5cols Rtable--collapse tb">
<div class="Rtable-row Rtable-row--head align-items-center sticky-div">
<div class="Rtable-cell column-heading width1">
<span class="d-flex justify-content-center text-white align-items-center justify-content-between">
<input type="checkbox" class="form-check-input checkAll" name="" id="checkAll2">
<label for="checkAll2" class="prevent-select">ردیف</label>
</span>
</div>
<div class="Rtable-cell column-heading d-none d-lg-block width2">شماره پرسنلی</div>
<div class="Rtable-cell column-heading d-none d-md-block width3">سال</div>
<div class="Rtable-cell column-heading d-none d-md-block width4">ماه</div>
<div class="Rtable-cell column-heading d-none d-md-block width5">شماره قرارداد</div>
<div class="Rtable-cell column-heading width6">نام پرسنل</div>
<div class="Rtable-cell column-heading width7">آغاز قرارداد</div>
<div class="Rtable-cell column-heading width8">پایان قرارداد</div>
<div class="Rtable-cell column-heading d-none d-md-block width9">امضاء پرسنل</div>
<div class="Rtable-cell column-heading width10 text-end">عملیات</div>
</div>
@foreach (var item in @Model.Checkouts)
{
<div class="Rtable-row align-items-center position-relative printAllTd">
<div class="Rtable-cell d-md-block d-none width1">
<div class="Rtable-cell--heading">
ردیف
</div>
<label for="@i" class="Rtable-cell--content prevent-select">
<span class="d-flex justify-content-center align-items-center justify-content-between">
<input id="@i" type="checkbox" class="form-check-input foo" name="foo" value="@item.Id">
<div class="Rtable-row align-items-center position-relative printAllTd">
<div class="Rtable-cell d-md-block d-none width1">
<div class="Rtable-cell--heading">
ردیف
</div>
<label for="@i" class="Rtable-cell--content prevent-select">
<span class="d-flex justify-content-center align-items-center justify-content-between">
<input id="@i" type="checkbox" class="form-check-input foo" name="foo" value="@item.Id">
@(i = i + 1)
</span>
</label>
</div>
<div class="Rtable-cell d-md-block d-none width2">
<div class="Rtable-cell--heading">شماره پرسنلی</div>
<div class="Rtable-cell--content">@item.PersonnelCode</div>
</div>
<div class="Rtable-cell d-md-block d-none width3">
<div class="Rtable-cell--heading">سال</div>
<div class="Rtable-cell--content">@item.Year</div>
</div>
<div class="Rtable-cell d-md-block d-none width4">
<div class="Rtable-cell--heading">ماه</div>
<div class="Rtable-cell--content">@item.Month</div>
</div>
<div class="Rtable-cell d-md-block d-none width5">
<div class="Rtable-cell--heading">شماره قرارداد</div>
<div class="Rtable-cell--content">@item.ContractNo</div>
</div>
<div class="Rtable-cell d-md-block d-none width6">
<div class="Rtable-cell--heading">نام پرسنل</div>
<div class="Rtable-cell--content ">@item.EmployeeFullName</div>
</div>
<div class="Rtable-cell d-md-block d-none width7">
<div class="Rtable-cell--heading">آغاز قرارداد</div>
<div class="Rtable-cell--content ">@item.ContractStart</div>
</div>
<div class="Rtable-cell d-md-block d-none width8">
<div class="Rtable-cell--heading">پایان قرارداد</div>
<div class="Rtable-cell--content ">@item.ContractEnd</div>
</div>
<div class="Rtable-cell d-md-flex d-none width9">
<div class="Rtable-cell--heading">امضاء پرسنل</div>
<div class="Rtable-cell--content ">
@if (item.Signature == "1")
{
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="20" height="20" rx="10" fill="#1DC9A0" />
<path d="M14.6667 6.7915L8.25004 13.2082L5.33337 10.2915" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
}
else
{
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="19" height="19" rx="9.5" fill="#FFD5D5" stroke="#ED8E8E" />
</svg>
}
</div>
</div>
<div class="Rtable-cell d-md-block d-none width10">
<div class="Rtable-cell--content align-items-center d-flex d-md-block text-end">
<button class="btn-print moreThan992" type="button" data-intro="یا میتوانید به صورت جداگانه لیست قرارداد را پرینت بگیرید" onclick="printOne(@item.Id)">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round" />
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round" />
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
</svg>
</button>
<button class="btn-print lessThan992" type="button" data-intro="یا میتوانید به صورت جداگانه لیست قرارداد را پرینت بگیرید" onclick="printOneMobile(@item.Id)">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round" />
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round" />
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
</svg>
</button>
</div>
</div>
<!--Mobile Table-->
<div class="Rtable-contract w-100 d-flex d-md-none align-items-center justify-content-between printAllTd">
<div class="d-flex justify-content-center align-items-center justify-content-between">
<div class="checkbox-responsive d-flex justify-content-center align-items-center justify-content-around">
<input type="checkbox" class="form-check-input foo" name="foo" value="@item.Id" id="">
<span>@(i)</span>
</div>
<div class="Rtable-cell--content">
<span class="mx-sm-2">
@item.EmployeeFullName
</span>
</label>
</div>
<div class="Rtable-cell d-lg-block d-none width2">
<div class="Rtable-cell--heading">شماره پرسنلی</div>
<div class="Rtable-cell--content">@item.PersonnelCode</div>
</div>
<div class="Rtable-cell d-md-block d-none width3">
<div class="Rtable-cell--heading">سال</div>
<div class="Rtable-cell--content">@item.Year</div>
</div>
<div class="Rtable-cell d-md-block d-none width4">
<div class="Rtable-cell--heading">ماه</div>
<div class="Rtable-cell--content">@item.Month</div>
</div>
<div class="Rtable-cell d-md-block d-none width5">
<div class="Rtable-cell--heading">شماره قرارداد</div>
<div class="Rtable-cell--content">@item.ContractNo</div>
</div>
<div class="Rtable-cell d-md-block d-none width6">
<div class="Rtable-cell--heading">نام پرسنل</div>
<div class="Rtable-cell--content ">@item.EmployeeFullName</div>
</div>
<div class="Rtable-cell d-md-block d-none width7">
<div class="Rtable-cell--heading">آغاز قرارداد</div>
<div class="Rtable-cell--content ">@item.ContractStart</div>
</div>
<div class="Rtable-cell d-md-block d-none width8">
<div class="Rtable-cell--heading">پایان قرارداد</div>
<div class="Rtable-cell--content ">@item.ContractEnd</div>
</div>
<div class="Rtable-cell d-md-flex d-none width9">
<div class="Rtable-cell--heading">امضاء پرسنل</div>
<div class="Rtable-cell--content ">
@if (item.Signature == "1")
{
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="20" height="20" rx="10" fill="#1DC9A0" />
<path d="M14.6667 6.7915L8.25004 13.2082L5.33337 10.2915" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
}
else
{
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="19" height="19" rx="9.5" fill="#FFD5D5" stroke="#ED8E8E" />
</svg>
}
</div>
</div>
<div class="Rtable-cell d-md-block d-none width10">
<div class="Rtable-cell--content align-items-center d-flex d-md-block text-end">
<button type="button" class="btnRSR" onclick="printRSR(@(item.Id))">
<div class="Rtable-cell--heading d-none">پرینت نوبت کاری</div>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.71285 1.58594H10.2875C11.3847 1.58593 12.2574 1.58593 12.961 1.64436C13.6817 1.7042 14.2957 1.82941 14.8564 2.12072C15.724 2.57138 16.4314 3.27875 16.8821 4.14631C17.1734 4.70711 17.2986 5.32111 17.3584 6.04175C17.4168 6.7454 17.4168 7.61804 17.4168 8.71529V10.2899C17.4168 11.3872 17.4168 12.2598 17.3584 12.9635C17.2986 13.6841 17.1734 14.2981 16.8821 14.8589C16.4314 15.7265 15.724 16.4338 14.8564 16.8845C14.2957 17.1758 13.6817 17.301 12.961 17.3608C12.2574 17.4193 11.3847 17.4193 10.2875 17.4193H8.71285C7.6156 17.4193 6.74296 17.4193 6.0393 17.3608C5.31867 17.301 4.70467 17.1758 4.14387 16.8845C3.27631 16.4338 2.56894 15.7265 2.11828 14.8589C1.82697 14.2981 1.70176 13.6841 1.64192 12.9635C1.58349 12.2598 1.58349 11.3872 1.5835 10.2899V8.71529C1.58349 7.61803 1.58349 6.7454 1.64192 6.04175C1.70176 5.32111 1.82697 4.70711 2.11828 4.14631C2.56894 3.27875 3.27631 2.57138 4.14387 2.12072C4.70467 1.82941 5.31867 1.7042 6.0393 1.64436C6.74295 1.58593 7.61559 1.58593 8.71285 1.58594ZM6.17034 3.22227C5.54939 3.27383 5.17087 3.37145 4.87374 3.5258C4.29537 3.82624 3.82379 4.29782 3.52336 4.87618C3.36901 5.17331 3.27139 5.55183 3.21982 6.17278C3.16746 6.80322 3.16683 7.61012 3.16683 8.75052V10.2547C3.16683 11.3951 3.16746 12.202 3.21982 12.8324C3.27139 13.4534 3.36901 13.8319 3.52336 14.129C3.82379 14.7074 4.29537 15.179 4.87374 15.4795C5.17087 15.6337 5.54939 15.7314 6.17034 15.783C6.80078 15.8353 7.60768 15.8359 8.74808 15.8359H10.2522C11.3926 15.8359 12.1995 15.8353 12.83 15.783C13.451 15.7314 13.8295 15.6337 14.1266 15.4795C14.705 15.179 15.1766 14.7074 15.477 14.129C15.6313 13.8319 15.7289 13.4534 15.7805 12.8324C15.8329 12.202 15.8335 11.3951 15.8335 10.2547V8.75052C15.8335 7.61012 15.8329 6.80322 15.7805 6.17278C15.7289 5.55183 15.6313 5.17331 15.477 4.87618C15.1766 4.29782 14.705 3.82624 14.1266 3.5258C13.8295 3.37145 13.451 3.27383 12.83 3.22227C12.1995 3.1699 11.3926 3.16927 10.2522 3.16927H8.74808C7.60768 3.16927 6.80078 3.1699 6.17034 3.22227ZM9.36431 5.35218C9.80155 5.35218 10.156 5.70662 10.156 6.14385V10.0762L12.9481 11.1376C13.3568 11.293 13.5622 11.7502 13.4068 12.1589C13.2515 12.5676 12.7942 12.773 12.3856 12.6176L9.08303 11.3622C8.77579 11.2454 8.57265 10.9509 8.57265 10.6222V6.14385C8.57265 5.70662 8.92708 5.35218 9.36431 5.35218Z" fill="#017E10" />
</svg>
</button>
<div class="Rtable-cell--content d-flex justify-content-end align-items-center">
<div class="Rtable-cell--heading d-block text-center text-nowrap">
<span class="d-block">آغاز قرارداد</span>
@item.ContractStart
</div>
<div class="Rtable-cell--heading d-block text-center text-nowrap">
<span class="d-block">پایان قرارداد</span>
@item.ContractEnd
</div>
<div class="Rtable-cell--heading d-block text-center">
<button class="btn-print" type="button" onclick="printOneMobile(@item.Id)">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<button class="btn-print moreThan992" type="button" data-intro="یا میتوانید به صورت جداگانه لیست قرارداد را پرینت بگیرید" onclick="printOne(@item.Id)">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round" />
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round" />
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
</svg>
</button>
<button class="btn-print lessThan992" type="button" data-intro="یا میتوانید به صورت جداگانه لیست قرارداد را پرینت بگیرید" onclick="printOneMobile(@item.Id)">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round" />
@@ -446,39 +438,89 @@
</button>
</div>
</div>
<!--Mobile Table-->
<div class="Rtable-contract w-100 d-flex d-md-none align-items-center justify-content-between printAllTd">
<div class="d-flex justify-content-center align-items-center justify-content-between">
<div class="checkbox-responsive d-flex justify-content-center align-items-center justify-content-around">
<input type="checkbox" class="form-check-input foo" name="foo" value="@item.Id" id="">
<span>@(i)</span>
</div>
<div class="Rtable-cell--content">
<span class="mx-sm-2">
@item.EmployeeFullName
</span>
</div>
</div>
<div class="Rtable-cell--content d-flex justify-content-end align-items-center">
<div class="Rtable-cell--heading d-block text-center text-nowrap">
<span class="d-block">آغاز قرارداد</span>
@item.ContractStart
</div>
<div class="Rtable-cell--heading d-block text-center text-nowrap">
<span class="d-block">پایان قرارداد</span>
@item.ContractEnd
</div>
<div class="Rtable-cell--heading d-flex gap-1 text-center">
<button class="btn-print d-md-block d-none" type="button" onclick="printOneMobile(@item.Id)">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round" />
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round" />
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
</svg>
</button>
<button type="button" class="btnRSR" onclick="printRSR(@(item.Id))">
<div class="Rtable-cell--heading d-none">پرینت نوبت کاری</div>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.71285 1.58594H10.2875C11.3847 1.58593 12.2574 1.58593 12.961 1.64436C13.6817 1.7042 14.2957 1.82941 14.8564 2.12072C15.724 2.57138 16.4314 3.27875 16.8821 4.14631C17.1734 4.70711 17.2986 5.32111 17.3584 6.04175C17.4168 6.7454 17.4168 7.61804 17.4168 8.71529V10.2899C17.4168 11.3872 17.4168 12.2598 17.3584 12.9635C17.2986 13.6841 17.1734 14.2981 16.8821 14.8589C16.4314 15.7265 15.724 16.4338 14.8564 16.8845C14.2957 17.1758 13.6817 17.301 12.961 17.3608C12.2574 17.4193 11.3847 17.4193 10.2875 17.4193H8.71285C7.6156 17.4193 6.74296 17.4193 6.0393 17.3608C5.31867 17.301 4.70467 17.1758 4.14387 16.8845C3.27631 16.4338 2.56894 15.7265 2.11828 14.8589C1.82697 14.2981 1.70176 13.6841 1.64192 12.9635C1.58349 12.2598 1.58349 11.3872 1.5835 10.2899V8.71529C1.58349 7.61803 1.58349 6.7454 1.64192 6.04175C1.70176 5.32111 1.82697 4.70711 2.11828 4.14631C2.56894 3.27875 3.27631 2.57138 4.14387 2.12072C4.70467 1.82941 5.31867 1.7042 6.0393 1.64436C6.74295 1.58593 7.61559 1.58593 8.71285 1.58594ZM6.17034 3.22227C5.54939 3.27383 5.17087 3.37145 4.87374 3.5258C4.29537 3.82624 3.82379 4.29782 3.52336 4.87618C3.36901 5.17331 3.27139 5.55183 3.21982 6.17278C3.16746 6.80322 3.16683 7.61012 3.16683 8.75052V10.2547C3.16683 11.3951 3.16746 12.202 3.21982 12.8324C3.27139 13.4534 3.36901 13.8319 3.52336 14.129C3.82379 14.7074 4.29537 15.179 4.87374 15.4795C5.17087 15.6337 5.54939 15.7314 6.17034 15.783C6.80078 15.8353 7.60768 15.8359 8.74808 15.8359H10.2522C11.3926 15.8359 12.1995 15.8353 12.83 15.783C13.451 15.7314 13.8295 15.6337 14.1266 15.4795C14.705 15.179 15.1766 14.7074 15.477 14.129C15.6313 13.8319 15.7289 13.4534 15.7805 12.8324C15.8329 12.202 15.8335 11.3951 15.8335 10.2547V8.75052C15.8335 7.61012 15.8329 6.80322 15.7805 6.17278C15.7289 5.55183 15.6313 5.17331 15.477 4.87618C15.1766 4.29782 14.705 3.82624 14.1266 3.5258C13.8295 3.37145 13.451 3.27383 12.83 3.22227C12.1995 3.1699 11.3926 3.16927 10.2522 3.16927H8.74808C7.60768 3.16927 6.80078 3.1699 6.17034 3.22227ZM9.36431 5.35218C9.80155 5.35218 10.156 5.70662 10.156 6.14385V10.0762L12.9481 11.1376C13.3568 11.293 13.5622 11.7502 13.4068 12.1589C13.2515 12.5676 12.7942 12.773 12.3856 12.6176L9.08303 11.3622C8.77579 11.2454 8.57265 10.9509 8.57265 10.6222V6.14385C8.57265 5.70662 8.92708 5.35218 9.36431 5.35218Z" fill="#017E10" />
</svg>
</button>
</div>
</div>
</div>
<!--Mobile Table-->
</div>
<!--Mobile Table-->
</div>
}
</div>
</div>
}
else
{
<div class="container-fluid">
<div class="row p-lg-2 p-auto">
<div class="empty text-center bg-white d-flex align-items-center justify-content-center">
<div class="">
<img src="~/assetsclient/images/empty.png" alt="" class="img-fluid" />
<h5>اطلاعاتی وجود ندارد.</h5>
<div class="container-fluid">
<div class="row p-lg-2 p-auto">
<div class="empty text-center bg-white d-flex align-items-center justify-content-center">
<div class="">
<img src="~/assetsclient/images/empty.png" alt="" class="img-fluid" />
<h5>اطلاعاتی وجود ندارد.</h5>
</div>
</div>
</div>
</div>
</div>
}
</div>
</div>
</div>
</div>
<!-- End List Items -->
<!-- End List Items -->
</div>
<!--Start Print Modal Main -->
<div id="MainModal" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" id="ModalContent">
</div>
</div>
@@ -508,8 +550,8 @@
<option value="0"> انتخاب پرسنل </option>
@foreach (var person in @Model.Employees)
{
var black = person.Black ? "blackSelect" : "";
<option style="font-family: 'IranSans' !important;" class="@(black)" value="@person.Id"> @person.EmployeeFullName</option>
var black = person.Black ? "blackSelect" : "";
<option style="font-family: 'IranSans' !important;" class="@(black)" value="@person.Id"> @person.EmployeeFullName</option>
}
</select>
</div>
@@ -655,18 +697,17 @@
<script src="~/AssetsClient/js/dropdown.js?ver=@clientVersion"></script>
<script src="~/assetsclient/js/site.js?ver=clientVersion"></script>
<script src="~/assetsclient/js/smooth-scrollbar.js"></script>
<script>
var antiForgeryToken = $(`@Html.AntiForgeryToken()`).val();
var urlLoadAllToPrintUrlAjax = `@Url.Page("./Index", "LoadAllToPrint")`;
var PaginationUrlAjax = `@Url.Page("./Index", "Pagination")`;
var PrintOneUrl = `@Url.Page("/Company/Checkouts/Index", "PrintOne")`;
var PrintOneMobileUrl = `@Url.Page("/Company/Checkouts/Index", "PrintOneMobile")`;
var CheckoutPrintAllUrl = `@Url.Page("/Company/Checkouts/CheckoutPrintAll")`;
var antiForgeryToken = $(`@Html.AntiForgeryToken()`).val();
var urlLoadAllToPrintUrlAjax = `@Url.Page("./Index", "LoadAllToPrint")`;
var PaginationUrlAjax = `@Url.Page("./Index", "Pagination")`;
var PrintOneUrl = `@Url.Page("/Company/Checkouts/Index", "PrintOne")`;
var PrintOneMobileUrl = `@Url.Page("/Company/Checkouts/Index", "PrintOneMobile")`;
var CheckoutPrintAllUrl = `@Url.Page("/Company/Checkouts/CheckoutPrintAll")`;
var modalDetailsRotatingShiftReportUrl = `@Url.Page("/Company/Checkouts/Index", "ModalDetailsRotatingShiftReport")`;
console.log(urlLoadAllToPrintUrlAjax);
var itemsYearList = @Html.Raw(Json.Serialize(Model.YearlyList.OrderBy(x => x)));
</script>
var itemsYearList = @Html.Raw(Json.Serialize(Model.YearlyList.OrderBy(x => x)));
</script>
<script src="~/assetsclient/pages/checkouts/js/index.js?ver=@clientVersion"></script>
}

View File

@@ -0,0 +1,193 @@
@model CompanyManagment.App.Contracts.Contract.ComputingViewModel
@{
<style>
.modal.show .modal-dialog {
max-width: 900px;
}
.wrapContainerRSR {
background-color: #F6F6F6;
border-radius: 10px;
border: 1px solid #E6E6E6;
padding: 6px;
height: 70vh;
overflow-y: scroll;
overflow-x: hidden;
}
.titleRSR {
color: #1F2937;
font-size: 13px;
font-weight: 500;
}
.hasRotating{
background-color: #C7FF82;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
margin: auto;
}
.sticky-div {
top: -5px;
}
@@media (max-width: 768px) {
.Rtable--collapse .Rtable-row {
outline: none;
}
}
</style>
}
<div class="modal-content">
<div class="modal-header d-block text-center position-relative">
<button type="button" class="btn-close position-absolute text-start" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="">
<div>ساعت کاری پرسنل @Model.EmployeeFullName</div>
</div>
</div>
<div class="modal-body py-0 d-flex justify-content-center">
<div class="container-fluid">
<div class="wrapper wrapContainerRSR">
<div class="row">
<div class="col-4 text-start">
<div class="titleRSR">وضعیت نوبت کاری: @Model.RotatingStatus </div>
</div>
<div class="col-4 text-center">
<div class="titleRSR">
نوع ساعت کاری:
@if (Model.HasRollCall)
{
<span> حضور غیاب</span>
}
else
{
<span>عدم حضور غیاب</span>
}
</div>
</div>
<div class="col-4 text-end">
<div class="titleRSR">@Model.YearAndMonth</div>
</div>
</div>
<div class="Rtable Rtable--5cols Rtable--collapse">
<div class="Rtable-row Rtable-row--head align-items-center sticky-div d-flex">
<div class="Rtable-cell column-heading width1">تاریخ</div>
<div class="Rtable-cell column-heading width2 text-center">کارکرد صبح</div>
<div class="Rtable-cell column-heading width3 text-center">کارکرد عصر</div>
<div class="Rtable-cell column-heading width4 text-center">کارکرد شب</div>
<div class="Rtable-cell column-heading width5 text-center">نوبت صبح</div>
<div class="Rtable-cell column-heading width6 text-center">نوبت عصر</div>
<div class="Rtable-cell column-heading width7 text-center">نوبت شب</div>
</div>
@foreach (var item in @Model.RotatingResultList)
{
<div class="Rtable-row align-items-center position-relative ">
<div class="Rtable-cell width1">
<div class="Rtable-cell--heading">تاریخ</div>
<div class="Rtable-cell--content">@item.RotatingDate</div>
</div>
<div class="Rtable-cell width2">
<div class="Rtable-cell--heading">کارکرد صبح</div>
<div class="Rtable-cell--content text-center">@item.MorningString</div>
</div>
<div class="Rtable-cell width3">
<div class="Rtable-cell--heading">کارکرد عصر</div>
<div class="Rtable-cell--content text-center">@item.EveningString</div>
</div>
<div class="Rtable-cell width4">
<div class="Rtable-cell--heading">کارکرد شب</div>
<div class="Rtable-cell--content text-center">@item.NightString</div>
</div>
<div class="Rtable-cell width5">
<div class="Rtable-cell--heading">نوبت صبح</div>
<div class="Rtable-cell--content text-center">
@if (item.IsMorningShift == true)
{
<div class="hasRotating">
<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.15623 3L2.92516 4.76893C2.98374 4.82751 3.07871 4.82751 3.13729 4.76893L6.78123 1.125" stroke="#222222" stroke-width="0.75" stroke-linecap="round"/>
</svg>
</div>
}
else
{
<div></div>
}
</div>
</div>
<div class="Rtable-cell d-md-block d-none width6">
<div class="Rtable-cell--heading">نوبت عصر</div>
<div class="Rtable-cell--content text-center">
@if (item.IsEveningShift == true)
{
<div class="hasRotating">
<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.15623 3L2.92516 4.76893C2.98374 4.82751 3.07871 4.82751 3.13729 4.76893L6.78123 1.125" stroke="#222222" stroke-width="0.75" stroke-linecap="round" />
</svg>
</div>
}
else
{
<div></div>
}
</div>
</div>
<div class="Rtable-cell d-md-block d-none width7">
<div class="Rtable-cell--heading">نوبت شب</div>
<div class="Rtable-cell--content text-center">
@if (item.IsNightShift == true)
{
<div class="hasRotating">
<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.15623 3L2.92516 4.76893C2.98374 4.82751 3.07871 4.82751 3.13729 4.76893L6.78123 1.125" stroke="#222222" stroke-width="0.75" stroke-linecap="round" />
</svg>
</div>
}
else
{
<div></div>
}
</div>
</div>
</div>
}
</div>
</div>
</div>
</div>
<div class="modal-footer d-flex justify-content-center align-items-center gap-2">
<div class="w-25">
<button type="button" class="btn-secondary w-100" data-bs-dismiss="modal">انصراف</button>
</div>
<div class="w-25">
<button id="btnPrint" onclick="getPrintRSR()" class="btn-primary w-100">پرینت</button>
</div>
</div>
</div>
<script>
function getPrintRSR() {
var parametr = '&id=' + idCheckoutForPrintRSR + '&type=Print';
var url = modalDetailsRotatingShiftReportUrl;
AjaxUrlContentModal(url + parametr);
}
</script>

View File

@@ -0,0 +1,866 @@
@using _0_Framework.Application
@model CompanyManagment.App.Contracts.Contract.ComputingViewModel
@{
<style>
#MainModal {
backdrop-filter: blur(8px);
}
.modal .modal-dialog .modal-content {
background-color: white;
/* padding: 0px 30px 0 30px; */
}
.modal-header {
padding: 1rem 0rem !important;
}
.printBtns {
padding: 12px 2px 12px;
border-top: unset;
position: fixed;
top: 10%;
left: 50%;
transform: translateX(-800%);
display: flex;
flex-direction: column;
background: white;
align-items: center;
border-radius: 9px;
z-index: 9999999;
transition: none;
}
@@media (max-width: 1550px) {
.printBtns {
transform: translateX(-680%);
}
}
#printThis .modal-content {
background-clip: padding-box;
background: black !important;
}
#printThis h1, h2, h3, h4, h5, h6 {
color: black;
margin: 1rem 0;
}
.top-title {
text-align: center;
}
.list-no {
display: flex;
justify-content: center;
align-items: center;
margin: 1rem 0;
}
.list-no h4 {
margin: 0 9rem;
}
#printThis span {
margin: 0 3rem;
}
.table-title {
display: flex;
justify-content: space-between;
padding: 0 1rem;
border: 1px solid black;
border-top-right-radius: 9px;
border-top-left-radius: 9px;
border-bottom: 0;
}
.table-title h4 {
font-size: 1.5rem;
}
#printThis span {
margin: 0 1rem;
}
#printThis table {
direction: ltr;
width: 100%;
}
#printThis .table-bordered {
/* border: 1px solid #94a3b8; */
border-radius: 9px;
/* border-collapse: separate; */
margin-bottom: 0;
table-layout: fixed;
width: 100%;
}
#printThis .table-bordered > thead > tr > th {
font-size: 1.3rem;
color: black;
text-align: center;
vertical-align: middle;
padding: 0;
overflow: hidden;
/* border: 1px solid #c7c7c7 !important; */
background: #E1E1E1;
}
#printThis .table-bordered > tbody > tr > td {
padding: 4px 2px;
text-align: center;
font-size: 10px;
/* border: 1px solid #c7c7c7 !important; */
background: transparent;
overflow: hidden;
}
#printThis .table-bordered > tbody > tr.withdraw > td {
background-color: #b5b5b5 !important;
}
#printThis tr:nth-child(2n) td {
background: #f0f0f0 !important;
}
tr td:first-child {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
tr td:last-child {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
tr th:first-child {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
tr th:last-child {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.printBtns .btn-rounded {
margin-left: 0.5rem;
margin-right: 0.5rem;
padding: 5px 18px;
}
#printThis .colgp-1 {
width: 40px;
}
#printThis .colgp-2 {
width: 150px;
}
#printThis .colgp-3 {
width: 95px;
}
#printThis .colgp-4 {
width: 50px;
}
#printThis .colgp-5 {
width: 65px;
}
#printThis .colgp-6 {
width: 65px;
}
#printThis .colgp-7 {
width: 58px;
}
#printThis .colgp-8 {
width: 55px;
}
.data-total {
border-top: 1px solid black;
margin-top: 2rem;
padding-top: 0.5rem;
}
#printThis .table-bordered .total td {
background: #dfdfdf !important;
}
.bl-hidden {
border-left: hidden !important;
}
.table-name {
font-family: 'IranSans' !important;
text-align: right !important;
white-space: nowrap !important;
max-width: 100%;
width: 80px;
overflow-x: clip;
direction: rtl;
}
@@media screen {
#printSection {
display: none;
}
}
@@media (max-width: 1550px) {
.modal-dialog {
width: 1000px !important;
}
.table-title h4 {
font-size: 1.3rem;
}
.top-title h1 {
font-size: 2.5rem;
}
.top-title h4 {
font-size: 1.5rem;
}
.list-no h4 {
margin: 0 8rem;
}
#printThis .table-bordered {
/* border: 1px solid #94a3b8 !important; */
border-radius: 9px !important;
}
#printThis .table-bordered > thead > tr > th {
font-size: 1.1rem;
}
#printThis .table-bordered > tbody > tr > td {
font-size: 10px;
}
#printThis .colgp-3 {
width: 90px;
}
#printThis .colgp-4 {
width: 50px;
}
#printThis .colgp-5 {
width: 70px;
}
#printThis .colgp-6 {
width: 70px;
}
#printThis .colgp-7 {
width: 48px;
}
#printThis .colgp-8 {
width: 55px;
}
}
@@page {
size: A4;
margin: 0mm;
page-break-after: auto;
}
@@media print {
body * {
visibility: hidden;
page-break-after: auto;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
html, body {
height: 100%;
margin: 0 !important;
padding: 0 !important;
overflow: clip;
}
/* .modal-dialog {
max-width: 100%;
width: 60cm;
} */
.modal .modal-dialog .modal-content {
padding: 0;
}
#printSection, #printSection * {
visibility: visible;
page-break-after: auto;
}
#printSection {
width: 21cm;
/* height: 29.7cm; */
position: absolute;
padding: 1cm;
margin: 6px auto 0;
right: 0;
top: 0;
page-break-after: auto;
}
.titleRSR {
color: #1F2937;
font-size: 13px;
font-weight: 500;
}
.hasRotating{
background-color: #C7FF82;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
margin: auto;
}
#printThis .table-bordered {
/* border-collapse: separate !important; */
margin-bottom: 0;
table-layout: fixed;
width: 100%;
border: 0 !important;
}
#printThis .table-bordered > thead > tr > th {
font-size: 1.2rem !important;
color: black;
text-align: center;
vertical-align: middle;
padding: 0;
/* border: 1px solid #94a3b8; */
background: #E1E1E1;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
#printThis tr:nth-child(2n) td {
background: #f0f0f0 !important;
}
#printThis .table-bordered > tbody > tr > td {
padding: 4px 2px;
text-align: center;
font-size: 10px !important;
/* border: 1px solid #94a3b8; */
}
#printThis .table-bordered > thead > td:first-child {
border: 9px !important;
}
#printThis .table-bordered > thead > td:last-child {
border: 9px !important;
}
.table > tbody > tr.withdraw > td {
background-color: #b5b5b5 !important;
}
#printThis .table {
/* border: 1px solid transparent !important; */
border-collapse: separate !important;
overflow: hidden !important;
border-spacing: 0 !important;
border-radius: 10px !important;
text-align: center !important;
/* border: 1px solid #aaa !important; */
}
#printThis .table th, #printThis .table td {
vertical-align: middle !important;
border: 1px solid #94a3b8 !important;
}
/* #printThis .table th:last-child, #printThis .table td:last-child {
border-right: none !important;
}
#printThis .table tbody tr:last-child th, #printThis .table tbody tr:last-child td {
border-bottom: none !important;
} */
#printThis .colgp-1 {
width: 40px;
}
#printThis .colgp-2 {
width: 150px;
}
#printThis .colgp-3 {
width: 70px;
}
#printThis .colgp-15 {
width: 80px;
}
#printThis .colgp-16 {
width: 75px;
}
#printThis .colgp-14 {
width: 80px;
}
#printThis .colgp-13 {
width: 80px;
}
#printThis .colgp-12 {
width: 85px;
}
#printThis .colgp-8 {
width: 55px;
}
#printThis .colgp-9 {
width: 60px;
}
.bl-hidden {
border-left: hidden !important;
}
.table-name {
padding: 8px 0;
}
#printThis .table-bordered > thead tr:first-child {
border: 0 !important;
}
#printThis .titleSection {
border: 1px solid #94a3b8 !important;
border-bottom: 0 !important;
border-radius: 10px 10px 0 0 !important;
background: #fff !important;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
#printThis .table-bordered > thead {
display: table-header-group !important;
page-break-inside: avoid !important;
}
}
.cls-1 {
fill: url(#linear-gradient-2);
}
.cls-2 {
fill: url(#linear-gradient-3);
}
.cls-3 {
fill: url(#linear-gradient);
}
.flex {
display: flex;
}
.justify-between {
justify-content: space-between;
}
.justify-end {
justify-content: end;
}
.items-center {
align-items: center;
}
.titleSection {
background: #fff !important;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
padding: 5px;
margin: 0;
border: 1px solid #94a3b8;
border-bottom: 0;
align-items: center;
display: flex;
}
.titleH1 {
font-size: 24px;
margin: 0 !important;
font-weight: 600;
}
.lineS {
margin: 4px 0 !important;
}
.table > tbody > tr.withdraw > td {
background-color: #b5b5b5 !important;
}
.table {
/* border: 1px solid #94a3b8 !important; */
border-collapse: separate !important;
overflow: hidden !important;
border-spacing: 0 !important;
border-radius: 10px !important;
text-align: center !important;
/* border: 1px solid #94a3b8 !important; */
}
.table th, .table td {
vertical-align: middle !important;
border: 1px solid #94a3b8 !important;
}
/* .table th:last-child, .table td:last-child {
border-right: none !important;
}
.table tbody tr:last-child th, .table tbody tr:last-child td {
border-bottom: none !important;
} */
#divTablescrollbar {
overflow-y: scroll;
max-height: calc(100vh - 200px);
position: relative;
scrollbar-width: thin;
scrollbar-gutter: stable;
}
@@media screen and (max-width: 992px) {
.wrapContainerRSR {
height: auto;
}
}
</style>
}
<div class="modal-body py-0 d-flex justify-content-center">
<div class="modal-content" style="padding: 0 0 15px 0;">
<form asp-page="./Index" asp-page-handler="Details"
method="post"
data-ajax="true"
data-callback=""
data-action="Refresh"
enctype="multipart/form-data">
<div class="modal-header d-block text-center position-relative">
<button type="button" class="btn-close position-absolute text-start" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="divTablescrollbar">
<div class="row main-table">
<div class="table-container tbl-body col-12 print" id="printThis">
<table class="table table-bordered" style="border-radius: 0 0 9px 9px;direction: rtl;padding: 0;">
<colgroup>
<col class="colgp-1">
<col class="colgp-2">
<col class="colgp-002">
<col class="colgp-002">
<col class="colgp-002">
<col class="colgp-002">
<col class="colgp-002">
<col class="colgp-002">
</colgroup>
<thead>
<tr>
<th colspan="8" class="col-md-12" style="border-radius: 10px 10px 0 0;">
<div class="row titleSection">
<div class="col-3 text-start">
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 621.6 721.91" width="55px">
<defs>
<linearGradient id="linear-gradient" x1="0" y1="481.82" x2="621.6" y2="481.82" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#30c1c1" />
<stop offset="1" stop-color="#087474" />
</linearGradient>
<linearGradient id="linear-gradient-2" x1="217.07" y1="187.47" x2="523.83" y2="187.47" xlink:href="#linear-gradient" />
<linearGradient id="linear-gradient-3" x1="1.3" y1="146.6" x2="395.56" y2="146.6" xlink:href="#linear-gradient" />
</defs>
<polygon class="cls-3" points="0 328.82 129.91 244.95 129.91 453.87 310.8 562.4 488.4 453.87 488.4 355.2 310.8 355.2 488.4 241.73 621.6 241.73 621.6 541.02 310.8 721.91 0 541.02 0 328.82" />
<polygon class="cls-1" points="217.07 309.16 217.07 192.4 426.8 65.78 523.83 123.33 217.07 309.16" />
<polyline class="cls-2" points="308.61 0 395.56 47.69 1.3 293.19 1.3 184.66 308.61 0" />
</svg>
</div>
<div class="col-6 text-center">
<div style="display: inline-block;">
<div style="position: relative;text-align: center;bottom: 10px;">
<span class="titleH1">موسسه نور دادمهر گستر کاسپین</span>
<div style="position: absolute;left: 0;font-size: 14px;">شماره ثبت: 1727</div>
</div>
</div>
</div>
<div class="col-3 text-end">
<p style="letter-spacing: 1.4px;font-size: 13px;margin: 0 0 2px 0;">www.gozareshgir.ir</p>
<p class="m-0" style="font-size: 13px;">سامانه هوشمند گزارشگیر</p>
</div>
</div>
</th>
</tr>
<tr>
<th colspan="4" style="font-size: 11px !important; text-align: center; background-color: #CDCDCD;padding: 6px;">
<div class="titleRSR">نام پرسنل: @Model.EmployeeFullName </div>
</th>
<th colspan="4" style="font-size: 11px !important; text-align: center; background-color: #CDCDCD;padding: 6px;">
<div class="titleRSR">@Model.YearAndMonth</div>
</th>
</tr>
<tr>
<th colspan="4" style="font-size: 11px !important; text-align: center;padding: 6px;">
<div class="titleRSR">وضعیت نوبت کاری: @Model.RotatingStatus </div>
</th>
<th colspan="4" style="font-size: 11px !important; text-align: center;padding: 6px;">
<div class="titleRSR">
نوع ساعت کاری:
@if (Model.HasRollCall)
{
<span> حضور غیاب</span>
}
else
{
<span>عدم حضور غیاب</span>
}
</div>
</th>
</tr>
<tr>
<th colspan="2" style="font-size: 11px !important; text-align: start">تاریخ</th>
<th style="font-size: 11px !important; text-align: center; padding: 4px;">کارکرد صبح</th>
<th style="font-size: 11px !important; text-align: center; padding: 4px;">کارکرد عصر</th>
<th style="font-size: 11px !important; text-align: center; padding: 4px;">کارکرد شب</th>
<th style="font-size: 11px !important; text-align: center; padding: 4px;">نوبت صبح</th>
<th style="font-size: 11px !important; text-align: center; padding: 4px;">نوبت عصر</th>
<th style="font-size: 11px !important; text-align: center; padding: 4px;">نوبت شب</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.RotatingResultList)
{
<tr>
<td colspan="2" style="font-family: 'IranText' !important; font-size: 10px !important; text-align: start">
@item.RotatingDate
</td>
<td style="font-family: 'IranText' !important; font-size: 10px !important; text-align: center">
@item.MorningString
</td>
<td style="font-family: 'IranText' !important; font-size: 10px !important; text-align: center">
@item.EveningString
</td>
<td style="font-family: 'IranText' !important; font-size: 10px !important; text-align: center">
@item.NightString
</td>
<td style="font-family: 'IranText' !important; font-size: 10px !important; text-align: center">
@if (item.IsMorningShift == true)
{
<div class="hasRotating">
<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.15623 3L2.92516 4.76893C2.98374 4.82751 3.07871 4.82751 3.13729 4.76893L6.78123 1.125" stroke="#222222" stroke-width="0.75" stroke-linecap="round" />
</svg>
</div>
}
else
{
<div></div>
}
</td>
<td style="font-family: 'IranText' !important; font-size: 10px !important; text-align: center">
@if (item.IsEveningShift == true)
{
<div class="hasRotating">
<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.15623 3L2.92516 4.76893C2.98374 4.82751 3.07871 4.82751 3.13729 4.76893L6.78123 1.125" stroke="#222222" stroke-width="0.75" stroke-linecap="round" />
</svg>
</div>
}
else
{
<div></div>
}
</td>
<td style="font-family: 'IranText' !important; font-size: 10px !important; text-align: center">
@if (item.IsNightShift == true)
{
<div class="hasRotating">
<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.15623 3L2.92516 4.76893C2.98374 4.82751 3.07871 4.82751 3.13729 4.76893L6.78123 1.125" stroke="#222222" stroke-width="0.75" stroke-linecap="round" />
</svg>
</div>
}
else
{
<div></div>
}
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
</form>
</div>
</div>
<script src="~/assetsclient/libs/html2pdf/html2pdf.bundle.min.js"></script>
@* <script src="~/assetsclient/libs/html2pdf/html2pdf.bundle.min.js"></script> *@
<script>
$(document).ready(function () {
$('.loading').hide();
const target = document.getElementById("printThis");
convertNumbersToPersianInElement(target);
const isMobile = window.matchMedia('(max-width: 767px)').matches;
const printTarget = document.getElementById("printThis");
const mainModal = document.getElementById("MainModal");
function hideModalBeforePrint() {
$("#MainModal").modal("hide");
mainModal.style.visibility = "hidden";
}
function disableScroll() {
document.body.style.overflow = 'hidden';
}
function delayPrint(callback) {
setTimeout(() => callback(printTarget), 1000);
}
window.onbeforeprint = hideModalBeforePrint;
const prepareForPrint = () => {
document.querySelectorAll('.modal .modal-dialog .modal-content').forEach(el => {
el.style.visibility = 'hidden';
el.style.position = 'absolute';
el.style.zIndex = '-1';
});
};
if (isMobile) {
prepareForPrint();
disableScroll();
delayPrint(printElementMobile);
} else {
prepareForPrint();
disableScroll();
delayPrint(printElement);
}
});
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);
document.querySelectorAll('.modal .modal-dialog .modal-content').forEach(el => {
el.style.visibility = 'visible';
el.style.position = '';
el.style.zIndex = '';
});
window.print();
}
function printElementMobile(elem) {
const date = "@Html.Raw(DateTime.Today.ToFarsi().Replace("/", "-"))";
const fullname = "@Html.Raw(Model.EmployeeFullName.Replace(" ", "-"))";
const opt = {
margin: 2,
filename: `RottingShift_${fullname}_${date}.pdf`,
image: { type: 'jpeg', quality: 0.98 },
html2canvas: {
scale: 2,
scrollY: 0,
windowHeight: elem.scrollHeight
},
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }
};
html2pdf().set(opt).from(elem).save().then(() => {
document.body.style.overflow = '';
$("#MainModal").modal("hide");
document.querySelectorAll('.modal .modal-dialog .modal-content').forEach(el => {
el.style.visibility = 'visible';
el.style.position = '';
el.style.zIndex = '';
});
});
}
function convertNumbersToPersianInElement(element) {
const persianDigits = ['۰','۱','۲','۳','۴','۵','۶','۷','۸','۹'];
function toPersianNumber(str) {
return str.replace(/\d/g, d => persianDigits[d]);
}
function walkNodes(node) {
if (node.nodeType === Node.TEXT_NODE) {
node.nodeValue = toPersianNumber(node.nodeValue);
} else if (node.nodeType === Node.ELEMENT_NODE) {
for (let child of node.childNodes) {
walkNodes(child);
}
}
}
walkNodes(element);
}
</script>

View File

@@ -1247,7 +1247,7 @@ $("#overlaySearchAdvance").click(function () {
</span>
</label>
</div>
<div class="Rtable-cell d-md-block d-none width2">
<div class="Rtable-cell d-lg-block d-none width2">
<div class="Rtable-cell--heading">شماره پرسنلی</div>
<div class="Rtable-cell--content">${item.personnelCode}</div>
</div>
@@ -1278,12 +1278,11 @@ $("#overlaySearchAdvance").click(function () {
<div class="Rtable-cell d-md-flex d-none width9">
<div class="Rtable-cell--heading">امضاء پرسنل</div>
<div class="Rtable-cell--content ">
${item.signature === "1"
? `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
${item.signature === "1" ? `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="20" height="20" rx="10" fill="#1DC9A0" />
<path d="M14.6667 6.7915L8.25004 13.2082L5.33337 10.2915" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>`
: ` <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
: ` <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="19" height="19" rx="9.5" fill="#FFD5D5" stroke="#ED8E8E" />
</svg>`
}
@@ -1293,8 +1292,8 @@ $("#overlaySearchAdvance").click(function () {
<div class="Rtable-contract w-100 d-flex d-md-none align-items-center justify-content-between printAllTd">
<div class="d-flex justify-content-center align-items-center justify-content-between">
<div class="checkbox-responsive d-flex justify-content-center align-items-center justify-content-around">
<input type="checkbox" class="form-check-input" name="" id="">
<span> ${n}</span>
<input type="checkbox" class="form-check-input" name="" id="">
<span> ${n}</span>
</div>
<div class="Rtable-cell--content">
@@ -1315,8 +1314,8 @@ $("#overlaySearchAdvance").click(function () {
<span class="d-block">پایان قرارداد</span>
${item.contractEnd}
</div>
<div class="Rtable-cell--heading d-block text-center">
<button class="btn-print" type="button" onclick="printOneMobile(${item.id})">
<div class="Rtable-cell--heading d-flex gap-1 text-center">
<button class="btn-print d-md-block d-none" type="button" onclick="printOneMobile(${item.id})">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
@@ -1325,12 +1324,25 @@ $("#overlaySearchAdvance").click(function () {
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
</svg>
</button>
<button type="button" class="btnRSR" onclick="printRSR(${item.id})">
<div class="Rtable-cell--heading d-none">پرینت نوبت کاری</div>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.71285 1.58594H10.2875C11.3847 1.58593 12.2574 1.58593 12.961 1.64436C13.6817 1.7042 14.2957 1.82941 14.8564 2.12072C15.724 2.57138 16.4314 3.27875 16.8821 4.14631C17.1734 4.70711 17.2986 5.32111 17.3584 6.04175C17.4168 6.7454 17.4168 7.61804 17.4168 8.71529V10.2899C17.4168 11.3872 17.4168 12.2598 17.3584 12.9635C17.2986 13.6841 17.1734 14.2981 16.8821 14.8589C16.4314 15.7265 15.724 16.4338 14.8564 16.8845C14.2957 17.1758 13.6817 17.301 12.961 17.3608C12.2574 17.4193 11.3847 17.4193 10.2875 17.4193H8.71285C7.6156 17.4193 6.74296 17.4193 6.0393 17.3608C5.31867 17.301 4.70467 17.1758 4.14387 16.8845C3.27631 16.4338 2.56894 15.7265 2.11828 14.8589C1.82697 14.2981 1.70176 13.6841 1.64192 12.9635C1.58349 12.2598 1.58349 11.3872 1.5835 10.2899V8.71529C1.58349 7.61803 1.58349 6.7454 1.64192 6.04175C1.70176 5.32111 1.82697 4.70711 2.11828 4.14631C2.56894 3.27875 3.27631 2.57138 4.14387 2.12072C4.70467 1.82941 5.31867 1.7042 6.0393 1.64436C6.74295 1.58593 7.61559 1.58593 8.71285 1.58594ZM6.17034 3.22227C5.54939 3.27383 5.17087 3.37145 4.87374 3.5258C4.29537 3.82624 3.82379 4.29782 3.52336 4.87618C3.36901 5.17331 3.27139 5.55183 3.21982 6.17278C3.16746 6.80322 3.16683 7.61012 3.16683 8.75052V10.2547C3.16683 11.3951 3.16746 12.202 3.21982 12.8324C3.27139 13.4534 3.36901 13.8319 3.52336 14.129C3.82379 14.7074 4.29537 15.179 4.87374 15.4795C5.17087 15.6337 5.54939 15.7314 6.17034 15.783C6.80078 15.8353 7.60768 15.8359 8.74808 15.8359H10.2522C11.3926 15.8359 12.1995 15.8353 12.83 15.783C13.451 15.7314 13.8295 15.6337 14.1266 15.4795C14.705 15.179 15.1766 14.7074 15.477 14.129C15.6313 13.8319 15.7289 13.4534 15.7805 12.8324C15.8329 12.202 15.8335 11.3951 15.8335 10.2547V8.75052C15.8335 7.61012 15.8329 6.80322 15.7805 6.17278C15.7289 5.55183 15.6313 5.17331 15.477 4.87618C15.1766 4.29782 14.705 3.82624 14.1266 3.5258C13.8295 3.37145 13.451 3.27383 12.83 3.22227C12.1995 3.1699 11.3926 3.16927 10.2522 3.16927H8.74808C7.60768 3.16927 6.80078 3.1699 6.17034 3.22227ZM9.36431 5.35218C9.80155 5.35218 10.156 5.70662 10.156 6.14385V10.0762L12.9481 11.1376C13.3568 11.293 13.5622 11.7502 13.4068 12.1589C13.2515 12.5676 12.7942 12.773 12.3856 12.6176L9.08303 11.3622C8.77579 11.2454 8.57265 10.9509 8.57265 10.6222V6.14385C8.57265 5.70662 8.92708 5.35218 9.36431 5.35218Z" fill="#017E10" />
</svg>
</button>
</div>
</div>
</div>
<div class="Rtable-cell d-md-block d-none width10">
<div class="Rtable-cell--content align-items-center d-flex d-md-block text-end">
<button type="button" class="btnRSR" onclick="printRSR(${item.id})">
<div class="Rtable-cell--heading d-none">پرینت نوبت کاری</div>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.71285 1.58594H10.2875C11.3847 1.58593 12.2574 1.58593 12.961 1.64436C13.6817 1.7042 14.2957 1.82941 14.8564 2.12072C15.724 2.57138 16.4314 3.27875 16.8821 4.14631C17.1734 4.70711 17.2986 5.32111 17.3584 6.04175C17.4168 6.7454 17.4168 7.61804 17.4168 8.71529V10.2899C17.4168 11.3872 17.4168 12.2598 17.3584 12.9635C17.2986 13.6841 17.1734 14.2981 16.8821 14.8589C16.4314 15.7265 15.724 16.4338 14.8564 16.8845C14.2957 17.1758 13.6817 17.301 12.961 17.3608C12.2574 17.4193 11.3847 17.4193 10.2875 17.4193H8.71285C7.6156 17.4193 6.74296 17.4193 6.0393 17.3608C5.31867 17.301 4.70467 17.1758 4.14387 16.8845C3.27631 16.4338 2.56894 15.7265 2.11828 14.8589C1.82697 14.2981 1.70176 13.6841 1.64192 12.9635C1.58349 12.2598 1.58349 11.3872 1.5835 10.2899V8.71529C1.58349 7.61803 1.58349 6.7454 1.64192 6.04175C1.70176 5.32111 1.82697 4.70711 2.11828 4.14631C2.56894 3.27875 3.27631 2.57138 4.14387 2.12072C4.70467 1.82941 5.31867 1.7042 6.0393 1.64436C6.74295 1.58593 7.61559 1.58593 8.71285 1.58594ZM6.17034 3.22227C5.54939 3.27383 5.17087 3.37145 4.87374 3.5258C4.29537 3.82624 3.82379 4.29782 3.52336 4.87618C3.36901 5.17331 3.27139 5.55183 3.21982 6.17278C3.16746 6.80322 3.16683 7.61012 3.16683 8.75052V10.2547C3.16683 11.3951 3.16746 12.202 3.21982 12.8324C3.27139 13.4534 3.36901 13.8319 3.52336 14.129C3.82379 14.7074 4.29537 15.179 4.87374 15.4795C5.17087 15.6337 5.54939 15.7314 6.17034 15.783C6.80078 15.8353 7.60768 15.8359 8.74808 15.8359H10.2522C11.3926 15.8359 12.1995 15.8353 12.83 15.783C13.451 15.7314 13.8295 15.6337 14.1266 15.4795C14.705 15.179 15.1766 14.7074 15.477 14.129C15.6313 13.8319 15.7289 13.4534 15.7805 12.8324C15.8329 12.202 15.8335 11.3951 15.8335 10.2547V8.75052C15.8335 7.61012 15.8329 6.80322 15.7805 6.17278C15.7289 5.55183 15.6313 5.17331 15.477 4.87618C15.1766 4.29782 14.705 3.82624 14.1266 3.5258C13.8295 3.37145 13.451 3.27383 12.83 3.22227C12.1995 3.1699 11.3926 3.16927 10.2522 3.16927H8.74808C7.60768 3.16927 6.80078 3.1699 6.17034 3.22227ZM9.36431 5.35218C9.80155 5.35218 10.156 5.70662 10.156 6.14385V10.0762L12.9481 11.1376C13.3568 11.293 13.5622 11.7502 13.4068 12.1589C13.2515 12.5676 12.7942 12.773 12.3856 12.6176L9.08303 11.3622C8.77579 11.2454 8.57265 10.9509 8.57265 10.6222V6.14385C8.57265 5.70662 8.92708 5.35218 9.36431 5.35218Z" fill="#017E10" />
</svg>
</button>
<button class="btn-print moreThan992" type="button" data-intro="یا میتوانید به صورت جداگانه لیست قرارداد را پرینت بگیرید" onclick="printOne(${item.id})">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
@@ -1424,7 +1436,7 @@ $("#overlaySearchAdvance").click(function () {
</span>
</label>
</div>
<div class="Rtable-cell d-md-block d-none width2">
<div class="Rtable-cell d-lg-block d-none width2">
<div class="Rtable-cell--heading">شماره پرسنلی</div>
<div class="Rtable-cell--content">${item.personnelCode}</div>
</div>
@@ -1492,8 +1504,8 @@ $("#overlaySearchAdvance").click(function () {
<span class="d-block">پایان قرارداد</span>
${item.contractEnd}
</div>
<div class="Rtable-cell--heading d-block text-center">
<button class="btn-print" type="button" onclick="printOneMobile(${item.id})">
<div class="Rtable-cell--heading d-flex gap-1 text-center">
<button class="btn-print d-md-block d-none" type="button" onclick="printOneMobile(${item.id})">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
@@ -1502,13 +1514,26 @@ $("#overlaySearchAdvance").click(function () {
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
</svg>
</button>
<button type="button" class="btnRSR" onclick="printRSR(${item.id})">
<div class="Rtable-cell--heading d-none">پرینت نوبت کاری</div>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.71285 1.58594H10.2875C11.3847 1.58593 12.2574 1.58593 12.961 1.64436C13.6817 1.7042 14.2957 1.82941 14.8564 2.12072C15.724 2.57138 16.4314 3.27875 16.8821 4.14631C17.1734 4.70711 17.2986 5.32111 17.3584 6.04175C17.4168 6.7454 17.4168 7.61804 17.4168 8.71529V10.2899C17.4168 11.3872 17.4168 12.2598 17.3584 12.9635C17.2986 13.6841 17.1734 14.2981 16.8821 14.8589C16.4314 15.7265 15.724 16.4338 14.8564 16.8845C14.2957 17.1758 13.6817 17.301 12.961 17.3608C12.2574 17.4193 11.3847 17.4193 10.2875 17.4193H8.71285C7.6156 17.4193 6.74296 17.4193 6.0393 17.3608C5.31867 17.301 4.70467 17.1758 4.14387 16.8845C3.27631 16.4338 2.56894 15.7265 2.11828 14.8589C1.82697 14.2981 1.70176 13.6841 1.64192 12.9635C1.58349 12.2598 1.58349 11.3872 1.5835 10.2899V8.71529C1.58349 7.61803 1.58349 6.7454 1.64192 6.04175C1.70176 5.32111 1.82697 4.70711 2.11828 4.14631C2.56894 3.27875 3.27631 2.57138 4.14387 2.12072C4.70467 1.82941 5.31867 1.7042 6.0393 1.64436C6.74295 1.58593 7.61559 1.58593 8.71285 1.58594ZM6.17034 3.22227C5.54939 3.27383 5.17087 3.37145 4.87374 3.5258C4.29537 3.82624 3.82379 4.29782 3.52336 4.87618C3.36901 5.17331 3.27139 5.55183 3.21982 6.17278C3.16746 6.80322 3.16683 7.61012 3.16683 8.75052V10.2547C3.16683 11.3951 3.16746 12.202 3.21982 12.8324C3.27139 13.4534 3.36901 13.8319 3.52336 14.129C3.82379 14.7074 4.29537 15.179 4.87374 15.4795C5.17087 15.6337 5.54939 15.7314 6.17034 15.783C6.80078 15.8353 7.60768 15.8359 8.74808 15.8359H10.2522C11.3926 15.8359 12.1995 15.8353 12.83 15.783C13.451 15.7314 13.8295 15.6337 14.1266 15.4795C14.705 15.179 15.1766 14.7074 15.477 14.129C15.6313 13.8319 15.7289 13.4534 15.7805 12.8324C15.8329 12.202 15.8335 11.3951 15.8335 10.2547V8.75052C15.8335 7.61012 15.8329 6.80322 15.7805 6.17278C15.7289 5.55183 15.6313 5.17331 15.477 4.87618C15.1766 4.29782 14.705 3.82624 14.1266 3.5258C13.8295 3.37145 13.451 3.27383 12.83 3.22227C12.1995 3.1699 11.3926 3.16927 10.2522 3.16927H8.74808C7.60768 3.16927 6.80078 3.1699 6.17034 3.22227ZM9.36431 5.35218C9.80155 5.35218 10.156 5.70662 10.156 6.14385V10.0762L12.9481 11.1376C13.3568 11.293 13.5622 11.7502 13.4068 12.1589C13.2515 12.5676 12.7942 12.773 12.3856 12.6176L9.08303 11.3622C8.77579 11.2454 8.57265 10.9509 8.57265 10.6222V6.14385C8.57265 5.70662 8.92708 5.35218 9.36431 5.35218Z" fill="#017E10" />
</svg>
</button>
</div>
</div>
</div>
<div class="Rtable-cell d-md-block d-none width10">
<div class="Rtable-cell--content align-items-center d-flex d-md-block text-end">
<button class="btn-print moreThan992" type="button" data-intro="یا میتوانید به صورت جداگانه لیست قرارداد را پرینت بگیرید" onclick="printOne(${item.id})">
<button type="button" class="btnRSR" onclick="printRSR(${item.id})">
<div class="Rtable-cell--heading d-none">پرینت نوبت کاری</div>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.71285 1.58594H10.2875C11.3847 1.58593 12.2574 1.58593 12.961 1.64436C13.6817 1.7042 14.2957 1.82941 14.8564 2.12072C15.724 2.57138 16.4314 3.27875 16.8821 4.14631C17.1734 4.70711 17.2986 5.32111 17.3584 6.04175C17.4168 6.7454 17.4168 7.61804 17.4168 8.71529V10.2899C17.4168 11.3872 17.4168 12.2598 17.3584 12.9635C17.2986 13.6841 17.1734 14.2981 16.8821 14.8589C16.4314 15.7265 15.724 16.4338 14.8564 16.8845C14.2957 17.1758 13.6817 17.301 12.961 17.3608C12.2574 17.4193 11.3847 17.4193 10.2875 17.4193H8.71285C7.6156 17.4193 6.74296 17.4193 6.0393 17.3608C5.31867 17.301 4.70467 17.1758 4.14387 16.8845C3.27631 16.4338 2.56894 15.7265 2.11828 14.8589C1.82697 14.2981 1.70176 13.6841 1.64192 12.9635C1.58349 12.2598 1.58349 11.3872 1.5835 10.2899V8.71529C1.58349 7.61803 1.58349 6.7454 1.64192 6.04175C1.70176 5.32111 1.82697 4.70711 2.11828 4.14631C2.56894 3.27875 3.27631 2.57138 4.14387 2.12072C4.70467 1.82941 5.31867 1.7042 6.0393 1.64436C6.74295 1.58593 7.61559 1.58593 8.71285 1.58594ZM6.17034 3.22227C5.54939 3.27383 5.17087 3.37145 4.87374 3.5258C4.29537 3.82624 3.82379 4.29782 3.52336 4.87618C3.36901 5.17331 3.27139 5.55183 3.21982 6.17278C3.16746 6.80322 3.16683 7.61012 3.16683 8.75052V10.2547C3.16683 11.3951 3.16746 12.202 3.21982 12.8324C3.27139 13.4534 3.36901 13.8319 3.52336 14.129C3.82379 14.7074 4.29537 15.179 4.87374 15.4795C5.17087 15.6337 5.54939 15.7314 6.17034 15.783C6.80078 15.8353 7.60768 15.8359 8.74808 15.8359H10.2522C11.3926 15.8359 12.1995 15.8353 12.83 15.783C13.451 15.7314 13.8295 15.6337 14.1266 15.4795C14.705 15.179 15.1766 14.7074 15.477 14.129C15.6313 13.8319 15.7289 13.4534 15.7805 12.8324C15.8329 12.202 15.8335 11.3951 15.8335 10.2547V8.75052C15.8335 7.61012 15.8329 6.80322 15.7805 6.17278C15.7289 5.55183 15.6313 5.17331 15.477 4.87618C15.1766 4.29782 14.705 3.82624 14.1266 3.5258C13.8295 3.37145 13.451 3.27383 12.83 3.22227C12.1995 3.1699 11.3926 3.16927 10.2522 3.16927H8.74808C7.60768 3.16927 6.80078 3.1699 6.17034 3.22227ZM9.36431 5.35218C9.80155 5.35218 10.156 5.70662 10.156 6.14385V10.0762L12.9481 11.1376C13.3568 11.293 13.5622 11.7502 13.4068 12.1589C13.2515 12.5676 12.7942 12.773 12.3856 12.6176L9.08303 11.3622C8.77579 11.2454 8.57265 10.9509 8.57265 10.6222V6.14385C8.57265 5.70662 8.92708 5.35218 9.36431 5.35218Z" fill="#017E10" />
</svg>
</button>
<button class="btn-print moreThan992" type="button" data-intro="یا میتوانید به صورت جداگانه لیست قرارداد را پرینت بگیرید" onclick="printOne(${item.id})">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
@@ -1568,13 +1593,16 @@ $(window).scroll(function () {
}
});
var hasPDF = false;
function printOne(id) {
hasPDF = false;
var parametr = '&id=' + id;
var url = PrintOneUrl;
AjaxUrlContentModal(url + parametr);
}
function printOneMobile(id) {
function printOneMobile(id, PDF = false) {
hasPDF = PDF;
var parametr = '&id=' + id;
var url = PrintOneMobileUrl;
AjaxUrlContentModal(url + parametr);
@@ -1607,4 +1635,13 @@ function printAll() {
var url = CheckoutPrintAllUrl;
window.location.href = url + '?idlist=' + idlist;
}
}
var idCheckoutForPrintRSR = 0;
function printRSR(id) {
var isMobilePrint = window.matchMedia('(max-width: 767px)').matches ? "&type=Print" : "";
idCheckoutForPrintRSR = id;
var parametr = '&id=' + idCheckoutForPrintRSR + isMobilePrint;
var url = modalDetailsRotatingShiftReportUrl;
AjaxUrlContentModal(url + parametr);
}