грустно
This commit is contained in:
parent
f6b5c6f069
commit
769918aba2
@ -39,7 +39,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
}
|
||||
|
||||
APIClient.PostRequest("api/case/addclienttocase", Tuple.Create(new CaseSearchModel { Id = conId }, clientId));
|
||||
Response.Redirect("Home/Cases");
|
||||
Response.Redirect("~/Home/Cases");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult CreateCase()
|
||||
@ -47,7 +47,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
return View();
|
||||
}
|
||||
[HttpPost]
|
||||
public void CreateCase(string name, string type, CaseStatus status, DateTime date)
|
||||
public void CreateCase(string name, string type)
|
||||
{
|
||||
if (APIClient.Executor == null)
|
||||
{
|
||||
@ -59,11 +59,11 @@ namespace LawFirmExecutorApp.Controllers
|
||||
{
|
||||
ExecutorId = APIClient.Executor.Id,
|
||||
Name = name,
|
||||
Status = status,
|
||||
Status = CaseStatus.Принято,
|
||||
CaseType = type,
|
||||
DateCreate = date
|
||||
DateCreate = DateTime.Now
|
||||
});
|
||||
Response.Redirect("Home/Cases");
|
||||
Response.Redirect("~/Home/Cases");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult UpdateCase()
|
||||
@ -87,7 +87,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
CaseType = type,
|
||||
DateCreate = date
|
||||
});
|
||||
Response.Redirect("Home/Cases");
|
||||
Response.Redirect("~/Home/Cases");
|
||||
}
|
||||
[HttpPost]
|
||||
public void DeleteCase(int id)
|
||||
@ -102,12 +102,12 @@ namespace LawFirmExecutorApp.Controllers
|
||||
{
|
||||
ExecutorId = APIClient.Executor.Id,
|
||||
Name = "",
|
||||
Status = 0,
|
||||
Status = CaseStatus.Неизвестен,
|
||||
CaseType = "",
|
||||
DateCreate = DateTime.Now
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Cases");
|
||||
Response.Redirect("~/Home/Cases");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
Email = email
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Clients");
|
||||
Response.Redirect("~/Home/Clients");
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
@ -47,7 +47,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
Id = id
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Clients");
|
||||
Response.Redirect("~/Home/Clients");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult UpdateClient()
|
||||
@ -71,7 +71,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
Email = email,
|
||||
Phone = phone
|
||||
});
|
||||
Response.Redirect("Home/Clients");
|
||||
Response.Redirect("~/Home/Clients");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
APIClient.Executor.FIO = fio;
|
||||
APIClient.Executor.Email = login;
|
||||
APIClient.Executor.Password = password;
|
||||
Response.Redirect("Home/Clients");
|
||||
Response.Redirect("~/Home/Clients");
|
||||
}
|
||||
|
||||
// РЕГИСТРАЦИЯ ИСПОЛНИТЕЛЯ
|
||||
@ -108,7 +108,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
Email = login,
|
||||
Password = password
|
||||
});
|
||||
Response.Redirect("Home/EnterExecutor");
|
||||
Response.Redirect("~/Home/EnterExecutor");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("Home/Clients");
|
||||
Response.Redirect("~/Home/Clients");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
}
|
||||
|
||||
APIClient.PostRequest("api/visit/addclienttovisit", Tuple.Create(new VisitSearchModel { Id = hearId }, clientId));
|
||||
Response.Redirect("Home/Visits");
|
||||
Response.Redirect("~/Home/Visits");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult CreateVisit()
|
||||
@ -58,7 +58,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
ExecutorId = APIClient.Executor.Id,
|
||||
VisitDate = date,
|
||||
});
|
||||
Response.Redirect("Home/Visits");
|
||||
Response.Redirect("~/Home/Visits");
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult UpdateVisit()
|
||||
@ -81,7 +81,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
VisitDate = date,
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Visits");
|
||||
Response.Redirect("~/Home/Visits");
|
||||
}
|
||||
[HttpPost]
|
||||
public void DeleteVisit(int id)
|
||||
@ -99,7 +99,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
Id = id
|
||||
|
||||
});
|
||||
Response.Redirect("Home/Visits");
|
||||
Response.Redirect("~/Home/Visits");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,24 +16,7 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Вид производства</div>
|
||||
<div class="col-8">
|
||||
<input type="text" name="name" id="name" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Статус</div>
|
||||
<div class="col-8">
|
||||
<select id="statusId" name="statusId" class="form-control">
|
||||
<option value="0">Принято</option>
|
||||
<option value="1">АнализДелаИПодготовкаДокументов</option>
|
||||
<option value="2">СлушанияДела</option>
|
||||
<option value="3">ЗакрытиеДела</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Дата создания</div>
|
||||
<div class="col-8">
|
||||
<input type="datetime-local" id="date" name="date" />
|
||||
<input type="text" name="type" id="type" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
|
@ -30,10 +30,4 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Дата создания</div>
|
||||
<div class="col-8">
|
||||
<input type="datetime-local" id="date" name="date" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -20,7 +20,7 @@
|
||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
||||
<ul class="navbar-nav flex-grow-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asparea="" asp-controller="Home" asp-action="Clients">Home</a>
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Clients">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Cases">Дела</a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user