Index.cshtml 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @using MES.Production.Service;
  2. @using Central.Control.Domain;
  3. @using Ant.Service.Common;
  4. @using CommonToolHelper;
  5. @{
  6. ViewBag.Title = "Index";
  7. Layout = "~/Views/Shared/_Layout.cshtml";
  8. }
  9. @model PageInfo
  10. <!-- table star -->
  11. <div class="row col-lg-12">
  12. <div class="wrapper wrapper-content animated fadeInUp">
  13. <div class="ibox">
  14. <div class="ibox-title">
  15. <h5>下载管理</h5>
  16. </div>
  17. <div class="ibox-content">
  18. <!-- search star -->
  19. @using (Ajax.BeginForm("Index", null, new AjaxOptions() { }, new { @id = "form1", @class = "form-horizontal", @method = "get" }))
  20. {
  21. <div class="form-horizontal clearfix">
  22. <div class="col-lg-4 col-sm-4" style="float:right;">
  23. <div class="form-group">
  24. <div class="col-lg-12 col-sm-12 input-group">
  25. @Html.TextBox("Search", null, new { @class = "input-sm form-control", @placeholder = "请输入查询关键词" })
  26. <span class="input-group-btn">
  27. <button type="button" onclick="submit()" class="btn btn-sm btn-primary"> 搜索</button>
  28. </span>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <!-- search end -->
  34. <div id="example_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  35. <table id="example" class="table table-striped table-bordered table-hover dataTables-example dataTable" cellspacing="0" width="100%">
  36. <thead>
  37. <tr>
  38. <th>下载时间</th>
  39. <th>下载者</th>
  40. <th>下载IP</th>
  41. <th>文件名</th>
  42. <th style="width:100px !important;">下载次数</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. @{foreach (var item in Model.List)
  47. {
  48. <tr>
  49. <td>@item.DLDATE</td>
  50. <td>@item.DLOPERATOR</td>
  51. <td>@item.DLIP</td>
  52. <td>@item.FILENAME</td>
  53. <td>@item.DLNUM</td>
  54. </tr>
  55. }
  56. }
  57. </tbody>
  58. </table>
  59. <!-- page -->
  60. <div class="bottom">
  61. <div class="dataTables_info" id="example_info" post="status" aria-live="polite">显示第 @Model.BeginPage 至 @Model.EndPage 项结果,共 @Model.Count 项</div>
  62. <div class="dataTables_length" id="example_length">
  63. <label>
  64. 显示
  65. <select name="example_length" onchange="submit()" aria-controls="example" class="form-control input-sm">
  66. <option value="10" @(Model.PageSize == 10 ? "selected" : "")>10</option>
  67. <option value="25" @(Model.PageSize == 25 ? "selected" : "")>25</option>
  68. <option value="50" @(Model.PageSize == 50 ? "selected" : "")>50</option>
  69. <option value="100" @(Model.PageSize == 100 ? "selected" : "")>100</option>
  70. </select> 项结果
  71. </label>
  72. </div>
  73. @CommonHtmlHelper.PaginationPager(Model.Index, Model.PageSize, Model.Count, 7, Model.Url)
  74. <div class="clear"></div>
  75. </div>
  76. <!-- page -->
  77. </div>
  78. }
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <!-- table end -->
  84. @section scripts{
  85. }