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