| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- @model ContractService.Views.Shared.Table.TableViewModel
- <!-- TABLE @(Model.TableId) START-->
- @if (Model.HasBox)
- {
- @Html.Raw("<div class=\"table-box iwb-bootstrap-table\">")
- }
- @{
- if (Model.HasBox && (Model.CurrentPage != null || Model.SearchForm != null))
- {
- <section class="table-box-header">
- <div class="container-fluid">
- @Html.Action("ToolMenu", "Layout", new { activeMenu = Model.CurrentPage, searchForm = Model.SearchForm })
- </div>
- </section>
-
- }
- }
- @*data-content-type="application/x-www-form-urlencoded; charset=UTF-8"*@
- <section class="table-box-content">
- <table id="@(Model.TableId)" class="table"
- data-url="@(Model.Url)"
- data-striped="true" data-id-field="@(Model.FieldId)" data-unique-id="@(Model.FieldId)"
- @(Html.Raw(Model.LocalDataStr))
- @*@(Html.Raw(Model.IsLocalData ? "" : "data-method=\"get\" data-side-pagination=\"server\""))*@
- data-cache="false"
- data-pagination="@(Model.PageStr)"
- data-page-size="@(Model.PageArray[0])"
- data-page-number="1"
- data-page-list="[@(Model.PageArrayStr)]" data-pagination-detail-h-align="right" data-pagination-h-align="left"
- data-click-to-select="@(Model.ClickSelectStr)"
- data-single-select="@(Model.SingleSelectStr)" @(Html.Raw(Model.Other))>
- <thead>
- <tr class="row">
- <th data-field="state" data-checkbox="true" data-width="50"></th>
- @if (Model.FieldItems != null && Model.FieldItems.Any())
- {
- foreach (var item in Model.FieldItems)
- {
- <th data-align="@(item.Align)" data-field="@(item.Filed)" @(Html.Raw(item.IsSortStr)) @(Html.Raw(item.FormatterStr)) @(Html.Raw(item.IsTipStr)) @(Html.Raw(item.WidthStr))>@(item.DisplayName)</th>
- }
- }
- </tr>
- </thead>
- </table>
- </section>
- @if (Model.HasBox)
- {
- @Html.Raw("</div>")
- }
- <!-- TABLE @(Model.TableId) END-->
|