Files
Backend-Api/ServiceHost/Areas/Admin/Pages/Company/InsuranceList/InsuranceConfirm.cshtml
2025-05-19 18:29:36 +03:30

1230 lines
50 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@using _0_Framework.Application
@using CompanyManagment.App.Contracts.LeftWork
@model CompanyManagment.App.Contracts.InsuranceList.EditInsuranceList
<style>
.modal .modal-dialog .modal-content {
background-color: white;
}
.modal-header {
padding: 1rem 0rem !important;
}
.modal .modal-dialog .modal-content .modal-body {
padding: 0 !important;
}
.modal-dialog {
width: 1000px !important;
}
#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;
}
.last-div{
width: 100%;
/* height: 55px; */
}
.printBtns {
padding: 12px 2px 12px;
border-top: unset;
position: fixed;
top: 5%;
left: 50%;
transform: translateX(-685%);
display: flex;
flex-direction: column;
background: white;
align-items: center;
border-radius: 9px;
z-index: 9999999;
transition: display .3s ease-out;
}
@@media (max-width: 1550px) {
.printBtns {
transform: translateX(-680%);
top: 8%;
}
}
.list-no h4 {
margin: 0 9rem;
}
@@page {
size: A4 landscape;
}
.table-container-employee {
display: flex;
width: 100%;
justify-content: space-between;
}
.trTable:nth-child(2n) {
background-color: #f1f1f1 !important;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
#printThis .table-bordered .has-left-work p, #printThis .table-bordered .has-start-work p {
margin: 0;
}
#printThis .table-bordered .total td {
background: #dfdfdf !important;
}
#printThis span {
margin: 0 3rem;
}
.table-title {
display: flex;
justify-content: space-between;
padding: 0 1rem;
border: 1px solid #999191;
border-bottom: 0;
border-radius: 9px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.table-title h4 {
font-size: 1.4rem;
}
#printThis span {
margin: 0 1rem;
}
#printThis table {
direction: ltr;
width: 100%;
}
#printThis .table-container {
padding-bottom: 2rem;
border: hidden !important;
}
#printThis .table-bordered {
border-collapse: separate !important;
margin-bottom: 0;
table-layout: fixed;
width: 100%;
border: hidden !important;
border-right: 0;
border-left: 0;
}
#printThis .table-bordered > thead > tr > th {
font-size: 10px;
color: black;
text-align: center;
vertical-align: middle;
padding: 0;
border: 1px solid #7e7e7e !important;
}
#printThis .table-bordered > tbody > tr > td {
padding: 8px 2px;
text-align: center;
font-size: 1.2rem;
border: 1px solid #7e7e7e;
}
.printBtns .btn-rounded {
margin-left: 0.5rem;
margin-right: 0.5rem;
padding: 5px 18px;
}
#printThis .colgp-1 {
width: 20px;
}
#printThis .colgp-2 {
width: 35px;
}
#printThis .colgp-3 {
width: 74px;
}
#printThis .colgp-4 {
width: 50px;
}
#printThis .colgp-5 {
width: 28px;
}
#printThis .colgp-6 {
width: 15px;
}
#printThis .colgp-7 {
width: 44px;
}
#printThis .colgp-8 {
width: 44px;
}
#printThis .colgp-9 {
width: 44px;
}
#printThis .colgp-10 {
width: 44px;
}
#printThis .colgp-11 {
width: 44px;
}
#printThis .colgp-12 {
width: 44px;
}
#printThis .colgp-13 {
width: 44px;
}
#printThis .colgp-14 {
width: 40px;
}
#printThis .table-bordered > tbody > tr:nth-child(12n) td:first-child {
border-bottom-left-radius: 9px !important;
}
#printThis .table-bordered > tbody > tr:nth-child(12n) td:last-child {
border-bottom-right-radius: 9px !important;
}
.data-summary {
border: 1px solid black;
border-radius: 7px;
margin-top: 5rem;
}
.data-summary h4 {
font-size: 1.4rem;
}
.titleSection {
display: flex;
align-items: center;
}
.titleSection p{
margin: 0;
text-align: right;
}
.titles {
margin-left: auto;
margin-right: auto;
border: 1px solid #999191;
border-bottom: 0;
border-radius: 9px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
padding: 0rem 1rem;
}
.table-name {
text-align: right !important;
white-space: nowrap !important;
max-width: 100%;
width: 80px;
overflow-x: clip;
direction: rtl;
}
.row-color {
margin: 0 0.5rem !important;
color: #f38e8ea8 !important;
}
.row-color2 {
margin: 0 0.5rem !important;
color: #83db8396 !important;
}
#printThis .table-bordered .has-left-work td {
background: #f38e8ea8 !important;
}
#printThis .table-bordered .has-start-work td {
background: #83db8396 !important;
}
.asignment-field {
display: flex;
justify-content: flex-end;
margin-bottom: 60px !important;
margin-top: 15px !important;
}
.asignment {
font-size: 12px;
height: 12rem;
border: 1px solid #ccc;
border-radius: 9px;
margin-left: 9px;
}
@@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;
}
#printThis .table-bordered > thead > tr > th {
font-size: 10px;
}
#printThis .table-bordered > tbody > tr > td {
font-size: 1rem;
}
#printThis .colgp-3 {
width: 95px;
}
#printThis .colgp-4 {
width: 50px;
}
#printThis .colgp-5 {
width: 32px;
}
#printThis .colgp-6 {
width: 18px;
}
#printThis .colgp-7 {
width: 44px;
}
#printThis .colgp-8 {
width: 44px;
}
#printThis .colgp-9 {
width: 44px;
}
#printThis .colgp-10 {
width: 44px;
}
#printThis .colgp-11 {
width: 44px;
}
#printThis .colgp-12 {
width: 44px;
}
#printThis .colgp-13 {
width: 44px;
}
#printThis .colgp-14 {
width: 40px;
}
#printThis .colgp-15 {
width: 65px;
}
#printThis .colgp-16 {
width: 60px;
}
.col-md-9, .col-sm-9, .col-lg-9 {
width: 75%;
float: right;
}
.asignment {
width: 25%;
}
}
@@media screen {
#printSection {
display: none;
}
}
@@media print {
body * {
visibility: hidden;
}
html, body {
height: 100%;
margin: 0 !important;
padding: 0 !important;
overflow: clip;
-webkit-print-color-adjust:exact !important;
print-color-adjust:exact !important;
}
.modal-dialog {
max-width: 100%;
width: 60cm;
}
#printSection, #printSection * {
visibility: visible;
}
#printSection {
width: 27.5cm;
position: absolute;
left: 0;
top: 0 !important;
padding: 0 !important;
}
.size-a4 {
width: 276mm;
}
#printThis .table-container {
padding-bottom: 2rem;
border: hidden !important;
}
#printThis .table-bordered {
border-collapse: separate !important;
margin-bottom: 0;
table-layout: fixed;
width: 100%;
max-height: 15cm;
border: hidden !important;
border-right :0;
border-left: 0;
}
#printThis .table-bordered > thead > tr > th {
font-size: 10px;
color: black;
text-align: center;
vertical-align: middle;
padding: 0;
border: 1px solid black;
}
#printThis .table-bordered > tbody > tr > td {
padding: 8px 2px;
text-align: center;
font-size: 1rem;
border: 1px solid black;
}
.summary {
display: flex;
justify-content: flex-end;
}
.bl-hidden {
border-left: hidden !important;
}
.table-name {
padding: 8px 0;
}
#printThis .table-bordered > thead {
display: table-header-group;
}
.row-color {
margin: 0 0.5rem !important;
color: black !important;
}
.row-color2 {
margin: 0 0.5rem !important;
color: grey !important;
}
.row-color2 .fa-square:before {
color: grey !important;
}
#printThis .table-bordered .has-left-work td {
background: black !important;
color: white !important;
}
#printThis .table-bordered .has-left-work td p{
color: white !important;
}
#printThis .table-bordered .has-start-work td {
background: grey !important;
}
#printThis .trTable.new-leftwork td {
background-color: #333333 !important;
color: #ffffff !important;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
}
</style>
<div class="modal-header" style="border-bottom: unset;margin-bottom: 15px;">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
@* <div class="printBtns" style="padding: 1px 12px 10px; border-top: unset;">
<button type="button" class="btn btn-warning btn-rounded waves-effect waves-light m-b-10" data-dismiss="modal" style="float: left">بستن</button>
<button id="btnPrint2" type="button" class="btn btn-success btn-rounded waves-effect waves-light" style="float: left">پرینت </button>
</div>*@
</div>
<div class="modal-body print" id="printThis">
<div class="row">
<div class="table-container col-md-12 size-a4" style="padding: 0; border-radius:9px;">
@if (Model.EmployeeDetailsForInsuranceList != null)
{
int index = 1;
int CountList = Model.EmployeeDetailsForInsuranceList.Count;
int q = (CountList / 12) + (CountList % 12 == 0 ? 0 : 1);
int r = CountList % 12;
bool hasLastRow = false;
int CountLastRow = 0;
@for (int i = 0; i < q; i++)
{
<div class="col-md-12">
<fieldset class="top-title">
<div class="titleSection">
@* <img src="/AdminTheme/LogoAndProfile/logo.png" class="img-circle" style="width:50px;"> *@
<div style="font-size: 1rem; width: 33.3333%;">
<p>
* سطر به رنگ <span class="row-color"><i class="fa fa-square" aria-hidden="true"></i></span>
به معنای ترک کار پرسنل می باشد.
</p>
<p>
* سطر به رنگ <span class="row-color2"><i class="fa fa-square" aria-hidden="true"></i></span>به معنای شروع بکار پرسنل می باشد.
</p>
</div>
<div class="titles" style="background: #d3d3d3 !important; width: 33.3333%;">
<h3 style="margin-left: auto;font-size: 15px;"> تایید کارفرما جهت تنظیم لیست بیمه پرسنل </h3>
</div>
<div style="text-align: left; width: 33.3333%;">
<img src="/AdminTheme/LogoAndProfile/logo.png" class="img-circle" style="width:50px;">
</div>
</div>
</fieldset>
</div>
<div class="table-title" style="background: #80808057 !important;">
<h4> نام کارفرما : <span>@Model.InsuranceWorkshopInfo.EmployerName</span></h4>
<h4>لیست ماه <span>@Model.Month</span> سال <span>@Model.Year</span></h4>
<h4> نام کارگاه : <span>@Model.InsuranceWorkshopInfo.WorkshopName </span></h4>
<h4> کد کارگاه : <span>@Model.InsuranceWorkshopInfo.InsuranceCode</span></h4>
</div>
<table class="table table-bordered">
<colgroup>
<col class="colgp-14">
<col class="colgp-13">
<col class="colgp-12">
<col class="colgp-11">
<col class="colgp-10">
<col class="colgp-9">
<col class="colgp-8">
<col class="colgp-7">
<col class="colgp-6">
<col class="colgp-5">
<col class="colgp-4">
<col class="colgp-3">
<col class="colgp-2">
<col class="colgp-1">
</colgroup>
<thead>
<tr>
<th class="header-pad" style="background: #80808033 !important;"> توضیحات </th>
<th class="header-pad2" style="background: #80808033 !important;"> مجموع مزایای ماهانه غیرمشمول </th>
<th class="header-pad2" style="background: #80808033 !important;"> مجموع حقوق و مزایای ماهیانه </th>
<th class="header-pad2" style="background: #80808033 !important;"> مجموع مزایای ماهیانه </th>
<th class="header-pad" style="background: #80808033 !important;"> حق تاهل </th>
<th class="header-pad2" style="background: #80808033 !important;">دستمزد ماهانه</th>
<th class="header-pad2" style="background: #80808033 !important;"> پایه سنوات روزانه </th>
<th class="header-pad2" style="background: #80808033 !important;"> دستمزد روزانه </th>
<th class="header-pad" style="background: #80808033 !important;"> روز کارکرد </th>
<th class="header-pad" style="background: #80808033 !important;"> سمت</th>
<th class="header-pad" style="background: #80808033 !important;"> کدملی </th>
<th class="header-pad" style="background: #80808033 !important;"> نام و نام خانوادگی </th>
<th class="header-pad" style="background: #80808033 !important;"> شماره بیمه </th>
<th class="header-pad" style="background: #80808033 !important;">ردیف</th>
</tr>
</thead>
<tbody>
@{
int count_j = 0;
// count_j = (i == 0 ? (((CountList < 12) || (i == (q - 1) && CountList!=12)) ? r : 12) : (((CountList < 12) || (i == (q - 1))) ? r : 12));
if (i == 0 && ((CountList < 12) || (i == (q - 1) && CountList != 12)))
{
count_j = r;
}
else if (i == 0 && (CountList >= 12 || (i != (q - 1))))
{
count_j = 12;
}
else if (i != 0 && ((CountList < 12) || ((i == (q - 1))&& r!=0)))
{
count_j = r;
}
else
count_j = 12;
if (i == (q - 1))
count_j = (i * 12) + count_j;
else
{
count_j = ((i + 1) * count_j);
}
}
@for (int j = (i * 12); j < count_j; j++)
{
@*<tr style="@(Model.EmployeeDetailsForInsuranceList[j].HasLeftWorkInMonth ? "background: #000;color:#fff" : (Model.EmployeeDetailsForInsuranceList[j].HasStartWorkInMonth ? "background: #ccc;" : ""))">*@
<tr class="@((Model.EmployeeDetailsForInsuranceList[j].HasLeftWorkInMonth) ? "has-left-work" : (Model.EmployeeDetailsForInsuranceList[j].HasStartWorkInMonth) ? "has-start-work" : "")">
@if (i == (q - 1))
{
<td>
@if (!string.IsNullOrEmpty(Model.EmployeeDetailsForInsuranceList[j].LeftWorkDate))
{
<p>@Model.EmployeeDetailsForInsuranceList[j].LeftWorkDate</p>
}
@if (Model.EmployeeDetailsForInsuranceList[j].HasStartWorkInMonth)
{
<p>@Model.EmployeeDetailsForInsuranceList[j].StartWorkDate</p>
}
</td>
}
else
{
<td @(j == ((i + 1) * count_j) - 1 ? "style=border-bottom-left-radius:9px !important;" : string.Empty)>
@if (!string.IsNullOrEmpty(Model.EmployeeDetailsForInsuranceList[j].LeftWorkDate))
{
<p>@Model.EmployeeDetailsForInsuranceList[j].LeftWorkDate</p>
}
@if (Model.EmployeeDetailsForInsuranceList[j].HasStartWorkInMonth)
{
<p>@Model.EmployeeDetailsForInsuranceList[j].StartWorkDate</p>
}
</td>
}
<td>@Model.EmployeeDetailsForInsuranceList[j].BenefitsIncludedNonContinuous.ToMoney()</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].BenefitsIncludedContinuous.ToMoney()</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].MonthlyBenefits.ToMoney()</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].MarriedAllowance.ToMoney()</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].MonthlySalary.ToMoney()</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].BaseYears.ToMoney()</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].DailyWage.ToMoney()</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].WorkingDays</td>
<td class="table-name">@Model.EmployeeDetailsForInsuranceList[j].JobName</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].NationalCode</td>
<td class="table-name">@(Model.EmployeeDetailsForInsuranceList[j].FName + " " + Model.EmployeeDetailsForInsuranceList[j].LName)</td>
<td>@Model.EmployeeDetailsForInsuranceList[j].InsuranceCode</td>
@*<td style="border-bottom-right-radius: 9px !important;"> @index </td>*@
@if (i == (q - 1))
{
<td > @index </td>
}
else
{
<td @(j == ((i + 1) * count_j) - 1 ? "style=border-bottom-right-radius:9px!important;" : string.Empty)> @index </td>
}
</tr>
index = index + 1;
}
@if (i == (q - 1) && (r>0 && r <= 8 ))
{
CountLastRow = 0;
hasLastRow = true;
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="background: #e6e6e6 !important;">
<td style="border-bottom-left-radius:9px;background: #e6e6e6 !important;"></td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.BenefitsIncludedNonContinuous).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.BenefitsIncludedContinuous).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.MonthlyBenefits).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.MarriedAllowance).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.MonthlySalary).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.BaseYears).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.DailyWage).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.WorkingDays)</td>
<td style=" border-right: hidden !important;background: #e6e6e6 !important;"></td>
<td style=" border-right: hidden !important;border-left: hidden !important;background: #e6e6e6 !important;"></td>
<td style=" border-left: hidden !important; border-right: hidden !important;background: #e6e6e6 !important;"></td>
<td style=" border-left: hidden !important; border-right: hidden !important;background: #e6e6e6 !important;"></td>
<td style="border-bottom-right-radius:9px; border-left: hidden !important;background: #e6e6e6 !important;"></td>
</tr>
}
else if (i == (q - 1) && (r>0 && r <= 9))
{
CountLastRow=1;
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
}
else if (i == (q - 1) && (r>0 && r <= 10))
{
CountLastRow=2;
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
}
</tbody>
</table>
<div class="row asignment-field">
<div class="col-md-9 col-sm-9 col-lg-9" style="display: inline-grid;">
<div>
@{
var pageStartIndex = i * 12;
var pageEndIndex = (i == q - 1) ? ((i * 12) + r) : ((i + 1) * 12);
var pageEmployees = Model.EmployeeDetailsForInsuranceList
.Skip(pageStartIndex)
.Take(pageEndIndex - pageStartIndex)
.ToList();
var pageEmployeeIds = pageEmployees.Select(x => x.EmployeeId).ToHashSet();
var leftWorkList = Model.LeftWorkEmployees
.Where(x => pageEmployeeIds.Contains(x.EmployeeId))
.Select(x => new LeftWorkViewModel {
EmployeeFullName = x.EmployeeFullName ?? "-",
LeftWorkDate = x.LeftWorkDate ?? "-"
})
.ToList();
while (leftWorkList.Count < 12)
{
leftWorkList.Add(new LeftWorkViewModel { EmployeeFullName = "-", LeftWorkDate = "-" });
}
var tables = new List<List<LeftWorkViewModel>>();
for (int t = 0; t < 3; t++)
{
tables.Add(leftWorkList.Skip(t * 4).Take(4).ToList());
}
}
<p style="font-size: 12px; margin: 0 0 3px 0;">هشدار پرسنل ذیل با توجه به تاریخ مندرج با مجموعه شما هیچگونه قرارداد کاری ندارند.</p>
<fieldset style="border: 1px solid #cccccc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; border-radius: 10px 10px 10px 10px; margin: 0px 0px; overflow: hidden; padding: 0; display: flex; width: 100%;">
<div class="table-container-employee">
@for (int t = 0; t < tables.Count; t++)
{
var table = tables[t];
<table style="width: 100%;">
<colgroup>
<col style="width: 40%;">
<col style="width: 60%;">
</colgroup>
<tr style="border-bottom: 1px solid; background-color: #e1e1e1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 9px; height: 15px;">
<th style="padding: 1px 4px; text-align: center; min-width: 4rem; font-size: 10px; @(t == 2 ? "" : "border-left: 2px solid black;")">تاریخ</th>
<th style="padding: 1px 4px; text-align: center; border-left: 1px solid black; min-width: 4rem; font-size: 10px;">نام پرسنل</th>
</tr>
@foreach (var item in table)
{
<tr class="trTable @(@item.LeftWorkDate != "-" ? "new-leftwork" : "")" style="text-align: right; font-size: 9px; height: 15px;">
<td style="font-size: 8px; text-align: center; @(t == 2 ? "" : "border-left: 2px solid black;") @(@item.LeftWorkDate != "-" ? "background-color: #333333;color: #ffffff; -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important;" : "")">
@item.LeftWorkDate
</td>
<td style="font-size: 8px; text-align: center; border-left: 1px solid black; @(@item.LeftWorkDate != "-" ? "background-color: #333333;color: #ffffff; -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important;" : "")">
@item.EmployeeFullName
</td>
</tr>
}
</table>
}
@* <table style="width: 100%;">
<colgroup>
<col style="width: 40%;">
<col style="width: 60%;">
</colgroup>
<tr style="border-bottom: 1px solid; background-color: #e1e1e1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 9px; height: 15px;">
<th style="padding: 1px 4px; text-align: center; min-width: 4rem; font-size: 10px;">تاریخ</th>
<th style="padding: 1px 4px; text-align: center; border-left: 1px solid black; min-width: 4rem; font-size: 10px;">نام پرسنل</th>
</tr>
<tr class="trTable" style="text-align: right; font-size: 9px; height: 15px;">
<td style="font-size: 8px; text-align: center;">
-
</td>
<td style="font-size: 8px; text-align: center; border-left: 1px solid black;">
-
</td>
</tr>
</table>*@
</div>
</fieldset>
</div>
@* <div
style="font-size: 1rem;">
<p>
* سطر به رنگ <span class="row-color"><i class="fa fa-square" aria-hidden="true"></i></span>
به معنای ترک کار پرسنل می باشد.
</p>
<p>
* سطر به رنگ <span class="row-color2"><i class="fa fa-square" aria-hidden="true"></i></span>به معنای شروع بکار پرسنل می باشد.
</p>
</div> *@
<p style="margin: 0; align-self: end !important;">صفحه @(i + 1) از @((r > 0 && r <= 8) ? q : q + 1)</p>
</div>
@* <div class="col-md-5 col-sm-5 col-lg-5"></div> *@
<div class="col-md-3 col-sm-3 col-lg-3 asignment">
<h5 style="color: grey !important;"> امضا و تایید کارفرما </h5>
</div>
</div>
<div class="last-div"></div>
}
if (!hasLastRow)
{
<div class="col-md-12">
<fieldset class="top-title">
<div class="titleSection">
@* <img src="/AdminTheme/LogoAndProfile/logo.png" class="img-circle" style="width:50px;"> *@
<div class="titles" style="background: #d3d3d3 !important;">
<h3 style="margin-left: auto;font-size: large;"> تایید کارفرما جهت تنظیم لیست بیمه پرسنل </h3>
</div>
@* <img src="/AdminTheme/LogoAndProfile/logo.png" class="img-circle" style="width:50px;"> *@
</div>
</fieldset>
</div>
<div class="table-title" style="background: #80808057 !important;">
<h4> نام کارفرما : <span>@Model.InsuranceWorkshopInfo.EmployerName</span></h4>
<h4>لیست ماه <span>@Model.Month</span> سال <span>@Model.Year</span></h4>
<h4> نام کارگاه : <span>@Model.InsuranceWorkshopInfo.WorkshopName </span></h4>
<h4> کد کارگاه : <span>@Model.InsuranceWorkshopInfo.InsuranceCode</span></h4>
</div>
<table class="table table-bordered">
<colgroup>
<col class="colgp-14">
<col class="colgp-13">
<col class="colgp-12">
<col class="colgp-11">
<col class="colgp-10">
<col class="colgp-9">
<col class="colgp-8">
<col class="colgp-7">
<col class="colgp-6">
<col class="colgp-5">
<col class="colgp-4">
<col class="colgp-3">
<col class="colgp-2">
<col class="colgp-1">
</colgroup>
<thead>
<tr>
<th class="header-pad" style="background: #80808033 !important;"> توضیحات </th>
<th class="header-pad2" style="background: #80808033 !important;"> مجموع مزایای ماهانه غیرمشمول </th>
<th class="header-pad2" style="background: #80808033 !important;"> مجموع حقوق و مزایای ماهیانه </th>
<th class="header-pad2" style="background: #80808033 !important;"> مجموع مزایای ماهیانه </th>
<th class="header-pad" style="background: #80808033 !important;"> حق تاهل </th>
<th class="header-pad2" style="background: #80808033 !important;">دستمزد ماهانه</th>
<th class="header-pad2" style="background: #80808033 !important;"> پایه سنوات روزانه </th>
<th class="header-pad2" style="background: #80808033 !important;"> دستمزد روزانه </th>
<th class="header-pad" style="background: #80808033 !important;"> روز کارکرد </th>
<th class="header-pad" style="background: #80808033 !important;"> سمت</th>
<th class="header-pad" style="background: #80808033 !important;"> کدملی </th>
<th class="header-pad" style="background: #80808033 !important;"> نام و نام خانوادگی </th>
<th class="header-pad" style="background: #80808033 !important;"> شماره بیمه </th>
<th class="header-pad" style="background: #80808033 !important;">ردیف</th>
</tr>
</thead>
<tbody>
@if (CountLastRow == 0)
{
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
}
else if (CountLastRow == 2)
{
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
}
else if (CountLastRow == 1)
{
<tr>
<td style="padding: 15px 2px !important;"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
}
<tr style="background: #e6e6e6 !important;">
<td style="border-bottom-left-radius:9px;background: #e6e6e6 !important;"></td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.BenefitsIncludedNonContinuous).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.BenefitsIncludedContinuous).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.MonthlyBenefits).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.MarriedAllowance).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.MonthlySalary).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.BaseYears).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.DailyWage).ToMoney()</td>
<td style="background: #e6e6e6 !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x => x.WorkingDays)</td>
<td style=" border-right: hidden !important;background: #e6e6e6 !important;"></td>
<td style=" border-right: hidden !important;border-left: hidden !important;background: #e6e6e6 !important;"></td>
<td style=" border-left: hidden !important; border-right: hidden !important;background: #e6e6e6 !important;"></td>
<td style=" border-left: hidden !important; border-right: hidden !important;background: #e6e6e6 !important;"></td>
<td style="border-bottom-right-radius:9px; border-left: hidden !important;background: #e6e6e6 !important;"></td>
</tr>
</tbody>
</table>
<div class="row asignment-field">
<div class="col-md-4 col-sm-4 col-lg-4" style="display:inline-grid;">
<div style="font-size: 1rem;">
<p>
* سطر به رنگ <span class="row-color"><i class="fa fa-square" aria-hidden="true"></i></span>
به معنای ترک کار پرسنل می باشد.
</p>
<p>
* سطر به رنگ <span class="row-color2"><i class="fa fa-square" aria-hidden="true"></i></span>به معنای شروع بکار پرسنل می باشد.
</p>
</div>
<p style="margin: 0;align-self: end !important;">صفحه @(q+1) از @(q+1)</p>
</div>
<div class="col-md-5 col-sm-5 col-lg-5"></div>
<div class="col-md-3 col-sm-3 col-lg-3 asignment">
<h5 style="color: grey !important;"> امضا و تایید کارفرما </h5>
</div>
</div>
<div class="last-div"></div>
}
}
</div>
</div>
</div>
<div class="modal-footer" style="border-top: unset; padding: 30px 15px 10px;display: none;">
<button type="button" class="btn btn-warning btn-rounded waves-effect waves-light m-b-10" data-dismiss="modal" style="float: left">بستن</button>
<button id="btnPrint" onclick="printElement()" type="button" class="btn btn-success btn-rounded waves-effect waves-light" style="float: left">پرینت </button>
</div>
<script>
document.getElementById("btnPrint").onclick = function () {
printElement(document.getElementById("printThis"));
};
document.getElementById("btnPrint2").onclick = function () {
printElement(document.getElementById("printThis"));
};
if (window.matchMedia('(max-width: 768px)').matches) {
setTimeout(function() {
$('#MainModal').modal('toggle');
}, 500);
printElement(document.getElementById("printThis"));
}
function printElement(elem) {
var domClone = elem.cloneNode(true);
// create a new stylesheet to hide everything except the modal
var style = document.createElement("style");
style.innerHTML = `
@@media print {
body * {
visibility: hidden;
}
#printSection, #printSection * {
visibility: visible;
}
#printSection {
position: absolute;
left: 0;
top: 0;
}
}
`;
document.head.appendChild(style);
// create a new section to hold the modal for printing
var $printSection = document.getElementById("printSection");
if (!$printSection) {
$printSection = document.createElement("div");
$printSection.id = "printSection";
document.body.appendChild($printSection);
}
$printSection.innerHTML = "";
$printSection.appendChild(domClone);
window.print();
// remove the new stylesheet after printing
document.head.removeChild(style);
}
</script>