renaming Reviewed
This commit is contained in:
parent
c74ac71b5d
commit
ee6cb34c23
9 changed files with 28 additions and 23 deletions
|
|
@ -1,7 +1,6 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Yavsc.Helpers;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Models.Workflow;
|
||||
using Yavsc.Server.Helpers;
|
||||
|
|
@ -50,7 +49,13 @@ namespace Yavsc.Controllers
|
|||
private void SetViewBag(CommandForm commandForm = null)
|
||||
{
|
||||
ViewBag.ActivityCode = new SelectList(_context.Activities, "Code", "Name", commandForm?.ActivityCode);
|
||||
ViewBag.ActionName = new SelectList(_context.CommandForm, nameof(CommandForm.Id), nameof(CommandForm.Title), commandForm?.Id);
|
||||
ViewBag.ActionName = new SelectList(
|
||||
new[]{
|
||||
new SelectListItem { Value = "Create", Text = "Create" },
|
||||
new SelectListItem { Value = "Update", Text = "Update" },
|
||||
new SelectListItem { Value = "Delete", Text = "Delete" }
|
||||
});
|
||||
|
||||
}
|
||||
// POST: CommandForms/Create
|
||||
[HttpPost]
|
||||
|
|
|
|||
|
|
@ -65,14 +65,14 @@ namespace Yavsc.Controllers
|
|||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
public async Task <ActionResult> HairCut(string id)
|
||||
public async Task <ActionResult> ListPerformersAsync(string activityCode)
|
||||
{
|
||||
if (id == null)
|
||||
if (activityCode == null)
|
||||
{
|
||||
throw new NotImplementedException("No Activity code");
|
||||
}
|
||||
ViewBag.Activity = await _context.Activities.FirstOrDefaultAsync(a => a.Code == id);
|
||||
var result = await _context.ListPerformersAsync(_billing, id);
|
||||
ViewBag.Activity = await _context.Activities.FirstOrDefaultAsync(a => a.Code == activityCode);
|
||||
var result = await _context.ListPerformersAsync(_billing, activityCode);
|
||||
return View(result);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,10 +54,10 @@
|
|||
@Html.DisplayFor(model => model.Previsional)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Decided)
|
||||
@Html.DisplayNameFor(model => model.Reviewed)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Decided)
|
||||
@Html.DisplayFor(model => model.Reviewed)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
@Html.DisplayFor(model => model.Version)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
|
|
|
|||
|
|
@ -59,10 +59,10 @@
|
|||
@Html.DisplayFor(model => model.Previsional)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Decided)
|
||||
@Html.DisplayNameFor(model => model.Reviewed)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Decided)
|
||||
@Html.DisplayFor(model => model.Reviewed)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@
|
|||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
<input asp-for="Decided" />
|
||||
<label asp-for="Decided"></label>
|
||||
<input asp-for="Reviewed" />
|
||||
<label asp-for="Reviewed"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
@Html.DisplayNameFor(model => model.Previsional)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Decided)
|
||||
@Html.DisplayNameFor(model => model.Reviewed)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
@Html.DisplayFor(modelItem => item.Previsional)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Decided)
|
||||
@Html.DisplayFor(modelItem => item.Reviewed)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateModified)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue