add loan details
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
using Company.Domain.LoanAgg.Entities;
|
||||
using CompanyManagment.App.Contracts.Loan;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Company.Domain.LoanAgg;
|
||||
|
||||
public interface ILoanRepository:IRepository<long,Loan>
|
||||
{
|
||||
List<LoanViewModel> GetSearchList(LoanSearchViewModel searchViewModel);
|
||||
LoanViewModel GetDetails(long id);
|
||||
Task<LoanDetailsViewModel> GetDetails(long id);
|
||||
void Remove(Loan entity);
|
||||
List<Loan> GetBy(IEnumerable<long> ids);
|
||||
void RemoveRange(IEnumerable<Loan> loans);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using _0_Framework.Application;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
@@ -7,7 +8,7 @@ namespace CompanyManagment.App.Contracts.Loan;
|
||||
public interface ILoanApplication
|
||||
{
|
||||
List<LoanViewModel> GetSearchList(LoanSearchViewModel searchViewModel);
|
||||
LoanViewModel GetDetails(long id);
|
||||
Task<LoanDetailsViewModel> GetDetails(long id);
|
||||
OperationResult Create(CreateLoanViewModel command);
|
||||
List<LoanInstallmentViewModel> CalculateLoanInstallment(string amount , int installmentCount,string loanStartDate,bool getRounded);
|
||||
OperationResult Remove(long id);
|
||||
|
||||
22
CompanyManagment.App.Contracts/Loan/LoanDetailsViewModel.cs
Normal file
22
CompanyManagment.App.Contracts/Loan/LoanDetailsViewModel.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CompanyManagment.App.Contracts.Loan;
|
||||
|
||||
public class LoanDetailsViewModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string EmployeeFullName { get; set; }
|
||||
public string LoanGrantDate { get; set; }
|
||||
public string InstallmentCount { get; set; }
|
||||
public string TotalLoanAmount { get; set; }
|
||||
public string TotalPaidAmount { get; set; }
|
||||
public string TotalRemainingAmount { get; set; }
|
||||
public List<LoanInstallmentDetailsViewModel> Installments { get; set; }
|
||||
}
|
||||
public class LoanInstallmentDetailsViewModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string InstallmentDate { get; set; }
|
||||
public string InstallmentAmount { get; set; }
|
||||
public bool IsPaid { get; set; }
|
||||
}
|
||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using System.Threading.Tasks;
|
||||
using _0_Framework.Application;
|
||||
using Company.Domain.CheckoutAgg;
|
||||
using Company.Domain.CustomizeCheckoutAgg;
|
||||
@@ -36,9 +37,9 @@ public class LoanApplication : ILoanApplication
|
||||
return _loanRepository.GetSearchList(searchModel);
|
||||
}
|
||||
|
||||
public LoanViewModel GetDetails(long id)
|
||||
public async Task<LoanDetailsViewModel> GetDetails(long id)
|
||||
{
|
||||
return _loanRepository.GetDetails(id);
|
||||
return await _loanRepository.GetDetails(id);
|
||||
}
|
||||
|
||||
public OperationResult Create(CreateLoanViewModel command)
|
||||
|
||||
@@ -5,9 +5,11 @@ using Company.Domain.LoanAgg.Entities;
|
||||
using CompanyManagment.App.Contracts.Loan;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using _0_Framework.Application;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Globalization;
|
||||
using System.Collections;
|
||||
|
||||
namespace CompanyManagment.EFCore.Repository;
|
||||
|
||||
@@ -20,18 +22,46 @@ public class LoanRepository : RepositoryBase<long, Loan>, ILoanRepository
|
||||
_companyContext = companyContext;
|
||||
}
|
||||
|
||||
public LoanViewModel GetDetails(long id)
|
||||
public async Task<LoanDetailsViewModel> GetDetails(long id)
|
||||
{
|
||||
return _companyContext.Loans.Select(x => new LoanViewModel()
|
||||
var loan = await _companyContext.Loans.FirstOrDefaultAsync(x => x.id == id);
|
||||
if (loan == null)
|
||||
{
|
||||
Id = x.id,
|
||||
WorkshopId = x.WorkshopId,
|
||||
EmployeeId = x.EmployeeId,
|
||||
EmployeeFullName = _companyContext.Employees.FirstOrDefault(e => e.id == x.EmployeeId).FullName,
|
||||
StartDateTime = x.StartDateMonth,
|
||||
Count = x.Count,
|
||||
Amount = x.Amount.ToMoney(),
|
||||
}).FirstOrDefault(x => x.Id == id);
|
||||
return null;
|
||||
}
|
||||
|
||||
var employeeName = await _companyContext.Employees.Where(x => x.id == loan.EmployeeId)
|
||||
.Select(x => x.FName + " " + x.LName).FirstOrDefaultAsync();
|
||||
|
||||
var startDate = loan.LoanInstallments.MinBy(x => x.InstallmentDate).InstallmentDate;
|
||||
var endDate = loan.LoanInstallments.MaxBy(x => x.InstallmentDate).InstallmentDate;
|
||||
|
||||
var customizeCheckouts =await _companyContext.CustomizeCheckouts.Where(x => x.WorkshopId == loan.WorkshopId && x.EmployeeId == loan.EmployeeId &&
|
||||
x.ContractStart <= endDate && x.ContractEnd >= startDate).Select(x=> new {x.MonthInt, x.YearInt}).ToListAsync();
|
||||
|
||||
var result = new LoanDetailsViewModel()
|
||||
{
|
||||
TotalLoanAmount = loan.Amount.ToMoney(),
|
||||
InstallmentCount = loan.LoanInstallments.Count.ToString(),
|
||||
EmployeeFullName = employeeName,
|
||||
Id = loan.id,
|
||||
LoanGrantDate = loan.LoanGrantDate.ToFarsi(),
|
||||
Installments = loan.LoanInstallments.Select(x => new LoanInstallmentDetailsViewModel()
|
||||
{
|
||||
Id = x.Id,
|
||||
InstallmentAmount = x.AmountForMonth.ToMoney(),
|
||||
InstallmentDate = x.InstallmentDate.ToFarsi(),
|
||||
IsPaid = customizeCheckouts.Any(c => c.MonthInt.ToString() == x.Month && c.YearInt.ToString() == x.Year)
|
||||
}).ToList()
|
||||
|
||||
};
|
||||
var totalPaidAmountD = result.Installments.Where(x => x.IsPaid).Sum(x => x.InstallmentAmount.MoneyToDouble());
|
||||
var remainingD = result.Installments.Where(x => !x.IsPaid).Sum(x => x.InstallmentAmount.MoneyToDouble());
|
||||
result.TotalPaidAmount = totalPaidAmountD.ToMoney();
|
||||
result.TotalRemainingAmount= remainingD.ToMoney();
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
public List<Loan> GetBy(IEnumerable<long> ids)
|
||||
|
||||
@@ -371,8 +371,10 @@
|
||||
var loanGroupLoadDataAjax = `@Url.Page("./Index", "Search")`;
|
||||
var removeLoanAjax = `@Url.Page("./Index", "Remove")`;
|
||||
var employeeListAjax = `@Url.Page("./Index", "EmployeeList")`;
|
||||
|
||||
var modalDetailLoanAjax = `@Url.Page("./Index", "Detail")`;
|
||||
var deletePermission = @(AuthHelper.GetPermissions().Contains(SubAccountPermissionHelper.DeleteLoanPermissionCode) ? "true" : "false");
|
||||
// TODO: Mr.Farokhi, Please set the permission for loan details.
|
||||
var detailsPermission = true;
|
||||
</script>
|
||||
<script src="~/assetsclient/pages/loan/js/index.js?ver=@clientVersion"></script>
|
||||
}
|
||||
|
||||
@@ -219,6 +219,29 @@ namespace ServiceHost.Areas.Client.Pages.Company.Loan
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
#region Details
|
||||
|
||||
public async Task<IActionResult> OnGetDetail(long id)
|
||||
{
|
||||
var workshopHash = User.FindFirstValue("WorkshopSlug");
|
||||
var workshopId = _passwordHasher.SlugDecrypt(workshopHash);
|
||||
if (workshopId <= 0)
|
||||
{
|
||||
var resultError = new ErrorViewModel()
|
||||
{
|
||||
Message = "کارگاه شما یافت نشد"
|
||||
};
|
||||
return Partial("../Error/_ErrorModal", resultError);
|
||||
}
|
||||
|
||||
var command = await _loanApplication.GetDetails(id);
|
||||
return Partial("ModalDetailLoan", command);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
public IActionResult OnGetSearch(LoanSearchViewModel searchModel)
|
||||
{
|
||||
searchModel.WorkshopId = _workshopId;
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
@model CompanyManagment.App.Contracts.Loan.LoanDetailsViewModel
|
||||
|
||||
@{
|
||||
string clientVersion = _0_Framework.Application.Version.StyleVersion;
|
||||
<link href="~/assetsclient/pages/loan/css/ModalDetailLoan.css?ver=@clientVersion" rel="stylesheet" />
|
||||
var index = 1;
|
||||
}
|
||||
|
||||
<form role="form" method="post" name="create-form" id="create-form" autocomplete="off">
|
||||
|
||||
<div class="modal-content">
|
||||
<div class="modal-header pb-0 d-flex align-items-center justify-content-center text-center">
|
||||
<button type="button" class="btn-close position-absolute text-start" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
<div>
|
||||
<p class="m-0 pdHeaderTitle1">جزئیات وام</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<div class="row g-2 p-0">
|
||||
|
||||
<div class="col-6 mt-2 position-relative">
|
||||
<div class="d-flex align-items-center justify-content-between infoLoan p-1">
|
||||
<div class="fullname">@Model.EmployeeFullName</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mt-2 position-relative">
|
||||
<div class="d-flex align-items-center justify-content-between infoLoan p-1">
|
||||
<div class="">تاریخ اعطا وام:</div>
|
||||
<div class="">@Model.LoanGrantDate</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mt-2 position-relative">
|
||||
<div class="d-flex align-items-center justify-content-between infoLoan p-1">
|
||||
<div>تعداد اقساط:</div>
|
||||
<div>@Model.InstallmentCount قسط</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mt-2 position-relative">
|
||||
<div class="d-flex align-items-center justify-content-between infoLoan p-1">
|
||||
<div>تاریخ اولین قسط:</div>
|
||||
<div>@Model.Installments.First().InstallmentDate</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 my-2 p-0">
|
||||
<div class="installmentContainer">
|
||||
<div class="tableLoanDetail">
|
||||
<div class="Rtable Rtable--5cols Rtable--collapse px-1 ">
|
||||
<div class="Rtable-row Rtable-row--head align-items-center d-flex loanDetailTable sticky">
|
||||
<div class="Rtable-cell column-heading width1">
|
||||
<span class="d-flex text-white align-items-center">
|
||||
<label for="checkAllCreate2" class="text-white prevent-select">ردیف</label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="Rtable-cell column-heading width2 text-center">تاریخ هر قسط</div>
|
||||
<div class="Rtable-cell column-heading width3 text-center">مبلغ هر قسط</div>
|
||||
<div class="Rtable-cell column-heading width4 text-end">وضعیت</div>
|
||||
</div>
|
||||
|
||||
@foreach (var item in Model.Installments)
|
||||
{
|
||||
<div class="Rtable-row align-items-center position-relative loanDetailTable openAction employee-row">
|
||||
<div class="Rtable-cell width1">
|
||||
<div class="Rtable-cell--heading d-none">
|
||||
ردیف
|
||||
</div>
|
||||
<label for="Employee_ID" class="Rtable-cell--content prevent-select">
|
||||
<span class="d-flex align-items-center justify-content-between gap-1">
|
||||
<span class="w-100 text-center">@(index++)</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="Rtable-cell width2">
|
||||
<div class="Rtable-cell--heading d-none">تاریخ هر قسط</div>
|
||||
<div class="Rtable-cell--content text-center employee-name">
|
||||
@(item.InstallmentDate)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="Rtable-cell width3">
|
||||
<div class="Rtable-cell--content text-center">
|
||||
<div class="d-md-none d-none">مبلغ هر قسط</div>
|
||||
<div class="d-flex justify-content-center">
|
||||
@(item.InstallmentAmount) ریال
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="Rtable-cell width4">
|
||||
<div class="Rtable-cell--content text-center">
|
||||
<div class="d-md-none d-none">وضعیت</div>
|
||||
<div class="d-flex justify-content-end">
|
||||
@if (item.IsPaid)
|
||||
{
|
||||
<span class="widthTableBadgeSuccess">پرداخت شد</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="widthTableBadgeNone">عدم پرداخت</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="totalPaymentLoan">
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
<div class="infoInstallment">کل مبلغ وام:</div>
|
||||
<div class="infoInstallment">@Model.TotalLoanAmount ریال</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
<div class="infoInstallment">جمع مبلغ بازپرداخت:</div>
|
||||
<div class="infoInstallment totalPay">@Model.TotalPaidAmount ریال</div>
|
||||
</div>
|
||||
<div class="lineSeparete"></div>
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
<div class="infoInstallment">باقیمانده مبلغ بدهی:</div>
|
||||
<div class="infoInstallment remainPay">@Model.TotalRemainingAmount ریال</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer d-block">
|
||||
<div class="container p-0 m-0">
|
||||
<div class="row">
|
||||
<div class="col-12 text-end">
|
||||
<button type="button" class="btn-cancel2 justify-content-center w-100" data-bs-dismiss="modal" aria-label="Close">انصراف</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<script src="~/assetsclient/js/site.js?ver=@clientVersion"></script>
|
||||
<script src="~/assetsclient/libs/jalaali-js/jalaali.js"></script>
|
||||
<script src="~/admintheme/js/jquery.mask_1.14.16.min.js"></script>
|
||||
|
||||
<script>
|
||||
var antiForgeryToken = $(`@Html.AntiForgeryToken()`).val();
|
||||
</script>
|
||||
@* <script src="~/assetsclient/pages/Loan/js/ModalCreateNewLoan.js?ver=@clientVersion"></script> *@
|
||||
@@ -288,7 +288,27 @@
|
||||
}
|
||||
|
||||
|
||||
.btn-detail {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(93, 209, 52, 0.3);
|
||||
/*border: 0.5px solid #FFFFFF;*/
|
||||
border-radius: 7px;
|
||||
color: #ffffff;
|
||||
font-size: 12px;
|
||||
padding: 3px 7px;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
white-space: nowrap;
|
||||
transition: all ease-in .3s;
|
||||
|
||||
}
|
||||
|
||||
.btn-detail:hover {
|
||||
background: rgba(93, 209, 52, 0.4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -437,11 +457,11 @@
|
||||
display: flex;
|
||||
}
|
||||
|
||||
button.btn-print, button.btn-edit, button.btn-delete {
|
||||
button.btn-print, button.btn-edit, button.btn-delete, btn-detail {
|
||||
width: 32%;
|
||||
}
|
||||
|
||||
button.btn-print, button.btn-edit span, button.btn-delete span {
|
||||
display: unset;
|
||||
}
|
||||
button.btn-print, button.btn-edit span, button.btn-delete span, btn-detail span {
|
||||
display: unset;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,242 @@
|
||||
.sticky {
|
||||
position: sticky;
|
||||
top: 0px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.infoLoan {
|
||||
background-color: #FCFCFC;
|
||||
border: 1px solid #DADADA;
|
||||
border-radius: 7px;
|
||||
color: #797979;
|
||||
width: 100%;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
|
||||
.installmentContainer {
|
||||
background-color: #F0F0F0;
|
||||
padding: 9px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.installmentContainer .tableLoanDetail {
|
||||
height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.installmentContainer .totalPaymentLoan {
|
||||
padding: 7px;
|
||||
border-radius: 6px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #DEDEDE;
|
||||
}
|
||||
|
||||
.installmentContainer .totalPaymentLoan .infoInstallment {
|
||||
color: #0B5959;
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.installmentContainer .totalPaymentLoan .lineSeparete {
|
||||
background: rgb(255,255,255);
|
||||
background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(214,214,214,1) 50%, rgba(255,255,255,1) 100%);
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
margin: 1px auto;
|
||||
}
|
||||
|
||||
.installmentContainer .totalPaymentLoan .infoInstallment.totalPay {
|
||||
color: #00BE33 !important;
|
||||
}
|
||||
|
||||
.installmentContainer .totalPaymentLoan .infoInstallment.remainPay {
|
||||
color: #D41317 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.widthTableBadgeSuccess {
|
||||
background-color: #BBF7D0;
|
||||
color: #5E9F02;
|
||||
border-radius: 30px;
|
||||
padding: 3px 6px;
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
.widthTableBadgeNone {
|
||||
background-color: #E8E0E0;
|
||||
color: #BF3737;
|
||||
border-radius: 30px;
|
||||
/*padding: 3px 6px;*/
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
|
||||
.loanDetailTable .width1 {
|
||||
width: 10% !important;
|
||||
justify-content: start !important;
|
||||
}
|
||||
|
||||
.loanDetailTable .width2 {
|
||||
width: 30% !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
|
||||
.loanDetailTable .width3 {
|
||||
width: 40% !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
|
||||
.loanDetailTable .width4 {
|
||||
width: 20% !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
|
||||
.loanDetailTable .width5 {
|
||||
width: 30% !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
|
||||
.Rtable .Rtable-row .Rtable-cell .Rtable-cell--content > span {
|
||||
}
|
||||
|
||||
.installmentContainer1 {
|
||||
background-color: #F0F0F0;
|
||||
font-size: 12px;
|
||||
color: #4f4f4f;
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.installmentContainer1:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.errored {
|
||||
animation: shake 300ms;
|
||||
color: #eb3434 !important;
|
||||
background-color: #fef2f2 !important;
|
||||
border: 1px solid #eb3434 !important;
|
||||
}
|
||||
|
||||
.btn-cancel2 {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.calculationBox {
|
||||
border-radius: 9px;
|
||||
background-color: #F0F0F0;
|
||||
width: 100%;
|
||||
height: 240px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 50px;
|
||||
}
|
||||
|
||||
.calculationBox1 {
|
||||
/*border: 1px solid #B4B4B4;*/
|
||||
border-radius: 9px;
|
||||
background-color: #F0F0F0;
|
||||
width: 100%;
|
||||
height: 240px;
|
||||
display: flex;
|
||||
align-items: start;
|
||||
justify-content: center;
|
||||
overflow-y: scroll
|
||||
}
|
||||
|
||||
|
||||
.table {
|
||||
--bs-table-bg: #F0F0F0;
|
||||
--bs-table-color: #4f4f4f;
|
||||
--bs-table-border-color: #B4B4B4;
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
tr.sticky {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width:1366px) {
|
||||
.loanListModal-width {
|
||||
max-width: 460px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width:768px) {
|
||||
.infoLoan {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.infoLoan .fullname {
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
|
||||
.Rtable .Rtable-row .Rtable-cell {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.Rtable--collapse .Rtable-row {
|
||||
padding: 0.6em;
|
||||
margin: 6px 0px 0;
|
||||
}
|
||||
|
||||
.widthTableBadgeSuccess,
|
||||
.widthTableBadgeNone {
|
||||
font-size: 10px;
|
||||
width: 70px;
|
||||
}
|
||||
.Rtable .Rtable-row .Rtable-cell .Rtable-cell--content > span {
|
||||
font-size: 10px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.loanDetailTable .width1 {
|
||||
width: 10% !important;
|
||||
}
|
||||
|
||||
.loanDetailTable .width2 {
|
||||
width: 20% !important;
|
||||
}
|
||||
|
||||
.loanDetailTable .width3 {
|
||||
width: 40% !important;
|
||||
}
|
||||
|
||||
.loanDetailTable .width4 {
|
||||
width: 20% !important;
|
||||
}
|
||||
|
||||
.loanDetailTable .width5 {
|
||||
width: 30% !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width:576px) {
|
||||
.btnCreateNew, .btn-cancel2 {
|
||||
width: 100% !important;
|
||||
padding: 10px 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 667px) {
|
||||
.installmentContainer .tableLoanDetail {
|
||||
height: 300px;
|
||||
}
|
||||
}
|
||||
@@ -341,10 +341,10 @@ function htmlLoadSimpleListData(loadLoanListData) {
|
||||
var n = pageIndexJs + 1;
|
||||
html += `
|
||||
<div class="Rtable-row align-items-center openAction" id="Employees">
|
||||
<div class="Rtable-cell width1">
|
||||
<label for="${n}" class="Rtable-cell--content prevent-select">
|
||||
<span class="d-flex justify-content-center align-items-center justify-content-center gap-2 spanCounter">
|
||||
<input id="${n}" type="checkbox" class="form-check-input foo" name="foo" value="${item.id}">
|
||||
<div class="Rtable-cell width1 widthNumberCustom1">
|
||||
<label for="${n}" class="Rtable-cell--content prevent-select">
|
||||
<span class="d-flex justify-content-center align-items-center justify-content-center">
|
||||
<input id="${n}" type="checkbox" class="d-none form-check-input foo" name="foo" value="${item.Id}">
|
||||
${n}
|
||||
</span>
|
||||
</label>
|
||||
@@ -380,29 +380,53 @@ function htmlLoadSimpleListData(loadLoanListData) {
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
${deletePermission ?
|
||||
`<button data-remove-id="${item.id}" type="button" class="btn-delete removeLoan d-md-block d-none">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
${detailsPermission
|
||||
?
|
||||
`<button type="button" class="btn-detail position-relative d-md-block d-none" onclick="DetailLoan(${item.id})">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`
|
||||
:
|
||||
`<button type="button" class="btn-delete removeLoan d-md-block d-none disable">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
:
|
||||
`<button type="button" class="btn-detail position-relative d-md-block d-none disable">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`}
|
||||
|
||||
|
||||
${deletePermission
|
||||
?
|
||||
`<button data-remove-id="${item.id}" type="button" class="btn-delete removeLoan d-md-block d-none">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>`
|
||||
:
|
||||
`<button type="button" class="btn-delete removeLoan d-md-block d-none disable">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>`
|
||||
}
|
||||
<button type="button" class="btn-operation-more btn-open-div position-relative d-md-none d-block">
|
||||
<span class="align-items-center d-flex justify-content-center">
|
||||
<span class="mx-1">عملیات</span>
|
||||
@@ -442,8 +466,9 @@ function htmlLoadSimpleListData(loadLoanListData) {
|
||||
<span class="span1">تعداد اقساط:</span>
|
||||
<span class="span1">${item.count}</span>
|
||||
</div>
|
||||
<div class="col-md-12 col-12 text-center">
|
||||
<button type="button" class="btn-print d-none" onclick="printLoan()">
|
||||
<div class="d-flex align-items-center justify-content-between gap-2">
|
||||
|
||||
<button type="button" class="btn-print d-none w-100" onclick="printLoan()">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
|
||||
@@ -454,32 +479,58 @@ function htmlLoadSimpleListData(loadLoanListData) {
|
||||
<span class="mx-1">پرینت</span>
|
||||
</button>
|
||||
|
||||
${deletePermission ?
|
||||
`<button data-remove-id="${item.id}" type="button" class="btn-delete removeLoan">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
${detailsPermission
|
||||
?
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex w-100" onclick="DetailLoan(${item.id})">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`
|
||||
:
|
||||
`<button type="button" class="btn-delete removeLoan disable">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
:
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex disable w-100">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`}
|
||||
|
||||
|
||||
${deletePermission
|
||||
?
|
||||
`<button data-remove-id="${item.id}" type="button" class="btn-delete removeLoan w-100">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>`
|
||||
:
|
||||
`<button type="button" class="btn-delete removeLoan disable w-100">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>`
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
pageIndexJs++;
|
||||
});
|
||||
|
||||
@@ -594,7 +645,31 @@ function htmlLoadWithEmployeeDataByDate(loadLoanListData) {
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
|
||||
${detailsPermission
|
||||
?
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex w-100" onclick="DetailLoan(${item.id})">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`
|
||||
:
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex disable w-100">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`}
|
||||
${deletePermission ?
|
||||
`
|
||||
<button data-remove-id="${item.id}" type="button" class="btn-delete removeLoan d-md-block d-none">
|
||||
@@ -737,7 +812,31 @@ function htmlLoadWithEmployeeDataByFullname(loadLoanListData) {
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
${detailsPermission
|
||||
?
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex w-100" onclick="DetailLoan(${item.id})">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`
|
||||
:
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex disable w-100">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`}
|
||||
|
||||
${deletePermission ?
|
||||
`
|
||||
@@ -915,15 +1014,57 @@ function htmlLoadWithEmployeeMobileDataByFullname(loadLoanListData) {
|
||||
</svg>
|
||||
<span class="mx-1">پرینت</span>
|
||||
</button>
|
||||
<button data-remove-id="${loanItem.employeeId}" type="button" class="btn-delete removeLoan">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
${detailsPermission
|
||||
?
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex w-100" onclick="DetailLoan(${item.id})">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`
|
||||
:
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex disable w-100">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`}
|
||||
|
||||
${deletePermission ?
|
||||
`
|
||||
<button data-remove-id="${item.id}" type="button" class="btn-delete removeLoan d-md-block d-none">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
`
|
||||
:
|
||||
`
|
||||
<button type="button" class="btn-delete removeLoan d-md-block d-none disable">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
`
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="lineMobile mt-3 mb-2"></div>
|
||||
@@ -1054,15 +1195,57 @@ function htmlLoadWithEmployeeMobileDataByDate(loadLoanListData) {
|
||||
</svg>
|
||||
<span class="mx-1">ویرایش</span>
|
||||
</button>
|
||||
<button data-remove-id="${loanItem.employeeId}" type="button" class="btn-delete removeLoan">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
${detailsPermission
|
||||
?
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex w-100" onclick="DetailLoan(${item.id})">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`
|
||||
:
|
||||
`<button type="button" class="btn-detail position-relative d-md-none d-flex disable w-100">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58325 4.58333C4.58325 3.57081 5.40406 2.75 6.41659 2.75H10.7708C10.8973 2.75 10.9999 2.8526 10.9999 2.97917V7.33333C10.9999 8.34586 11.8207 9.16667 12.8333 9.16667H17.1874C17.314 9.16667 17.4166 9.26924 17.4166 9.39583V17.4167C17.4166 18.4292 16.5958 19.25 15.5833 19.25H6.41659C5.40406 19.25 4.58325 18.4292 4.58325 17.4167V4.58333Z" fill="#58E85B"/>
|
||||
<path d="M12.4167 7.33392V3.95768L16.2096 7.75058H12.8334C12.6033 7.75058 12.4167 7.56404 12.4167 7.33392Z" fill="#248826" stroke="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 12.375H13.2917" stroke="#248826" stroke-linecap="round"/>
|
||||
<path d="M7.79175 15.125H12.3751H7.79175Z" fill="#248826"/>
|
||||
<path d="M7.79175 15.125H12.3751" stroke="#248826" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1 d-md-none d-flex">جزئیات</span>
|
||||
</button>`}
|
||||
|
||||
${deletePermission ?
|
||||
`
|
||||
<button data-remove-id="${item.id}" type="button" class="btn-delete removeLoan d-md-block d-none">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
`
|
||||
:
|
||||
`
|
||||
<button type="button" class="btn-delete removeLoan d-md-block d-none disable">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-width="1.5" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
`
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="lineMobile mt-3 mb-2"></div>
|
||||
@@ -1171,3 +1354,11 @@ function removeAjax(id) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function DetailLoan(LoanId) {
|
||||
var id = Number(LoanId);
|
||||
var url = `/Client/Company/Loan/Index?id=${id}&handler=Detail`;
|
||||
AjaxUrlContentModal(url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user