This commit is contained in:
MahanCh
2025-05-20 20:30:50 +03:30
parent 6cce3f5321
commit f02aa4e217
5 changed files with 108 additions and 58 deletions

View File

@@ -818,23 +818,33 @@
}
else
{
<tr style="border-bottom: 1px solid; background-color: #F6F6F6 !important; font-size: 10px;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 300px; vertical-align: middle;">
<div class="shiftWorkContainerMsg">
<div class="shiftTitle">شیفت کاری</div>
<div style="text-align: center;">
<div>ساعات کاری این پرسنل در قالب</div>
<div>۲۴ ساعت کار / ۲۴ ساعت استراحت است.</div>
</div>
<div class="shiftTime">
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6.41667V11H8.25M19.25 11C19.25 15.5564 15.5564 19.25 11 19.25C6.44365 19.25 2.75 15.5564 2.75 11C2.75 6.44365 6.44365 2.75 11 2.75C15.5564 2.75 19.25 6.44365 19.25 11Z" stroke="#1F1F1F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>۰۸:۰۰ الی ۰۸:۰۰</span>
</div>
</div>
</td>
</tr>
//[12-24 : 5] [24-24 : 6] [12-36 : 7] [24-48 : 8]
var shiftType = Model.CreateWorkingHoursTemp.ShiftWork switch
{
"5"=>"12 ساعت کار / 24 ساعت استراحت",
"6"=>"24 ساعت کار / 24 ساعت استراحت",
"7"=>"12 ساعت کار / 36 ساعت استراحت",
"8"=>"24 ساعت کار / 48 ساعت استراحت",
_=>""
};
<tr style="border-bottom: 1px solid; background-color: #F6F6F6 !important; font-size: 10px;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 270px; vertical-align: middle;">
<div class="shiftWorkContainerMsg">
<div class="shiftTitle">شیفت کاری</div>
<div style="text-align: center;">
<div>ساعات ‌کاری این پرسنل در قالب</div>
<div>@shiftType</div>
</div>
<div class="shiftTime">
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6.41667V11H8.25M19.25 11C19.25 15.5564 15.5564 19.25 11 19.25C6.44365 19.25 2.75 15.5564 2.75 11C2.75 6.44365 6.44365 2.75 11 2.75C15.5564 2.75 19.25 6.44365 19.25 11Z" stroke="#1F1F1F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>@Model.CreateWorkingHoursTemp.StartComplex الی @Model.CreateWorkingHoursTemp.EndComplex</span>
</div>
</div>
</td>
</tr>
}

View File

@@ -482,23 +482,33 @@
}
else
{
<tr style="border-bottom: 1px solid; background-color: #F6F6F6 !important; font-size: 10px;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 300px; vertical-align: middle;">
<div class="shiftWorkContainerMsg">
<div class="shiftTitle">شیفت کاری</div>
<div style="text-align: center;">
<div>ساعات کاری این پرسنل در قالب</div>
<div>۲۴ ساعت کار / ۲۴ ساعت استراحت است.</div>
</div>
<div class="shiftTime">
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6.41667V11H8.25M19.25 11C19.25 15.5564 15.5564 19.25 11 19.25C6.44365 19.25 2.75 15.5564 2.75 11C2.75 6.44365 6.44365 2.75 11 2.75C15.5564 2.75 19.25 6.44365 19.25 11Z" stroke="#1F1F1F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>۰۸:۰۰ الی ۰۸:۰۰</span>
</div>
</div>
</td>
</tr>
//[12-24 : 5] [24-24 : 6] [12-36 : 7] [24-48 : 8]
var shiftType = Model.CreateWorkingHoursTemp.ShiftWork switch
{
"5"=>"12 ساعت کار / 24 ساعت استراحت",
"6"=>"24 ساعت کار / 24 ساعت استراحت",
"7"=>"12 ساعت کار / 36 ساعت استراحت",
"8"=>"24 ساعت کار / 48 ساعت استراحت",
_=>""
};
<tr style="border-bottom: 1px solid; background-color: #F6F6F6 !important; font-size: 10px;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 270px; vertical-align: middle;">
<div class="shiftWorkContainerMsg">
<div class="shiftTitle">شیفت کاری</div>
<div style="text-align: center;">
<div>ساعات ‌کاری این پرسنل در قالب</div>
<div>@shiftType</div>
</div>
<div class="shiftTime">
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6.41667V11H8.25M19.25 11C19.25 15.5564 15.5564 19.25 11 19.25C6.44365 19.25 2.75 15.5564 2.75 11C2.75 6.44365 6.44365 2.75 11 2.75C15.5564 2.75 19.25 6.44365 19.25 11Z" stroke="#1F1F1F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>@Model.CreateWorkingHoursTemp.StartComplex الی @Model.CreateWorkingHoursTemp.EndComplex</span>
</div>
</div>
</td>
</tr>
}

View File

@@ -489,19 +489,29 @@
}
else
{
//[12-24 : 5] [24-24 : 6] [12-36 : 7] [24-48 : 8]
var shiftType = Model.CreateWorkingHoursTemp.ShiftWork switch
{
"5"=>"12 ساعت کار / 24 ساعت استراحت",
"6"=>"24 ساعت کار / 24 ساعت استراحت",
"7"=>"12 ساعت کار / 36 ساعت استراحت",
"8"=>"24 ساعت کار / 48 ساعت استراحت",
_=>""
};
<tr style="border-bottom: 1px solid; background-color: #F6F6F6 !important; font-size: 10px;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 300px; vertical-align: middle;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 270px; vertical-align: middle;">
<div class="shiftWorkContainerMsg">
<div class="shiftTitle">شیفت کاری</div>
<div style="text-align: center;">
<div>ساعات ‌کاری این پرسنل در قالب</div>
<div>۲۴ ساعت کار / ۲۴ ساعت استراحت است.</div>
<div>@shiftType</div>
</div>
<div class="shiftTime">
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6.41667V11H8.25M19.25 11C19.25 15.5564 15.5564 19.25 11 19.25C6.44365 19.25 2.75 15.5564 2.75 11C2.75 6.44365 6.44365 2.75 11 2.75C15.5564 2.75 19.25 6.44365 19.25 11Z" stroke="#1F1F1F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>۰۸:۰۰ الی ۰۸:۰۰</span>
<span>@Model.CreateWorkingHoursTemp.StartComplex الی @Model.CreateWorkingHoursTemp.EndComplex</span>
</div>
</div>
</td>

View File

@@ -490,25 +490,35 @@
}
else
{
<tr style="border-bottom: 1px solid; background-color: #F6F6F6 !important; font-size: 10px;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 300px; vertical-align: middle;">
<div class="shiftWorkContainerMsg">
<div class="shiftTitle">شیفت کاری</div>
<div style="text-align: center;">
<div>ساعات کاری این پرسنل در قالب</div>
<div>۲۴ ساعت کار / ۲۴ ساعت استراحت است.</div>
</div>
<div class="shiftTime">
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6.41667V11H8.25M19.25 11C19.25 15.5564 15.5564 19.25 11 19.25C6.44365 19.25 2.75 15.5564 2.75 11C2.75 6.44365 6.44365 2.75 11 2.75C15.5564 2.75 19.25 6.44365 19.25 11Z" stroke="#1F1F1F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>۰۸:۰۰ الی ۰۸:۰۰</span>
</div>
</div>
</td>
</tr>
}
//[12-24 : 5] [24-24 : 6] [12-36 : 7] [24-48 : 8]
var shiftType = Model.CreateWorkingHoursTemp.ShiftWork switch
{
"5"=>"12 ساعت کار / 24 ساعت استراحت",
"6"=>"24 ساعت کار / 24 ساعت استراحت",
"7"=>"12 ساعت کار / 36 ساعت استراحت",
"8"=>"24 ساعت کار / 48 ساعت استراحت",
_=>""
};
<tr style="border-bottom: 1px solid; background-color: #F6F6F6 !important; font-size: 10px;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 270px; vertical-align: middle;">
<div class="shiftWorkContainerMsg">
<div class="shiftTitle">شیفت کاری</div>
<div style="text-align: center;">
<div>ساعات ‌کاری این پرسنل در قالب</div>
<div>@shiftType</div>
</div>
<div class="shiftTime">
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6.41667V11H8.25M19.25 11C19.25 15.5564 15.5564 19.25 11 19.25C6.44365 19.25 2.75 15.5564 2.75 11C2.75 6.44365 6.44365 2.75 11 2.75C15.5564 2.75 19.25 6.44365 19.25 11Z" stroke="#1F1F1F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>@Model.CreateWorkingHoursTemp.StartComplex الی @Model.CreateWorkingHoursTemp.EndComplex</span>
</div>
</div>
</td>
</tr>
}
<tr style="height: 20px; border-bottom: 1px solid; color:#ffffff !important; background-color: #575656 !important; font-size: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact;">
<td colspan="5" style="color:#ffffff !important; text-align: center; border-bottom: 1px solid #CCCCCC; border-left: 1px solid #CCCCCC; font-size: 8px; padding: 2px"> مدت مرخصی استحقاقی <span>:</span> @Model.TotalPaidLeave </td>

View File

@@ -483,19 +483,29 @@
}
else
{
//[12-24 : 5] [24-24 : 6] [12-36 : 7] [24-48 : 8]
var shiftType = Model.CreateWorkingHoursTemp.ShiftWork switch
{
"5"=>"12 ساعت کار / 24 ساعت استراحت",
"6"=>"24 ساعت کار / 24 ساعت استراحت",
"7"=>"12 ساعت کار / 36 ساعت استراحت",
"8"=>"24 ساعت کار / 48 ساعت استراحت",
_=>""
};
<tr style="border-bottom: 1px solid; background-color: #F6F6F6 !important; font-size: 10px;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 300px; vertical-align: middle;">
<td colspan="10" style="text-align: center; font-size: 8px; padding: 2px; height: 270px; vertical-align: middle;">
<div class="shiftWorkContainerMsg">
<div class="shiftTitle">شیفت کاری</div>
<div style="text-align: center;">
<div>ساعات ‌کاری این پرسنل در قالب</div>
<div>۲۴ ساعت کار / ۲۴ ساعت استراحت است.</div>
<div>@shiftType</div>
</div>
<div class="shiftTime">
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6.41667V11H8.25M19.25 11C19.25 15.5564 15.5564 19.25 11 19.25C6.44365 19.25 2.75 15.5564 2.75 11C2.75 6.44365 6.44365 2.75 11 2.75C15.5564 2.75 19.25 6.44365 19.25 11Z" stroke="#1F1F1F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span>۰۸:۰۰ الی ۰۸:۰۰</span>
<span>@Model.CreateWorkingHoursTemp.StartComplex الی @Model.CreateWorkingHoursTemp.EndComplex</span>
</div>
</div>
</td>