@model IEnumerable<HisPrescriptionInfo>

<table>
  <caption>处方信息表</caption>
  <thead>
    <tr>
      <th>流水号</th>
      <th>处方号</th>
      <th>处方类型</th>
      <th>药品列表</th>
    </tr>
  </thead>
  <tbody>
    @foreach(var item in Model) {
      <tr>
        <td>@item.Id</td>
        <td>@item.PrescriptionNo</td>
        <td>@item.Type.ToString()</td>
        <td>@Ajax.ActionLink("药品","DrugList",new { preId = item.Id },new AjaxOptions { UpdateTargetId = "drugList",})</td>
      </tr>
    }
  </tbody>
</table>
<div id="drugList"></div>