, ICheckoutRepos
if (hasSearch)
return query.OrderByDescending(x => x.Id)
.ThenByDescending(x => x.Year).ThenBy(x => x.PersonnelCodeInt).ToList();
- else if(hasEmployeeOrWorkshpSearch && !hasSearch)
+ else if (hasEmployeeOrWorkshpSearch && !hasSearch)
return query.OrderByDescending(x => x.ContractStartGr).ToList();
else
return query.OrderByDescending(x => x.Id)
.ThenByDescending(x => x.Year).ThenBy(x => x.PersonnelCodeInt).Take(50).ToList();
// Console.WriteLine("return" + watch.Elapsed);
-
+
}
diff --git a/ServiceHost/Areas/Admin/Pages/Company/Checkouts/Details.cshtml b/ServiceHost/Areas/Admin/Pages/Company/Checkouts/Details.cshtml
index 91b4e62a..83889031 100644
--- a/ServiceHost/Areas/Admin/Pages/Company/Checkouts/Details.cshtml
+++ b/ServiceHost/Areas/Admin/Pages/Company/Checkouts/Details.cshtml
@@ -759,58 +759,58 @@
@* section one *@
- |
+ |
@(leftItem?.RollCallDateFa ?? "") @(leftItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(leftItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate1) ? leftItem?.StartDate1 + " الی " + leftItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate2) ? leftItem?.StartDate2 + " الی " + leftItem?.EndDate2 : "")
|
-
+ |
@(leftItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@leftItem?.LeaveType
|
}
-
+ |
@(leftItem?.TotalWorkingHours ?? "")
|
@* section two *@
-
+ |
@(rightItem?.RollCallDateFa ?? "") @(rightItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(rightItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate1) ? rightItem?.StartDate1 + " الی " + rightItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate2) ? rightItem?.StartDate2 + " الی " + rightItem?.EndDate2 : "")
|
-
+ |
@(rightItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@rightItem?.LeaveType
|
}
-
+ |
@(rightItem?.TotalWorkingHours ?? "")
|
@@ -839,8 +839,8 @@
- | مدت مرخصی استحقاقی : @Model.TotalDayOfLeaveCompute |
- مدت مرخصی استعلاجی : @Model.TotalDayOfLeaveCompute |
+ مدت مرخصی استحقاقی : @Model.TotalPaidLeave |
+ مدت مرخصی استعلاجی : @Model.TotalSickLeave |
diff --git a/ServiceHost/Areas/Admin/Pages/Company/Checkouts/_Partials/PrintDetailStaticRaw.cshtml b/ServiceHost/Areas/Admin/Pages/Company/Checkouts/_Partials/PrintDetailStaticRaw.cshtml
index 115f9cd2..a4a3b3de 100644
--- a/ServiceHost/Areas/Admin/Pages/Company/Checkouts/_Partials/PrintDetailStaticRaw.cshtml
+++ b/ServiceHost/Areas/Admin/Pages/Company/Checkouts/_Partials/PrintDetailStaticRaw.cshtml
@@ -423,58 +423,58 @@
@* section one *@
- |
+ |
@(leftItem?.RollCallDateFa ?? "") @(leftItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(leftItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate1) ? leftItem?.StartDate1 + " الی " + leftItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate2) ? leftItem?.StartDate2 + " الی " + leftItem?.EndDate2 : "")
|
-
+ |
@(leftItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@leftItem?.LeaveType
|
}
-
+ |
@(leftItem?.TotalWorkingHours ?? "")
|
@* section two *@
-
+ |
@(rightItem?.RollCallDateFa ?? "") @(rightItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(rightItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate1) ? rightItem?.StartDate1 + " الی " + rightItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate2) ? rightItem?.StartDate2 + " الی " + rightItem?.EndDate2 : "")
|
-
+ |
@(rightItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@rightItem?.LeaveType
|
}
-
+ |
@(rightItem?.TotalWorkingHours ?? "")
|
@@ -503,8 +503,8 @@
- | مدت مرخصی استحقاقی : @Model.TotalDayOfLeaveCompute |
- مدت مرخصی استعلاجی : @Model.TotalDayOfLeaveCompute |
+ مدت مرخصی استحقاقی : @Model.TotalPaidLeave |
+ مدت مرخصی استعلاجی : @Model.TotalSickLeave |
diff --git a/ServiceHost/Areas/Client/Pages/Company/Checkouts/PrintOne.cshtml b/ServiceHost/Areas/Client/Pages/Company/Checkouts/PrintOne.cshtml
index be1e6d95..e80b9d42 100644
--- a/ServiceHost/Areas/Client/Pages/Company/Checkouts/PrintOne.cshtml
+++ b/ServiceHost/Areas/Client/Pages/Company/Checkouts/PrintOne.cshtml
@@ -430,58 +430,58 @@
@* section one *@
- |
+ |
@(leftItem?.RollCallDateFa ?? "") @(leftItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(leftItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate1) ? leftItem?.StartDate1 + " الی " + leftItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate2) ? leftItem?.StartDate2 + " الی " + leftItem?.EndDate2 : "")
|
-
+ |
@(leftItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@leftItem?.LeaveType
|
}
-
+ |
@(leftItem?.TotalWorkingHours ?? "")
|
@* section two *@
-
+ |
@(rightItem?.RollCallDateFa ?? "") @(rightItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(rightItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate1) ? rightItem?.StartDate1 + " الی " + rightItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate2) ? rightItem?.StartDate2 + " الی " + rightItem?.EndDate2 : "")
|
-
+ |
@(rightItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@rightItem?.LeaveType
|
}
-
+ |
@(rightItem?.TotalWorkingHours ?? "")
|
@@ -510,8 +510,8 @@
- | مدت مرخصی استحقاقی : @Model.TotalDayOfLeaveCompute |
- مدت مرخصی استعلاجی : @Model.TotalDayOfLeaveCompute |
+ مدت مرخصی استحقاقی : @Model.TotalPaidLeave |
+ مدت مرخصی استعلاجی : @Model.TotalSickLeave |
diff --git a/ServiceHost/Areas/Client/Pages/Company/Checkouts/PrintOneMobile.cshtml b/ServiceHost/Areas/Client/Pages/Company/Checkouts/PrintOneMobile.cshtml
index 24183e3d..cd9b8f81 100644
--- a/ServiceHost/Areas/Client/Pages/Company/Checkouts/PrintOneMobile.cshtml
+++ b/ServiceHost/Areas/Client/Pages/Company/Checkouts/PrintOneMobile.cshtml
@@ -431,58 +431,58 @@
@* section one *@
- |
+ |
@(leftItem?.RollCallDateFa ?? "") @(leftItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(leftItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate1) ? leftItem?.StartDate1 + " الی " + leftItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate2) ? leftItem?.StartDate2 + " الی " + leftItem?.EndDate2 : "")
|
-
+ |
@(leftItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@leftItem?.LeaveType
|
}
-
+ |
@(leftItem?.TotalWorkingHours ?? "")
|
@* section two *@
-
+ |
@(rightItem?.RollCallDateFa ?? "") @(rightItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(rightItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate1) ? rightItem?.StartDate1 + " الی " + rightItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate2) ? rightItem?.StartDate2 + " الی " + rightItem?.EndDate2 : "")
|
-
+ |
@(rightItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@rightItem?.LeaveType
|
}
-
+ |
@(rightItem?.TotalWorkingHours ?? "")
|
@@ -511,8 +511,8 @@
- | مدت مرخصی استحقاقی : @Model.TotalDayOfLeaveCompute |
- مدت مرخصی استعلاجی : @Model.TotalDayOfLeaveCompute |
+ مدت مرخصی استحقاقی : @Model.TotalPaidLeave |
+ مدت مرخصی استعلاجی : @Model.TotalSickLeave |
diff --git a/ServiceHost/Areas/Client/Pages/Company/Checkouts/_Partials/PrintDetailStaticRaw.cshtml b/ServiceHost/Areas/Client/Pages/Company/Checkouts/_Partials/PrintDetailStaticRaw.cshtml
index a007eedf..618e2efd 100644
--- a/ServiceHost/Areas/Client/Pages/Company/Checkouts/_Partials/PrintDetailStaticRaw.cshtml
+++ b/ServiceHost/Areas/Client/Pages/Company/Checkouts/_Partials/PrintDetailStaticRaw.cshtml
@@ -424,58 +424,58 @@
@* section one *@
- |
+ |
@(leftItem?.RollCallDateFa ?? "") @(leftItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(leftItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate1) ? leftItem?.StartDate1 + " الی " + leftItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(leftItem?.StartDate2) ? leftItem?.StartDate2 + " الی " + leftItem?.EndDate2 : "")
|
-
+ |
@(leftItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@leftItem?.LeaveType
|
}
-
+ |
@(leftItem?.TotalWorkingHours ?? "")
|
@* section two *@
-
+ |
@(rightItem?.RollCallDateFa ?? "") @(rightItem?.DayOfWeek ?? "")
|
@if (string.IsNullOrWhiteSpace(rightItem?.LeaveType))
{
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate1) ? rightItem?.StartDate1 + " الی " + rightItem?.EndDate1 : "")
|
-
+ |
@(!String.IsNullOrWhiteSpace(rightItem?.StartDate2) ? rightItem?.StartDate2 + " الی " + rightItem?.EndDate2 : "")
|
-
+ |
@(rightItem?.BreakTimeString ?? "")
|
}
else
{
-
+ |
@rightItem?.LeaveType
|
}
-
+ |
@(rightItem?.TotalWorkingHours ?? "")
|
@@ -504,8 +504,8 @@
- | مدت مرخصی استحقاقی : @Model.TotalDayOfLeaveCompute |
- مدت مرخصی استعلاجی : @Model.TotalDayOfLeaveCompute |
+ مدت مرخصی استحقاقی : @Model.TotalPaidLeave |
+ مدت مرخصی استعلاجی : @Model.TotalSickLeave |