mvc 页面如何引用命名空间并且直接使用枚举类型对象
@using RTSafe.Platform.ManagerCenterModules.ProjectModules.Models
@using RTSafe.Platform.ManagerCenter.Core.Models;
@{
ViewBag.Title = "index";
Layout = null;
var TypeRole = Convert.ToInt32(ViewData["TypeRole"]);
var first = true;
var areaNumber = Convert.ToInt32(ViewData["AreaNumber"]);
}
<!DOCTYPE html>
<html>
<div id="tab0" class="tabContent" style="position:relative;">
<div class="tabContent_content">
@if (TypeRole == (int)TypeRoleEnum.集团角色 || TypeRole == (int)TypeRoleEnum.处级角色)
{
<div class="projectCount"><span>项目数</span></div>
<div class="me_DangerTitle">
<div class="showTime">
<div class="showTime_month">
<span>@DateTime.Now.Month</span>
<span>月</span>
</div>
<div>@DateTime.Now.Year</div>
</div>