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