151 lines
12 KiB
Plaintext
151 lines
12 KiB
Plaintext
@using _0_Framework.Domain.CustomizeCheckoutShared.Enums
|
|
@model CompanyManagment.App.Contracts.CustomizeWorkshopSettings.EditCustomizeWorkshopGroupSettings
|
|
|
|
<div class="row my-2">
|
|
<div class="col-12 mb-2">
|
|
<div class="rollCallInfo">
|
|
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<circle cx="16" cy="16" r="12" fill="#2FC1C1" />
|
|
<path d="M17.3333 9.33333C17.3333 10.0697 16.7363 10.6667 16 10.6667C15.2636 10.6667 14.6666 10.0697 14.6666 9.33333C14.6666 8.59695 15.2636 8 16 8C16.7363 8 17.3333 8.59695 17.3333 9.33333Z" fill="#FFE2E2" />
|
|
<path d="M16 22.0013V15.3346C16 14.2416 16 13.695 15.7288 13.3076C15.6284 13.1643 15.5037 13.0396 15.3604 12.9392C14.973 12.668 14.4265 12.668 13.3334 12.668V12.668M16 22.0013H18M16 22.0013H14" stroke="#FFE2E2" />
|
|
</svg>
|
|
<span>این تنظیمات در محاسبات فیش حقوق قانونی اداره کار تاثیری نخواهد داشت.</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 group-container">
|
|
<div class="titleSettingRollCall">عیدی</div>
|
|
<div class="form-group my-1 group">
|
|
<input type="radio" name="Command.BonusesPay.BonusesPayType" id="BonusesPay1" class="form-check-input Main-Radio" @(Model.BonusesPay.BonusesPayType == BonusesType.None ? "checked" : "") value="@((int)(BonusesPaymentType.None))" />
|
|
<label for="BonusesPay1">عیدی پرداخت نمیگردد و در فیش حقوقی محاسبه نگردد.</label>
|
|
</div>
|
|
<div class="form-group group">
|
|
<input type="checkbox" name="Command.BonusesPay.BonusesPayType1" id="BonusesPay2" class="form-check-input Main-Radio main-checkbox"
|
|
@((Model.BonusesPay.BonusesPayType == BonusesType.Money ||
|
|
Model.BonusesPay.BonusesPayType == BonusesType.OneTimeOfSalary ||
|
|
Model.BonusesPay.BonusesPayType == BonusesType.TwoTimeOfSalary ||
|
|
Model.BonusesPay.BonusesPayType == BonusesType.PercentageOfSalary) ? "checked" : "" ) />
|
|
<label for="BonusesPay2">مبلغ عیدی تعیین شدن:</label>
|
|
|
|
<div class="form-group sub-group my-1 ms-4 BonusesPay2SubDisable">
|
|
<div>
|
|
<input type="radio" name="Command.BonusesPay.BonusesPayType" id="BonusesPay2Sub1" class="form-check-input Sub-Radio" @(Model.BonusesPay.BonusesPayType == BonusesType.Money ? "checked" : "") value="@((int)(BonusesType.Money))" @((Model.BonusesPay.BonusesPayType == BonusesType.Money || Model.BonusesPay.BonusesPayType == BonusesType.OneTimeOfSalary || Model.BonusesPay.BonusesPayType == BonusesType.TwoTimeOfSalary || Model.BonusesPay.BonusesPayType == BonusesType.PercentageOfSalary) ? "" : "disabled") />
|
|
<label for="BonusesPay2Sub1">مبلغ عیدی </label>
|
|
<input type="text" class="sub-input form-control-currency" name="Command.BonusesPay.Value" value="@(Model.BonusesPay.BonusesPayType == BonusesType.Money ? Model.BonusesPay.Value : "")" @((Model.BonusesPay.Value != 0 && Model.BonusesPay.BonusesPayType == BonusesType.Money) ? "" : "disabled") />
|
|
<label for="BonusesPay2Sub1">ریال در سال</label>
|
|
</div>
|
|
<div>
|
|
<input type="radio" name="Command.BonusesPay.BonusesPayType" id="BonusesPay2Sub2" class="form-check-input Sub-Radio" @(Model.BonusesPay.BonusesPayType == BonusesType.OneTimeOfSalary ? "checked" : "") value="@((int)(BonusesType.OneTimeOfSalary))" @((Model.BonusesPay.BonusesPayType == BonusesType.Money || Model.BonusesPay.BonusesPayType == BonusesType.OneTimeOfSalary || Model.BonusesPay.BonusesPayType == BonusesType.TwoTimeOfSalary || Model.BonusesPay.BonusesPayType == BonusesType.PercentageOfSalary) ? "" : "disabled") />
|
|
<label for="BonusesPay2Sub2">مبلغ عیدی یک پایه حقوق پرداختی پرسنل محاسبه گردد.</label>
|
|
</div>
|
|
<div>
|
|
<input type="radio" name="Command.BonusesPay.BonusesPayType" id="BonusesPay2Sub3" class="form-check-input Sub-Radio" @(Model.BonusesPay.BonusesPayType == BonusesType.TwoTimeOfSalary ? "checked" : "") value="@((int)(BonusesType.TwoTimeOfSalary))" @((Model.BonusesPay.BonusesPayType == BonusesType.Money || Model.BonusesPay.BonusesPayType == BonusesType.OneTimeOfSalary || Model.BonusesPay.BonusesPayType == BonusesType.TwoTimeOfSalary || Model.BonusesPay.BonusesPayType == BonusesType.PercentageOfSalary) ? "" : "disabled") />
|
|
<label for="BonusesPay2Sub3">مبلغ عیدی 2 برابر پایه حقوق پرداختی پرسنل محاسبه گردد.</label>
|
|
</div>
|
|
<div>
|
|
<input type="radio" name="Command.BonusesPay.BonusesPayType" id="BonusesPay2Sub4" class="form-check-input Sub-Radio" @(Model.BonusesPay.BonusesPayType == BonusesType.PercentageOfSalary ? "checked" : "") value="@((int)(BonusesType.PercentageOfSalary))" @((Model.BonusesPay.BonusesPayType == BonusesType.Money || Model.BonusesPay.BonusesPayType == BonusesType.OneTimeOfSalary || Model.BonusesPay.BonusesPayType == BonusesType.TwoTimeOfSalary || Model.BonusesPay.BonusesPayType == BonusesType.PercentageOfSalary) ? "" : "disabled") />
|
|
<label for="BonusesPay2Sub4">مبلغ عیدی </label>
|
|
<input type="text" class="sub-input form-control-percent" maxlength="3" name="Command.BonusesPay.Value" value="@(Model.BonusesPay.BonusesPayType == BonusesType.PercentageOfSalary ? Model.BonusesPay.Value : "")" @((Model.BonusesPay.Value != 0 && Model.BonusesPay.BonusesPayType == BonusesType.PercentageOfSalary) ? "" : "disabled") />
|
|
<label for="BonusesPay2Sub4">درصد از حقوق، ماهیانه پرسنل محاسبه گردد.</label>
|
|
</div>
|
|
|
|
@* <input type="hidden" name="Command.BonusesPay.PaymentType" value="@((int)(BonusesPaymentType.YearlyPay))" /> *@
|
|
|
|
<div class="col-12 my-2">
|
|
<div class="lineMinHr"></div>
|
|
</div>
|
|
|
|
<div class="form-group my-1">
|
|
<input type="radio" name="Command.BonusesPay.PaymentType" id="BonusesPay3" class="form-check-input Main-Radio2" @(Model.BonusesPay.PaymentType == BonusesPaymentType.YearlyPay ? "checked" : "") value="@((int)(BonusesPaymentType.YearlyPay))" />
|
|
<label for="BonusesPay3">پرداخت سالانه (مبلغ عیدی محاسبه شده در فیش حقوقی اسفند ماه محاسبه گردد.)</label>
|
|
</div>
|
|
<div class="form-group my-1">
|
|
<input type="radio" name="Command.BonusesPay.PaymentType" id="BonusesPay4" class="form-check-input Main-Radio2" @(Model.BonusesPay.PaymentType == BonusesPaymentType.MonthlyPay ? "checked" : "") value="@((int)(BonusesPaymentType.MonthlyPay))" />
|
|
<label for="BonusesPay4">پرداخت ماهانه (مبلغ عیدی محاسبه شده بصورت ماهانه در فیش حقوقی محاسبه گردد.)</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-12">
|
|
<div class="lineHr my-3"></div>
|
|
</div>
|
|
|
|
<div class="col-12 group-container">
|
|
<div class="titleSettingRollCall">سنوات</div>
|
|
|
|
<div class="form-group my-1 group">
|
|
<input type="radio" name="Command.BaseYearsPay.BaseYearsPayType" id="BaseyearPay1" class="form-check-input Main-Radio" @(Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.None ? "checked" : "") value="@((int)(BaseYearsPayType.None))" />
|
|
<label for="BaseyearPay1">سنوات پرداخت نمیگردد و در فیش حقوقی محاسبه نگردد.</label>
|
|
</div>
|
|
|
|
<div class="form-group group">
|
|
<input type="checkbox" name="Command.BaseYearsPay.BaseYearsPayType1" id="BaseyearPay2" class="form-check-input Main-Radio main-checkbox"
|
|
@((Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.Money ||
|
|
Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.PercentageOfSalary) ? "checked" : "" ) />
|
|
<label for="BaseyearPay2">مبلغ سنوات تعیین شدن:</label>
|
|
|
|
<div class="sub-group form-group my-1 ms-4 BaseyearPay2SubDisable">
|
|
<div>
|
|
<input type="radio" name="Command.BaseYearsPay.BaseYearsPayType" id="BaseyearPay2Sub1" class="form-check-input Sub-Radio" @(Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.Money ? "checked" : "") @((Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.Money || Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.PercentageOfSalary) ? "" : "disabled" ) value="@((int)(BaseYearsPayType.Money))" />
|
|
<label for="BaseyearPay2Sub1">مبلغ سنوات </label>
|
|
<input type="text" class="sub-input form-control-currency" name="Command.BaseYearsPay.Value" value="@(Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.Money ? Model.BaseYearsPay.Value : "")" @((Model.BaseYearsPay.Value != 0 && Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.Money) ? "" : "disabled") />
|
|
<label for="BaseyearPay2Sub1">ریال در سال</label>
|
|
</div>
|
|
@* <div>
|
|
<input type="checkbox" name="Command.BaseYearsPay.BaseYearsPayType" id="BaseyearPay2Sub2" class="form-check-input Sub-Radio" @(Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.OneTimeOfSalary ? "checked" : "") value="@((int)(BaseYearsPayType.OneTimeOfSalary))" />
|
|
<label for="BaseyearPay2Sub2">مبلغ سنوات یک پایه حقوق پرداختی پرسنل محاسبه گردد.</label>
|
|
</div>
|
|
<div>
|
|
<input type="checkbox" name="Command.BaseYearsPay.BaseYearsPayType" id="BaseyearPay2Sub3" class="form-check-input Sub-Radio" @(Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.TwoTimeOfSalary ? "checked" : "") value="@((int)(BaseYearsPayType.TwoTimeOfSalary))" />
|
|
<label for="BaseyearPay2Sub3">مبلغ سنوات 2 برابر پایه حقوق پرداختی پرسنل محاسبه گردد.</label>
|
|
</div> *@
|
|
<div>
|
|
<input type="radio" name="Command.BaseYearsPay.BaseYearsPayType" id="BaseyearPay2Sub4" class="form-check-input Sub-Radio" @(Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.PercentageOfSalary ? "checked" : "") @((Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.Money || Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.PercentageOfSalary) ? "" : "disabled") value="@((int)(BaseYearsPayType.PercentageOfSalary))" />
|
|
<label for="BaseyearPay2Sub4">مبلغ سنوات </label>
|
|
<input type="text" class="sub-input form-control-percent" maxlength="3" name="Command.BaseYearsPay.Value" value="@(Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.PercentageOfSalary ? Model.BaseYearsPay.Value : "")" @((Model.BaseYearsPay.Value != 0 && Model.BaseYearsPay.BaseYearsPayType == BaseYearsPayType.PercentageOfSalary) ? "" : "disabled") />
|
|
<label for="BaseyearPay2Sub4">درصد از حقوق، ماهیانه پرسنل محاسبه گردد.</label>
|
|
</div>
|
|
|
|
<div class="col-12 my-2">
|
|
<div class="lineMinHr"></div>
|
|
</div>
|
|
|
|
<div class="form-group my-1">
|
|
<input type="radio" name="Command.BaseYearsPay.PaymentType" id="BaseyearPay3" class="form-check-input Main-Radio2" @(Model.BaseYearsPay.PaymentType == BaseYearsPaymentType.YearlyPay ? "checked" : "") value="@((int)(BaseYearsPaymentType.YearlyPay))" />
|
|
<label for="BaseyearPay3">پرداخت سالانه (مبلغ سنوات محاسبه شده در فیش حقوقی اسفند ماه محاسبه گردد.)</label>
|
|
</div>
|
|
<div class="form-group my-1">
|
|
<input type="radio" name="Command.BaseYearsPay.PaymentType" id="BaseyearPay4" class="form-check-input Main-Radio2" @(Model.BaseYearsPay.PaymentType == BaseYearsPaymentType.MonthlyPay ? "checked" : "") value="@((int)(BaseYearsPaymentType.MonthlyPay))" />
|
|
<label for="BaseyearPay4">پرداخت ماهانه (مبلغ سنوات محاسبه شده بصورت ماهانه در فیش حقوقی محاسبه گردد.)</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
|
|
$("input[name='Command.BonusesPay.BonusesPayType'], input[name='Command.BonusesPay.BonusesPayType1']").on('change', function () {
|
|
const selectedId = $(this).prop('id');
|
|
if (selectedId === 'BonusesPay1') {
|
|
$('#BonusesPay3, #BonusesPay4').prop('checked',false);
|
|
} else if (selectedId === 'BonusesPay2') {
|
|
$('#BonusesPay3').prop('checked', true);
|
|
}
|
|
});
|
|
|
|
$("input[name='Command.BaseYearsPay.BaseYearsPayType'], input[name='Command.BaseYearsPay.BaseYearsPayType1']").on('change', function () {
|
|
const selectedId = $(this).prop('id');
|
|
if (selectedId === 'BaseyearPay1') {
|
|
$('#BaseyearPay3, #BaseyearPay4').prop('checked', false);
|
|
} else if (selectedId === 'BaseyearPay2') {
|
|
$('#BaseyearPay3').prop('checked', true);
|
|
}
|
|
});
|
|
|
|
});
|
|
</script> |