делаю слуашния и консультации
This commit is contained in:
parent
722b96f074
commit
5016a2ed4d
@ -17,8 +17,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LawFirmExecutorApp", "LawFi
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LawFirmGuarantorApp", "LawFirmGuarantorApp\LawFirmGuarantorApp.csproj", "{4B6D26B1-141A-48CC-A6F7-E51BDD06C4E2}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LawFirmGuarantorApp2", "LawFirmGuarantorApp2\LawFirmGuarantorApp2.csproj", "{5A462569-89A0-4A92-A671-4A6D824AB254}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -51,10 +49,6 @@ Global
|
||||
{4B6D26B1-141A-48CC-A6F7-E51BDD06C4E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4B6D26B1-141A-48CC-A6F7-E51BDD06C4E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4B6D26B1-141A-48CC-A6F7-E51BDD06C4E2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5A462569-89A0-4A92-A671-4A6D824AB254}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5A462569-89A0-4A92-A671-4A6D824AB254}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5A462569-89A0-4A92-A671-4A6D824AB254}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5A462569-89A0-4A92-A671-4A6D824AB254}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -11,9 +11,9 @@ namespace LawFirmDatabaseImplement
|
||||
{
|
||||
if (optionsBuilder.IsConfigured == false)
|
||||
{
|
||||
optionsBuilder.UseSqlServer(@"Data Source=ZIRAEL\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
//optionsBuilder.UseSqlServer(@"Data Source=ZIRAEL\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
|
||||
//optionsBuilder.UseSqlServer(@"Data Source=PC-Anna\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer(@"Data Source=PC-Anna\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
}
|
||||
|
||||
APIClient.PostRequest("api/consultation/addlawyertoconsultation", Tuple.Create(new ConsultationSearchModel { Id = conId }, lawyerId));
|
||||
Response.Redirect("Home/Consultations");
|
||||
Response.Redirect("/Home/Consultations");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult CreateConsultation()
|
||||
@ -61,7 +61,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Cost = cost,
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Consultations");
|
||||
Response.Redirect("/Home/Consultations");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult UpdateConsultation()
|
||||
@ -85,7 +85,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Cost = cost
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Consultations");
|
||||
Response.Redirect("/Home/Consultations");
|
||||
}
|
||||
[HttpPost]
|
||||
public void DeleteConsultation(int id)
|
||||
|
@ -38,7 +38,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
}
|
||||
|
||||
APIClient.PostRequest("api/hearing/addlawyertohearing", Tuple.Create(new HearingSearchModel { Id = hearId }, lawyerId));
|
||||
Response.Redirect("Home/Hearings");
|
||||
Response.Redirect("/Home/Lawyers");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult CreateHearing()
|
||||
@ -61,7 +61,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Judge = judge
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Hearings");
|
||||
Response.Redirect("/Home/Hearings");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult UpdateHearing()
|
||||
@ -85,7 +85,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Judge = judge
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Hearings");
|
||||
Response.Redirect("/Home/Hearings");
|
||||
}
|
||||
[HttpPost]
|
||||
public void DeleteHearing(int id)
|
||||
@ -104,7 +104,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Id = id
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Hearings");
|
||||
Response.Redirect("/Home/Hearings");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
APIClient.Guarantor.FIO = fio;
|
||||
APIClient.Guarantor.Email = login;
|
||||
APIClient.Guarantor.Password = password;
|
||||
Response.Redirect("Home/Lawyers");
|
||||
Response.Redirect("/Home/Lawyers");
|
||||
}
|
||||
|
||||
// РЕГИСТРАЦИЯ ПОРУЧИТЕЛЯ
|
||||
@ -111,7 +111,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Email = login,
|
||||
Password = password
|
||||
});
|
||||
Response.Redirect("Home/EnterGuarantor");
|
||||
Response.Redirect("/Home/EnterGuarantor");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -137,7 +137,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("Home/Lawyers");
|
||||
Response.Redirect("/Home/Lawyers");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Email = email
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Lawyers");
|
||||
Response.Redirect("/Home/Lawyers");
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
@ -46,7 +46,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Id = id
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Lawyers");
|
||||
Response.Redirect("/Home/Lawyers");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult UpdateLawyer()
|
||||
@ -70,7 +70,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
Email = email,
|
||||
Phone = phone
|
||||
});
|
||||
Response.Redirect("Home/Lawyers");
|
||||
Response.Redirect("/Home/Lawyers");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Консультация</div>
|
||||
<div class="col-8">
|
||||
<select id="conId" name="conId" class="form-control" asp-items="@(new SelectList(@ViewBag.Consultations,"Id", "Cost"))"></select>
|
||||
<select id="conId" name="conId" class="form-control" asp-items="@(new SelectList(@ViewBag.Consultations,"Id", "ConsultationDate"))"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
@ -22,7 +22,7 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Дело</div>
|
||||
<div class="col-8">
|
||||
<select id="caseId" name="caseId" class="form-control" asp-items="@(new SelectList(@ViewBag.Cases,"Id", "Id"))"></select>
|
||||
<select id="caseId" name="caseId" class="form-control" asp-items="@(new SelectList(@ViewBag.Cases,"Id", "Name"))"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
@ -12,13 +12,13 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Слушание</div>
|
||||
<div class="col-8">
|
||||
<select id="id" name="id" class="form-control" asp-items="@(new SelectList(@ViewBag.Hearings,"Id", "Name"))"></select>
|
||||
<select id="id" name="id" class="form-control" asp-items="@(new SelectList(@ViewBag.Hearings,"Id", "HearingDate"))"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Юрист</div>
|
||||
<div class="col-8">
|
||||
<select id="lawyerId" name="lawyerId" class="form-control" asp-items="@(new SelectList(@ViewBag.Hearings,"Id", "FIO"))"></select>
|
||||
<select id="lawyerId" name="lawyerId" class="form-control" asp-items="@(new SelectList(@ViewBag.Lawyers,"Id", "FIO"))"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Электронная почта:</div>
|
||||
<div class="col-8">
|
||||
<input type="text" name="email"
|
||||
<input type="text" name="login"
|
||||
value="@Model.Email" />
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user