循环表格 最下面是 费用的汇总

此表格详细记录了住院病人的各项信息,包括住院号、姓名、性别、年龄等,并提供了未结算费用、押金金额等财务详情,以及住院科室、床号、住院天数等住院相关信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<table id="indexTable" style="width: 100%; border-collapse: collapse;"
 cellspacing="0" cellpadding="1" border="0" width="100%">
 <tbody>
  <tr class="TableHeader" >
   <td class="TableHeaderCell" style="width: 25px">
    
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    住院号
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    姓名
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    性别
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    年龄
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    病人类型
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    未结算费用
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    押金
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    押金金额
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    住院科室
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    床号
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    入院日期
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    出院日期
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    住院天数
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    单病种
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    自费金额
   </td>
   <td class="TableHeaderCell" nowrap="nowrap">
    总金额
   </td>
  </tr>
  <c:forEach items="${indexTableList}" var="result" varStatus="s">
   <tr class="TableRow" oldclass="TableRow"
    hospid="${result.HOSPID}"
    hospcode="${result.HOSPCODE}"
    onclick="javascript:RowSelectWindow(this);"
    ondblclick="javascript:dblClick(this)"
    onmouseover="javascript:if (this.className!='TableRowSelected') this.className='TableRowOver'"
    onmouseout="javascript:if (this.className!='TableRowSelected') this.className='TableRow'" >
    <td class="TableCellIndex" nowrap="nowrap">
     <c:out value="${s.index+1}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.HOSPCODE}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.NAME}"></c:out>
     <c:if test="${result.CPBS == 1 }"><font color="blue"><b>[CP]</b></font></c:if>
     <c:if test="${result.ISDBZ == 1}"><font color="#8A2BE2"><b>[D]</b></font></c:if>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.SEX}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.AGE}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.PATITYPENAME}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <c:out value="${result.NOPAYMENT}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <c:out value="${result.TOTALPRICE}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <c:out value="${result.TOTALPRICE-result.NOPAYMENT}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.OFFICENAME}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.CWH}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.HOSPDATE}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.OUTDATE}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.INDAY}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <c:out value="${result.ZDY_NAME}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <c:out value="${result.BZZFJE}"></c:out>
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <c:out value="${result.BZZJE}"></c:out>
    </td>
   </tr>
  </c:forEach>
  <tr class="TableRow" oldclass="TableRow"  >
    <td class="TableCellIndex" nowrap="nowrap">
    </td>
    <td nowrap="nowrap" class="TableCell" >
     <b>合计:</b>
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <b><c:out value="${totalPatinfoNum }"></c:out> 人</b>
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <b><c:out value="${hashMapSum.NOPAYMENTSUM }"></c:out></b>
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <b><c:out value="${hashMapSum.TOTALPRICESUM }"></c:out></b>
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
     <b><c:out value="${hashMapSum.YUESUM }"></c:out></b>
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" >
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
    </td>
    <td nowrap="nowrap" class="TableCell" align="right">
    </td>
   </tr>
 </tbody>
</table>
在C#中,表格(DataGridView)是一个非常常用的控件,用于显示和编辑数据。表格下面的浮动循环通常指的是在表格的底部添加一个滚动条,用户可以通过滚动条来查看表格中的数据。如果表格中的数据量超过了表格的可视区域,滚动条会自动出现,用户可以通过滚动条来查看超出可视区域的数据。 下面是一个简单的示例,展示了如何在C#中使用DataGridView控件并实现表格下面的滚动循环: ```csharp using System; using System.Data; using System.Windows.Forms; public class DataGridViewExample : Form { private DataGridView dataGridView; private BindingSource bindingSource; public DataGridViewExample() { // 初始化DataGridView控件 dataGridView = new DataGridView { Dock = DockStyle.Top, Height = 200 }; // 初始化BindingSource bindingSource = new BindingSource(); // 设置DataGridView的数据源 dataGridView.DataSource = bindingSource; // 初始化Form this.Text = "DataGridView Example"; this.Load += new EventHandler(Form_Load); this.Controls.Add(dataGridView); } private void Form_Load(object sender, EventArgs e) { // 创建一个DataTable并填充数据 DataTable table = new DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Name", typeof(string)); for (int i = 1; i <= 100; i++) { table.Rows.Add(i, "Name " + i); } // 绑定数据源 bindingSource.DataSource = table; } [STAThread] public static void Main() { Application.EnableVisualStyles(); Application.Run(new DataGridViewExample()); } } ``` 在这个示例中,我们创建了一个简单的Form,并在其中添加了一个DataGridView控件。通过设置DataGridView的Dock属性为Top,并设置其高度为200,我们确保表格只占据Form的一部分空间,其余空间用于显示滚动条。 当数据量超过表格的可视区域时,滚动条会自动出现,用户可以通过滚动条来查看超出可视区域的数据。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值