227 lines
11 KiB
Plaintext
227 lines
11 KiB
Plaintext
@using _0_Framework.Application
|
||
@using Version = _0_Framework.Application.Version
|
||
@model CompanyManagment.App.Contracts.InsuranceList.EditInsuranceList
|
||
|
||
<link href="~/assetsclient/css/insuranceprint.css?ver=@Version.StyleVersion" rel="stylesheet" />
|
||
|
||
@{
|
||
<style>
|
||
@@page {
|
||
size: A4 landscape;
|
||
}
|
||
|
||
@@media screen {
|
||
#printSection {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
@@media print {
|
||
body {
|
||
background-color: white;
|
||
}
|
||
}
|
||
</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>
|
||
<div class="modal-body print" id="printThis" >
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<fieldset class="top-title">
|
||
<h2>@Model.InsuranceWorkshopInfo.WorkshopName </h2>
|
||
<h4>صورت دستمزد و حقوق و مزایای کارکنان در ماه <span>@Model.Month</span> سال <span>@Model.Year</span></h4>
|
||
<div class="list-no">
|
||
<h4>لیست شماره : <span>01</span></h4>
|
||
<h4>ردیف پیمان : <span>@Model.InsuranceWorkshopInfo.AgreementNumber</span></h4>
|
||
</div>
|
||
</fieldset>
|
||
</div>
|
||
<div class="table-container table-responsive rounded-3 col-md-12">
|
||
<div class="table-title">
|
||
<h4> شماره کارگاه : @Model.InsuranceWorkshopInfo.InsuranceCode</h4>
|
||
<h4> نام کارفرما : @Model.InsuranceWorkshopInfo.EmployerName</h4>
|
||
<h4> نشانی کارگاه: @Model.InsuranceWorkshopInfo.Address</h4>
|
||
</div>
|
||
<table class="table table-bordered" style="border-radius: 0px;">
|
||
<colgroup>
|
||
<col class="colgp-16">
|
||
<col class="colgp-15">
|
||
<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 style="background: #80808033 !important;border-top-left-radius: 0px!important;"> حق بیمه سهم بیمه شده </th>
|
||
<th style="background: #80808033 !important;"> حقوق و مزایای ماهیانه مشمول و غیر مشمول </th>
|
||
<th style="background: #80808033 !important;"> حقوق و مزایای ماهیانه مشمول </th>
|
||
<th style="background: #80808033 !important;"> مزایای ماهیانه مشمول </th>
|
||
<th style="background: #80808033 !important;"> حقوق ماهیانه مشمول </th>
|
||
<th style="background: #80808033 !important;"> دستمزد روزانه </th>
|
||
<th style="background: #80808033 !important;"> کارکرد </th>
|
||
<th style="background: #80808033 !important;"> تاریخ ترک کار </th>
|
||
<th style="background: #80808033 !important;">تاریخ آغاز بکار </th>
|
||
<th style="background: #80808033 !important;"> نام پدر </th>
|
||
<th style="background: #80808033 !important;"> شماره شناسنامه </th>
|
||
<th style="background: #80808033 !important;"> کدملی </th>
|
||
<th style="background: #80808033 !important;"> شغل</th>
|
||
<th style="background: #80808033 !important;"> نام و نام خانوادگی </th>
|
||
<th style="background: #80808033 !important;"> شماره بیمه </th>
|
||
<th style="background: #80808033 !important;border-top-right-radius: 0px !important;">ردیف</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@if (Model.EmployeeDetailsForInsuranceList != null)
|
||
{
|
||
int index = 1;
|
||
|
||
foreach (var item in Model.EmployeeDetailsForInsuranceList)
|
||
{
|
||
<tr>
|
||
<td>@item.InsuranceShare.ToMoney()</td>
|
||
<td>@item.BenefitsIncludedContinuous.ToMoney()</td>
|
||
<td>@item.MonthlyBenefitsIncluded.ToMoney()</td>
|
||
<td>@item.MonthlyBenefits.ToMoney()</td>
|
||
<td>@item.MonthlySalary.ToMoney()</td>
|
||
<td>@item.DailyWage.ToMoney()</td>
|
||
<td>@item.WorkingDays</td>
|
||
<td>@item.LeftWorkDate</td>
|
||
<td>@item.StartWorkDate</td>
|
||
<td class="table-name">@item.FatherName</td>
|
||
<td style="font-size: 10px !important;">@item.IdNumber</td>
|
||
<td style="font-size: 10px !important;">@item.NationalCode</td>
|
||
<td class="table-name">@item.JobName</td>
|
||
<td class="table-name">@(item.FName + " " + item.LName)</td>
|
||
<td>@item.InsuranceCode</td>
|
||
<td>@index</td>
|
||
</tr>
|
||
index = index + 1;
|
||
}
|
||
|
||
<tr class="total">
|
||
<td style="border-bottom-left-radius:0px !important;">@Model.EmployeeDetailsForInsuranceList.Sum(x=>x.InsuranceShare).ToMoney()</td>
|
||
<td>@Model.EmployeeDetailsForInsuranceList.Sum(x=>x.BenefitsIncludedContinuous).ToMoney()</td>
|
||
<td>@Model.EmployeeDetailsForInsuranceList.Sum(x=>x.MonthlyBenefitsIncluded).ToMoney()</td>
|
||
<td>@Model.EmployeeDetailsForInsuranceList.Sum(x=>x.MonthlyBenefits).ToMoney()</td>
|
||
<td>@Model.EmployeeDetailsForInsuranceList.Sum(x=>x.MonthlySalary).ToMoney()</td>
|
||
<td>@Model.EmployeeDetailsForInsuranceList.Sum(x=>x.DailyWage).ToMoney()</td>
|
||
<td>@Model.EmployeeDetailsForInsuranceList.Sum(x=>x.WorkingDays)</td>
|
||
<td style="border-right: hidden !important;"></td>
|
||
<td style=" border-left: hidden !important;border-right: hidden !important;" class="bl-hidden"></td>
|
||
<td style=" border-left: hidden !important;border-right: hidden !important;" class="bl-hidden"></td>
|
||
<td style=" border-left: hidden !important;border-right: hidden !important;" class="bl-hidden"></td>
|
||
<td style=" border-left: hidden !important;border-right: hidden !important;" class="bl-hidden"></td>
|
||
<td style=" border-left: hidden !important;border-right: hidden !important;" class="bl-hidden"></td>
|
||
<td style=" border-left: hidden !important;border-right: hidden !important;" class="bl-hidden"></td>
|
||
<td style=" border-left: hidden !important;border-right: hidden !important;" class="bl-hidden"></td>
|
||
<td style="border-bottom-right-radius:0px !important; border-left: hidden !important" class="bl-hidden"></td>
|
||
</tr>
|
||
}
|
||
|
||
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="row summary d-flex">
|
||
<div class="col-md-8 col-sm-8 col-lg-8"></div>
|
||
<div class="col-md-4 col-sm-4 col-lg-4 data-summary">
|
||
<h4> حق بیمه سهم کارفرما : <span>@Model.EmployerShare.ToMoney()</span></h4>
|
||
<h4> حق بیمه سهم کارگر : <span>@Model.InsuredShare.ToMoney()</span></h4>
|
||
<h4> بیمه بیکاری : <span>@Model.UnEmploymentInsurance.ToMoney()</span></h4>
|
||
<h4 class="data-total"> جمع کل حق بیمه : <span>@Model.AllInsuredShare.ToMoney()</span></h4>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div class="modal-footer" style="border-top: unset; padding: 10px 20px;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" type="button" class="btn btn-success btn-rounded waves-effect waves-light" style="float: left">پرینت </button>
|
||
</div>
|
||
@section Script {
|
||
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
|
||
}
|
||
<script>
|
||
window.PagedConfig = {
|
||
before: () => {
|
||
return new Promise((resolve, reject) => {
|
||
setTimeout(() => { resolve() }, 1000);
|
||
})
|
||
},
|
||
after: (flow) => { console.log("after", flow) },
|
||
};
|
||
</script>
|
||
|
||
<script>
|
||
$(document).ready(function () {
|
||
window.onbeforeprint = (event) => {
|
||
$("#MainModal").modal("hide");
|
||
}
|
||
document.getElementById("MainModal").style.visibility = "hidden";
|
||
setTimeout(function () {
|
||
printElement(document.getElementById("printThis"));
|
||
}, 500);
|
||
});
|
||
|
||
|
||
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>
|
||
|