public IActionResult Index() { IndexPrep(); ViewBag.Month = DateTime.Today.ToString("yyyy-MM"); ViewBag.Lines = FrmHelp.GetLineList(); return(View()); }
public IActionResult Index() { IndexPrep(); ViewBag.RequestDate = DateTime.Today; ViewBag.Lines = FrmHelp.GetLineList(); return(View()); }
public IActionResult Index() { IndexPrep(); switch (LoginInfo.RoleId) { case 1: ViewBag.Lines = FrmHelp.GetLineList(); ViewBag.Statuses = FrmHelp.GetKanbanStatusList(1); break; case 2: ViewBag.Lines = FrmHelp.GetLineList((int)LoginInfo.LineId); ViewBag.Statuses = FrmHelp.GetKanbanStatusList(1); break; case 3: ViewBag.Lines = FrmHelp.GetLineList(); ViewBag.Statuses = FrmHelp.GetKanbanStatusList(3); break; } return(View()); }
private void SetViewBag() { ViewBag.Roles = FrmHelp.GetRoleList(); ViewBag.Lines = FrmHelp.GetLineList(); }
public IActionResult Index() { IndexPrep(); ViewBag.Lines = FrmHelp.GetLineList(); return(View()); }