我需要将在“AuctionPage”上选择的线圈发送到“MyBids”页面上的另一个表。我认为最好抓住线圈ID并以这种方式传递但不知道如何?任何帮助,将不胜感激。
拍卖页面-->
@model NucorPrototypes_V1.ViewModel.AuctionPage
@{
ViewBag.Title = "Index";
}
<title>Auction </title>
<div id="header" style="background-color: #008751">
<h1 style="margin-bottom: 0; color: #FFFFFF">Secondary Coil Auction </h1>
</div>
<div id="content">
<h2>Index</h2>
<table id="myTable" border="3" style="background-color: #B0B0B0" cellpadding="10" class="table">
<tr>
<th>Select</th>
<th>Serial Number</th>
<th>Minimum Bid</th>
<th>Current High Bid</th>
<th>Grade</th>
<th>Heat Number</th>
<th>Gauge</th>
<th>Width</th>
<th>Weight</th>
<th>Defect 1</th>
<th>Defect 2</th>
<th>Defect 3</th>
</tr>
@foreach (var item1 in Model.Coils)
{
<tr>
<td>
<input type="checkbox" name="selection" id="@item1.Coil_ID" align="center">
</td>
<td>
@Html.DisplayFor(modelItem => item1.Coil_ID)
</td>
<td>
@foreach (var item2 in Model.Auctions)
{
@Html.DisplayFor(modelItem => item2.Auc_MinBid)
}
</td>
<td>
@foreach (var item3 in Model.Bids)
{
@Html.DisplayFor(modelItem => item3.Bid_Amt)
//string sqlq = "select max(Bid_Amt) from Bid inner join AuctionItem ON Bid.Bid_ID = AuctionItem.Bid_ID where Coil_ID =" + item1.Coil_ID +"' '";
}
</td>
<td>
@Html.DisplayFor(modelItem => item1.Coil_Grade)
</td>
<td>
<a data-toggle="modal" data-target="#myModal">@Html.DisplayFor(modelItem => item1.Coil_HeatNo)</a>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">@Html.DisplayFor(modelItem => item1.Coil_HeatNo)</h4>
</div>
<div class="modal-body">
CHemistries
</div>
</div>
</div>
</div>
</td>
<td>
@Html.DisplayFor(modelItem => item1.Coil_Gauge)
</td>
<td>
@Html.DisplayFor(modelItem => item1.Coil_Width)
</td>
<td>
@Html.DisplayFor(modelItem => item1.Coil_Weight)
</td>
<td>
@Html.DisplayFor(modelItem => item1.Coil_Defect1)
</td>
<td>
@Html.DisplayFor(modelItem => item1.Coil_Defect2)
</td>
<td>
@Html.DisplayFor(modelItem => item1.Coil_Defect3)
</td>
</tr>
}
</table>
</center>
</div>
<center>
</center>
我的投标页面-->
@model NucorPrototypes_V1.ViewModel.MyBids
@{
ViewBag.Title = "MyBids";
}
拍卖
二次线圈拍卖每 100 重量的投标金额 删除投标序列号 最小投标电流 高投标等级 热号 仪表宽度 重量 缺陷 1 缺陷 2 缺陷 3 @foreach( var row in Model.Coils) { Remove Bid @Html.DisplayFor( modelItem => row.Coil_ID) }<center>
确认投标
另存为...
</center>