@using FHT.Management.Interfaces.ViewModels @using FHT.Agency.UI.InputModels.Search @using FHT.Utilities @using FHT.Core.CommonTypes @model SearchAppVersionInputModel @{ ViewBag.Title = "版本升级管理"; Layout = "~/Views/Shared/_Layout.cshtml"; var result = (FHT.DDD.QueryResult)ViewBag.AppVersions; }
@using (Html.BeginForm("Index", "AppVersion", FormMethod.Get, new {role = "form" })) {
@Html.RequiredLabelFor(m => m.Q, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.Q, new { @class = "form-control"})
@Html.RequiredLabelFor(m => m.DeviceType, new{@class="pull-left fht-control-label"})
@Html.EditorFor(m => m.DeviceType, new { enumSource = typeof(DeviceType) })
}
@foreach (var appVersion in result.Data) { } @if (!result.Data.Any()) { }
编号 应用名称 版本号 版本号 所属设备 创建日期 操作
@appVersion.VersionId @appVersion.AppName @appVersion.Version @appVersion.VersionNum @appVersion.DeviceType.GetEnumDescription() @(appVersion.CreatedTime.ToShortDateString()) 修改 删除
暂无数据
@if ((result.TotalCount - 1) / Model.Limit > 0) { @Html.Pager(Model.Limit, Model.CurrPage, (int)result.TotalCount).Options(opt => { opt.Action("Index") .PageRouteValueKey("currPage") .AddRouteValue("Q", Model.Q) .AddRouteValue("DeviceType", Model.DeviceType) .SetNextPageText(">") .DisplayTemplate("BootstrapPagination") .SetPreviousPageText("<"); }) }
@section scripts{ @Scripts.Render("~/bundles/appIndex") }