refx & wf actions config

This commit is contained in:
Paul Schneider 2017-02-12 23:53:53 +01:00
commit d8fa166115
11 changed files with 38 additions and 25 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.Action = YavscLib.YavscConstants.Forms.Select( c => new SelectListItem { Text = c, Selected = commandForm?.Action == c } );
ViewBag.Action = Startup.Forms.Select( c => new SelectListItem { Text = c, Selected = commandForm?.Action == c } );
}
// POST: CommandForms/Create
[HttpPost]