fix year and month on creating checkout unofficial
This commit is contained in:
@@ -1,49 +1,46 @@
|
||||
@using System.Globalization
|
||||
@model GetCreateCustomizeCheckout
|
||||
@{
|
||||
string clientVersion = _0_Framework.Application.Version.StyleVersion;
|
||||
<link href="~/AssetsClient/css/select2.css?ver=@clientVersion" rel="stylesheet" />
|
||||
<link href="~/assetsclient/pages/CustomizeCheckout/css/ModalCheckoutUnofficialCreate.css?ver=@clientVersion" rel="stylesheet" />
|
||||
<link href="~/assetsclient/css/dropdown.css?ver=@clientVersion" rel="stylesheet" />
|
||||
var currentYear = new PersianCalendar().GetYear(DateTime.Today);
|
||||
var start = 1403;
|
||||
// var yearList = new List<int>();
|
||||
// for(int i =start;i<=currentYear;i++)
|
||||
// yearList.Add(i);
|
||||
string clientVersion = _0_Framework.Application.Version.StyleVersion;
|
||||
<link href="~/AssetsClient/css/select2.css?ver=@clientVersion" rel="stylesheet" />
|
||||
<link href="~/assetsclient/pages/CustomizeCheckout/css/ModalCheckoutUnofficialCreate.css?ver=@clientVersion" rel="stylesheet" />
|
||||
<link href="~/assetsclient/css/dropdown.css?ver=@clientVersion" rel="stylesheet" />
|
||||
// var yearList = new List<int>();
|
||||
// for(int i =start;i<=currentYear;i++)
|
||||
// yearList.Add(i);
|
||||
}
|
||||
|
||||
<form role="form" method="post" name="create-form-unofficial" id="create-form-unofficial" autocomplete="off">
|
||||
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-header d-block text-center">
|
||||
<button type="button" class="btn-close position-absolute text-start" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
<h5 class="modal-title mb-3" id="startBuyLabel">ایجاد فیش حقوقی نهایی</h5>
|
||||
<div class="d-flex justify-content-center align-items-center">
|
||||
<div class="step-progress">
|
||||
<h5 class="d-flex justify-content-center align-items-center" id="step-1">1</h5>
|
||||
<p>انتخاب تاریخ</p>
|
||||
</div>
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="line"></div>
|
||||
<div class="modal-header d-block text-center">
|
||||
<button type="button" class="btn-close position-absolute text-start" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
<h5 class="modal-title mb-3" id="startBuyLabel">ایجاد فیش حقوقی نهایی</h5>
|
||||
<div class="d-flex justify-content-center align-items-center">
|
||||
<div class="step-progress">
|
||||
<h5 class="d-flex justify-content-center align-items-center" id="step-1">1</h5>
|
||||
<p>انتخاب تاریخ</p>
|
||||
</div>
|
||||
|
||||
<div class="step-progress">
|
||||
<h5 class="d-flex justify-content-center align-items-center not-step" id="step-2">2</h5>
|
||||
<p>انتخاب پرسنل</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="modal-body">
|
||||
<section id="step-form1" style="display: block">
|
||||
<div class="step-progress">
|
||||
<h5 class="d-flex justify-content-center align-items-center not-step" id="step-2">2</h5>
|
||||
<p>انتخاب پرسنل</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row text-center">
|
||||
<div class="d-flex flex-column justify-content-center align-items-center" style="height: 240px;">
|
||||
<div class="col-12 text-center">
|
||||
<div class="form1TitleText">انتخاب تاریخ فیش حقوقی</div>
|
||||
</div>
|
||||
<div class="d-flex gap-3 justify-content-center align-items-center w-100">
|
||||
<div class="col-4 ">
|
||||
@* <div class="dropdown-global">
|
||||
<div class="modal-body">
|
||||
<section id="step-form1" style="display: block">
|
||||
|
||||
<div class="row text-center">
|
||||
<div class="d-flex flex-column justify-content-center align-items-center" style="height: 240px;">
|
||||
<div class="col-12 text-center">
|
||||
<div class="form1TitleText">انتخاب تاریخ فیش حقوقی</div>
|
||||
</div>
|
||||
<div class="d-flex gap-3 justify-content-center align-items-center w-100">
|
||||
<div class="col-4 ">
|
||||
@* <div class="dropdown-global">
|
||||
<div class="spanTextModal">سال</div>
|
||||
<button type="button" class="dropdown-global-btn">
|
||||
1403
|
||||
@@ -62,18 +59,18 @@
|
||||
<input type="hidden" name="YearFa" id="year-select" value="1403" />
|
||||
</div> *@
|
||||
|
||||
<div class="">
|
||||
<div class="spanTextModal">سال</div>
|
||||
<select class="form-select" id="year-select" name="YearFa">
|
||||
@for (int i = start; i <= currentYear; i++)
|
||||
{
|
||||
<option value=@i.ToString()>@i</option>
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@* <div class="dropdown-global">
|
||||
<div class="">
|
||||
<div class="spanTextModal">سال</div>
|
||||
<select class="form-select" id="year-select" name="YearFa">
|
||||
@foreach (var year in Model.Years)
|
||||
{
|
||||
<option selected="@(Model.LastYear == year ? "selected" : null)" value=@year>@year</option>
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@* <div class="dropdown-global">
|
||||
<div class="spanTextModal">ماه</div>
|
||||
<button type="button" class="dropdown-global-btn">
|
||||
ماه
|
||||
@@ -97,87 +94,86 @@
|
||||
</div>
|
||||
<input type="hidden" name="MonthFa" id="month-select" value="" />
|
||||
</div> *@
|
||||
<div class="">
|
||||
<div class="spanTextModal ">ماه</div>
|
||||
<select class="form-select" id="month-select" name="MonthFa">
|
||||
<option value="01">فروردین</option>
|
||||
<option value="02">اردیبهشت</option>
|
||||
<option value="03">خرداد</option>
|
||||
<option value="04">تیر</option>
|
||||
<option value="05">مرداد</option>
|
||||
<option value="06">شهریور</option>
|
||||
<option value="07">مهر</option>
|
||||
<option value="08">آبان</option>
|
||||
<option value="09">آذر</option>
|
||||
<option value="10">دی</option>
|
||||
<option value="11">بهمن</option>
|
||||
<option value="12">اسفند</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="">
|
||||
<div class="spanTextModal ">ماه</div>
|
||||
<select class="form-select" id="month-select" name="MonthFa">
|
||||
<option value="01">فروردین</option>
|
||||
<option value="02">اردیبهشت</option>
|
||||
<option value="03">خرداد</option>
|
||||
<option value="04">تیر</option>
|
||||
<option value="05">مرداد</option>
|
||||
<option value="06">شهریور</option>
|
||||
<option value="07">مهر</option>
|
||||
<option value="08">آبان</option>
|
||||
<option value="09">آذر</option>
|
||||
<option value="10">دی</option>
|
||||
<option value="11">بهمن</option>
|
||||
<option value="12">اسفند</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="" id="step-form2" style="display: none; background-color: #F0F0F0;border-radius: 11px;padding: 11px;">
|
||||
<section class="" id="step-form2" style="display: none; background-color: #F0F0F0;border-radius: 11px;padding: 11px;">
|
||||
<div class="row p-0">
|
||||
<div class="col-12">
|
||||
<div class="wrapper">
|
||||
|
||||
<div class="col-4 position-relative">
|
||||
<input type="text" class="form-control" id="search" placeholder="جستجو ...">
|
||||
<button type="button" id="clear-search" class="close-btn-search d-none">
|
||||
<svg width="20" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="wrapper">
|
||||
|
||||
<div class="rollcall-list Rtable Rtable--5cols Rtable--collapse px-1">
|
||||
<div class="Rtable-row Rtable-row--head align-items-center d-flex checkout-unoff sticky">
|
||||
<div class="Rtable-cell column-heading width1">
|
||||
<span class="d-flex text-white align-items-center">
|
||||
<input type="checkbox" class="form-check-input checkAllCreate" name="" id="checkAllCreate2">
|
||||
<label for="checkAllCreate2" class="text-white prevent-select">ردیف</label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="Rtable-cell column-heading width2">نام پرسنل</div>
|
||||
<div class="Rtable-cell column-heading width3 text-center">وضعیت</div>
|
||||
<div class="Rtable-cell column-heading width4">شماره پرسنلی</div>
|
||||
@* <div class="Rtable-cell column-heading d-none d-md-block width4 text-end">تاریخ شروع</div>
|
||||
<div class="col-4 position-relative">
|
||||
<input type="text" class="form-control" id="search" placeholder="جستجو ...">
|
||||
<button type="button" id="clear-search" class="close-btn-search d-none">
|
||||
<svg width="20" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="rollcall-list Rtable Rtable--5cols Rtable--collapse px-1">
|
||||
<div class="Rtable-row Rtable-row--head align-items-center d-flex checkout-unoff sticky">
|
||||
<div class="Rtable-cell column-heading width1">
|
||||
<span class="d-flex text-white align-items-center">
|
||||
<input type="checkbox" class="form-check-input checkAllCreate" name="" id="checkAllCreate2">
|
||||
<label for="checkAllCreate2" class="text-white prevent-select">ردیف</label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="Rtable-cell column-heading width2">نام پرسنل</div>
|
||||
<div class="Rtable-cell column-heading width3 text-center">وضعیت</div>
|
||||
<div class="Rtable-cell column-heading width4">شماره پرسنلی</div>
|
||||
@* <div class="Rtable-cell column-heading d-none d-md-block width4 text-end">تاریخ شروع</div>
|
||||
<div class="Rtable-cell column-heading d-none d-md-block width5 text-center">تاریخ پایان</div> *@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w-100" id="loadTableCheckout">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-100" id="loadTableCheckout">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer d-block text-center pt-0">
|
||||
<div class="row">
|
||||
<div class="col-6 text-end">
|
||||
<button type="button" class="btn-cancel2 d-flex justify-content-center align-items-center" id="prev-step">انصراف</button>
|
||||
</div>
|
||||
<div class="col-6 text-start">
|
||||
<button type="button" class="btnCreateNew position-relative" id="next-step">
|
||||
<span id="textShowBtn">مرحله بعد</span>
|
||||
<div class="spinner-loading loading" style="display: none">
|
||||
<span class="spinner-border spinner-border-sm loading text-white" role="status" aria-hidden="true"></span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer d-block text-center pt-0">
|
||||
<div class="row">
|
||||
<div class="col-6 text-end">
|
||||
<button type="button" class="btn-cancel2 d-flex justify-content-center align-items-center" id="prev-step">انصراف</button>
|
||||
</div>
|
||||
<div class="col-6 text-start">
|
||||
<button type="button" class="btnCreateNew position-relative" id="next-step">
|
||||
<span id="textShowBtn">مرحله بعد</span>
|
||||
<div class="spinner-loading loading" style="display: none">
|
||||
<span class="spinner-border spinner-border-sm loading text-white" role="status" aria-hidden="true"></span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<script src="~/assetsclient/js/site.js?ver=@clientVersion"></script>
|
||||
<script src="~/assetsadminnew/libs/sweetalert2/sweetalert2.all.min.js"></script>
|
||||
@@ -186,8 +182,9 @@
|
||||
<script src="~/assetsclient/libs/cleave/cleave.min.js"></script>
|
||||
<script src="~/assetsclient/js/dropdown.js?ver=@clientVersion"></script>
|
||||
<script>
|
||||
var antiForgeryToken = $(`@Html.AntiForgeryToken()`).val();
|
||||
var saveCheckoutUnofficialAjax = `@Url.Page("./CheckoutUnofficial", "Create")`;
|
||||
var loadEmployeesByYearAndMonthAjax = `@Url.Page("./CheckoutUnofficial", "EmployeesByYearAndMonth")`;
|
||||
var antiForgeryToken = $(`@Html.AntiForgeryToken()`).val();
|
||||
var saveCheckoutUnofficialAjax = `@Url.Page("./CheckoutUnofficial", "Create")`;
|
||||
var loadEmployeesByYearAndMonthAjax = `@Url.Page("./CheckoutUnofficial", "EmployeesByYearAndMonth")`;
|
||||
var lastMonth = @Model.LastMonth;
|
||||
</script>
|
||||
<script src="~/assetsclient/pages/CustomizeCheckout/js/ModalCheckoutUnofficialCreate.js?ver=@clientVersion"></script>
|
||||
Reference in New Issue
Block a user