Inits the workflow configuration

This commit is contained in:
Paul Schneider
2024-02-25 18:05:10 +00:00
parent 70d24e17d8
commit 834866663a
286 changed files with 33661 additions and 64633 deletions

View File

@ -49,7 +49,7 @@ namespace Yavsc.Controllers
private void SetViewBag(CommandForm commandForm = null)
{
ViewBag.ActivityCode = new SelectList(_context.Activities, "Code", "Name", commandForm?.ActivityCode);
ViewBag.ActionName = Startup.Forms.Select(c => new SelectListItem { Value = c, Text = c, Selected = (commandForm?.ActionName == c) });
ViewBag.ActionName = _context.CommandForm.Select(c => new SelectListItem { Value = c.Id.ToString(), Text = c.Title, Selected = commandForm.Id == c.Id });
}
// POST: CommandForms/Create
[HttpPost]