Бомж Иван нашел ноутбук и в первую очередь проверил корзину
This commit is contained in:
parent
8c5a6092c2
commit
b39f51f139
@ -609,7 +609,7 @@ namespace HostrelHeadwaiterApp.Controllers
|
||||
APIClient.PostRequest("api/report/createheadwaiterreporttowordfile", new ReportHeadwaiterBindingModel
|
||||
{
|
||||
Ids = res,
|
||||
FileName = "E:\\ReportsCourseWork\\wordfile.docx"
|
||||
FileName = "C:\\ReportsCourseWork\\wordfile.docx"
|
||||
});
|
||||
Response.Redirect("GetWordFile");
|
||||
}
|
||||
@ -618,7 +618,7 @@ namespace HostrelHeadwaiterApp.Controllers
|
||||
APIClient.PostRequest("api/report/createheadwaiterreporttoexcelfile", new ReportHeadwaiterBindingModel
|
||||
{
|
||||
Ids = res,
|
||||
FileName = "E:\\ReportsCourseWork\\excelfile.xlsx"
|
||||
FileName = "C:\\ReportsCourseWork\\excelfile.xlsx"
|
||||
});
|
||||
Response.Redirect("GetExcelFile");
|
||||
}
|
||||
@ -627,17 +627,17 @@ namespace HostrelHeadwaiterApp.Controllers
|
||||
[HttpGet]
|
||||
public IActionResult GetWordFile()
|
||||
{
|
||||
return new PhysicalFileResult("E:\\ReportsCourseWork\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
|
||||
return new PhysicalFileResult("C:\\ReportsCourseWork\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
|
||||
}
|
||||
|
||||
public IActionResult GetExcelFile()
|
||||
{
|
||||
return new PhysicalFileResult("E:\\ReportsCourseWork\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
return new PhysicalFileResult("C:\\ReportsCourseWork\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
}
|
||||
|
||||
public IActionResult GetPdfFile()
|
||||
{
|
||||
return new PhysicalFileResult("E:\\ReportsCourseWork\\pdffile.pdf", "application/pdf");
|
||||
return new PhysicalFileResult("C:\\ReportsCourseWork\\pdffile.pdf", "application/pdf");
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
|
@ -30,7 +30,7 @@ namespace HotelBusinessLogic.MailWorker
|
||||
objMailMessage.Body = info.Text;
|
||||
objMailMessage.SubjectEncoding = Encoding.UTF8;
|
||||
objMailMessage.BodyEncoding = Encoding.UTF8;
|
||||
Attachment attachment = new Attachment("E:\\ReportsCourseWork\\pdffile.pdf", new ContentType(MediaTypeNames.Application.Pdf));
|
||||
Attachment attachment = new Attachment("C:\\ReportsCourseWork\\pdffile.pdf", new ContentType(MediaTypeNames.Application.Pdf));
|
||||
objMailMessage.Attachments.Add(attachment);
|
||||
|
||||
objSmtpClient.UseDefaultCredentials = false;
|
||||
|
@ -9,7 +9,7 @@ namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class PdfInfoHeadwaiter
|
||||
{
|
||||
public string FileName { get; set; } = "E:\\ReportsCourseWork\\pdffile.pdf";
|
||||
public string FileName { get; set; } = "C:\\ReportsCourseWork\\pdffile.pdf";
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public DateTime DateFrom { get; set; }
|
||||
public DateTime DateTo { get; set; }
|
||||
|
@ -4,7 +4,7 @@ namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class PdfInfoOrganiser
|
||||
{
|
||||
public string FileName { get; set; } = "F:\\ReportsCourseWork\\pdffile.pdf";
|
||||
public string FileName { get; set; } = "C:\\ReportsCourseWork\\pdffile.pdf";
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public DateTime DateFrom { get; set; }
|
||||
public DateTime DateTo { get; set; }
|
||||
|
@ -9,7 +9,7 @@ namespace HotelDataBaseImplement
|
||||
{
|
||||
if (optionsBuilder.IsConfigured == false)
|
||||
{
|
||||
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-V0ON61E\SQLEXPRESS;Initial Catalog=HotelDataBaseFu;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer(@"Data Source=MAKSIM\SQLEXPRESS;Initial Catalog=HotelDataBaseFu;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ namespace HotelOrganiserApp.Controllers
|
||||
APIClient.PostRequest("api/report/createreporttowordfile", new ReportBindingModel
|
||||
{
|
||||
Ids = res,
|
||||
FileName= "F:\\ReportsCourseWork\\wordfile.docx"
|
||||
FileName= "C:\\ReportsCourseWork\\wordfile.docx"
|
||||
});
|
||||
Response.Redirect("GetWordFile");
|
||||
}
|
||||
@ -77,7 +77,7 @@ namespace HotelOrganiserApp.Controllers
|
||||
APIClient.PostRequest("api/report/createreporttoexcelfile", new ReportBindingModel
|
||||
{
|
||||
Ids = res,
|
||||
FileName = "F:\\ReportsCourseWork\\excelfile.xlsx"
|
||||
FileName = "C:\\ReportsCourseWork\\excelfile.xlsx"
|
||||
});
|
||||
Response.Redirect("GetExcelFile");
|
||||
}
|
||||
@ -86,15 +86,15 @@ namespace HotelOrganiserApp.Controllers
|
||||
[HttpGet]
|
||||
public IActionResult GetWordFile()
|
||||
{
|
||||
return new PhysicalFileResult("F:\\ReportsCourseWork\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
|
||||
return new PhysicalFileResult("C:\\ReportsCourseWork\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
|
||||
}
|
||||
public IActionResult GetPdfFile()
|
||||
{
|
||||
return new PhysicalFileResult("F:\\ReportsCourseWork\\pdffile.pdf", "application/pdf");
|
||||
return new PhysicalFileResult("C:\\ReportsCourseWork\\pdffile.pdf", "application/pdf");
|
||||
}
|
||||
public IActionResult GetExcelFile()
|
||||
{
|
||||
return new PhysicalFileResult("F:\\ReportsCourseWork\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
return new PhysicalFileResult("C:\\ReportsCourseWork\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
|
@ -34,7 +34,7 @@ namespace HotelRestApi.Controllers
|
||||
DateFrom = model.DateFrom,
|
||||
DateTo = model.DateTo,
|
||||
OrganiserId = model.OrganiserId,
|
||||
FileName = "E:\\ReportsCourseWork\\pdffile.pdf",
|
||||
FileName = "C:\\ReportsCourseWork\\pdffile.pdf",
|
||||
});
|
||||
}
|
||||
catch (Exception ex)
|
||||
@ -121,7 +121,7 @@ namespace HotelRestApi.Controllers
|
||||
{
|
||||
_reportHeadwaiterLogic.SaveDinnersToPdfFile(new ReportHeadwaiterBindingModel
|
||||
{
|
||||
FileName = "E:\\ReportsCourseWork\\pdffile.pdf",
|
||||
FileName = "C:\\ReportsCourseWork\\pdffile.pdf",
|
||||
DateFrom = model.DateFrom,
|
||||
DateTo = model.DateTo,
|
||||
HeadwaiterId = model.HeadwaiterId,
|
||||
|
Loading…
Reference in New Issue
Block a user