Files
RBMESAPICore/Views/Home/BillConverts.cshtml

93 lines
4.3 KiB
Plaintext
Raw Normal View History

2025-09-09 22:41:29 +08:00
@model IList<RB_MES_API.Models.BillConvert>
@*
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="BillConverts">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" />
<div class="form-inline">
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
<div class="form-group">
<label class="control-label">@Html.DisplayNameFor(model => model.FirstOrDefault().FSourceName):</label>
<input @Html.DisplayNameFor(model => model.FirstOrDefault().FSourceName) class="form-control" id="dbnumber" />
</div>
<a href="#" onclick="mynumber()">搜索</a>
@* <td style="width:50px;">
<a href="https://localhost:7227/Home/BillConvertsAdd">添加</a>
</td>*@
</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().FReceiveID)</th>
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FPageID)</th>
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FSourceName) </th>
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FK3FiledName) </th>
<th style="text-align: center;">@Html.DisplayNameFor(model => model.FirstOrDefault().FNeedInput) </th>
<th style="text-align: center;">操作</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].FReceiveID)
</td>
<td style="text-align: center;">
@Html.DisplayFor(model => model[i].FPageID)
</td>
<td style="text-align: center;">
@Html.DisplayFor(model => model[i].FSourceName)
</td>
<td style="text-align: center;">
@Html.DisplayFor(model => model[i].FK3FiledName)
</td>
<td style="text-align: center;">
@Html.DisplayFor(model => model[i].FNeedInput)
</td>
<td style="text-align: center;">
<a asp-action="BillConvertsUpdate" asp-route-id="@Model[i].FID">修改</a><span>|</span>
<a asp-action="BillConvertsAdd" asp-route-id="@Model[i].FID">添加</a>
<a asp-action="BillConvertsDelete" asp-route-id="@Model[i].FID"style='color:red' onclick='delcfm(this)'>删除</a>
</td>
</tr>
}
</tbody>
</table>
</form>
<script language="javascript">
function mynumber() {
var SourceName = document.getElementById("dbnumber").value;
if (SourceName == "") {
alert("【来源字段】为必填项");
}
var hf = location.pathname;
var v = hf.search("Home");
hf = hf.substring(0, v);
hf = hf + "Home/BillConverts?FSourceName=" + SourceName;
location.href = hf; //重新导航
return false;
};
function delcfm(obj) {
if (confirm("确认要删除?")) {
}
}
</script>
</body>