Report -> Contracts

(Моя часть)
This commit is contained in:
Артём Алейкин 2023-04-08 16:51:27 +04:00
parent 5362b358c1
commit d7392f5eac
4 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,18 @@
using CaseAccountingContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.BindingModels
{
public class ReportBindingModel
{
public string FileName { get; set; } = string.Empty;
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
}
}

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 IReportCustomerLogic
{
List<ReportLawyerHearingViewModel> GetLawyerHearing();
List<ReportHearingSpecializationViewModel> GetHearingSpecialization(ReportBindingModel model);
void SaveLawyerHearingToWordFile(ReportBindingModel model);
void SaveLawyerHearingToExcelFile(ReportBindingModel model);
void SaveHearingSpecializationToPdfFile(ReportBindingModel model);
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class ReportHearingSpecializationViewModel
{
public string Information { get; set; } = string.Empty;
public DateTime Date { get; set; }
public string Specialization { get; set; } = string.Empty;
}
}

View File

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