insurance update2
This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
<input type="text" placeholder="" id="txtSumOfEmployees" asp-for="SumOfEmployees" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10"> مشمول </label>
|
||||
<label class="col-md-10 col-10 col-sm-10"> جمع دستمزد و مزایای ماهانه مشمول </label>
|
||||
<input type="text" placeholder="" id="txtIncluded" asp-for="Included" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
@@ -151,46 +151,62 @@
|
||||
<input type="text" placeholder="" id="txtSumOfWorkingDays" asp-for="SumOfWorkingDays" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10"> مشمول و غیر مشمول </label>
|
||||
<label class="col-md-10 col-10 col-sm-10"> جمع دستمزد و مزایای ماهانه مشمول و غیر مشمول </label>
|
||||
<input type="text" placeholder="" id="txtIncludedAndNotIncluded" asp-for="IncludedAndNotIncluded" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10"> جمع دستمزد روزانه </label>
|
||||
<input type="text" placeholder="" id="txtSumOfDailyWage" asp-for="SumOfDailyWage" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
<label class="col-md-10 col-10 col-sm-10"> جمع دستمزد روزانه </label>
|
||||
<input type="text" placeholder="" id="txtSumOfDailyWage" asp-for="SumOfDailyWage" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10"> سهم حق بیمه شده </label>
|
||||
<input type="text" placeholder="" id="txtInsuredShare" asp-for="InsuredShare" class="input blue col-md-2 col-2 col-sm-2 notEmpty">
|
||||
<label class="col-md-10 col-10 col-sm-10"> جمع مزایای ماهانه غیرمشمول </label>
|
||||
<input type="text" placeholder="" id="txtSumOfBenefitsIncludedNonContinuous" value="0" name="SumOfBenefitsIncludedNonContinuous" class="input yellow col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10"> جمع حقوق ماهیانه </label>
|
||||
<input type="text" placeholder="" id="txtSumOfSalaries" asp-for="SumOfSalaries" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
<label class="col-md-10 col-10 col-sm-10"> جمع حقوق ماهیانه </label>
|
||||
<input type="text" placeholder="" id="txtSumOfSalaries" asp-for="SumOfSalaries" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10"> سهم حق کارفرما </label>
|
||||
<input type="text" placeholder="" id="txtEmployerShare" asp-for="EmployerShare" class="input blue col-md-2 col-2 col-sm-2 notEmpty">
|
||||
<label class="col-md-10 col-10 col-sm-10"> سهم حق بیمه شده </label>
|
||||
<input type="text" placeholder="" id="txtInsuredShare" asp-for="InsuredShare" class="input blue col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10 text-small"> جمع مزایای ماهیانه مشمول </label>
|
||||
<input type="text" placeholder="" id="txtSumOfBenefitsIncluded" asp-for="SumOfBenefitsIncluded" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
<label class="col-md-10 col-10 col-sm-10 text-small"> جمع مزایای ماهیانه مشمول </label>
|
||||
<input type="text" placeholder="" id="txtSumOfBenefitsIncluded" asp-for="SumOfBenefitsIncluded" class="input green col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10"> بیمه بیکاری </label>
|
||||
<input type="text" placeholder="" id="txtUnEmploymentInsurance" asp-for="UnEmploymentInsurance" class="input blue col-md-2 col-2 col-sm-2 notEmpty">
|
||||
<label class="col-md-10 col-10 col-sm-10"> سهم حق کارفرما </label>
|
||||
<input type="text" placeholder="" id="txtEmployerShare" asp-for="EmployerShare" class="input blue col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10 text-small"> مجموع پایه سنواتی </label>
|
||||
<input type="text" placeholder="" id="txtSumOfBaseYears" asp-for="SumOfBaseYears" class="input blue col-md-2 col-2 col-sm-2">
|
||||
<label class="col-md-10 col-10 col-sm-10 text-small"> مجموع پایه سنواتی </label>
|
||||
<input type="text" placeholder="" id="txtSumOfBaseYears" asp-for="SumOfBaseYears" class="input green col-md-2 col-2 col-sm-2">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10 text-small"> مجموع حق تاهل </label>
|
||||
<input type="text" placeholder="" id="txtSumOfMarriedAllowance" asp-for="SumOfMarriedAllowance" class="input blue col-md-2 col-2 col-sm-2">
|
||||
</div>
|
||||
<div class="col-md-6 col-6 col-sm-6">
|
||||
<label class="col-md-10 col-10 col-sm-10"> بیمه بیکاری </label>
|
||||
<input type="text" placeholder="" id="txtUnEmploymentInsurance" asp-for="UnEmploymentInsurance" class="input blue col-md-2 col-2 col-sm-2 notEmpty">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10 text-small"> جمع دستمزد روزانه (دستمزد روزانه + پایه سنواتی) </label>
|
||||
<input type="text" placeholder="" id="txtSumOfDailyWagePlusBaseYears" value="0" name="SumOfDailyWagePlusBaseYears" class="input green col-md-2 col-2 col-sm-2">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10 text-small"> مجموع حق تاهل </label>
|
||||
<input type="text" placeholder="" id="txtSumOfMarriedAllowance" asp-for="SumOfMarriedAllowance" class="input green col-md-2 col-2 col-sm-2">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-6 col-sm-6">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-6 col-sm-6 inputs-group">
|
||||
<label class="col-md-10 col-10 col-sm-10 text-small"> 4% سخت و زیان آور </label>
|
||||
<input type="text" placeholder="" id="txtDifficultJobsInsuranc" asp-for="DifficultJobsInsuranc" class="input blue col-md-2 col-2 col-sm-2">
|
||||
<input type="text" placeholder="" id="txtDifficultJobsInsuranc" asp-for="DifficultJobsInsuranc" class="input green col-md-2 col-2 col-sm-2">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -998,6 +1014,8 @@
|
||||
|
||||
employeeDetails.MarriedAllowance = Number($(this).find('td:eq(9)').attr('data-MarriedAllowance'));
|
||||
employeeDetails.BaseYears = Number($(this).find('td:eq(10)').attr('data-BaseYears'));
|
||||
employeeDetails.DailyWagePlusBaseYears = Number($(this).find('td:eq(11)').attr('data-DailyWagePlusBaseYears'));
|
||||
employeeDetails.BenefitsIncludedNonContinuous = Number($(this).find('td:eq(5)').attr('data-BenefitsIncludedNonContinuous'));
|
||||
|
||||
employeeDetailsForInsuranceList.push(employeeDetails);
|
||||
});
|
||||
@@ -1013,6 +1031,10 @@
|
||||
$('#txtInsuredShare').val(0);
|
||||
$('#txtEmployerShare').val(0);
|
||||
$('#txtUnEmploymentInsurance').val(0);
|
||||
$('#txtSumOfBaseYears').val(0);
|
||||
$('#txtSumOfMarriedAllowance').val(0);
|
||||
$('#txtSumOfDailyWagePlusBaseYears').val(0);
|
||||
$('#txtSumOfBenefitsIncludedNonContinuous').val(0);
|
||||
} else {
|
||||
$.ajax({
|
||||
dataType: 'json',
|
||||
@@ -1034,6 +1056,10 @@
|
||||
$('#txtUnEmploymentInsurance').val(response.unEmploymentInsurance);
|
||||
$('#txtSumOfBaseYears').val(response.sumOfBaseYears);
|
||||
$('#txtSumOfMarriedAllowance').val(response.sumOfMarriedAllowance);
|
||||
$('#txtSumOfDailyWagePlusBaseYears').val(response.sumOfDailyWagePlusBaseYears);
|
||||
$('#txtSumOfBenefitsIncludedNonContinuous').val(response.sumOfBenefitsIncludedNonContinuous);
|
||||
console.log(response.sumOfDailyWagePlusBaseYears);
|
||||
console.log(response.sumOfBenefitsIncludedNonContinuous);
|
||||
},
|
||||
failure: function (response) {
|
||||
console.log(5, response);
|
||||
@@ -1184,6 +1210,7 @@
|
||||
|
||||
$("#divEmployeeInsurancListData").append(`<input type="hidden" name="SumOfBaseYears" id="SumOfBaseYears" value="${getNumberValue($("#txtSumOfBaseYears").val())}" />`);
|
||||
$("#divEmployeeInsurancListData").append(`<input type="hidden" name="SumOfMarriedAllowance" id="SumOfMarriedAllowance" value="${getNumberValue($("#txtSumOfMarriedAllowance").val())}" />`);
|
||||
|
||||
//$("#divEmployeeInsurancListData").append('<input type="hidden" name="InsuranceWorkshopInfo.FixedSalary" id="InsuranceWorkshopInfo_FixedSalary" value="'+fixedSalary+'" />');
|
||||
//$("#divEmployeeInsurancListData").append('<input type="hidden" name="InsuranceWorkshopInfo.Population" id="InsuranceWorkshopInfo_Population" value="'+population+'" />');
|
||||
|
||||
|
||||
@@ -169,10 +169,10 @@
|
||||
<td data-IncludedAndNotIncluded="0" data-BenefitsIncludedNonContinuous="0" class="small-font td-ellipsis emptyTR">0 </td>
|
||||
<td data-BenefitsIncludedContinuous="0" class="small-font td-ellipsis emptyTR">0 </td>
|
||||
<td data-MonthlyBenefits="0" class="small-font td-ellipsis emptyTR">0 </td>
|
||||
<td data-MonthlySalary="0" class="small-font td-ellipsis emptyTR">0</td>
|
||||
<td data-MonthlySalary="0" class="small-font td-ellipsis emptyTR">0</td>
|
||||
<td data-MarriedAllowance="0" class="small-font td-ellipsis emptyTR">0</td>
|
||||
<td data-BaseYears="0" class="small-font td-ellipsis emptyTR">0</td>
|
||||
<td data-DailyWage="0" class="small-font td-ellipsis emptyTR">0</td>
|
||||
<td data-DailyWage="0" data-DailyWagePlusBaseYears="0" class="small-font td-ellipsis emptyTR">0</td>
|
||||
<td data-EndMonthCurrentDay="@item.EndMonthCurrentDay" data-OldWorkingDays="0" data-HousingAllowance="@item.HousingAllowance" data-ConsumableItems="@item.ConsumableItems" class="small-font td-ellipsis emptyTR">0</td>
|
||||
<td class="td-ellipsis emptyTR">@item.IdNumber</td>
|
||||
<td class="td-ellipsis emptyTR">@item.DateOfBirth</td>
|
||||
@@ -205,7 +205,7 @@
|
||||
<td data-MonthlySalary="@(item.HasConfilictJobs ? 0 : item.MonthlySalary)" class="small-font td-ellipsis emptyTR">@(item.HasConfilictJobs ? "" : item.MonthlySalary.ToMoney())</td>
|
||||
<td data-MarriedAllowance="@item.MarriedAllowance" class="small-font td-ellipsis emptyTR">@item.MarriedAllowance.ToMoney()</td>
|
||||
<td data-BaseYears="@item.BaseYears" class="small-font td-ellipsis emptyTR">@item.BaseYears.ToMoney()</td>
|
||||
<td data-DailyWage="@(item.HasConfilictJobs ? 0 : item.DailyWage)" class="small-font td-ellipsis emptyTR">@(item.HasConfilictJobs ? "" : item.DailyWageStr)</td>
|
||||
<td data-DailyWage="@(item.HasConfilictJobs ? 0 : item.DailyWage)" data-DailyWagePlusBaseYears="@item.DailyWagePlusBaseYears" class="small-font td-ellipsis emptyTR">@(item.HasConfilictJobs ? "" : item.DailyWageStr)</td>
|
||||
<td data-EndMonthCurrentDay="@item.EndMonthCurrentDay" data-OldWorkingDays="@item.WorkingDays" data-HousingAllowance="@item.HousingAllowance" data-ConsumableItems="@item.ConsumableItems" class="small-font td-ellipsis emptyTR">@item.WorkingDays</td>
|
||||
<td class="td-ellipsis emptyTR">@item.IdNumber</td>
|
||||
<td class="td-ellipsis emptyTR">@item.DateOfBirth</td>
|
||||
|
||||
@@ -250,7 +250,7 @@ public class IndexModel : PageModel
|
||||
|
||||
|
||||
if (leftWorkDay != "01") //اگر ترک کار آن یکم ماه نبود
|
||||
sumOfBenefitIncludedAndNotIncluded += (employeeDetailsForInsuranceList[i].IncludedAndNotIncluded + employeeDetailsForInsuranceList[i].BenefitsIncludedNonContinuous);
|
||||
sumOfBenefitIncludedAndNotIncluded += employeeDetailsForInsuranceList[i].IncludedAndNotIncluded;
|
||||
|
||||
benefitsIncludedNonContinuous += employeeDetailsForInsuranceList[i].BenefitsIncludedNonContinuous;
|
||||
insuredShare = insuredShare + employeeDetailsForInsuranceList[i].InsuranceShare;
|
||||
@@ -396,11 +396,11 @@ public class IndexModel : PageModel
|
||||
//جمع حق تاهل
|
||||
SumOfMarriedAllowance = sumOfMarriedAllowance.ToMoney(),
|
||||
|
||||
//جمع دستمزد روزانه + پایه سنوات روزانه
|
||||
SumOfDailyWagePlusBaseyear = sumOfDailyWagePlusBaseYear.ToMoney(),
|
||||
//جمع دستمزد روزانه + پایه سنوات روزانه
|
||||
SumOfDailyWagePlusBaseYears = sumOfDailyWagePlusBaseYear.ToMoney(),
|
||||
|
||||
//جمع مزایای غیر مشمول
|
||||
SumOFbenefitsIncludedNonContinuous = benefitsIncludedNonContinuous,
|
||||
SumOfBenefitsIncludedNonContinuous = benefitsIncludedNonContinuous.ToMoney(),
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@
|
||||
background-color: #d6f7ea;
|
||||
}
|
||||
|
||||
#DSKWOR-datatable tr td:nth-child(10), #DSKWOR-datatable tr td:nth-child(11) {
|
||||
#DSKWOR-datatable tr td:nth-child(11), #DSKWOR-datatable tr td:nth-child(12) {
|
||||
background-color: #efee5226;
|
||||
}
|
||||
|
||||
@@ -719,6 +719,7 @@
|
||||
.inputs-group {
|
||||
padding: 7px 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.green {
|
||||
@@ -729,6 +730,10 @@
|
||||
background-color: #67c3cf5c;
|
||||
}
|
||||
|
||||
.yellow {
|
||||
background-color: #fbf3ae6e;
|
||||
}
|
||||
|
||||
.header-style {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
@@ -1528,3 +1533,8 @@
|
||||
}
|
||||
/*------------ End Create InsuranceList ------------*/
|
||||
|
||||
@media (max-width: 1366px) {
|
||||
#DSSKAR .col-md-10.col-10.col-sm-10 {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user