231 lines
6.0 KiB
Plaintext
231 lines
6.0 KiB
Plaintext
@using Microsoft.CodeAnalysis.CSharp.Syntax
|
|
@model CompanyManagment.App.Contracts.Checkout.CreateCheckoutListViewModel
|
|
@{
|
|
var i = 1;
|
|
var b = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if (Model.CreateCheckoutList.Count > 0 && !Model.HasWorkFlow)
|
|
{
|
|
@foreach (var item in Model.CreateCheckoutList)
|
|
{
|
|
<tr class="mytable @(!item.Extension && !item.HasCheckout ? "noExtention" : "") @(item.HasCheckout ? "hasCheckoutSet" : "") ">
|
|
@* @if (item.RedColor)
|
|
{
|
|
<input type="hidden" name="redColor"/>
|
|
}
|
|
@if (item.MoreThanOneMonth && item.Waiting == false)
|
|
{
|
|
<input type="hidden" value="@item.EmployeeName" name="MoreThanOneMonth"/>
|
|
}
|
|
else if (item.Waiting && item.MoreThanOneMonth == false)
|
|
{
|
|
<input type="hidden" value="@item.EmployeeName" name="Waiting"/>
|
|
}
|
|
else if (item.Waiting && item.MoreThanOneMonth)
|
|
{
|
|
<input type="hidden" value="@item.EmployeeName" name="MixWatingAndMore"/>
|
|
} *@
|
|
|
|
<td style="font-size: 12px !important; text-align: center">
|
|
@i
|
|
</td>
|
|
|
|
<td style="font-size: 12px !important; text-align: center">
|
|
|
|
@if (!item.Extension)
|
|
{
|
|
|
|
|
|
<input type="checkbox" value="@item.Id" disabled="disabled"/>
|
|
|
|
}
|
|
else
|
|
{
|
|
<input type="checkbox" name="cheking" value="@item.Id" checked="checked"/>
|
|
b++;
|
|
|
|
}
|
|
|
|
|
|
|
|
</td>
|
|
<td style="font-family: 'IranText' !important; font-size: 12px !important; text-align: center">
|
|
|
|
@item.PersonnelCode
|
|
|
|
|
|
|
|
</td>
|
|
<td style="font-family: 'IranText' !important; font-size: 12px !important; text-align: center">
|
|
|
|
@item.ContractNo
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td style="font-family: 'IranSans' !important; font-size: 12px !important; text-align: right">
|
|
@*@foreach (var emp in Model.Employers)
|
|
{
|
|
if (item.EmployerId == emp.Id)
|
|
{
|
|
@emp.FullName
|
|
|
|
}
|
|
}*@
|
|
@item.Description
|
|
</td>
|
|
|
|
<td style="font-family: 'IranSans' !important; font-size: 12px !important; text-align: right">
|
|
|
|
@item.WorkshopName
|
|
</td>
|
|
|
|
<td style="font-family: 'IranSans' !important; font-size: 12px !important; text-align: right">
|
|
|
|
@item.EmployeeName
|
|
|
|
</td>
|
|
|
|
|
|
<td style="font-family: 'IranSans' !important; font-size: 12px !important; text-align: center">
|
|
|
|
@item.ContractStart
|
|
|
|
|
|
|
|
</td>
|
|
<td style="font-family: 'IranSans' !important; font-size: 12px !important; text-align: center">
|
|
|
|
@if (item.LaterThanEnd)
|
|
{
|
|
<span style="visibility: hidden">####/##/##</span>
|
|
}
|
|
else
|
|
{
|
|
@item.ContractEnd
|
|
}
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td style="font-family: 'IranSans' !important; font-size: 12px !important; text-align: center">
|
|
|
|
|
|
<span>@item.LeftWorkDate</span>
|
|
|
|
</td>
|
|
|
|
<td style="font-family: 'IranSans' !important; font-size: 12px !important; text-align: center">
|
|
|
|
@if (item.LaterThanEnd)
|
|
{
|
|
@item.ContractEnd
|
|
}
|
|
else
|
|
{
|
|
<span style="visibility: hidden">####/##/##</span>
|
|
}
|
|
|
|
|
|
</td>
|
|
|
|
@{
|
|
i++;
|
|
|
|
}
|
|
|
|
|
|
</tr>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (@Model.HasWorkFlow)
|
|
{
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="3"></div>
|
|
<div class="6">
|
|
<h4 style="color: red">این کارگاه به دلیل داشتن کارپوشه مجاز به ایجاد تصفیه حساب نمی باشد</h4>
|
|
</div>
|
|
<div class="3"></div>
|
|
</div>
|
|
</div>
|
|
|
|
}
|
|
}
|
|
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
const waitingLoad = $("#listwaiting");
|
|
waitingLoad.remove();
|
|
});
|
|
</script>
|
|
|
|
|
|
<script>
|
|
//var redCheck = $('.redColor').val();
|
|
//if (redCheck == true) {
|
|
// console.log("ok");
|
|
// $('.redColor').closest('tr').css("background", "red");
|
|
//}
|
|
|
|
|
|
var checkboxes = document.getElementsByName('redColor');
|
|
for (var i = 0, n = checkboxes.length; i < n; i++) {
|
|
checkboxes[i].parentNode.style.background = "rgb(248 251 196)";
|
|
}
|
|
var checkboxes = document.getElementsByName('Waiting');
|
|
for (var i = 0, n = checkboxes.length; i < n; i++) {
|
|
checkboxes[i].parentNode.style.background = "#ffcd40";
|
|
}
|
|
var checkboxes = document.getElementsByName('MoreThanOneMonth');
|
|
for (var i = 0, n = checkboxes.length; i < n; i++) {
|
|
checkboxes[i].parentNode.style.background = "#daf9ca";
|
|
}
|
|
var checkboxes = document.getElementsByName('MixWatingAndMore');
|
|
for (var i = 0, n = checkboxes.length; i < n; i++) {
|
|
checkboxes[i].parentNode.style.background = "#ffcd40";
|
|
}
|
|
var checkboxes2 = document.getElementsByName('MixWatingAndMore');
|
|
//for (var s = 0, m = checkboxes2.length; s < m; s++) {
|
|
// $('#alarm').append(
|
|
|
|
// '<h5 style="color:red; direction: rtl;" class="ConvertErr"><span> مدت قرارد </span> <span> </span><span>' + checkboxes2[s].value + '</span> <span> </span><span> بیش از یک ماه است</span></h5>'
|
|
// + '<h5 style="color: #ffa12c; direction: rtl;" class="ConvertErr"><span> از آخرین قرارداد </span> <span> </span><span>' + checkboxes2[s].value + '</span> <span> </span><span> تا تاریخ تبدیل انتخاب شده هیچ قراردادی وجود ندارد</span></h5>'
|
|
// );
|
|
//}
|
|
//var checkboxes2 = document.getElementsByName('MoreThanOneMonth');
|
|
//for (var b = 0, m = checkboxes2.length; b < m; b++) {
|
|
// $('#alarm').append(
|
|
|
|
// '<h5 style="color:red; direction: rtl;" class="ConvertErr"><span> مدت قرارد </span> <span> </span><span>' + checkboxes2[b].value + '</span> <span> </span><span> بیش از یک ماه است</span></h5>'
|
|
|
|
// );
|
|
//}
|
|
|
|
//var checkboxes3 = document.getElementsByName('Waiting');
|
|
//for (var a = 0, f = checkboxes3.length; a < f; a++) {
|
|
// $('#alarm').append(
|
|
|
|
// '<h5 style="color: #ffa12c; direction: rtl;" class="ConvertErr"><span> از آخرین قرارداد </span> <span> </span><span>' + checkboxes3[a].value + '</span> <span> </span><span> تا تاریخ تبدیل انتخاب شده هیچ قراردادی وجود ندارد</span></h5>'
|
|
|
|
// );
|
|
//}
|
|
/*ff8f8d*/
|
|
</script> |