44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using _0_Framework.Application;
|
|
using CompanyManagment.App.Contracts.Checkout;
|
|
using CompanyManagment.App.Contracts.Checkout.Dto;
|
|
using CompanyManagment.App.Contracts.InstitutionPlan;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using ServiceHost.BaseControllers;
|
|
|
|
namespace ServiceHost.Areas.Admin.Controllers;
|
|
|
|
public class CheckoutController : AdminBaseController
|
|
{
|
|
private readonly ICheckoutApplication _checkoutApplication;
|
|
|
|
public CheckoutController(ICheckoutApplication checkoutApplication)
|
|
{
|
|
_checkoutApplication = checkoutApplication;
|
|
}
|
|
|
|
/// <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;
|
|
}
|
|
|
|
}
|
|
|