Files
Backend-Api/CompanyManagment.App.Contracts/AdminMonthlyOverview/IAdminMonthlyOverviewApplication.cs
2025-05-26 17:32:02 +03:30

82 lines
2.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Threading.Tasks;
using _0_Framework.Application;
using Microsoft.EntityFrameworkCore.Metadata;
namespace CompanyManagment.App.Contracts.AdminMonthlyOverview;
public interface IAdminMonthlyOverviewApplication
{
/// <summary>
/// نمایش لیست ماهانه کارگاه ها - درصورت وجود نداشتن اطلاعات در این ماه، یک رکورد جدید ایجاد میکند
/// </summary>
/// <returns></returns>
Task<List<AdminMonthlyOverviewListViewModel>> GetWorkshopListByStatus(AdminMonthlyOverviewSearchModel searchModel);
/// <summary>
/// شمارش تعداد هر تب
/// </summary>
/// <param name="year"></param>
/// <param name="month"></param>
/// <param name="accountId"></param>
/// <returns></returns>
Task<AdminMonthlyOverViewCounterVm> GetCounter(int year, int month, long accountId);
/// <summary>
/// رفتن به مرحله بعدی
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<OperationResult> Next(long id);
/// <summary>
/// برگشت به مرحله قبل
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<OperationResult> Back(long id);
}
public class AdminMonthlyOverViewCounterVm
{
public int CreateDocument { get; set; }
public int VisitPending { get; set; }
public int VisitInProgress { get; set; }
public int VisitCompleted { get; set; }
public int Archived { get; set; }
public int All { get; set; }
}
public class AdminMonthlyOverviewSearchModel
{
public int Year { get; set; }
public int Month { get; set; }
public long WorkshopId { get; set; }
public long EmployerId { get; set; }
public long AdminAccountId { get; set; }
public IsActive ActivationStatus { get; set; }
}
public class AdminMonthlyOverviewListViewModel
{
public long Id { get; set; }
public long WorkshopId { get; set; }
public string WorkshopName { get; set; }
public string WorkshopArchiveCode { get; set; }
public int WorkshopArchiveCodeInt { get; set; }
public string Province { get; set; }
public string City { get; set; }
public string Address { get; set; }
public string AgentPhoneNumber { get; set; }
public string AdminFullName { get; set; }
public string EmployerName { get; set; }
public string EmployerPhoneNumber { get; set; }
public int ContractEmployeeCount { get; set; }
public int CheckoutEmployeeCount { get; set; }
public AdminMonthlyOverviewStatus Status { get; set; }
public bool IsBlock { get; set; }
}