Files
Backend-Api/CompanyManagment.App.Contracts/File1/IFileApplication.cs
2025-04-15 15:06:17 +03:30

181 lines
5.0 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;
using System.Collections.Generic;
using System.Threading.Tasks;
using _0_Framework.Application;
using CompanyManagment.App.Contracts.Employee;
using CompanyManagment.App.Contracts.Employer;
namespace CompanyManagment.App.Contracts.File1;
public interface IFileApplication
{
OperationResult Create(CreateFile command);
OperationResult Edit(EditFile command);
EditFile GetDetails(long id);
FileSummary GetFileSummary(long id);
FileViewModel GetFileDetails(FileViewModel file);
FileViewModel GetFileDetailsByBoardId(long boardId);
List<FileViewModel> Search(FileSearchModel searchModel);
FileViewModel GetLastArchiveNumber(FileSearchModel searchModel);
bool FilterFileDetails(FileViewModel tempViewModel, FileSearchModel fileSearchModel);
long FindLastArchiveNumber();
string GetEmployeeFullNameById(long id);
string GetEmployerFullNameById(long id);
List<EmployeeViewModel> GetAllEmploees(bool filter = true);
List<EmployerViewModel> GetAllEmployers(bool filter = true);
//bool CheckValue(string viewModel, string searchModel);
#region Mahan
/// <summary>
/// اطلاعات برای نمایش اکسل
/// </summary>
/// <returns></returns>
Task<List<FileExcelViewModel>> GetExcelDetails();
Task<List<FileListViewModel>> GetList(GetFileSearchModel searchModel);
#endregion
}
public class GetFileSearchModel
{
/// <summary>
/// شماره بایگانی
/// </summary>
public long ArchiveNumber { get; set; }
/// <summary>
/// کلاسه پرونده
/// </summary>
public string FileClass { get; set; } = string.Empty;
/// <summary>
/// اصیل دعوی (شامل جمع خواهان ها و خوانده ها
/// </summary>
public (long id, bool IsRequester) ClientOrLitigationParty { get; set; }
/// <summary>
/// شعبه هیئت تشخیص
/// </summary>
public string DiagnosisBoardBranch { get; set; }
/// <summary>
/// شعبه هیئت حل اختلاف
/// </summary>
public string DisputeResolutionBranch { get; set; }
/// <summary>
/// رییس هیئت تشخیص
/// </summary>
public string DiagnosisBoardChairMan { get; set; }
/// <summary>
/// رییس هیئت حل اختلاف
/// </summary>
public string DisputeResolutionBoardChairMan { get; set; }
/// <summary>
/// تاریخ رسیدگی هیئت تشخیص - از
/// </summary>
public string DiagnosisBoardFromDate { get; set; }
/// <summary>
/// تاریخ رسیدگی هیئت تشخیص - تا
/// </summary>
public string DiagnosisBoardToDate { get; set; }
/// <summary>
/// تاریخ رسیدگی هیئت حل اختلاف - از
/// </summary>
public string DisputeResolutionBoardFromDate{ get; set; }
/// <summary>
/// تاریخ رسیدگی هیئت حل اختلاف - تا
/// </summary>
public string DisputeResolutionBoardToDate{ get; set; }
public int PageIndex { get; set; }
}
public class FileListViewModel
{
public long Id { get; set; }
/// <summary>
/// شماره بایگانی
/// </summary>
public long ArchiveNumber { get; set; }
/// <summary>
/// کلاسه پرونده
/// </summary>
public string FileClass { get; set; } = string.Empty;
/// <summary>
/// موکل
/// </summary>
public string Client { get; set; } = string.Empty;
/// <summary>
/// طرف دعوی
/// </summary>
public string LitigationParty { get; set; } = string.Empty;
/// <summary>
/// هیئت تشخیص
/// </summary>
public FileListBoardViewModel DiagnosisBoard { get; set; }
/// <summary>
/// هیئت حل اختلاف
/// </summary>
public FileListBoardViewModel DisputeResolutionBoard { get; set; }
/// <summary>
/// وضعیت پرونده. یک به معنی غیرفعال. دو به معنی فعال. سه به معنی خروج موقت
/// </summary>
public int Status { get; set; }
}
public class FileListBoardViewModel
{
/// <summary>
/// تاریخ دادخواست
/// </summary>
public string PetitionDate { get; set; }
/// <summary>
/// اولین تاریخ رسیدگی
/// </summary>
public string FirstResolutionPetitionDate { get; set; }
/// <summary>
/// آخرین تاریخ رسیدگی
/// </summary>
public string LastResolutionPetitionDate { get; set; }
/// <summary>
/// آخرین نوبت تاریخ رسیدگی
/// </summary>
public string LastResolutionPetitionTurn { get; set; }
/// <summary>
/// تاریخ دادنامه
/// </summary>
public string PetitionIssuanceDate { get; set; }
/// <summary>
/// مبلغ جریمه
/// </summary>
public string TotalPenalty { get; set; }
/// <summary>
/// شعبه
/// </summary>
public string Branch { get; set; }
/// <summary>
/// رئیس هیئت مدیره
/// </summary>
public string BoardChairman { get; set; }
}