Change PrintAll And PrintOne Contract
This commit is contained in:
@@ -4,7 +4,6 @@ namespace CompanyManagment.App.Contracts.RollCallEmployee
|
||||
{
|
||||
public class AdjustRollCallEmployeesWithEmployeeLeftWork
|
||||
{
|
||||
|
||||
public DateTime LeaveDate { get; set; }
|
||||
public long RollCallStatusId { get; set; }
|
||||
}
|
||||
|
||||
@@ -693,6 +693,8 @@ public class CustomizeWorkshopSettingsApplication(ICustomizeWorkshopSettingsRepo
|
||||
var op = new OperationResult();
|
||||
|
||||
var mainGroup = _customizeWorkshopGroupSettingsRepository.GetWorkshopMainGroup(workshopId);
|
||||
if(mainGroup == null)
|
||||
return op.Succcedded();
|
||||
|
||||
mainGroup.AddEmployeeSettingToGroupWithGroupData(employeeId, workshopId);
|
||||
|
||||
|
||||
@@ -690,11 +690,14 @@ public class ContractRepository : RepositoryBase<long, Contract>, IContractRepos
|
||||
};
|
||||
|
||||
var leftworkList = _leftWorkRepository.search(searchModel);
|
||||
var lastLeftWork = leftworkList.FirstOrDefault();
|
||||
if (lastLeftWork.StartWorkDateGr > contractStart)
|
||||
lastLeftWork = leftworkList.FirstOrDefault(x =>
|
||||
x.StartWorkDateGr >= contractStart && x.LeftWorkDateGr > contractStart);
|
||||
if (lastLeftWork.LeftWorkDate != "1500/01/01" && lastLeftWork.LeftWorkDateGr < ContractEnd && lastLeftWork.LeftWorkDateGr >= contractStart)
|
||||
var lastLeftWork = leftworkList.FirstOrDefault(x=>contractStart <= x.LeftWorkDateGr && ContractEnd >= x.StartWorkDateGr);
|
||||
//if (lastLeftWork.StartWorkDateGr > contractStart)
|
||||
// lastLeftWork = leftworkList.FirstOrDefault(x =>
|
||||
// x.StartWorkDateGr <= contractStart && x.LeftWorkDateGr > contractStart);
|
||||
//if(lastLeftWork == null)
|
||||
// lastLeftWork = leftworkList.FirstOrDefault(x =>
|
||||
// x.StartWorkDateGr >= contractStart && x.LeftWorkDateGr > contractStart);
|
||||
if (lastLeftWork.LeftWorkDate != "1500/01/01" && lastLeftWork.LeftWorkDateGr < ContractEnd && lastLeftWork.LeftWorkDateGr >= contractStart)
|
||||
{
|
||||
ContractEnd = lastLeftWork.LeftWorkDateGr.AddDays(-1);
|
||||
hasLeft = true;
|
||||
|
||||
@@ -136,8 +136,7 @@ public class CustomizeWorkshopEmployeeSettingsRepository(CompanyContext companyC
|
||||
var names = _companyContext.Employees.Where(x => list.Any(y => y.EmployeeId == x.id))
|
||||
.Select(x => new { Id = x.id, Name = x.FName + " " + x.LName });
|
||||
|
||||
return list.Join(names, x => x.EmployeeId, y
|
||||
=> y.Id, (x, y) => new CustomizeWorkshopEmployeeSettingsViewModel
|
||||
return list.Join(names, x => x.EmployeeId, y => y.Id, (x, y) => new CustomizeWorkshopEmployeeSettingsViewModel
|
||||
{
|
||||
Id = x.Id,
|
||||
EmployeeId = x.EmployeeId,
|
||||
@@ -153,8 +152,8 @@ public class CustomizeWorkshopEmployeeSettingsRepository(CompanyContext companyC
|
||||
|
||||
public List<CustomizeWorkshopEmployeeSettingsViewModel> GetEmployeeSettingNotInMainGroup(long workshopId)
|
||||
{
|
||||
return _companyContext.CustomizeWorkshopEmployeeSettings.Where(x => x.WorkshopId == workshopId)
|
||||
.Include(x => x.CustomizeWorkshopGroupSettings).Where(x=>!x.CustomizeWorkshopGroupSettings.MainGroup).Select(x => new CustomizeWorkshopEmployeeSettingsViewModel()
|
||||
return _companyContext.CustomizeWorkshopEmployeeSettings.Where(x => x.WorkshopId == workshopId)
|
||||
.Include(x => x.CustomizeWorkshopGroupSettings).Where(x => !x.CustomizeWorkshopGroupSettings.MainGroup).Select(x => new CustomizeWorkshopEmployeeSettingsViewModel()
|
||||
{
|
||||
Id = x.id,
|
||||
EmployeeId = x.EmployeeId
|
||||
|
||||
@@ -256,15 +256,15 @@ public class RollCallEmployeeRepository : RepositoryBase<long, RollCallEmployee>
|
||||
|
||||
public List<RollCallEmployeeViewModel> GetActivePersonnelByWorkshopId(long workshopId)
|
||||
{
|
||||
var rollCallEmployees = _context.RollCallEmployees.Where(x => x.WorkshopId == workshopId
|
||||
&& x.IsActiveString == "true" &&
|
||||
x.HasUploadedImage == "true");
|
||||
var dateNow = DateTime.Now.Date;
|
||||
var rollCallEmployeesQuery = _context.RollCallEmployees.Include(x => x.EmployeesStatus).Where(x => x.WorkshopId == workshopId
|
||||
&& x.EmployeesStatus.Any(y => y.StartDate.Date <= dateNow && y.EndDate.Date > dateNow) && x.HasUploadedImage == "true");
|
||||
|
||||
var personnel =
|
||||
_context.PersonnelCodeSet.Where(x =>
|
||||
rollCallEmployees.Any(y => y.EmployeeId == x.EmployeeId && y.WorkshopId == x.WorkshopId))
|
||||
_context.PersonnelCodeSet.Where(x => x.WorkshopId == workshopId && rollCallEmployeesQuery.Any(y => y.EmployeeId == x.EmployeeId && y.WorkshopId == x.WorkshopId))
|
||||
.Select(x => new { x.EmployeeId, x.PersonnelCode }).ToList();
|
||||
var rollCallEmployeesList = rollCallEmployees.ToList();
|
||||
|
||||
var rollCallEmployeesList = rollCallEmployeesQuery.ToList();
|
||||
return personnel.Select(x =>
|
||||
{
|
||||
var name = rollCallEmployeesList.FirstOrDefault(y => x.EmployeeId == y.EmployeeId);
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CompanyManagment.EFCore.Repository
|
||||
/// <summary>
|
||||
/// برای تغییر بازه فعالبت هنگام ترک کار
|
||||
/// </summary>
|
||||
public void AdjustRollCallStatusEndDates(List<AdjustRollCallEmployeesWithEmployeeLeftWork> command)
|
||||
public void AdjustRollCallStatusEndDates(List<AdjustRollCallEmployeesWithEmployeeLeftWork> command)
|
||||
{
|
||||
//status ids
|
||||
var statusIds = command.Select(x => x.RollCallStatusId);
|
||||
|
||||
@@ -250,12 +250,12 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
|
||||
var leavesQuery =
|
||||
_context.LeaveList.Where(x => (x.LeaveType == "استعلاجی" || (x.LeaveType == "استحقاقی" && x.PaidLeaveType == "روزانه")) &&
|
||||
x.IsAccepted &&
|
||||
x.EndLeave >= selectedMonthFirstDay && x.StartLeave < nextMonthFirstDay && x.WorkshopId == workshopId);
|
||||
x.EndLeave >= selectedMonthFirstDay && x.StartLeave < nextMonthFirstDay && x.WorkshopId == workshopId && x.EmployeeId == employeeId);
|
||||
|
||||
var rollCalls = _context.RollCalls.Where(x =>
|
||||
!leavesQuery.Any(y =>
|
||||
x.EmployeeId == employeeId && !leavesQuery.Any(y =>
|
||||
y.StartLeave.Date <= x.StartDate.Value.Date && y.EndLeave.Date >= x.StartDate.Value.Date) &&
|
||||
x.EmployeeId == employeeId && x.WorkshopId == workshopId && x.StartDate != null &&
|
||||
x.WorkshopId == workshopId && x.StartDate != null &&
|
||||
x.StartDate >= selectedMonthFirstDay && x.StartDate < nextMonthFirstDay && x.RollCallModifyType != RollCallModifyType.Undefined);
|
||||
|
||||
var personnelCode =
|
||||
|
||||
@@ -159,8 +159,16 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
{
|
||||
montlyResult = daylyWage * TotalDays;// مزد ماهانه با پایه سنوات
|
||||
bacicMontlyResult = BasicDayliFee * TotalDays;// مزد ماهانه بدون پایه سنوات
|
||||
montlySalaryResult = bacicMontlyResult;
|
||||
basicYearResult = montlyResult - bacicMontlyResult;
|
||||
if (montlyResult > bacicMontlyResult)
|
||||
{
|
||||
|
||||
montlySalaryResult = bacicMontlyResult;
|
||||
basicYearResult = montlyResult - bacicMontlyResult;
|
||||
}
|
||||
else
|
||||
{
|
||||
montlySalaryResult = montlyResult;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1044,7 +1052,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
|
||||
public EditYearlySalary GetDetailsBySearchModel(YearlySalarySearchModel searchModel)
|
||||
{
|
||||
var query = _context.YearlySalaries.Where(x => x.StartDate <= searchModel.StartDateGr && x.EndDate >= searchModel.EndDateGr && x.Year == searchModel.year).FirstOrDefault();
|
||||
var query = _context.YearlySalaries.FirstOrDefault(x => x.StartDate <= searchModel.StartDateGr && x.EndDate >= searchModel.EndDateGr && x.Year == searchModel.year);
|
||||
if (query != null)
|
||||
{
|
||||
var yearlySalariesObj = new EditYearlySalary()
|
||||
@@ -1882,9 +1890,9 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
// {مقدار ساعت مجاز مرخصی در برای یک روز{کامل
|
||||
var leaveHoursesPerDay = 190.58 / 365;
|
||||
var contactCanToleaveList = new List<ContractsCanToLeave>();
|
||||
var allContractsBetween = _context.Contracts.Include(x => x.WorkingHoursList)
|
||||
var allContractsBetween = _context.Contracts.AsSplitQuery().Include(x => x.WorkingHoursList)
|
||||
.Where(x => x.WorkshopIds == workshopId && x.EmployeeId == employeeId &&
|
||||
x.ContarctStart >= startDate && x.ContarctStart < endDate).ToList();
|
||||
x.ContractEnd >= startDate && x.ContarctStart <= endDate).ToList();
|
||||
int mandatoryDays = 0;
|
||||
double allCanToLeave = 0;
|
||||
double canToLeave = 0;
|
||||
@@ -2025,7 +2033,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
#endregion
|
||||
|
||||
|
||||
var leaveList = _context.LeaveList
|
||||
var leaveList = _context.LeaveList.AsSplitQuery()
|
||||
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId)
|
||||
.Where(x => x.LeaveType == "استحقاقی" && x.IsAccepted)
|
||||
.Where(x =>
|
||||
@@ -2111,7 +2119,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
{
|
||||
canToLeave = thisContractCanToLeavPerDay;
|
||||
}
|
||||
leaveList = _context.LeaveList
|
||||
leaveList = _context.LeaveList.AsSplitQuery()
|
||||
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId)
|
||||
.Where(x => x.LeaveType == "استحقاقی" && x.IsAccepted)
|
||||
.Where(x =>
|
||||
@@ -2158,7 +2166,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
{
|
||||
|
||||
var startSerach = checkAbsenceDeduction.ContractEnd.AddDays(1);
|
||||
leaveList = _context.LeaveList
|
||||
leaveList = _context.LeaveList.AsSplitQuery()
|
||||
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId)
|
||||
.Where(x => x.LeaveType == "استحقاقی" && x.IsAccepted)
|
||||
.Where(x =>
|
||||
@@ -2359,9 +2367,9 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
// {مقدار ساعت مجاز مرخصی در برای یک روز{کامل
|
||||
var leaveHoursesPerDay = 190.58 / 365;
|
||||
var contactCanToleaveList = new List<ContractsCanToLeave>();
|
||||
var allContractsBetween = _context.Contracts.Include(x => x.WorkingHoursList)
|
||||
var allContractsBetween = _context.Contracts.AsSplitQuery().Include(x => x.WorkingHoursList)
|
||||
.Where(x => x.WorkshopIds == workshopId && x.EmployeeId == employeeId &&
|
||||
x.ContarctStart >= separationStartDate && x.ContarctStart < endDate).OrderBy(x=>x.ContarctStart).ToList();
|
||||
x.ContractEnd >= startDate && x.ContarctStart <= endDate).OrderBy(x=>x.ContarctStart).ToList();
|
||||
double canToLeave = 0;
|
||||
int contractCounter = 0;
|
||||
foreach (var contract in allContractsBetween)
|
||||
@@ -2424,8 +2432,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
var sdate = contract.ContarctStart.ToFarsi();
|
||||
var edate = contract.ContractEnd.ToFarsi();
|
||||
// اگر فیش در قرارداد جاری حلقه بود تا تاریخ پایان فیش برو
|
||||
//if (separationStartDate >= contract.ContarctStart && separationStartDate < contract.ContractEnd)
|
||||
if (startDate >= contract.ContarctStart && startDate < contract.ContractEnd)
|
||||
if (separationStartDate >= contract.ContarctStart && separationStartDate < contract.ContractEnd)
|
||||
edate = endDate.ToFarsi();
|
||||
var syear = Convert.ToInt32(sdate.Substring(0, 4));
|
||||
var smonth = Convert.ToInt32(sdate.Substring(5, 2));
|
||||
@@ -2506,7 +2513,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
|
||||
|
||||
#endregion
|
||||
var leaveList = _context.LeaveList
|
||||
var leaveList = _context.LeaveList.AsSplitQuery()
|
||||
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId)
|
||||
.Where(x => x.LeaveType == "استحقاقی" && x.IsAccepted)
|
||||
.Where(x =>
|
||||
@@ -2582,7 +2589,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
{
|
||||
var startAfter365 = check365.ContractEnd.AddDays(1);
|
||||
canToLeave = check365.CanToLeave;
|
||||
leaveList = _context.LeaveList
|
||||
leaveList = _context.LeaveList.AsSplitQuery()
|
||||
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId)
|
||||
.Where(x => x.LeaveType == "استحقاقی" && x.IsAccepted)
|
||||
.Where(x =>
|
||||
@@ -2647,7 +2654,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
canToLeave = personelCanToLeave;
|
||||
}
|
||||
|
||||
leaveList = _context.LeaveList
|
||||
leaveList = _context.LeaveList.AsSplitQuery()
|
||||
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId)
|
||||
.Where(x => x.LeaveType == "استحقاقی" && x.IsAccepted)
|
||||
.Where(x =>
|
||||
@@ -2694,7 +2701,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
{
|
||||
|
||||
var startSerach = checkAbsenceDeduction.ContractEnd.AddDays(1);
|
||||
leaveList = _context.LeaveList
|
||||
leaveList = _context.LeaveList.AsSplitQuery()
|
||||
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId)
|
||||
.Where(x => x.LeaveType == "استحقاقی" && x.IsAccepted)
|
||||
.Where(x =>
|
||||
@@ -2763,41 +2770,8 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
|
||||
bool lastChekout = endMonthGr == contract.ContractEnd;
|
||||
bool endOfyear = lastChekout && isEndOfYear;
|
||||
//if (canToLeave >= usedLeaves) //اگر طلب مرخصی داشت
|
||||
//{
|
||||
// creditLeaves = canToLeave - usedLeaves;
|
||||
// var has365 = contactCanToleaveList.Any(x => x.Is365);
|
||||
// //اگر از 365 روز تجاوز کرد و باقی مانده مرخصی بیشتر از 9 روز بود فقط 9 روز بماند
|
||||
// if (is365 && !has365 && creditLeaves > canToLeavAfter365 && !left && !endOfyear)
|
||||
// {
|
||||
// creditLeaves = canToLeavAfter365;
|
||||
|
||||
|
||||
// }
|
||||
|
||||
// if(is365 && has365 && !left && !endOfyear)
|
||||
// {
|
||||
// var last365 = contactCanToleaveList
|
||||
// .Where(x => x.Is365)
|
||||
// .MaxBy(x => x.ContractStart);
|
||||
// canToLeavAfter365 += last365.CanToLeave;
|
||||
// if (creditLeaves > canToLeavAfter365)
|
||||
// {
|
||||
// creditLeaves = canToLeavAfter365;
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// periodOfAbsence = 0;
|
||||
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
|
||||
|
||||
// periodOfAbsence = usedLeaves - canToLeave;
|
||||
|
||||
// creditLeaves = 0;
|
||||
//}
|
||||
|
||||
#region NewcChanges
|
||||
|
||||
@@ -2868,7 +2842,7 @@ public class YearlySalaryRepository : RepositoryBase<long, YearlySalary>, IYearl
|
||||
checkoutCanToLeave = starndardHoursesPerTotalDays;
|
||||
}
|
||||
//بدست آوردن مرخصی این ماه
|
||||
var checkoutLeaveList = _context.LeaveList
|
||||
var checkoutLeaveList = _context.LeaveList.AsSplitQuery()
|
||||
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId)
|
||||
.Where(x => x.LeaveType == "استحقاقی" && x.IsAccepted)
|
||||
.Where(x =>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
@page
|
||||
@model ServiceHost.Areas.Admin.Pages.Company.Contracts.ContractPrintAll
|
||||
|
||||
@{
|
||||
|
||||
<style>
|
||||
.modal .modal-dialog .modal-content {
|
||||
background-color: white !important;
|
||||
@@ -334,12 +336,12 @@
|
||||
<span class="radio-info">
|
||||
@if (item.ContractType == "دائم")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> دائم </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" disabled="disabled">
|
||||
<label for="inlineRadio3"> دائم </label>
|
||||
}
|
||||
|
||||
@@ -348,12 +350,12 @@
|
||||
<span class="radio-info">
|
||||
@if (item.ContractType == "موقت")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> موقت </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" disabled="disabled">
|
||||
<label for="inlineRadio3"> موقت </label>
|
||||
}
|
||||
|
||||
@@ -361,18 +363,17 @@
|
||||
<span class="radio-info">
|
||||
@if (item.ContractType == "معین")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> معین </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" disabled="disabled">
|
||||
<label for="inlineRadio3"> معین </label>
|
||||
}
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-xs-8" style="margin-top: 3px;">
|
||||
<span class="fontBold">نوع کار یا حرفه یا حجم کار یا وظیفه ای که کارگر به آن اشتغال می یابد</span> :
|
||||
@@ -492,8 +493,29 @@
|
||||
</fieldset>
|
||||
<fieldset style="border: 1px solid black; border-top: 0px; border-radius: 0px 0px 10px 10px; padding: 3px; margin: 0px 10px;">
|
||||
|
||||
@{
|
||||
|
||||
<textarea class="form-control" style="height: 80px;"></textarea>
|
||||
switch (@item.WorkshopIds)
|
||||
{
|
||||
case 516:
|
||||
case 63:
|
||||
case 38:
|
||||
case 39:
|
||||
|
||||
<div class="row m-t-5" style="padding: 0px 24px 10px">
|
||||
<p style="text-align: justify;">
|
||||
بر اساس ماده 190 قانون کار جمهوری اسلامی ایران ، پرسنل اقرار مینماید کلیه مبالغ پیش بینی شده در قانون کار را وفق قرارداد منعقده دریافت مینماید. این مبالغ قسمتی بصورت مستقیم از سوی کارفرما و قسمتی بر اساس شرایط کارگاه از محل درآمد حاصله از مشتری اخذ میگردد . با توجه به شرایط کارگاه کلیه مبالغ بصورت واریز به حساب و وجه نقد رایج کشور ، تواما به پرسنل پرداخت میگردد. امضا تصفیه حساب دارای مبالغ ، توسط پرسنل نشانگر تصفیه قطعی ایشان میباشد.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
break;
|
||||
default:
|
||||
<textarea class="form-control" style="height: 80px;"></textarea>
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
@@ -275,12 +275,12 @@
|
||||
<span class="radio-info">
|
||||
@if (Model.ContractType == "دائم")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> دائم </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" disabled="disabled">
|
||||
<label for="inlineRadio3"> دائم </label>
|
||||
}
|
||||
|
||||
@@ -289,12 +289,12 @@
|
||||
<span class="radio-info">
|
||||
@if (Model.ContractType == "موقت")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> موقت </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" disabled="disabled">
|
||||
<label for="inlineRadio3"> موقت </label>
|
||||
}
|
||||
|
||||
@@ -302,12 +302,12 @@
|
||||
<span class="radio-info">
|
||||
@if (Model.ContractType == "معین")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> معین </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="a" disabled="disabled">
|
||||
<label for="inlineRadio3"> معین </label>
|
||||
}
|
||||
|
||||
@@ -433,8 +433,29 @@
|
||||
</fieldset>
|
||||
<fieldset style="border: 1px solid black; border-top: 0px; border-radius: 0px 0px 10px 10px; padding: 3px; margin: 0px 10px;">
|
||||
|
||||
|
||||
@{
|
||||
|
||||
<textarea class="form-control"></textarea>
|
||||
switch (@Model.WorkshopIds)
|
||||
{
|
||||
case 516:
|
||||
case 63:
|
||||
case 38:
|
||||
case 39:
|
||||
|
||||
<div class="row m-t-5" style="padding: 0px 24px 10px">
|
||||
<p style="text-align: justify;">
|
||||
بر اساس ماده 190 قانون کار جمهوری اسلامی ایران ، پرسنل اقرار مینماید کلیه مبالغ پیش بینی شده در قانون کار را وفق قرارداد منعقده دریافت مینماید. این مبالغ قسمتی بصورت مستقیم از سوی کارفرما و قسمتی بر اساس شرایط کارگاه از محل درآمد حاصله از مشتری اخذ میگردد . با توجه به شرایط کارگاه کلیه مبالغ بصورت واریز به حساب و وجه نقد رایج کشور ، تواما به پرسنل پرداخت میگردد. امضا تصفیه حساب دارای مبالغ ، توسط پرسنل نشانگر تصفیه قطعی ایشان میباشد.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
break;
|
||||
default:
|
||||
<textarea class="form-control"></textarea>
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
@@ -274,12 +274,12 @@
|
||||
<span class="radio-info">
|
||||
@if (item.ContractType == "دائم")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> دائم </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" disabled="disabled">
|
||||
<label for="inlineRadio3"> دائم </label>
|
||||
}
|
||||
|
||||
@@ -288,12 +288,12 @@
|
||||
<span class="radio-info">
|
||||
@if (item.ContractType == "موقت")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> موقت </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" disabled="disabled">
|
||||
<label for="inlineRadio3"> موقت </label>
|
||||
}
|
||||
|
||||
@@ -301,12 +301,12 @@
|
||||
<span class="radio-info">
|
||||
@if (item.ContractType == "معین")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> معین </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id">
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3" name="@item.Id" disabled="disabled">
|
||||
<label for="inlineRadio3"> معین </label>
|
||||
}
|
||||
|
||||
@@ -433,7 +433,28 @@
|
||||
<fieldset style="border: 1px solid black; border-top: 0px; border-radius: 0px 0px 10px 10px; padding: 3px; margin: 0px 10px;">
|
||||
|
||||
|
||||
<textarea class="form-control" style="height: 80px;"></textarea>
|
||||
@{
|
||||
|
||||
switch (@item.WorkshopIds)
|
||||
{
|
||||
case 516:
|
||||
case 63:
|
||||
case 38:
|
||||
case 39:
|
||||
|
||||
<div class="row m-t-5" style="padding: 0px 24px 10px">
|
||||
<p style="text-align: justify;">
|
||||
بر اساس ماده 190 قانون کار جمهوری اسلامی ایران ، پرسنل اقرار مینماید کلیه مبالغ پیش بینی شده در قانون کار را وفق قرارداد منعقده دریافت مینماید. این مبالغ قسمتی بصورت مستقیم از سوی کارفرما و قسمتی بر اساس شرایط کارگاه از محل درآمد حاصله از مشتری اخذ میگردد . با توجه به شرایط کارگاه کلیه مبالغ بصورت واریز به حساب و وجه نقد رایج کشور ، تواما به پرسنل پرداخت میگردد. امضا تصفیه حساب دارای مبالغ ، توسط پرسنل نشانگر تصفیه قطعی ایشان میباشد.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
break;
|
||||
default:
|
||||
<textarea class="form-control" style="height: 80px;"></textarea>
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
@@ -244,12 +244,12 @@
|
||||
@if (@item.ContractType == "موقت")
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3@(i)" name="a@(i)" checked="checked" disabled="disabled">
|
||||
<label for="inlineRadio3"> موقت </label>
|
||||
<label for="inlineRadio3@(i)"> موقت </label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input style="vertical-align: sub;" type="radio" id="inlineRadio3@(i)" name="a@(i)" disabled="disabled">
|
||||
<label for="inlineRadio3"> موقت </label>
|
||||
<label for="inlineRadio3@(i)"> موقت </label>
|
||||
}
|
||||
|
||||
</span><span> </span><span> </span>
|
||||
@@ -388,7 +388,28 @@
|
||||
<div class="col-12 p-0">
|
||||
<fieldset class="head" style="background-color: #ccc; border: 1px solid black; border-radius: 10px 10px 0px 0px; padding: 3px; margin: 4px 10px 0px 10px;"><h6 style="padding-right: 5px;"> شروط و توضیحات </h6></fieldset>
|
||||
<fieldset style="border: 1px solid black; border-top: 0px; border-radius: 0px 0px 10px 10px; padding: 3px; margin: 0px 10px;">
|
||||
<textarea class="form-control" disabled="disabled" style="background-color: #fff;border-radius: 10px;"></textarea>
|
||||
@{
|
||||
|
||||
switch (@item.WorkshopIds)
|
||||
{
|
||||
case 516:
|
||||
case 63:
|
||||
case 38:
|
||||
case 39:
|
||||
|
||||
<div class="row" style="padding: 0px 17px 10px;margin-top:5px">
|
||||
<p style="text-align: justify;">
|
||||
بر اساس ماده 190 قانون کار جمهوری اسلامی ایران ، پرسنل اقرار مینماید کلیه مبالغ پیش بینی شده در قانون کار را وفق قرارداد منعقده دریافت مینماید. این مبالغ قسمتی بصورت مستقیم از سوی کارفرما و قسمتی بر اساس شرایط کارگاه از محل درآمد حاصله از مشتری اخذ میگردد . با توجه به شرایط کارگاه کلیه مبالغ بصورت واریز به حساب و وجه نقد رایج کشور ، تواما به پرسنل پرداخت میگردد. امضا تصفیه حساب دارای مبالغ ، توسط پرسنل نشانگر تصفیه قطعی ایشان میباشد.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
break;
|
||||
default:
|
||||
<textarea class="form-control" disabled="disabled" style="background-color: #fff;border-radius: 10px;"></textarea>
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -471,7 +471,29 @@
|
||||
<div class="col-12 p-0">
|
||||
<fieldset class="head" style="background-color: #ccc; border: 1px solid black; border-radius: 10px 10px 0px 0px; padding: 3px; margin: 4px 10px 0px 10px;"><h6 style="padding-right: 5px;"> شروط و توضیحات </h6></fieldset>
|
||||
<fieldset style="border: 1px solid black; border-top: 0px; border-radius: 0px 0px 10px 10px; padding: 3px; margin: 0px 10px;">
|
||||
<textarea class="form-control" disabled="disabled" style="background-color: #fff;border-radius: 10px;"></textarea>
|
||||
|
||||
@{
|
||||
|
||||
switch (@item.WorkshopIds)
|
||||
{
|
||||
case 516:
|
||||
case 63:
|
||||
case 38:
|
||||
case 39:
|
||||
|
||||
<div class="row" style="padding: 0px 17px 10px;margin-top:5px">
|
||||
<p style="text-align: justify;">
|
||||
بر اساس ماده 190 قانون کار جمهوری اسلامی ایران ، پرسنل اقرار مینماید کلیه مبالغ پیش بینی شده در قانون کار را وفق قرارداد منعقده دریافت مینماید. این مبالغ قسمتی بصورت مستقیم از سوی کارفرما و قسمتی بر اساس شرایط کارگاه از محل درآمد حاصله از مشتری اخذ میگردد . با توجه به شرایط کارگاه کلیه مبالغ بصورت واریز به حساب و وجه نقد رایج کشور ، تواما به پرسنل پرداخت میگردد. امضا تصفیه حساب دارای مبالغ ، توسط پرسنل نشانگر تصفیه قطعی ایشان میباشد.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
break;
|
||||
default:
|
||||
<textarea class="form-control" disabled="disabled" style="background-color: #fff;border-radius: 10px;"></textarea>
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -461,7 +461,29 @@
|
||||
<div class="col-12 p-0">
|
||||
<fieldset class="head" style="background-color: #ccc; border: 1px solid black; border-radius: 10px 10px 0px 0px; padding: 3px; margin: 4px 10px 0px 10px;"><h6 style="padding-right: 5px;"> شروط و توضیحات </h6></fieldset>
|
||||
<fieldset style="border: 1px solid black; border-top: 0px; border-radius: 0px 0px 10px 10px; padding: 3px; margin: 0px 10px;">
|
||||
<textarea class="form-control" disabled="disabled" style="background-color: #fff;border-radius: 10px;"></textarea>
|
||||
|
||||
@{
|
||||
|
||||
switch (@Model.WorkshopIds)
|
||||
{
|
||||
case 516:
|
||||
case 63:
|
||||
case 38:
|
||||
case 39:
|
||||
|
||||
<div class="row" style="padding: 0px 17px 10px;margin-top:5px">
|
||||
<p style="text-align: justify;">
|
||||
بر اساس ماده 190 قانون کار جمهوری اسلامی ایران ، پرسنل اقرار مینماید کلیه مبالغ پیش بینی شده در قانون کار را وفق قرارداد منعقده دریافت مینماید. این مبالغ قسمتی بصورت مستقیم از سوی کارفرما و قسمتی بر اساس شرایط کارگاه از محل درآمد حاصله از مشتری اخذ میگردد . با توجه به شرایط کارگاه کلیه مبالغ بصورت واریز به حساب و وجه نقد رایج کشور ، تواما به پرسنل پرداخت میگردد. امضا تصفیه حساب دارای مبالغ ، توسط پرسنل نشانگر تصفیه قطعی ایشان میباشد.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
break;
|
||||
default:
|
||||
<textarea class="form-control" disabled="disabled" style="background-color: #fff;border-radius: 10px;"></textarea>
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -463,6 +463,28 @@
|
||||
<fieldset class="head" style="background-color: #ccc; border: 1px solid black; border-radius: 10px 10px 0px 0px; padding: 3px; margin: 4px 10px 0px 10px;"><h6 style="padding-right: 5px;"> شروط و توضیحات </h6></fieldset>
|
||||
<fieldset style="border: 1px solid black; border-top: 0px; border-radius: 0px 0px 10px 10px; padding: 3px; margin: 0px 10px;">
|
||||
<textarea class="form-control" disabled="disabled" style="background-color: #fff;border-radius: 10px;"></textarea>
|
||||
@{
|
||||
|
||||
switch (@Model.WorkshopIds)
|
||||
{
|
||||
case 516:
|
||||
case 63:
|
||||
case 38:
|
||||
case 39:
|
||||
|
||||
<div class="row" style="padding: 0px 17px 10px;margin-top:5px">
|
||||
<p style="text-align: justify;">
|
||||
بر اساس ماده 190 قانون کار جمهوری اسلامی ایران ، پرسنل اقرار مینماید کلیه مبالغ پیش بینی شده در قانون کار را وفق قرارداد منعقده دریافت مینماید. این مبالغ قسمتی بصورت مستقیم از سوی کارفرما و قسمتی بر اساس شرایط کارگاه از محل درآمد حاصله از مشتری اخذ میگردد . با توجه به شرایط کارگاه کلیه مبالغ بصورت واریز به حساب و وجه نقد رایج کشور ، تواما به پرسنل پرداخت میگردد. امضا تصفیه حساب دارای مبالغ ، توسط پرسنل نشانگر تصفیه قطعی ایشان میباشد.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
break;
|
||||
default:
|
||||
<textarea class="form-control" disabled="disabled" style="background-color: #fff;border-radius: 10px;"></textarea>
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
//"MesbahDb": "Data Source=DESKTOP-NUE119G\\MSNEW;Initial Catalog=Mesbah_db;Integrated Security=True"
|
||||
|
||||
//server
|
||||
//"MesbahDb": "Data Source=171.22.24.15;Initial Catalog=mesbah_db;Persist Security Info=False;User ID=ir_db;Password=R2rNp[170]is[3019]#@ATt;TrustServerCertificate=true;"
|
||||
// "MesbahDb": "Data Source=171.22.24.15;Initial Catalog=mesbah_db;Persist Security Info=False;User ID=ir_db;Password=R2rNp[170]is[3019]#@ATt;TrustServerCertificate=true;"
|
||||
|
||||
//local
|
||||
"MesbahDb": "Data Source=.;Initial Catalog=Mesbah_db;Integrated Security=True;TrustServerCertificate=true;"
|
||||
"MesbahDb": "Data Source=.;Initial Catalog=Mesbah_db;Integrated Security=True;TrustServerCertificate=true;"
|
||||
},
|
||||
"GoogleRecaptchaV3": {
|
||||
"SiteKey": "6Lfhp_AnAAAAAB79WkrMoHd1k8ir4m8VvfjE7FTH",
|
||||
|
||||
@@ -273,7 +273,7 @@ public class WorkFlowApplication : IWorkFlowApplication
|
||||
RollCallId = e.RollCallId
|
||||
}).ToList(),
|
||||
DayOfWeekFa = x.DateTime.DayOfWeek.DayOfWeeKToPersian()
|
||||
}).Where(y => y.RollCallWorkFlowPerDayViewModels != null && y.RollCallWorkFlowPerDayViewModels.Any()).ToList();
|
||||
}).Where(y => y.RollCallWorkFlowPerDayViewModels != null && y.RollCallWorkFlowPerDayViewModels.Any()).OrderBy(x=>x.DateTime).ToList();
|
||||
}
|
||||
public List<DailyRollCallWorkFlowViewModel> GetAbsentRollCallWorkFlows(long workshopId)
|
||||
{
|
||||
@@ -342,7 +342,7 @@ public class WorkFlowApplication : IWorkFlowApplication
|
||||
result.Add(newItem);
|
||||
|
||||
}
|
||||
return result;
|
||||
return result.OrderBy(x=>x.DateTime).ToList();
|
||||
}
|
||||
public List<DailyRollCallConfirmedWithoutLunchBreakViewModel> GetEmployeesWithoutLunchBreak(long workshopId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user