Views/Assent/Search.cshtml

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@model IEnumerable<WebApplication1.Models.Entities.Assent>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<p>
    关键字:@ViewBag.Keyword

</p>
<p>
    价格区间:@ViewBag.Keyword1 —— @ViewBag.Keyword2
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.AssentCategory.CategoryName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AssentDepartment.DepartmentName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AssentUser.UserName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AssentName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AssentPrice)
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.AssentCategory.CategoryName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.AssentDepartment.DepartmentName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.AssentUser.UserName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.AssentName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.AssentPrice)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.AssentId }) |
                @Html.ActionLink("Details", "Details", new { id = item.AssentId }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.AssentId })
后面还有 10 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。