83 lines
3.4 KiB
Plaintext
83 lines
3.4 KiB
Plaintext
|
|
@model IList<RB_MES_API.Models.RBLog>
|
||
|
|
@*
|
||
|
|
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
||
|
|
*@
|
||
|
|
@{
|
||
|
|
}
|
||
|
|
<script src="https://code.jquery.com/jquery.js"></script>
|
||
|
|
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
|
||
|
|
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||
|
|
|
||
|
|
<div class="text-center">
|
||
|
|
<h1 class="display-4">错误日志</h1>
|
||
|
|
</div>
|
||
|
|
<body>
|
||
|
|
<form asp-action="RBLogs">
|
||
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||
|
|
<input type="hidden" />
|
||
|
|
<div class="form-inline">
|
||
|
|
<span> </span>
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="control-label">@Html.DisplayNameFor(model => model.FirstOrDefault().FDocType):</label>
|
||
|
|
<input @Html.DisplayNameFor(model => model.FirstOrDefault().FDocType) class="form-control" id="dbnumber" />
|
||
|
|
</div>
|
||
|
|
<a href="#" onclick="mynumber()">搜索</a>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<table class="table table-bordered" border="1" width="100%" cellpadding="4" cellspacing="1">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th style="text-align: center;">序号</th>
|
||
|
|
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FFunctionID)</th>
|
||
|
|
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FDocType)</th>
|
||
|
|
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FDateTime) </th>
|
||
|
|
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FStatus) </th>
|
||
|
|
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FMess) </th>
|
||
|
|
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FSource) </th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
@for (int i = 0; i <= Model.Count-1; i++)
|
||
|
|
{
|
||
|
|
int row = @i + 1;
|
||
|
|
<tr>
|
||
|
|
<td style="text-align: center;">@row </td>
|
||
|
|
<td style="text-align: center;">
|
||
|
|
@Html.DisplayFor(model => model[i].FFunctionID)
|
||
|
|
</td>
|
||
|
|
<td style="text-align: center;">
|
||
|
|
@Html.DisplayFor(model => model[i].FDocType)
|
||
|
|
</td>
|
||
|
|
<td style="text-align: center;">
|
||
|
|
@Html.DisplayFor(model => model[i].FDateTime)
|
||
|
|
</td>
|
||
|
|
<td style="text-align: center;">
|
||
|
|
@Html.DisplayFor(model => model[i].FStatus)
|
||
|
|
</td>
|
||
|
|
<td style="text-align: center;">
|
||
|
|
@Html.DisplayFor(model => model[i].FMess)
|
||
|
|
</td>
|
||
|
|
<td style="text-align: center;">
|
||
|
|
@Html.DisplayFor(model => model[i].FSource)
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
<script language="javascript">
|
||
|
|
function mynumber() {
|
||
|
|
var DocType = document.getElementById("dbnumber").value;
|
||
|
|
if (DocType == "") {
|
||
|
|
alert("【接口类型】为必填项");
|
||
|
|
}
|
||
|
|
var hf = location.pathname;
|
||
|
|
var v = hf.search("Home");
|
||
|
|
hf = hf.substring(0, v);
|
||
|
|
hf = hf + "Home/RBLogs?FDocType=" + DocType;
|
||
|
|
location.href = hf; //重新导航
|
||
|
|
return false;
|
||
|
|
};
|
||
|
|
</script>
|
||
|
|
</body>
|