папку поменял, бд бропнул

This commit is contained in:
frog24 2024-05-29 18:15:38 +04:00
parent b4636a50a9
commit 070ab07e7f
4 changed files with 15 additions and 8 deletions

View File

@ -540,7 +540,7 @@ namespace DoctorApp.Controllers
APIDoctor.PostRequest("api/report/createpurchaselistwordfile", new ReportPurchaseMedicineBindingModel
{
Medicines = medicines,
FileName = "C:\\Users\\1\\Downloads\\wordfile.docx"
FileName = "D:\\jopa\\wordfile.docx"
});
Response.Redirect("GetWordFile");
}
@ -549,7 +549,7 @@ namespace DoctorApp.Controllers
APIDoctor.PostRequest("api/report/createpurchaselistexcelfile", new ReportPurchaseMedicineBindingModel
{
Medicines = medicines,
FileName = "C:\\Users\\1\\Downloads\\excelfile.xlsx"
FileName = "D:\\jopa\\excelfile.xlsx"
});
Response.Redirect("GetExcelFile");
}
@ -558,12 +558,12 @@ namespace DoctorApp.Controllers
[HttpGet]
public IActionResult GetWordFile()
{
return new PhysicalFileResult("C:\\Users\\1\\Downloads\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
return new PhysicalFileResult("D:\\jopa\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
}
public IActionResult GetExcelFile()
{
return new PhysicalFileResult("C:\\Users\\1\\Downloads\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
return new PhysicalFileResult("D:\\jopa\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
}
[HttpGet]
public IActionResult MedicinesDrugsAndVisits()

View File

@ -12,8 +12,8 @@ using VetclinicDatabaseImplement;
namespace VetclinicDatabaseImplement.Migrations
{
[DbContext(typeof(VetclinicDatabase))]
[Migration("20240529103650_hope4")]
partial class hope4
[Migration("20240529134004_hope5")]
partial class hope5
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -191,6 +191,9 @@ namespace VetclinicDatabaseImplement.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("DateCreate")
.HasColumnType("datetime2");
b.Property<int>("DoctorId")
.HasColumnType("int");

View File

@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace VetclinicDatabaseImplement.Migrations
{
/// <inheritdoc />
public partial class hope4 : Migration
public partial class hope5 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
@ -71,7 +71,8 @@ namespace VetclinicDatabaseImplement.Migrations
.Annotation("SqlServer:Identity", "1, 1"),
DrugName = table.Column<string>(type: "nvarchar(max)", nullable: false),
Price = table.Column<double>(type: "float", nullable: false),
DoctorId = table.Column<int>(type: "int", nullable: false)
DoctorId = table.Column<int>(type: "int", nullable: false),
DateCreate = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{

View File

@ -188,6 +188,9 @@ namespace VetclinicDatabaseImplement.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("DateCreate")
.HasColumnType("datetime2");
b.Property<int>("DoctorId")
.HasColumnType("int");