@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@model SJCRM.Helpers.Pager<SJCRM.Models.Job>
<div>
<div>
<div>
<form method="post" action="/@ViewBag.ControllerName/search">
<dl>
<dd>关键词:</dd>
<dd>
<input type="text" /></dd>
<dd>
<input type="submit" value="查 询" /></dd>
</dl>
</form>
</div>
<div>
<dl>
<dt>
<span><a href="/@ViewBag.ControllerName/add">添加</a></span>
</dt>
</dl>
<div>
<table cellspacing="0" cellpadding="0">
<tr>
<td>编号</td>
<td>岗位名称</td>
<td>岗位说明</td>
<td>是否主管</td>
<td>状态</td>
<td>操作</td>
</tr>
</table>
</div>
<div>
@{int classnum = 1;}
@foreach (var item in Model)
{
<table cellspacing="0" cellpadding="0" @if (classnum % 2 == 0)
{<text>class="rgbg2"</text>}>
<tr>
<td>@item.JobID</td>
<td>@item.JobName</td>
<td>@item.JobContent</td>
<td>@(item.IsManager == 1 ? "是" : "否")</td>
<td>@(item.State == 1 ? "有效" : "无效")</td>
<td><a href="/job/delete/@item.JobID">删除</a> | <a href="/job/edit/@item.JobID">编辑</a> </td>
</tr>
</table>
classnum = classnum + 1;
}
</div>
</div>
<div>
@UIHelper.PagesHelper(ViewBag.ControllerName, Model.TotalPages, Model.PageIndex, Model.PageSize, Model.TotalCount, Model.HasPreviousPage, Model.HasNextPage, Model.PageList);
</div>
</div>
</div>
<script>
//菜单显示
$("#systemusersys").addClass("hbg");
$("");
$("");
$(".systemusersys").each(function (index, item) {
$(this).show();
});
</script>
Add.cshtml
复制代码 代码如下: