DD.WellWorkover.Cloud/ConsoleApp1/Program.cs

32 lines
852 B
C#
Raw Normal View History

2022-05-05 10:06:15 +05:00
using AsbCloudInfrastructure.Services.DailyReport;
using System;
2022-04-22 17:17:38 +05:00
using System.Linq;
namespace ConsoleApp1
{
class Program
2021-10-03 20:08:17 +05:00
{
2021-07-28 09:47:13 +05:00
static void Main(/*string[] args*/)
{
2022-04-12 10:01:56 +05:00
// use ServiceFactory to make services
2022-05-05 10:06:15 +05:00
var makerExcel = new DailyReportMakerExcel();
2022-03-17 16:56:13 +05:00
2022-05-05 10:06:15 +05:00
AsbCloudApp.Data.DailyReportDto dto = new() {
WellName = "111",
ClusterName = "cluster name",
Contractor = "NaftaGas",
};
using var stream = makerExcel.MakeReport(dto);
using (var fileStream = System.IO.File.Create(@"c:/temp/1.xlsx"))
{
stream.CopyTo(fileStream);
fileStream.Flush();
}
Console.WriteLine("End of Test");
Console.ReadLine();
2021-10-06 16:30:46 +05:00
}
}
}