GetCustomizeCheckoutList init
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
|
||||
using _0_Framework.Application;
|
||||
using _0_Framework.Domain;
|
||||
using CompanyManagment.App.Contracts.CustomizeCheckout;
|
||||
using CompanyManagment.App.Contracts.CustomizeCheckout.CustomizeCheckoutDto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
@@ -22,5 +24,17 @@ namespace Company.Domain.CustomizeCheckoutAgg
|
||||
|
||||
(bool Checkout, bool CustomizeCheckout, bool CustomizeCheckoutTemp) ValidateExistsCheckouts(
|
||||
DateTime startDate, DateTime endDate, long workshopId, List<long> employeeId);
|
||||
|
||||
#region ForApi
|
||||
/// <summary>
|
||||
/// دریافت لیست فیش غیر رسمی نهایی
|
||||
/// </summary>
|
||||
/// <param name="workshopId"></param>
|
||||
/// <param name="searchModel"></param>
|
||||
/// <returns></returns>
|
||||
Task<PagedResult<CustomizeCheckoutListDto>> GetCustomizeCheckoutList(long workshopId,
|
||||
CustomizeCheckoutSearchModel searchModel);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
<ProjectReference Include="..\_0_Framework\_0_Framework_b.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="CustomizeCheckout\CustomizeCheckoutDto\" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CopyDocs" AfterTargets="Build">
|
||||
<Copy SourceFiles="$(OutputPath)CompanyManagment.App.Contracts.xml" DestinationFolder="../ServiceHost\bin\Debug\net8.0\" />
|
||||
</Target>
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
|
||||
namespace CompanyManagment.App.Contracts.CustomizeCheckout.CustomizeCheckoutDto;
|
||||
|
||||
public class CustomizeCheckoutSearchModel
|
||||
{
|
||||
/// <summary>
|
||||
/// سال
|
||||
/// </summary>
|
||||
public int Month { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ماه
|
||||
/// </summary>
|
||||
public int Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تاریخ شروع جستجو
|
||||
/// </summary>
|
||||
public string SearchStartFa { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تاریخ پایان جستجو
|
||||
/// </summary>
|
||||
public string SearchEndFa { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// آی دی پرسنل
|
||||
/// </summary>
|
||||
public long EmployeeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// آی دی بانک
|
||||
/// </summary>
|
||||
public long BankId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// مرتب سازی
|
||||
/// </summary>
|
||||
public CustomizeCheckoutOrderByEnum OrderBy { get; set; } = CustomizeCheckoutOrderByEnum.ContractStartDesc;
|
||||
}
|
||||
|
||||
|
||||
public class CustomizeCheckoutListDto
|
||||
{
|
||||
/// <summary>
|
||||
/// آی دی
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// کد پرسنلی
|
||||
/// </summary>
|
||||
public string PersonnelCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// سال
|
||||
/// </summary>
|
||||
public string Month { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ماه
|
||||
/// </summary>
|
||||
public string Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// نام کامل پرسنل
|
||||
/// </summary>
|
||||
public string EmployeeFullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تاریخ شروع قراداد
|
||||
/// </summary>
|
||||
public string ContractStartFa { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تاریخ پایان قراداد
|
||||
/// </summary>
|
||||
public string ContractEndFa { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// مجموع روزهای کارکرد
|
||||
/// </summary>
|
||||
public string SumOfWorkingDays { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تاخیر در ورود
|
||||
/// </summary>
|
||||
public string LateToWorkDeduction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// غبت
|
||||
/// </summary>
|
||||
public string AbsenceDeduction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تاجیل در خروج
|
||||
/// </summary>
|
||||
public string EarlyExitDeduction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// مبلغ قابل پرداخت
|
||||
/// </summary>
|
||||
public string TotalPayment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// آیا مبلغ قابل پرداخت منفی است
|
||||
/// </summary>
|
||||
public bool IsTotalPaymentNegative { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// آیا مبالغ مغایرت دارند؟
|
||||
/// </summary>
|
||||
public bool HasAmountConflict { get; set; }
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
|
||||
|
||||
using System;
|
||||
using _0_Framework.Application;
|
||||
using CompanyManagment.App.Contracts.CustomizeCheckout.CustomizeCheckoutDto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CompanyManagment.App.Contracts.CustomizeCheckout
|
||||
{
|
||||
@@ -21,6 +23,17 @@ namespace CompanyManagment.App.Contracts.CustomizeCheckout
|
||||
(bool Checkout, bool CustomizeCheckout, bool CustomizeCheckoutTemp) ValidateExistsCheckouts(
|
||||
DateTime startDate, DateTime endDate, long workshopId, List<long> employeeId);
|
||||
|
||||
#region ForApi
|
||||
/// <summary>
|
||||
/// دریافت لیست فیش غیر رسمی نهایی
|
||||
/// </summary>
|
||||
/// <param name="workshopId"></param>
|
||||
/// <param name="searchModel"></param>
|
||||
/// <returns></returns>
|
||||
Task<PagedResult<CustomizeCheckoutListDto>> GetCustomizeCheckoutList(long workshopId,
|
||||
CustomizeCheckoutSearchModel searchModel);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,27 @@ public class SearchCustomizeCheckout
|
||||
|
||||
public enum CustomizeCheckoutOrderByEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// تاریخ شروع
|
||||
/// کوچک به بزرگ
|
||||
/// </summary>
|
||||
ContractStart,
|
||||
|
||||
/// <summary>
|
||||
/// تاریخ پایان
|
||||
/// بزرگ به کوچک
|
||||
/// </summary>
|
||||
ContractStartDesc,
|
||||
|
||||
/// <summary>
|
||||
/// شماره قراداد
|
||||
/// کوچکئ به بزرگ
|
||||
/// </summary>
|
||||
ContractNoDesc,
|
||||
|
||||
/// <summary>
|
||||
/// شماره قراداد
|
||||
/// بزرگ به کوچک
|
||||
/// </summary>
|
||||
ContractNo,
|
||||
}
|
||||
|
||||
@@ -1,27 +1,29 @@
|
||||
|
||||
|
||||
using _0_Framework.Application;
|
||||
using Company.Domain.CheckoutAgg;
|
||||
using Company.Domain.ContractAgg;
|
||||
using Company.Domain.CustomizeCheckoutAgg;
|
||||
using Company.Domain.CustomizeCheckoutAgg.ValueObjects;
|
||||
using Company.Domain.CustomizeCheckoutTempAgg;
|
||||
using Company.Domain.CustomizeWorkshopGroupSettingsAgg;
|
||||
using Company.Domain.CustomizeWorkshopSettingsAgg;
|
||||
using Company.Domain.EmployeeAgg;
|
||||
using Company.Domain.LeftWorkAgg;
|
||||
using Company.Domain.PersonnelCodeAgg;
|
||||
using Company.Domain.RollCallAgg;
|
||||
using Company.Domain.RollCallEmployeeStatusAgg;
|
||||
using Company.Domain.WorkshopAgg;
|
||||
using CompanyManagment.App.Contracts.CustomizeCheckout;
|
||||
using CompanyManagment.App.Contracts.CustomizeCheckout.CustomizeCheckoutDto;
|
||||
using CompanyManagment.App.Contracts.LeftWork;
|
||||
using CompanyManagment.App.Contracts.PersonnleCode;
|
||||
using CompanyManagment.App.Contracts.RollCallEmployeeStatus;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using Company.Domain.CheckoutAgg;
|
||||
using Company.Domain.CustomizeCheckoutAgg.ValueObjects;
|
||||
using Company.Domain.CustomizeCheckoutTempAgg;
|
||||
using Company.Domain.PersonnelCodeAgg;
|
||||
using CompanyManagment.App.Contracts.PersonnleCode;
|
||||
using Company.Domain.CustomizeWorkshopGroupSettingsAgg;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CompanyManagment.Application
|
||||
{
|
||||
@@ -378,6 +380,14 @@ namespace CompanyManagment.Application
|
||||
|
||||
return op.Succcedded(employees);
|
||||
}
|
||||
|
||||
|
||||
#region ForApi
|
||||
public async Task<PagedResult<CustomizeCheckoutListDto>> GetCustomizeCheckoutList(long workshopId, CustomizeCheckoutSearchModel searchModel)
|
||||
{
|
||||
throw new InvalidOperationException();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using _0_Framework.Domain.CustomizeCheckoutShared.Base;
|
||||
using AccountMangement.Infrastructure.EFCore;
|
||||
using CompanyManagment.App.Contracts.CustomizeCheckout.CustomizeCheckoutDto;
|
||||
using CompanyManagment.App.Contracts.EmployeeDocuments;
|
||||
using CompanyManagment.App.Contracts.Fine;
|
||||
using CompanyManagment.App.Contracts.Loan;
|
||||
@@ -360,6 +361,8 @@ namespace CompanyManagment.EFCore.Repository
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
public IEnumerable<CustomizeCheckoutViewModel> Search(SearchCustomizeCheckout searchModel)
|
||||
@@ -494,5 +497,17 @@ namespace CompanyManagment.EFCore.Repository
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region ForApi
|
||||
|
||||
public Task<PagedResult<CustomizeCheckoutListDto>> GetCustomizeCheckoutList(long workshopId, CustomizeCheckoutSearchModel searchModel)
|
||||
{
|
||||
var query = _companyContext.CustomizeCheckouts.Where(x => x.WorkshopId == workshopId).AsNoTracking();
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
using CompanyManagment.App.Contracts.CustomizeCheckout;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ServiceHost.BaseControllers;
|
||||
|
||||
namespace ServiceHost.Areas.Client.Controllers;
|
||||
|
||||
public class CustomizeCheckoutController : ClientBaseController
|
||||
{
|
||||
private readonly ICustomizeCheckoutApplication _customizeCheckoutApplication;
|
||||
|
||||
public CustomizeCheckoutController(ICustomizeCheckoutApplication customizeCheckoutApplication)
|
||||
{
|
||||
_customizeCheckoutApplication = customizeCheckoutApplication;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user