我有创建模块和控制器......但是我创建了一个模块的2个控制器。 模块名称“Leavepage” 控制器名称:Leavepages& ApprovedLeavepages ..
问题是..当我登录员工时...我发送req给管理员请假。 如果管理员登录他显示员工requet然后他批准了req。但员工登录没有显示管理员操作批准或不..所以我如何在就业页面显示管理结果.. 我的所有代码都完成了,模型确定和控制器确定只是我想添加Approved controller.i提及代码plz帮助我
@if (Session["UserName"] != null && Convert.ToInt32(Session["RoleId"]) == 3)
{
<li> @*add*@
<div class="contain wow bounceInRight " data-wow-delay="1.4s" id="nav3">
<img class="icon" src="~/img/appbar.diagram.png">
<div class="text">
@Html.ActionLink("Assigned Tasks", "Index", "AssignTasks")
</div>
</div>
</li>
<li> @*add*@
<div class="contain wow bounceInRight " data-wow-delay="1.6s" id="nav4">
<img class="icon" src="~/img/appbar.list.add.below.png">
<div class="text">
@Html.ActionLink("Time Sheet", "Index", "TimeSheetNew")
</div>
</div>
</li>
<li> @*add*@
<div class="contain wow bounceInRight " data-wow-delay="1.8s" id="nav5">
<img class="icon" src="~/img/appbar.list.check.png">
<div class="text">
@Html.ActionLink("Approved Timesheet", "Index", "ApprovedList")
</div>
</div>
</li>
<li>
@*add*@
<div class="contain wow bounceInRight " data-wow-delay="1.8s" id="nav6">
<img class="icon" src="~/img/appbar.list.check.png">
<div class="text">
@Html.ActionLink("Approve Leavepages", "Index", "Leavepages")
</div>
</div>
</li>
}
else if (Session["UserName"] != null && Convert.ToInt32(Session["RoleId"]) == 1 || Convert.ToInt32(Session["RoleId"]) == 2)
{
<div class="contain wow bounceInRight " data-wow-delay="1.4s" id="nav3">
<img class="icon" src="~/img/appbar.book.list.png">
<div class="text">
@Html.ActionLink("Project List", "Index", "Project")
</div>
</div>
<div class="contain wow bounceInRight " data-wow-delay="1.6s" id="nav4">
<img class="icon" src="~/img/appbar.location.add.png">
<div class="text">
@Html.ActionLink("Add Modules", "Index", "Module")
</div>
</div>
<div class="contain wow bounceInRight " data-wow-delay="1.8s" id="nav5">
<img class="icon" src="~/img/appbar.diagram.png">
<div class="text">
@Html.ActionLink("Assign Tasks", "Index", "AssignTasks")
</div>
</div>
<div class="contain wow bounceInRight " data-wow-delay="2s" id="nav6">
<img class="icon" src="~/img/appbar.user.add.png">
<div class="text">
@Html.ActionLink("Registration", "Index", "EmployeeRegistrations")
</div>
</div>
<div class="contain wow bounceInRight " data-wow-delay="2.2s" id="nav7">
<img class="icon" src="~/img/appbar.newspaper.create.png">
<div class="text">
@Html.ActionLink("View Timesheet", "Index", "TimeSheetNew")
</div>
</div>
<div class="contain wow bounceInRight " data-wow-delay="2.2s" id="nav8">
<img class="icon" src="~/img/appbar.newspaper.create.png">
<div class="text">
@Html.ActionLink("ViewLeavepages", "Index", "Leavepages")
</div>
</div>
}