дополнил Reports

This commit is contained in:
maxnes3 2023-04-08 17:03:58 +04:00
parent d7392f5eac
commit 24edc0e94d
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,23 @@
using CaseAccountingContracts.BindingModels;
using CaseAccountingContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.BusinessLogicContracts
{
public interface IReportProviderLogic
{
List<ReportCaseSpecializationViewModel> GetCaseSpecialization();
List<ReportHearingLawyerViewModel> GetHearingLawyer(ReportBindingModel model);
void SaveCaseSpecializationToWordFile(ReportBindingModel model);
void SaveCaseSpecializationToExcelFile(ReportBindingModel model);
void SaveHearingLawyerToPdfFile(ReportBindingModel model);
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class ReportCaseSpecializationViewModel
{
public string CaseName { get; set; } = string.Empty;
public string Applicant { get; set; } = string.Empty;
public string Defendant { get; set; } = string.Empty;
public DateTime Date { get; set; }
public string Specialization { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class ReportHearingLawyerViewModel
{
public string Information { get; set; } = string.Empty;
public DateTime Date { get; set; }
public List<(string Surname, string Name, string Patronymic)> Lawyers { get; set; } = new();
}
}