Compare commits
4 Commits
AdminCheck
...
Feature/Em
| Author | SHA1 | Date | |
|---|---|---|---|
| b850ab1206 | |||
| fedfc372d0 | |||
| 8faddedd46 | |||
| 1382305433 |
@@ -445,30 +445,6 @@ public static class Tools
|
|||||||
|
|
||||||
return myMoney.ToString("N0", CultureInfo.CreateSpecificCulture("fa-ir"));
|
return myMoney.ToString("N0", CultureInfo.CreateSpecificCulture("fa-ir"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// اگر مبلغ صفر باشد خط تیره برمیگرداند
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="myMoney"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static string ToMoneyCheckZero(this double myMoney)
|
|
||||||
{
|
|
||||||
if (myMoney == 0)
|
|
||||||
return "-";
|
|
||||||
return myMoney.ToString("N0", CultureInfo.CreateSpecificCulture("fa-ir"));
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// اگر مبلغ صفر یا نال باشد خط تیره برمیگرداند
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="myMoney"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static string ToMoneyCheckZeroNullable(this double? myMoney)
|
|
||||||
{
|
|
||||||
if (myMoney == 0 || myMoney == null)
|
|
||||||
return "-";
|
|
||||||
return myMoney?.ToString("N0", CultureInfo.CreateSpecificCulture("fa-ir"));
|
|
||||||
}
|
|
||||||
public static string ToMoneyNullable(this double? myMoney)
|
public static string ToMoneyNullable(this double? myMoney)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -8,5 +8,6 @@ namespace Company.Domain.BankAgg
|
|||||||
{
|
{
|
||||||
public void Remove(Bank entity);
|
public void Remove(Bank entity);
|
||||||
List<BankViewModel> Search(string name);
|
List<BankViewModel> Search(string name);
|
||||||
|
List<BankSelectList> GetBanksForSelectList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
using _0_Framework.Application;
|
using System;
|
||||||
using _0_Framework.Domain;
|
|
||||||
using CompanyManagment.App.Contracts.Checkout;
|
|
||||||
using CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using _0_Framework.Application;
|
||||||
|
using _0_Framework.Domain;
|
||||||
|
using CompanyManagment.App.Contracts.Checkout;
|
||||||
|
|
||||||
|
|
||||||
namespace Company.Domain.CheckoutAgg;
|
namespace Company.Domain.CheckoutAgg;
|
||||||
@@ -81,31 +80,4 @@ public interface ICheckoutRepository : IRepository<long, Checkout>
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
Task<Checkout> GetByWorkshopIdEmployeeIdInDate(long workshopId, long employeeId, DateTime inDate);
|
Task<Checkout> GetByWorkshopIdEmployeeIdInDate(long workshopId, long employeeId, DateTime inDate);
|
||||||
|
|
||||||
|
|
||||||
#region ForApi
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت سلکت لیست پرسنل کارگاه
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<EmployeeSelectListDto>> GetEmployeeSelectListByWorkshopId(long id);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت لیست فیش حقوقی
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="searchModel"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<PagedResult<CheckoutDto>> GetList(CheckoutSearchModelDto searchModel);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// پرینت فیش حقوقی
|
|
||||||
/// Api
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CheckoutPrintDto>> CheckoutPrint(List<long> ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,11 @@
|
|||||||
|
|
||||||
|
using System;
|
||||||
using _0_Framework.Domain;
|
using _0_Framework.Domain;
|
||||||
using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Security.AccessControl;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using CompanyManagment.App.Contracts.Workshop;
|
||||||
|
|
||||||
namespace Company.Domain.EmployeeBankInformationAgg
|
namespace Company.Domain.EmployeeBankInformationAgg
|
||||||
{
|
{
|
||||||
@@ -11,14 +15,31 @@ namespace Company.Domain.EmployeeBankInformationAgg
|
|||||||
void Remove(EmployeeBankInformation bankInformation);
|
void Remove(EmployeeBankInformation bankInformation);
|
||||||
void RemoveRange(List<EmployeeBankInformation> entities);
|
void RemoveRange(List<EmployeeBankInformation> entities);
|
||||||
|
|
||||||
|
[Obsolete("از متد async استفاده کنید")]
|
||||||
List<GroupedEmployeeBankInformationViewModel> Search(long workshopId, EmployeeBankInformationSearchModel searchParams);
|
List<GroupedEmployeeBankInformationViewModel> Search(long workshopId, EmployeeBankInformationSearchModel searchParams);
|
||||||
|
|
||||||
|
Task<List<GroupedEmployeeBankInformationViewModel>> SearchAsync(long workshopId,
|
||||||
|
EmployeeBankInformationSearchModel searchParams);
|
||||||
|
|
||||||
|
|
||||||
GroupedEmployeeBankInformationViewModel GetByEmployeeId(long workshopId, long employeeId);
|
GroupedEmployeeBankInformationViewModel GetByEmployeeId(long workshopId, long employeeId);
|
||||||
List<EmployeeBankInformation> GetRangeByEmployeeId(long workshopId, long employeeId);
|
List<EmployeeBankInformation> GetRangeByEmployeeId(long workshopId, long employeeId);
|
||||||
EmployeeBankInformationViewModel GetDetails(long id);
|
EmployeeBankInformationViewModel GetDetails(long id);
|
||||||
List<GroupedEmployeeBankInformationViewModel> GetAllByWorkshopId(long workshopId);
|
List<GroupedEmployeeBankInformationViewModel> GetAllByWorkshopId(long workshopId);
|
||||||
|
|
||||||
|
List<EmployeeBankInformationViewModelForExcel> SearchForExcel(long workshopId,
|
||||||
|
EmployeeBankInformationSearchModel searchParams);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
List<EmployeeBankInformationViewModelForExcel> SearchForExcel(long workshopId, EmployeeBankInformationSearchModel searchParams);
|
/// جزئیات اطلاعات بانکی بر اساس پرسنل
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="workshopId"></param>
|
||||||
|
/// <param name="employeeId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<GetEmployeeBankInfoDetailsDto> GetDetailsByEmployeeIdAsync(long workshopId, long employeeId);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,14 +106,4 @@ public interface IWorkshopRepository : IRepository<long, Workshop>
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region ForApi
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت لیست کارگاه های ادمین برای سلکت تو
|
|
||||||
/// Api
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<AdminWorkshopSelectListDto>> GetAdminWorkshopSelectList();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
@@ -10,5 +10,12 @@ namespace CompanyManagment.App.Contracts.Bank
|
|||||||
OperationResult Create(CreateBank command);
|
OperationResult Create(CreateBank command);
|
||||||
OperationResult Edit(EditBank command);
|
OperationResult Edit(EditBank command);
|
||||||
List<BankViewModel> Search(string name);
|
List<BankViewModel> Search(string name);
|
||||||
|
List<BankSelectList> GetBanksForSelectList();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public class BankSelectList:SelectListViewModel
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,92 +0,0 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
|
|
||||||
public class CheckoutDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// آی دی فیش
|
|
||||||
/// </summary>
|
|
||||||
public long Id { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نام پرسنل
|
|
||||||
/// </summary>
|
|
||||||
public string EmployeeFullName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نام کارگاه
|
|
||||||
/// </summary>
|
|
||||||
public string WorkshopName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// شماره قراداد
|
|
||||||
/// </summary>
|
|
||||||
public string ContractNo { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// تاریخ شروع فیش
|
|
||||||
/// </summary>
|
|
||||||
public string ContractStart { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// تاریخ پایان فیش
|
|
||||||
/// </summary>
|
|
||||||
public string ContractEnd { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ماه
|
|
||||||
/// </summary>
|
|
||||||
public string Month { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// سال
|
|
||||||
/// </summary>
|
|
||||||
public string Year { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// روزهای کارکرد
|
|
||||||
/// </summary>
|
|
||||||
public string SumOfWorkingDays { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// شماره کارگاه
|
|
||||||
/// </summary>
|
|
||||||
public string ArchiveCode { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کد پرسنلی
|
|
||||||
/// </summary>
|
|
||||||
public string PersonnelCode { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// فعال/غیرفعال
|
|
||||||
/// </summary>
|
|
||||||
public bool IsActive { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// امضاء فیش
|
|
||||||
/// </summary>
|
|
||||||
public bool Signature { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نام کارفرما
|
|
||||||
/// </summary>
|
|
||||||
public string EmployerName { get; set; }
|
|
||||||
public bool IsBlockCantracingParty { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// آیا فیش نیاز به بروزرسانی دارد
|
|
||||||
/// </summary>
|
|
||||||
public bool IsUpdateNeeded { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// لیست پیام های هشدار فیش حقوقی
|
|
||||||
/// </summary>
|
|
||||||
public List<CheckoutWarningMessageModel> CheckoutWarningMessageList { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نیاز به امزا دارد یا خیر
|
|
||||||
/// </summary>
|
|
||||||
public bool HasSignCheckoutOption { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,247 +0,0 @@
|
|||||||
using System;
|
|
||||||
using CompanyManagment.App.Contracts.Loan;
|
|
||||||
using CompanyManagment.App.Contracts.RollCall;
|
|
||||||
using CompanyManagment.App.Contracts.SalaryAid;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
|
|
||||||
public class CheckoutPrintDto
|
|
||||||
{
|
|
||||||
// هدر فیش
|
|
||||||
// اطلاعات هویتی
|
|
||||||
// اطلاعات کارگاه
|
|
||||||
#region Header
|
|
||||||
public long Id { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نام پرسنل
|
|
||||||
/// </summary>
|
|
||||||
public string EmployeeFullName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نام پدر
|
|
||||||
/// </summary>
|
|
||||||
public string FathersName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کد ملی
|
|
||||||
/// </summary>
|
|
||||||
public string NationalCode { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// تاریخ تولد
|
|
||||||
/// </summary>
|
|
||||||
public string DateOfBirth { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نام کارگاه
|
|
||||||
/// </summary>
|
|
||||||
public string WorkshopName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// شماره قراداد
|
|
||||||
/// </summary>
|
|
||||||
public string ContractNo { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ماه
|
|
||||||
/// </summary>
|
|
||||||
public string Month { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// سال
|
|
||||||
/// </summary>
|
|
||||||
public string Year { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// لیست کارفرما
|
|
||||||
/// </summary>
|
|
||||||
public List<CheckoutEmployersList> EmployersLists { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آیا کارقرما حقوقی است
|
|
||||||
/// </summary>
|
|
||||||
public bool EmployerIslegal { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آیا ترک کار کرده
|
|
||||||
/// </summary>
|
|
||||||
public bool HasLeft { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آخرین روز کاری
|
|
||||||
/// </summary>
|
|
||||||
public string LastDayOfWork { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// روز ترک کار
|
|
||||||
/// </summary>
|
|
||||||
public string LeftWorkDate { get; set; }
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
//جدول مطالبات و کسورات
|
|
||||||
#region PaymentAndDeductionTable
|
|
||||||
/// <summary>
|
|
||||||
/// مطالبات
|
|
||||||
/// </summary>
|
|
||||||
public List<PaymentAndDeductionList> PaymentList { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کسورات
|
|
||||||
/// </summary>
|
|
||||||
public List<PaymentAndDeductionList> DeductionList { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// جمع مطالبات
|
|
||||||
/// </summary>
|
|
||||||
public string TotalPayment { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// جمع کسورات
|
|
||||||
/// </summary>
|
|
||||||
public string TotalDeductions { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// مبلغ قابل پرداخت
|
|
||||||
/// </summary>
|
|
||||||
public string TotalClaims { get; set; }
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
//لیست ورود و خروج پرسنل
|
|
||||||
//اطلاعات ساعات کار و موظقی
|
|
||||||
#region RollCallData
|
|
||||||
/// <summary>
|
|
||||||
/// لیست حضورغیاب
|
|
||||||
/// </summary>
|
|
||||||
public List<CheckoutPrintRollCallDto> MonthlyRollCall { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// دیتای جدول حضورغیاب
|
|
||||||
/// </summary>
|
|
||||||
public CheckoutRollCallViewModel CheckoutRollCall { get; set; }
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
//اقساط - مساعده
|
|
||||||
#region SalaryAidAndInstallmentData
|
|
||||||
|
|
||||||
public List<CheckoutPrintInstallmentDto> Installments { get; set; }
|
|
||||||
public List<CheckoutPrintSalaryAidDto> SalaryAids { get; set; }
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کسورات
|
|
||||||
/// </summary>
|
|
||||||
public class PaymentData
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// حقوق و مزد
|
|
||||||
/// </summary>
|
|
||||||
public string MonthlySalary { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// پایه سنوات
|
|
||||||
/// </summary>
|
|
||||||
public string BaseYearsPay { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کمک هزینه اقلام مصرفی
|
|
||||||
/// </summary>
|
|
||||||
public string ConsumableItems { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کمک هزینه مسکن
|
|
||||||
/// </summary>
|
|
||||||
public string HousingAllowance { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// فوق العاده اضافه کاری
|
|
||||||
/// </summary>
|
|
||||||
public string OvertimePay { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// فوق العاده شبکاری
|
|
||||||
/// </summary>
|
|
||||||
public string NightworkPay { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// فوق العاده جمعه کاری
|
|
||||||
/// </summary>
|
|
||||||
public string FridayPay { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// فوق العاده ماموریت
|
|
||||||
/// </summary>
|
|
||||||
public string MissionPay { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// فوق العاده نوبت کاری
|
|
||||||
/// </summary>
|
|
||||||
public string ShiftPay { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کمک هزینه عائله مندی
|
|
||||||
/// </summary>
|
|
||||||
public string FamilyAllowance { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// حق تاهل
|
|
||||||
/// </summary>
|
|
||||||
public string MarriedAllowance { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کسورات
|
|
||||||
/// </summary>
|
|
||||||
public class DeductionData
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public class PaymentAndDeductionList
|
|
||||||
{
|
|
||||||
public int RowNumber { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// عنوان
|
|
||||||
/// </summary>
|
|
||||||
public string Title { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// مقدار/روز/ساعت
|
|
||||||
/// </summary>
|
|
||||||
public string Value { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// مبلغ
|
|
||||||
/// </summary>
|
|
||||||
public string Amount { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// لیست کارفرما
|
|
||||||
/// </summary>
|
|
||||||
public class CheckoutEmployersList
|
|
||||||
{
|
|
||||||
public string IsLegal { get; set; }
|
|
||||||
public string EmployerFullName { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class CheckoutGetData : CheckoutPrintDto
|
|
||||||
{
|
|
||||||
public DateTime ContractStart { get; set; }
|
|
||||||
|
|
||||||
public int PersonnelCode { get; set; }
|
|
||||||
|
|
||||||
public long WorkshopId { get; set; }
|
|
||||||
public long EmployeeId { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
using _0_Framework.Application;
|
|
||||||
|
|
||||||
namespace CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
|
|
||||||
public class CheckoutSearchModelDto : PaginationRequest
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// نام پرسنل
|
|
||||||
/// </summary>
|
|
||||||
public string EmployeeFullName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آی دی کارگاه
|
|
||||||
/// </summary>
|
|
||||||
public long WorkshopId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// شماره قرارداد
|
|
||||||
/// </summary>
|
|
||||||
public string ContractNo { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// تاریخ شروع فیش
|
|
||||||
/// </summary>
|
|
||||||
public string ContractStart { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// تاریخ پاین فیش
|
|
||||||
/// </summary>
|
|
||||||
public string ContractEnd { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ماه
|
|
||||||
/// </summary>
|
|
||||||
public string Month { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// سال
|
|
||||||
/// </summary>
|
|
||||||
public string Year { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آی دی گارفرما
|
|
||||||
/// </summary>
|
|
||||||
public long EmployerId { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
namespace CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
|
|
||||||
public class EmployeeSelectListDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// آی دی پرسنل
|
|
||||||
/// </summary>
|
|
||||||
public long Id { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نام پرسنل
|
|
||||||
/// </summary>
|
|
||||||
public string EmployeeFullName { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
|
|
||||||
public class RotatingShiftOfCheckoutDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// نام پرسنل
|
|
||||||
/// </summary>
|
|
||||||
public string FullName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// وضعیت نوبتکاری
|
|
||||||
/// </summary>
|
|
||||||
public string RotatingShiftStatus { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آیا نوبت کاری دارد
|
|
||||||
/// </summary>
|
|
||||||
public bool HasRotatingShift { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// سال و ماه
|
|
||||||
/// </summary>
|
|
||||||
public string YearAndMonth { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نوع ساعت کاری
|
|
||||||
/// </summary>
|
|
||||||
public string TypeOfWorkingHours { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// لیست نوبت کاری
|
|
||||||
/// </summary>
|
|
||||||
public List<RotatingShiftListDto> RotatingShiftList { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class RotatingShiftListDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// بازه کاری صبح
|
|
||||||
/// </summary>
|
|
||||||
public string MorningShiftSpan { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// بازه کاری عصر
|
|
||||||
/// </summary>
|
|
||||||
public string EveningShiftSpan { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// بازه کاری شب
|
|
||||||
/// </summary>
|
|
||||||
public string NightShiftSpan { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آیا صبح کاری داشته
|
|
||||||
/// </summary>
|
|
||||||
public bool IsMorningShift { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آیا عصرکاری داشته
|
|
||||||
/// </summary>
|
|
||||||
public bool IsEveningShift { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آیا شبکاری داشته
|
|
||||||
/// </summary>
|
|
||||||
public bool IsNightShift { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// تاریخ شیفت
|
|
||||||
/// </summary>
|
|
||||||
public string ShiftDate { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
using _0_Framework.Application;
|
using System;
|
||||||
using CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using _0_Framework.Application;
|
||||||
|
|
||||||
namespace CompanyManagment.App.Contracts.Checkout;
|
namespace CompanyManagment.App.Contracts.Checkout;
|
||||||
|
|
||||||
@@ -63,49 +62,4 @@ public interface ICheckoutApplication
|
|||||||
long workshopId, DateTime start, DateTime end);
|
long workshopId, DateTime start, DateTime end);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region ForApi
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت سلکت لیست پرسنل کارگاه
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<EmployeeSelectListDto>> GetEmployeeSelectListByWorkshopId(long id);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت لیست فیش های حقوقی ادمین
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="searchModel"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<PagedResult<CheckoutDto>> GetList(CheckoutSearchModelDto searchModel);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت نوبتکاری
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<RotatingShiftOfCheckoutDto> GetRotatingShiftApi(long id);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// پرینت فیش حقوقی
|
|
||||||
/// Api
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CheckoutPrintDto>> CheckoutPrint(List<long> ids);
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
|
|
||||||
public class CheckoutPrintInstallmentDto
|
|
||||||
{
|
|
||||||
public string RemainingAmount { get; set; }
|
|
||||||
public string LoanAmount { get; set; }
|
|
||||||
public string Amount { get; set; }
|
|
||||||
}
|
|
||||||
public class CheckoutPrintSalaryAidDto
|
|
||||||
{
|
|
||||||
public string Amount { get; set; }
|
|
||||||
public string SalaryAidDateTimeFa { get; set; }
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
namespace CompanyManagment.App.Contracts.EmployeeBankInformation;
|
||||||
|
|
||||||
|
public class GetEmployeeBankInfoDetailsBankItemDto
|
||||||
|
{
|
||||||
|
public long Id { get; set; }
|
||||||
|
public string CardNumber { get; set; }
|
||||||
|
public string ShebaNumber { get; set; }
|
||||||
|
public string BankAccountNumber { get; set; }
|
||||||
|
public string BankName { get; set; }
|
||||||
|
public string BankLogoPath { get; set; }
|
||||||
|
public bool IsDefault { get; set; }
|
||||||
|
public long BankId { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace CompanyManagment.App.Contracts.EmployeeBankInformation;
|
||||||
|
|
||||||
|
public class GetEmployeeBankInfoDetailsDto
|
||||||
|
{
|
||||||
|
public long EmployeeId { get; set; }
|
||||||
|
public string EmployeeFullName { get; set; }
|
||||||
|
public List<GetEmployeeBankInfoDetailsBankItemDto> BankItems { get; set; }
|
||||||
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
using _0_Framework.Application;
|
using System;
|
||||||
|
using _0_Framework.Application;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace CompanyManagment.App.Contracts.EmployeeBankInformation
|
namespace CompanyManagment.App.Contracts.EmployeeBankInformation
|
||||||
{
|
{
|
||||||
@@ -8,6 +10,7 @@ namespace CompanyManagment.App.Contracts.EmployeeBankInformation
|
|||||||
OperationResult Create(CreateEmployeeInformation command);
|
OperationResult Create(CreateEmployeeInformation command);
|
||||||
OperationResult GroupCreate(long workshopId, List<CreateEmployeeInformation> command);
|
OperationResult GroupCreate(long workshopId, List<CreateEmployeeInformation> command);
|
||||||
OperationResult Edit(EditEmployeeInformation command);
|
OperationResult Edit(EditEmployeeInformation command);
|
||||||
|
[Obsolete("از متد Async استفاده شود")]
|
||||||
List<GroupedEmployeeBankInformationViewModel> Search(long workshopId, EmployeeBankInformationSearchModel searchParams);
|
List<GroupedEmployeeBankInformationViewModel> Search(long workshopId, EmployeeBankInformationSearchModel searchParams);
|
||||||
List<EmployeeBankInformationViewModelForExcel> SearchForExcel(long workshopId,
|
List<EmployeeBankInformationViewModelForExcel> SearchForExcel(long workshopId,
|
||||||
EmployeeBankInformationSearchModel searchParams);
|
EmployeeBankInformationSearchModel searchParams);
|
||||||
@@ -17,5 +20,22 @@ namespace CompanyManagment.App.Contracts.EmployeeBankInformation
|
|||||||
OperationResult RemoveByEmployeeId(long workshopId, long employeeId);
|
OperationResult RemoveByEmployeeId(long workshopId, long employeeId);
|
||||||
List<GroupedEmployeeBankInformationViewModel> GetAllByWorkshopId(long workshopId);
|
List<GroupedEmployeeBankInformationViewModel> GetAllByWorkshopId(long workshopId);
|
||||||
OperationResult SetDefault(long workshopId, long bankInfoId);
|
OperationResult SetDefault(long workshopId, long bankInfoId);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// گرفتن لیست اطلاعات بانکی
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="workshopId"></param>
|
||||||
|
/// <param name="searchParams"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<List<GroupedEmployeeBankInformationViewModel>> SearchAsync
|
||||||
|
(long workshopId, EmployeeBankInformationSearchModel searchParams);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// جزئیات اطلاعات بانکی بر اساس پرسنل
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="workshopId"></param>
|
||||||
|
/// <param name="employeeId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<GetEmployeeBankInfoDetailsDto> GetDetailsByEmployeeIdAsync(long workshopId, long employeeId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,42 +45,4 @@ namespace CompanyManagment.App.Contracts.RollCall
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public class CheckoutPrintRollCallDto
|
|
||||||
{
|
|
||||||
|
|
||||||
public string RollCallDateFa { get; set; }
|
|
||||||
public string StartDate1 { get; set; }
|
|
||||||
public string EndDate1 { get; set; }
|
|
||||||
|
|
||||||
public string StartDate2 { get; set; }
|
|
||||||
public string EndDate2 { get; set; }
|
|
||||||
|
|
||||||
//منقطع بودن شیفت کاری
|
|
||||||
public bool IsSliced { get; set; }
|
|
||||||
|
|
||||||
public string TotalWorkingHours { get; set; }
|
|
||||||
|
|
||||||
public string DayOfWeek { get; set; }
|
|
||||||
|
|
||||||
public string BreakTimeString { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// اگر مرخصی نداشته باشد خالی خواهد بود، اگر داشته باشد نوع مرخصی جانشانی می شود
|
|
||||||
/// </summary>
|
|
||||||
public string LeaveType { get; set; }
|
|
||||||
|
|
||||||
public bool IsAbsent { get; set; }
|
|
||||||
public bool IsFriday { get; set; }
|
|
||||||
public bool IsHoliday { get; set; }
|
|
||||||
public bool IsBirthDay { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public string EnterDifferencesMinutes1 { get; set; }
|
|
||||||
public string ExitDifferencesMinutes1 { get; set; }
|
|
||||||
|
|
||||||
public string EnterDifferencesMinutes2 { get; set; }
|
|
||||||
public string ExitDifferencesMinutes2 { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
namespace CompanyManagment.App.Contracts.Workshop.DTOs;
|
|
||||||
|
|
||||||
public class AdminWorkshopSelectListDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// آی دی کارگاه
|
|
||||||
/// </summary>
|
|
||||||
public long Id { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// نام کارگاه
|
|
||||||
/// </summary>
|
|
||||||
public string WorkshopFullName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// کد بایگانی
|
|
||||||
/// </summary>
|
|
||||||
public string ArchiveCode { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// آیا بلاک شده است
|
|
||||||
/// </summary>
|
|
||||||
public bool IsBlock { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
using _0_Framework.Application;
|
using System.Collections.Generic;
|
||||||
using AccountManagement.Application.Contracts.Account;
|
|
||||||
using CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
using CompanyManagment.App.Contracts.Workshop.DTOs;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using _0_Framework.Application;
|
||||||
|
using AccountManagement.Application.Contracts.Account;
|
||||||
|
using CompanyManagment.App.Contracts.Workshop.DTOs;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace CompanyManagment.App.Contracts.Workshop;
|
namespace CompanyManagment.App.Contracts.Workshop;
|
||||||
|
|
||||||
@@ -93,19 +92,6 @@ public interface IWorkshopApplication
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
Task<ActionResult<OperationResult>> CreateWorkshopWorkflowRegistration(CreateWorkshopWorkflowRegistration command);
|
Task<ActionResult<OperationResult>> CreateWorkshopWorkflowRegistration(CreateWorkshopWorkflowRegistration command);
|
||||||
|
|
||||||
|
|
||||||
#region ForApi
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت لیست کارگاه های ادمین برای سلکت تو
|
|
||||||
/// Api
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<AdminWorkshopSelectListDto>> GetAdminWorkshopSelectList();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CreateWorkshopWorkflowRegistration
|
public class CreateWorkshopWorkflowRegistration
|
||||||
|
|||||||
@@ -104,5 +104,10 @@ namespace CompanyManagment.Application
|
|||||||
Id = x.Id
|
Id = x.Id
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<BankSelectList> GetBanksForSelectList()
|
||||||
|
{
|
||||||
|
return _bankRepository.GetBanksForSelectList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,34 +1,28 @@
|
|||||||
using _0_Framework.Application;
|
using System;
|
||||||
using _0_Framework.Domain.CustomizeCheckoutShared.ValueObjects;
|
|
||||||
using Company.Domain.CheckoutAgg;
|
|
||||||
using Company.Domain.CheckoutAgg.ValueObjects;
|
|
||||||
using Company.Domain.EmployeeAgg;
|
|
||||||
using Company.Domain.empolyerAgg;
|
|
||||||
using Company.Domain.LeaveAgg;
|
|
||||||
using Company.Domain.LeftWorkAgg;
|
|
||||||
using Company.Domain.RollCallAgg;
|
|
||||||
using Company.Domain.WorkingHoursTempAgg;
|
|
||||||
using Company.Domain.WorkshopAgg;
|
|
||||||
using Company.Domain.YearlySalaryAgg;
|
|
||||||
using CompanyManagment.App.Contracts.Checkout;
|
|
||||||
using CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
using CompanyManagment.App.Contracts.Contract;
|
|
||||||
using CompanyManagment.App.Contracts.HolidayItem;
|
|
||||||
using CompanyManagment.App.Contracts.Leave;
|
|
||||||
using CompanyManagment.App.Contracts.MandantoryHours;
|
|
||||||
using CompanyManagment.App.Contracts.PersonalContractingParty;
|
|
||||||
using CompanyManagment.App.Contracts.RollCall;
|
|
||||||
using CompanyManagment.App.Contracts.WorkingHoursTemp;
|
|
||||||
using CompanyManagment.App.Contracts.Workshop;
|
|
||||||
using CompanyManagment.EFCore.Migrations;
|
|
||||||
using CompanyManagment.EFCore.Repository;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Globalization;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using _0_Framework.Application;
|
||||||
|
using Company.Domain.CheckoutAgg;
|
||||||
|
using Company.Domain.CheckoutAgg.ValueObjects;
|
||||||
|
using Company.Domain.LeftWorkAgg;
|
||||||
|
using Company.Domain.YearlySalaryAgg;
|
||||||
|
using Company.Domain.empolyerAgg;
|
||||||
|
using Company.Domain.RollCallAgg;
|
||||||
|
using CompanyManagment.App.Contracts.Checkout;
|
||||||
|
using CompanyManagment.App.Contracts.PersonalContractingParty;
|
||||||
|
using CompanyManagment.App.Contracts.Leave;
|
||||||
|
using CompanyManagment.App.Contracts.MandantoryHours;
|
||||||
|
using _0_Framework.Domain.CustomizeCheckoutShared.ValueObjects;
|
||||||
|
using Company.Domain.EmployeeAgg;
|
||||||
|
using CompanyManagment.App.Contracts.HolidayItem;
|
||||||
|
using CompanyManagment.App.Contracts.RollCall;
|
||||||
|
using CompanyManagment.EFCore.Migrations;
|
||||||
|
using CompanyManagment.EFCore.Repository;
|
||||||
|
using System.Globalization;
|
||||||
|
using Company.Domain.LeaveAgg;
|
||||||
|
using Company.Domain.WorkshopAgg;
|
||||||
|
|
||||||
namespace CompanyManagment.Application;
|
namespace CompanyManagment.Application;
|
||||||
|
|
||||||
@@ -44,14 +38,11 @@ public class CheckoutApplication : ICheckoutApplication
|
|||||||
private readonly IRollCallMandatoryRepository _rollCallMandatoryRepository;
|
private readonly IRollCallMandatoryRepository _rollCallMandatoryRepository;
|
||||||
private readonly IRollCallRepository _rollCallRepository;
|
private readonly IRollCallRepository _rollCallRepository;
|
||||||
private readonly IHolidayItemApplication _holidayItemApplication;
|
private readonly IHolidayItemApplication _holidayItemApplication;
|
||||||
private readonly IWorkingHoursTempRepository _workingHoursTempRepository;
|
|
||||||
private readonly IWorkshopRepository _workshopRepository;
|
|
||||||
|
|
||||||
|
|
||||||
|
public CheckoutApplication(ICheckoutRepository checkoutRepository, IYearlySalaryRepository yearlySalaryRepository,
|
||||||
public CheckoutApplication(ICheckoutRepository checkoutRepository, IYearlySalaryRepository yearlySalaryRepository,
|
|
||||||
ILeftWorkRepository leftWorkRepository,
|
ILeftWorkRepository leftWorkRepository,
|
||||||
IEmployerRepository employerRepository, IPersonalContractingPartyApp contractingPartyApp, ILeaveApplication leaveApplication, IMandatoryHoursApplication mandatoryHoursApplication, IRollCallMandatoryRepository rollCallMandatoryRepository, IRollCallRepository rollCallRepository, IHolidayItemApplication holidayItemApplication, IWorkingHoursTempRepository workingHoursTempRepository, IWorkshopRepository workshopRepository)
|
IEmployerRepository employerRepository, IPersonalContractingPartyApp contractingPartyApp, ILeaveApplication leaveApplication, IMandatoryHoursApplication mandatoryHoursApplication, IRollCallMandatoryRepository rollCallMandatoryRepository, IRollCallRepository rollCallRepository, IHolidayItemApplication holidayItemApplication)
|
||||||
{
|
{
|
||||||
_checkoutRepository = checkoutRepository;
|
_checkoutRepository = checkoutRepository;
|
||||||
_yearlySalaryRepository = yearlySalaryRepository;
|
_yearlySalaryRepository = yearlySalaryRepository;
|
||||||
@@ -63,9 +54,7 @@ public class CheckoutApplication : ICheckoutApplication
|
|||||||
_rollCallMandatoryRepository = rollCallMandatoryRepository;
|
_rollCallMandatoryRepository = rollCallMandatoryRepository;
|
||||||
_rollCallRepository = rollCallRepository;
|
_rollCallRepository = rollCallRepository;
|
||||||
_holidayItemApplication = holidayItemApplication;
|
_holidayItemApplication = holidayItemApplication;
|
||||||
_workingHoursTempRepository = workingHoursTempRepository;
|
}
|
||||||
_workshopRepository = workshopRepository;
|
|
||||||
}
|
|
||||||
|
|
||||||
[SuppressMessage("ReSharper.DPA", "DPA0007: Large number of DB records", MessageId = "count: 241")]
|
[SuppressMessage("ReSharper.DPA", "DPA0007: Large number of DB records", MessageId = "count: 241")]
|
||||||
public void Create(CreateCheckout command)
|
public void Create(CreateCheckout command)
|
||||||
@@ -717,69 +706,5 @@ public class CheckoutApplication : ICheckoutApplication
|
|||||||
return _checkoutRepository.GetLastCheckoutsByWorkshopIdForWorkFlow(workshopId, start, end);
|
return _checkoutRepository.GetLastCheckoutsByWorkshopIdForWorkFlow(workshopId, start, end);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<List<EmployeeSelectListDto>> GetEmployeeSelectListByWorkshopId(long id)
|
#endregion
|
||||||
{
|
|
||||||
return await _checkoutRepository.GetEmployeeSelectListByWorkshopId(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region ForApi
|
|
||||||
|
|
||||||
public async Task<PagedResult<CheckoutDto>> GetList(CheckoutSearchModelDto searchModel)
|
|
||||||
{
|
|
||||||
return await _checkoutRepository.GetList(searchModel);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public async Task<RotatingShiftOfCheckoutDto> GetRotatingShiftApi(long id)
|
|
||||||
{
|
|
||||||
var result = new ComputingViewModel();
|
|
||||||
var checkout = GetDetails(id);
|
|
||||||
var workingHours = _workingHoursTempRepository.GetByContractIdConvertToShiftwork4(checkout.ContractId);
|
|
||||||
var typeOfWorkingHours = "";
|
|
||||||
if (checkout.HasRollCall)
|
|
||||||
{
|
|
||||||
result = await _rollCallMandatoryRepository.RotatingShiftReport(checkout.WorkshopId, checkout.EmployeeId, checkout.ContractStartGr, checkout.ContractEndGr, workingHours.ShiftWork, true, workingHours, false);
|
|
||||||
typeOfWorkingHours = "دارای حضورغیاب";
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var workshop = _workshopRepository.GetDetails(checkout.WorkshopId);
|
|
||||||
result = await _rollCallMandatoryRepository.RotatingShiftReport(checkout.WorkshopId, checkout.EmployeeId, checkout.ContractStartGr, checkout.ContractEndGr, workingHours.ShiftWork, false, workingHours, workshop.WorkshopHolidayWorking);
|
|
||||||
typeOfWorkingHours = "بدون حضورغیاب";
|
|
||||||
}
|
|
||||||
|
|
||||||
var items = result.RotatingResultList.Select(x => new RotatingShiftListDto()
|
|
||||||
{
|
|
||||||
MorningShiftSpan = x.MorningString,
|
|
||||||
EveningShiftSpan = x.EveningString,
|
|
||||||
NightShiftSpan = x.NightString,
|
|
||||||
|
|
||||||
IsMorningShift = x.IsMorningShift,
|
|
||||||
IsEveningShift = x.IsEveningShift,
|
|
||||||
IsNightShift = x.IsNightShift,
|
|
||||||
|
|
||||||
ShiftDate = x.RotatingDate
|
|
||||||
}).ToList();
|
|
||||||
return new RotatingShiftOfCheckoutDto()
|
|
||||||
{
|
|
||||||
FullName = checkout.EmployeeFullName,
|
|
||||||
YearAndMonth = $"{checkout.Month} {checkout.Year}",
|
|
||||||
HasRotatingShift = result.RotatingStatus != "نوبت کاری ندارد",
|
|
||||||
RotatingShiftStatus = result.RotatingStatus,
|
|
||||||
TypeOfWorkingHours = typeOfWorkingHours,
|
|
||||||
RotatingShiftList = items
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public Task<List<CheckoutPrintDto>> CheckoutPrint(List<long> ids)
|
|
||||||
{
|
|
||||||
return _checkoutRepository.CheckoutPrint(ids);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
@@ -4,6 +4,7 @@ using Company.Domain.EmployeeBankInformationAgg;
|
|||||||
using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace CompanyManagment.Application
|
namespace CompanyManagment.Application
|
||||||
{
|
{
|
||||||
@@ -101,7 +102,13 @@ namespace CompanyManagment.Application
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo: add CardNumber, BankAccountNumber, etc validations
|
public async Task<List<GroupedEmployeeBankInformationViewModel>> SearchAsync(long workshopId,
|
||||||
|
EmployeeBankInformationSearchModel searchParams)
|
||||||
|
{
|
||||||
|
return await _employeeBankInformationRepository.SearchAsync(workshopId, searchParams);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public OperationResult Edit(EditEmployeeInformation command)
|
public OperationResult Edit(EditEmployeeInformation command)
|
||||||
{
|
{
|
||||||
OperationResult op = new();
|
OperationResult op = new();
|
||||||
@@ -168,9 +175,6 @@ namespace CompanyManagment.Application
|
|||||||
{
|
{
|
||||||
var entity = _employeeBankInformationRepository.GetByEmployeeId(workshopId, employeeId);
|
var entity = _employeeBankInformationRepository.GetByEmployeeId(workshopId, employeeId);
|
||||||
|
|
||||||
if (entity == null)
|
|
||||||
return new();
|
|
||||||
|
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,6 +215,12 @@ namespace CompanyManagment.Application
|
|||||||
return _employeeBankInformationRepository.GetAllByWorkshopId(workshopId);
|
return _employeeBankInformationRepository.GetAllByWorkshopId(workshopId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public async Task<GetEmployeeBankInfoDetailsDto> GetDetailsByEmployeeIdAsync(long workshopId, long employeeId)
|
||||||
|
{
|
||||||
|
return await _employeeBankInformationRepository.GetDetailsByEmployeeIdAsync(workshopId, employeeId);
|
||||||
|
}
|
||||||
|
|
||||||
#region Private Methods
|
#region Private Methods
|
||||||
|
|
||||||
private OperationResult ValidateCreateOperation(List<GroupedEmployeeBankInformationViewModel> workshopEmployeeBankInfoList, CreateEmployeeInformation command)
|
private OperationResult ValidateCreateOperation(List<GroupedEmployeeBankInformationViewModel> workshopEmployeeBankInfoList, CreateEmployeeInformation command)
|
||||||
@@ -253,8 +263,7 @@ namespace CompanyManagment.Application
|
|||||||
return !workshopRecords.Exists(x =>
|
return !workshopRecords.Exists(x =>
|
||||||
x.WorkshopId == workshopId && x.EmployeeId == employeeId);
|
x.WorkshopId == workshopId && x.EmployeeId == employeeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1524,8 +1524,7 @@ public class InsuranceListApplication : IInsuranceListApplication
|
|||||||
var dateOfBirth = employeeData.DateOfBirthGr.ToFarsi();
|
var dateOfBirth = employeeData.DateOfBirthGr.ToFarsi();
|
||||||
var dateOfIssue = employeeData.DateOfIssueGr.ToFarsi();
|
var dateOfIssue = employeeData.DateOfIssueGr.ToFarsi();
|
||||||
var leftDate = employeeData.LeftWorkDateGr != null ? employeeData.LeftWorkDateGr.Value.AddDays(-1) : new DateTime();
|
var leftDate = employeeData.LeftWorkDateGr != null ? employeeData.LeftWorkDateGr.Value.AddDays(-1) : new DateTime();
|
||||||
|
var workingDays = Tools.GetEmployeeInsuranceWorkingDays(employeeData.StartWorkDateGr, leftDate, startDateGr, endDateGr, employeeData.EmployeeId);
|
||||||
var workingDays = Tools.GetEmployeeInsuranceWorkingDays(employeeData.StartWorkDateGr, leftDate, startDateGr, endDateGr, employeeData.EmployeeId);
|
|
||||||
var leftWorkFa = workingDays.hasLeftWorkInMonth ? employeeData.LeftWorkDateGr.ToFarsi() : "";
|
var leftWorkFa = workingDays.hasLeftWorkInMonth ? employeeData.LeftWorkDateGr.ToFarsi() : "";
|
||||||
var startWorkFa = employeeData.StartWorkDateGr.ToFarsi();
|
var startWorkFa = employeeData.StartWorkDateGr.ToFarsi();
|
||||||
var workshop = _workShopRepository.GetDetails(workshopId);
|
var workshop = _workShopRepository.GetDetails(workshopId);
|
||||||
@@ -1607,7 +1606,7 @@ public class InsuranceListApplication : IInsuranceListApplication
|
|||||||
MaritalStatus = employeeData.MaritalStatus,
|
MaritalStatus = employeeData.MaritalStatus,
|
||||||
|
|
||||||
StartMonthCurrent = startMonthFa,
|
StartMonthCurrent = startMonthFa,
|
||||||
WorkingDays = employeeData.WorkingDays,
|
WorkingDays = workingDays.countWorkingDays,
|
||||||
StartWorkDate = startWorkFa,
|
StartWorkDate = startWorkFa,
|
||||||
StartWorkDateGr = employeeData.StartWorkDateGr,
|
StartWorkDateGr = employeeData.StartWorkDateGr,
|
||||||
LeftWorkDate = leftWorkFa,
|
LeftWorkDate = leftWorkFa,
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ using Company.Domain.InstitutionContractAgg;
|
|||||||
using Company.Domain.LeftWorkAgg;
|
using Company.Domain.LeftWorkAgg;
|
||||||
using Company.Domain.LeftWorkInsuranceAgg;
|
using Company.Domain.LeftWorkInsuranceAgg;
|
||||||
using Company.Domain.WorkshopAgg;
|
using Company.Domain.WorkshopAgg;
|
||||||
using CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
using CompanyManagment.App.Contracts.Employee;
|
using CompanyManagment.App.Contracts.Employee;
|
||||||
using CompanyManagment.App.Contracts.EmployeeChildren;
|
using CompanyManagment.App.Contracts.EmployeeChildren;
|
||||||
using CompanyManagment.App.Contracts.LeftWork;
|
using CompanyManagment.App.Contracts.LeftWork;
|
||||||
@@ -1131,17 +1130,5 @@ public class WorkshopAppliction : IWorkshopApplication
|
|||||||
return operation.Succcedded();
|
return operation.Succcedded();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region ForApi
|
|
||||||
|
|
||||||
public async Task<List<AdminWorkshopSelectListDto>> GetAdminWorkshopSelectList()
|
|
||||||
{
|
|
||||||
return await _workshopRepository.GetAdminWorkshopSelectList();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
@@ -31,4 +31,13 @@ public class BankRepository:RepositoryBase<long,Bank>,IBankRepository
|
|||||||
BankLogoPictureMediaId = x.BankLogoMediaId
|
BankLogoPictureMediaId = x.BankLogoMediaId
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<BankSelectList> GetBanksForSelectList()
|
||||||
|
{
|
||||||
|
return context.Banks.Select(x => new BankSelectList()
|
||||||
|
{
|
||||||
|
Id = x.id,
|
||||||
|
Text = x.BankName
|
||||||
|
}).ToList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -6,6 +6,8 @@ using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using _0_Framework.Exceptions;
|
||||||
|
|
||||||
namespace CompanyManagment.EFCore.Repository;
|
namespace CompanyManagment.EFCore.Repository;
|
||||||
|
|
||||||
@@ -76,6 +78,76 @@ public class EmployeeBankInformationRepository : RepositoryBase<long, EmployeeBa
|
|||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async Task<List<GroupedEmployeeBankInformationViewModel>> SearchAsync(long workshopId, EmployeeBankInformationSearchModel searchParams)
|
||||||
|
{
|
||||||
|
var bankInfoQuery = _companyContext.EmployeeBankInformationSet
|
||||||
|
.Where(x => x.WorkshopId == workshopId)
|
||||||
|
.Select(x => new
|
||||||
|
{
|
||||||
|
x.BankId,
|
||||||
|
x.EmployeeId,
|
||||||
|
x.WorkshopId,
|
||||||
|
}).AsQueryable();
|
||||||
|
|
||||||
|
if (searchParams.BankId > 0)
|
||||||
|
bankInfoQuery = bankInfoQuery.Where(x => x.BankId == searchParams.BankId);
|
||||||
|
|
||||||
|
if (searchParams.EmployeeId > 0)
|
||||||
|
bankInfoQuery = bankInfoQuery.Where(x => x.EmployeeId == searchParams.EmployeeId);
|
||||||
|
|
||||||
|
var bankInfoList = await bankInfoQuery.ToListAsync();
|
||||||
|
|
||||||
|
var employeeIds = bankInfoList.Select(x => x.EmployeeId).Distinct().ToList();
|
||||||
|
|
||||||
|
var employees = await _companyContext.Employees
|
||||||
|
.Where(x => employeeIds.Contains(x.id)).ToListAsync();
|
||||||
|
|
||||||
|
var personnelCodes = await _companyContext.PersonnelCodeSet
|
||||||
|
.Where(x=>employeeIds.Contains(x.EmployeeId) && x.WorkshopId == workshopId)
|
||||||
|
.ToDictionaryAsync(x=>x.EmployeeId,x=>x.PersonnelCode);
|
||||||
|
|
||||||
|
var bankIds = bankInfoList.Select(x=>x.BankId).Distinct().ToList();
|
||||||
|
|
||||||
|
var banks =await _companyContext.Banks.Where(x => bankIds.Contains(x.id)).ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
//Get bank logos from account context
|
||||||
|
var mediaIds = banks.Select(x=>x.BankLogoMediaId).ToList();
|
||||||
|
|
||||||
|
var banksLogos = _accountContext.Medias.Where(y => mediaIds.Contains(y.id))
|
||||||
|
.Select(media => new { media.Path, MediaId = media.id }).ToList();
|
||||||
|
|
||||||
|
var banksWithLogo = banks.Select(x => new
|
||||||
|
{
|
||||||
|
Logo = banksLogos.FirstOrDefault(l => l.MediaId == x.BankLogoMediaId),
|
||||||
|
Bank = x
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
|
return bankInfoList.GroupBy(x => x.EmployeeId).Select(x =>
|
||||||
|
{
|
||||||
|
var employee = employees.FirstOrDefault(e=>e.id == x.Key);
|
||||||
|
|
||||||
|
var selectBankId = x.Select(b => b.BankId);
|
||||||
|
|
||||||
|
var selectBanks = banksWithLogo
|
||||||
|
.Where(b => selectBankId.Contains(b.Bank.id)).ToList();
|
||||||
|
|
||||||
|
return new GroupedEmployeeBankInformationViewModel()
|
||||||
|
{
|
||||||
|
BankPicturesList =
|
||||||
|
selectBanks.Select(y => y.Logo.Path).ToList(),
|
||||||
|
EmployeeId = x.Key,
|
||||||
|
WorkshopId = workshopId,
|
||||||
|
EmployeeName = employee?.FullName ?? "",
|
||||||
|
TotalBankAccountsCount = x.Count(),
|
||||||
|
PersonnelCode = personnelCodes.TryGetValue(x.Key,out var value)?
|
||||||
|
value.ToString() :
|
||||||
|
"",
|
||||||
|
BankNamesList = selectBanks.Select(y => y.Bank.BankName).ToList()
|
||||||
|
};
|
||||||
|
}).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void RemoveByEmployeeId(IEnumerable<EmployeeBankInformation> entities)
|
public void RemoveByEmployeeId(IEnumerable<EmployeeBankInformation> entities)
|
||||||
{
|
{
|
||||||
@@ -265,4 +337,55 @@ public class EmployeeBankInformationRepository : RepositoryBase<long, EmployeeBa
|
|||||||
};
|
};
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async Task<GetEmployeeBankInfoDetailsDto> GetDetailsByEmployeeIdAsync(long workshopId, long employeeId)
|
||||||
|
{
|
||||||
|
var employeeBankInfos =await _companyContext.EmployeeBankInformationSet
|
||||||
|
.Where(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId).ToListAsync();
|
||||||
|
|
||||||
|
if (employeeBankInfos.Count == 0)
|
||||||
|
{
|
||||||
|
throw new NotFoundException("اطلاعات بانکی یافت نشد");
|
||||||
|
}
|
||||||
|
var employee = await _companyContext.Employees
|
||||||
|
.FirstOrDefaultAsync(x=>x.id == employeeId);
|
||||||
|
|
||||||
|
if (employee == null)
|
||||||
|
{
|
||||||
|
throw new NotFoundException("پرسنل مورد نظر یافت نشد");
|
||||||
|
}
|
||||||
|
|
||||||
|
var employeeFullName = employee.FullName;
|
||||||
|
|
||||||
|
var bankIds = employeeBankInfos.Select(x => x.BankId).Distinct().ToList();
|
||||||
|
|
||||||
|
var banks = await _companyContext.Banks.Where(x => bankIds.Contains(x.id)).ToListAsync();
|
||||||
|
|
||||||
|
var mediaIds = banks.Select(x => x.BankLogoMediaId).ToList();
|
||||||
|
|
||||||
|
var bankLogos = await _accountContext.Medias.Where(x=>mediaIds.Contains(x.id)).ToListAsync();
|
||||||
|
|
||||||
|
var res = new GetEmployeeBankInfoDetailsDto()
|
||||||
|
{
|
||||||
|
EmployeeId = employeeId,
|
||||||
|
EmployeeFullName = employeeFullName,
|
||||||
|
BankItems = employeeBankInfos.Select(x =>
|
||||||
|
{
|
||||||
|
var bank = banks.FirstOrDefault(y => y.id == x.BankId);
|
||||||
|
var bankLogo = bankLogos.FirstOrDefault(l => bank?.BankLogoMediaId == l.id);
|
||||||
|
return new GetEmployeeBankInfoDetailsBankItemDto()
|
||||||
|
{
|
||||||
|
BankId = x.BankId,
|
||||||
|
BankAccountNumber = x.BankAccountNumber,
|
||||||
|
BankLogoPath = bankLogo?.Path ?? "",
|
||||||
|
BankName = bank?.BankName ?? "",
|
||||||
|
CardNumber = x.CardNumber,
|
||||||
|
ShebaNumber = x.ShebaNumber,
|
||||||
|
IsDefault = x.IsDefault,
|
||||||
|
Id = x.id
|
||||||
|
};
|
||||||
|
}).ToList()
|
||||||
|
};
|
||||||
|
return res;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1604,14 +1604,9 @@ public class RollCallMandatoryRepository : RepositoryBase<long, RollCall>, IRoll
|
|||||||
bool workshopHolidyWorking)
|
bool workshopHolidyWorking)
|
||||||
{
|
{
|
||||||
var rollCallList = new List<RollCallViewModel>();
|
var rollCallList = new List<RollCallViewModel>();
|
||||||
|
|
||||||
#region Entities
|
#region Entities
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(command.ContarctStart) || string.IsNullOrWhiteSpace(command.ContractEnd))
|
|
||||||
{
|
|
||||||
command.ContarctStart = command.ContractStartGr.ToFarsi();
|
|
||||||
command.ContractEnd = command.ContractEndGr.ToFarsi();
|
|
||||||
}
|
|
||||||
var sdate = command.ContarctStart.ToEnglishNumber();
|
var sdate = command.ContarctStart.ToEnglishNumber();
|
||||||
var edate = command.ContractEnd.ToEnglishNumber();
|
var edate = command.ContractEnd.ToEnglishNumber();
|
||||||
var syear = Convert.ToInt32(sdate.Substring(0, 4));
|
var syear = Convert.ToInt32(sdate.Substring(0, 4));
|
||||||
|
|||||||
@@ -1187,14 +1187,14 @@ public class WorkshopRepository : RepositoryBase<long, Company.Domain.WorkshopAg
|
|||||||
.Where(x => !string.IsNullOrEmpty(x.ArchiveCode))
|
.Where(x => !string.IsNullOrEmpty(x.ArchiveCode))
|
||||||
.Select(x => x.ArchiveCode)
|
.Select(x => x.ArchiveCode)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
int maxArchiveCode = 0;
|
int maxArchiveCode = 0;
|
||||||
|
|
||||||
foreach (var code in archiveCodes)
|
foreach (var code in archiveCodes)
|
||||||
{
|
{
|
||||||
// Remove "b-" prefix if exists
|
// Remove "b-" prefix if exists
|
||||||
string cleanCode = code.StartsWith("b-") ? code.Substring(2) : code;
|
string cleanCode = code.StartsWith("b-") ? code.Substring(2) : code;
|
||||||
|
|
||||||
// Try to parse the clean code to an integer
|
// Try to parse the clean code to an integer
|
||||||
if (int.TryParse(cleanCode, out int codeValue))
|
if (int.TryParse(cleanCode, out int codeValue))
|
||||||
{
|
{
|
||||||
@@ -1204,7 +1204,7 @@ public class WorkshopRepository : RepositoryBase<long, Company.Domain.WorkshopAg
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return maxArchiveCode;
|
return maxArchiveCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2024,52 +2024,5 @@ public class WorkshopRepository : RepositoryBase<long, Company.Domain.WorkshopAg
|
|||||||
}).OrderByDescending(x => x.StartWork).ToList();
|
}).OrderByDescending(x => x.StartWork).ToList();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region ForApi
|
|
||||||
|
|
||||||
public async Task<List<AdminWorkshopSelectListDto>> GetAdminWorkshopSelectList()
|
|
||||||
{
|
|
||||||
var watch = new Stopwatch();
|
|
||||||
watch.Start();
|
|
||||||
var acountId = _authHelper.CurrentAccountId();
|
|
||||||
|
|
||||||
var workshopIds = _context.WorkshopAccounts.AsNoTracking().Where(x => x.AccountId == acountId).Select(x => x.WorkshopId);
|
|
||||||
|
|
||||||
var employers = await
|
|
||||||
_context.WorkshopEmployers.AsNoTracking().Where(x => workshopIds.Contains(x.WorkshopId))
|
|
||||||
.Select(x => new { x.Employer, x.WorkshopId }).ToListAsync();
|
|
||||||
|
|
||||||
var blockedContractingParties =await _context.PersonalContractingParties
|
|
||||||
.Where(x => x.IsBlock == "true").Select(x=>x.id).ToListAsync();
|
|
||||||
|
|
||||||
var workshops = await _context.Workshops.AsNoTracking()
|
|
||||||
.Where(x => workshopIds.Contains(x.id))
|
|
||||||
.Where(x => x.IsActiveString == "true").ToListAsync();
|
|
||||||
|
|
||||||
|
|
||||||
var result = workshops.Select(x =>
|
|
||||||
{
|
|
||||||
var empl = employers.First(em => em.WorkshopId == x.id);
|
|
||||||
var isBlock = blockedContractingParties.Any(cp => cp == empl.Employer.ContractingPartyId);
|
|
||||||
return new AdminWorkshopSelectListDto
|
|
||||||
{
|
|
||||||
Id = x.id,
|
|
||||||
WorkshopFullName = x.WorkshopFullName,
|
|
||||||
ArchiveCode = x.ArchiveCode,
|
|
||||||
IsBlock = isBlock
|
|
||||||
};
|
|
||||||
|
|
||||||
}).OrderBy(x=>x.IsBlock ? 1 : 0)
|
|
||||||
.ToList();
|
|
||||||
|
|
||||||
Console.WriteLine("workshopSelectList : " +watch.Elapsed);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
@@ -209,38 +209,22 @@ public class CreateOrEditCheckoutCommandHandler : IBaseCommandHandler<CreateOrEd
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
////حقوق نهایی
|
//حقوق نهایی
|
||||||
//var monthlySalaryPay = (totalHoursWorked * monthlySalaryDefined) / mandatoryHours;
|
var monthlySalaryPay = (totalHoursWorked * monthlySalaryDefined) / mandatoryHours;
|
||||||
//// اگر اضافه کار داشت حقوق تعین شده به عنوان حقوق نهایی در نظر گرفته میشود
|
// اگر اضافه کار داشت حقوق تعین شده به عنوان حقوق نهایی در نظر گرفته میشود
|
||||||
//monthlySalaryPay = monthlySalaryPay > monthlySalaryDefined ? monthlySalaryDefined : monthlySalaryPay;
|
monthlySalaryPay = monthlySalaryPay > monthlySalaryDefined ? monthlySalaryDefined : monthlySalaryPay;
|
||||||
|
|
||||||
////حقوق کسر شده
|
//حقوق کسر شده
|
||||||
//var deductionFromSalary = monthlySalaryDefined - monthlySalaryPay;
|
var deductionFromSalary = monthlySalaryDefined - monthlySalaryPay;
|
||||||
|
|
||||||
//new chang salary compute
|
|
||||||
var monthlySalaryPay = totalHoursWorked * monthlySalaryDefined;
|
|
||||||
|
|
||||||
//زمان باقی مانده
|
//زمان باقی مانده
|
||||||
var remainingTime = totalHoursWorked - mandatoryHours;
|
var remainingTime = totalHoursWorked - mandatoryHours;
|
||||||
|
|
||||||
|
|
||||||
//تناسب به دقیقه
|
|
||||||
#region MyRegion
|
|
||||||
|
|
||||||
//var monthlySalaryDefinedTest = monthlySalaryDefined * mandatoryHours;
|
|
||||||
//var monthlySalaryPayTest = totalHoursWorked * monthlySalaryDefined;
|
|
||||||
////// اگر اضافه کار داشت حقوق تعین شده به عنوان حقوق نهایی در نظر گرفته میشود
|
|
||||||
//monthlySalaryPayTest = monthlySalaryPayTest > monthlySalaryDefinedTest ? monthlySalaryDefinedTest : monthlySalaryPayTest;
|
|
||||||
//////حقوق کسر شده
|
|
||||||
//var deductionFromSalaryTest = monthlySalaryDefinedTest - monthlySalaryPayTest;
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
var computeResult = new ComputeResultDto
|
var computeResult = new ComputeResultDto
|
||||||
{
|
{
|
||||||
MandatoryHours = mandatoryHours,
|
MandatoryHours = mandatoryHours,
|
||||||
MonthlySalaryPay = monthlySalaryPay,
|
MonthlySalaryPay = monthlySalaryPay,
|
||||||
DeductionFromSalary = 0 /*deductionFromSalary*/,
|
DeductionFromSalary = deductionFromSalary,
|
||||||
RemainingHours = remainingTime
|
RemainingHours = remainingTime
|
||||||
};
|
};
|
||||||
Console.WriteLine(mandatoryHours);
|
Console.WriteLine(mandatoryHours);
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
using DNTPersianUtils.Core;
|
using GozareshgirProgramManager.Application._Common.Interfaces;
|
||||||
using GozareshgirProgramManager.Application._Common.Interfaces;
|
|
||||||
using GozareshgirProgramManager.Application._Common.Models;
|
using GozareshgirProgramManager.Application._Common.Models;
|
||||||
using GozareshgirProgramManager.Application.Modules.SalaryPaymentSettings.Queries.GetUserListWhoHaveSettings;
|
using GozareshgirProgramManager.Application.Modules.SalaryPaymentSettings.Queries.GetUserListWhoHaveSettings;
|
||||||
using GozareshgirProgramManager.Domain._Common;
|
using GozareshgirProgramManager.Domain._Common;
|
||||||
using GozareshgirProgramManager.Domain.CheckoutAgg.Enums;
|
using GozareshgirProgramManager.Domain.CheckoutAgg.Enums;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using PersianDateTime = PersianTools.Core.PersianDateTime;
|
using PersianTools.Core;
|
||||||
|
|
||||||
namespace GozareshgirProgramManager.Application.Modules.Checkouts.Queries.GetUserToGropCreate;
|
namespace GozareshgirProgramManager.Application.Modules.Checkouts.Queries.GetUserToGropCreate;
|
||||||
|
|
||||||
@@ -46,8 +45,8 @@ public class GetUserToGroupCreatingQueryHandler : IBaseQueryHandler<GetUserToGro
|
|||||||
"ایجاد فیش فقط برای ماه های گذشته امکان پذیر است");
|
"ایجاد فیش فقط برای ماه های گذشته امکان پذیر است");
|
||||||
|
|
||||||
|
|
||||||
//var lastMonthStart = lastMonth;
|
var lastMonthStart = lastMonth;
|
||||||
var lastMonthEnd = ((selectedDate.ToFarsi().FindeEndOfMonth())).ToGeorgianDateTime();
|
var lastMonthEnd = lastMonth;
|
||||||
|
|
||||||
var query =
|
var query =
|
||||||
await (from u in _context.Users
|
await (from u in _context.Users
|
||||||
@@ -61,8 +60,8 @@ public class GetUserToGroupCreatingQueryHandler : IBaseQueryHandler<GetUserToGro
|
|||||||
// LEFT JOIN
|
// LEFT JOIN
|
||||||
//فیش
|
//فیش
|
||||||
join ch in _context.Checkouts
|
join ch in _context.Checkouts
|
||||||
.Where(x => x.CheckoutStartDate < lastMonthEnd
|
.Where(x => x.CheckoutStartDate < lastMonthStart
|
||||||
&& x.CheckoutEndDate > selectedDate)
|
&& x.CheckoutEndDate >= lastMonthStart)
|
||||||
on u.Id equals ch.UserId into chJoin
|
on u.Id equals ch.UserId into chJoin
|
||||||
from ch in chJoin.DefaultIfEmpty()
|
from ch in chJoin.DefaultIfEmpty()
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ public class ProjectSetTimeDetailsQueryHandler
|
|||||||
var res = new ProjectSetTimeResponse(
|
var res = new ProjectSetTimeResponse(
|
||||||
skills.Select(skill =>
|
skills.Select(skill =>
|
||||||
{
|
{
|
||||||
var section = task.Sections
|
var section = task
|
||||||
|
.Sections
|
||||||
.FirstOrDefault(x => x.SkillId == skill.Id);
|
.FirstOrDefault(x => x.SkillId == skill.Id);
|
||||||
var user = users.FirstOrDefault(x => x.Id == section?.OriginalAssignedUserId);
|
var user = users.FirstOrDefault(x => x.Id == section?.OriginalAssignedUserId);
|
||||||
return new ProjectSetTimeResponseSkill
|
return new ProjectSetTimeResponseSkill
|
||||||
|
|||||||
@@ -1,98 +0,0 @@
|
|||||||
using _0_Framework.Application;
|
|
||||||
using CompanyManagment.App.Contracts.Checkout;
|
|
||||||
using CompanyManagment.App.Contracts.Checkout.Dto;
|
|
||||||
using CompanyManagment.App.Contracts.InstitutionPlan;
|
|
||||||
using CompanyManagment.App.Contracts.Workshop;
|
|
||||||
using CompanyManagment.App.Contracts.Workshop.DTOs;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using NuGet.Packaging.Signing;
|
|
||||||
using ServiceHost.BaseControllers;
|
|
||||||
|
|
||||||
namespace ServiceHost.Areas.Admin.Controllers;
|
|
||||||
|
|
||||||
public class CheckoutController : AdminBaseController
|
|
||||||
{
|
|
||||||
private readonly ICheckoutApplication _checkoutApplication;
|
|
||||||
private readonly IWorkshopApplication _workshopApplication;
|
|
||||||
|
|
||||||
public CheckoutController(ICheckoutApplication checkoutApplication, IWorkshopApplication workshopApplication)
|
|
||||||
{
|
|
||||||
_checkoutApplication = checkoutApplication;
|
|
||||||
_workshopApplication = workshopApplication;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت لیست فیش حقوقی
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="searchModel"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpGet]
|
|
||||||
public async Task<ActionResult<PagedResult<CheckoutDto>>> GetList(CheckoutSearchModelDto searchModel)
|
|
||||||
{
|
|
||||||
return await _checkoutApplication.GetList(searchModel);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// دریافت نوبت کاری
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpGet("RotatingShift")]
|
|
||||||
public async Task<RotatingShiftOfCheckoutDto> GetRotatingShift(long id)
|
|
||||||
{
|
|
||||||
var result =await _checkoutApplication.GetRotatingShiftApi(id);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// پرینت گروهی فیش حقوقی
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpGet("GroupPrint")]
|
|
||||||
public async Task<List<CheckoutPrintDto>> Print(List<long> ids)
|
|
||||||
{
|
|
||||||
var result =await _checkoutApplication.CheckoutPrint(ids);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// پرینت تکی فیش حقوقی
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpGet("PrintOne")]
|
|
||||||
public async Task<List<CheckoutPrintDto>> Print(long id)
|
|
||||||
{
|
|
||||||
var result = await _checkoutApplication.CheckoutPrint([id]);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#region CreateCheckout
|
|
||||||
/// <summary>
|
|
||||||
/// سلکت لیست کارگاه
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpGet("WorkshopSelectList")]
|
|
||||||
public async Task<List<AdminWorkshopSelectListDto>> GetWorkshopSelectList()
|
|
||||||
{
|
|
||||||
var result =await _workshopApplication.GetAdminWorkshopSelectList();
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// سلک لیست پرسنل
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="workshopId"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpGet("EmployeeSelectList")]
|
|
||||||
public async Task<List<EmployeeSelectListDto>> GetEmployeeSelectListByWorkshopId(long workshopId)
|
|
||||||
{
|
|
||||||
var result = await _checkoutApplication.GetEmployeeSelectListByWorkshopId(workshopId);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -22,12 +22,9 @@ public class CheckoutPrintAllModel : PageModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void OnGet(string idlist)
|
public void OnGet(string idlist)
|
||||||
{
|
{
|
||||||
|
var ids = ExtractNumbers(idlist);
|
||||||
|
var resultList = new List<CheckoutGroupPrintViewModel>();
|
||||||
var ids = ExtractNumbers(idlist);
|
|
||||||
|
|
||||||
var resultList = new List<CheckoutGroupPrintViewModel>();
|
|
||||||
|
|
||||||
var res = _checkoutApplication.PrintAll(ids);
|
var res = _checkoutApplication.PrintAll(ids);
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,106 @@
|
|||||||
|
using _0_Framework.Application;
|
||||||
|
using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
||||||
|
using CompanyManagement.Infrastructure.Excel.EmployeeBankInfo;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using ServiceHost.BaseControllers;
|
||||||
|
|
||||||
|
namespace ServiceHost.Areas.Client.Controllers;
|
||||||
|
|
||||||
|
public class EmployeeBankInfoController : ClientBaseController
|
||||||
|
{
|
||||||
|
private readonly IEmployeeBankInformationApplication _employeeBankInformationApplication;
|
||||||
|
private readonly long _workshopId;
|
||||||
|
|
||||||
|
public EmployeeBankInfoController(IEmployeeBankInformationApplication employeeBankInformationApplication,
|
||||||
|
IAuthHelper authHelper)
|
||||||
|
{
|
||||||
|
_employeeBankInformationApplication = employeeBankInformationApplication;
|
||||||
|
_workshopId = authHelper.GetWorkshopId();
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
public async Task<ActionResult<List<GroupedEmployeeBankInformationViewModel>>> GetList(
|
||||||
|
EmployeeBankInformationSearchModel searchModel)
|
||||||
|
{
|
||||||
|
return await _employeeBankInformationApplication.SearchAsync(_workshopId, searchModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet("{employeeId:long}")]
|
||||||
|
public async Task<ActionResult<GetEmployeeBankInfoDetailsDto>> GetDetails(long employeeId)
|
||||||
|
{
|
||||||
|
return await _employeeBankInformationApplication.GetDetailsByEmployeeIdAsync(_workshopId, employeeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
public ActionResult<OperationResult> Create([FromBody]CreateEmployeeInformation command)
|
||||||
|
{
|
||||||
|
command.WorkshopId = _workshopId;
|
||||||
|
return _employeeBankInformationApplication.Create(command);
|
||||||
|
}
|
||||||
|
[HttpPut]
|
||||||
|
public ActionResult<OperationResult> Edit([FromBody]EditEmployeeInformation command)
|
||||||
|
{
|
||||||
|
command.WorkshopId = _workshopId;
|
||||||
|
return _employeeBankInformationApplication.Edit(command);
|
||||||
|
}
|
||||||
|
[HttpDelete("delete-by-employee/{employeeId:long}")]
|
||||||
|
public ActionResult<OperationResult> Remove(long employeeId)
|
||||||
|
{
|
||||||
|
return _employeeBankInformationApplication.RemoveByEmployeeId(_workshopId, employeeId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpDelete("delete-one/{id:long}")]
|
||||||
|
public IActionResult OnPostDelete(long id)
|
||||||
|
{
|
||||||
|
var result = _employeeBankInformationApplication.Remove(id);
|
||||||
|
return new JsonResult(new
|
||||||
|
{
|
||||||
|
success = result.IsSuccedded,
|
||||||
|
message = result.Message,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost("excel")]
|
||||||
|
public ActionResult DownloadExcel([FromBody]DownloadExcelRequest request)
|
||||||
|
{
|
||||||
|
|
||||||
|
var employeeBankInformationViewModelForExcels = _employeeBankInformationApplication.SearchForExcel(_workshopId,
|
||||||
|
new EmployeeBankInformationSearchModel() { EmployeeBankInfoIds = request.Ids });
|
||||||
|
|
||||||
|
var resultViewModel = employeeBankInformationViewModelForExcels.Select(x => new EmployeeBankInfoExcelViewModel
|
||||||
|
{
|
||||||
|
Name = x.EmployeeName,
|
||||||
|
BankAccounts = x.BankInformationList.Select(b => new BankInfoExcelViewModel()
|
||||||
|
{
|
||||||
|
IsDefault = b.IsDefault,
|
||||||
|
ShebaNumber = b.ShebaNumber,
|
||||||
|
AccountNumber = b.BankAccountNumber,
|
||||||
|
BankName = b.BankName,
|
||||||
|
CardNumber = b.CardNumber
|
||||||
|
}).ToList()
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
|
var bytes = EmployeeBankInfoExcelGenerator.Generate(resultViewModel);
|
||||||
|
return File(bytes,
|
||||||
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||||
|
$"اطلاعات بانکی پرسنل.xlsx");
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost("set-default/{bankId:long}")]
|
||||||
|
public IActionResult SetDefault(long bankId)
|
||||||
|
{
|
||||||
|
var result = _employeeBankInformationApplication.SetDefault(_workshopId, bankId);
|
||||||
|
return new JsonResult(new
|
||||||
|
{
|
||||||
|
success = result.IsSuccedded,
|
||||||
|
message = result.Message,
|
||||||
|
id = result.SendId
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public class DownloadExcelRequest
|
||||||
|
{
|
||||||
|
public List<long> Ids { get; set; }
|
||||||
|
}
|
||||||
@@ -8,6 +8,8 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
using CompanyManagement.Infrastructure.Excel.EmployeeBankInfo;
|
using CompanyManagement.Infrastructure.Excel.EmployeeBankInfo;
|
||||||
|
using CompanyManagment.App.Contracts.Bank;
|
||||||
|
using CompanyManagement.Infrastructure.Excel.EmployeeBankInfo;
|
||||||
|
|
||||||
namespace ServiceHost.Areas.Client.Pages.Company.EmployeesBankInfo
|
namespace ServiceHost.Areas.Client.Pages.Company.EmployeesBankInfo
|
||||||
{
|
{
|
||||||
@@ -28,7 +30,11 @@ namespace ServiceHost.Areas.Client.Pages.Company.EmployeesBankInfo
|
|||||||
private readonly IWebHostEnvironment _hostEnvironment;
|
private readonly IWebHostEnvironment _hostEnvironment;
|
||||||
|
|
||||||
|
|
||||||
public IndexModel(IPasswordHasher passwordHasher, IWorkshopApplication workshopApplication, IHttpContextAccessor contextAccessor, IAuthHelper authHelper, IEmployeeBankInformationApplication employeeBankInformationApplication, IEmployeeApplication employeeApplication, IBankApplication bankApplication, IWebHostEnvironment hostEnvironment)
|
public IndexModel(IPasswordHasher passwordHasher, IWorkshopApplication workshopApplication,
|
||||||
|
IHttpContextAccessor contextAccessor, IAuthHelper authHelper,
|
||||||
|
IEmployeeBankInformationApplication employeeBankInformationApplication,
|
||||||
|
IEmployeeApplication employeeApplication, IBankApplication bankApplication,
|
||||||
|
IWebHostEnvironment hostEnvironment)
|
||||||
{
|
{
|
||||||
_passwordHasher = passwordHasher;
|
_passwordHasher = passwordHasher;
|
||||||
_workshopApplication = workshopApplication;
|
_workshopApplication = workshopApplication;
|
||||||
@@ -64,7 +70,8 @@ namespace ServiceHost.Areas.Client.Pages.Company.EmployeesBankInfo
|
|||||||
|
|
||||||
public IActionResult OnGetEmployeeBankInfoListAjax(EmployeeBankInformationSearchModel searchModel)
|
public IActionResult OnGetEmployeeBankInfoListAjax(EmployeeBankInformationSearchModel searchModel)
|
||||||
{
|
{
|
||||||
var resultData = _employeeBankInformationApplication.Search(_workshopId, searchModel);
|
var resultData = _employeeBankInformationApplication
|
||||||
|
.Search(_workshopId, searchModel);
|
||||||
return new JsonResult(new
|
return new JsonResult(new
|
||||||
{
|
{
|
||||||
success = true,
|
success = true,
|
||||||
@@ -242,4 +249,4 @@ namespace ServiceHost.Areas.Client.Pages.Company.EmployeesBankInfo
|
|||||||
$"اطلاعات بانکی پرسنل.xlsx");
|
$"اطلاعات بانکی پرسنل.xlsx");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
25
ServiceHost/Controllers/BankController.cs
Normal file
25
ServiceHost/Controllers/BankController.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
using CompanyManagment.App.Contracts.Bank;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using ServiceHost.BaseControllers;
|
||||||
|
|
||||||
|
namespace ServiceHost.Controllers;
|
||||||
|
|
||||||
|
public class BankController : GeneralBaseController
|
||||||
|
{
|
||||||
|
private readonly IBankApplication _bankApplication;
|
||||||
|
|
||||||
|
public BankController(IBankApplication bankApplication)
|
||||||
|
{
|
||||||
|
_bankApplication = bankApplication;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// دریافت لیست بانکها برای SelectList
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet]
|
||||||
|
public ActionResult<List<BankSelectList>> GetBankList()
|
||||||
|
{
|
||||||
|
return _bankApplication.GetBanksForSelectList();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user