欠陥コードのリストから作成されたテーブルがあります。
各行の一部に、送信ボタンを備えたサブテーブルアイテムを読み込むことができますか?
サンプルテーブル:
<table><tr>
<th>Code</th><th>Description</th>
<th>Impact to your customers</th>
<th>Impact to your associates</th>
<th>Save</th>
<th>Save Errors</th></tr>
最初の2列はルックアップテーブルから入力され、次の3列はフォームであるため、ユーザーは値を設定したり、前の値から更新したりできます。
TD
どういうわけか、コードIDが非表示の値として埋め込まれている個々のAjaxフォームの行ごとに3つのアイテムを持つことができますか?強く型付けされたビューは何を継承しますか?外側のレイヤーはを継承IEnumerable<DefectDTO>
し、部分ビューはAssessmentDTO
タイプを継承しますか?
これが私が機能させようとしている実際のテーブルです:
<table>
<tr>
<th>
Code
</th>
<th>
Description
</th>
<th>
Document
</th>
<th>
Customer Contact Required for Resolution
</th>
<th>
AssociateSeverity
</th>
<th>
ShareholderSeverity
</th>
<th>
CustomerSeverity
</th>
<th>
RegulatorySeverity
</th>
<th>
RootCause
</th>
<th>
Investor Requirements*
</th>
</tr>
<% foreach (var item in Model.DefectCodes) { %>
<tr>
<% using (Ajax.BeginForm("Create", new AjaxOptions() ))
{%>
<td>
<%= Html.Encode(item.Code)%>
</td>
<td>
<%= Html.Encode(item.Description)%>
</td>
<% Html.RenderPartial("Create",null, ViewData); %><!-- This is where the form is -->
<% } %>
</tr>
<% } %>
</table>