例子一对多单向 多对一单向 查询记录集

来源:互联网 发布:蜂群算法的优点 编辑:程序博客网 时间:2024/05/01 01:39

 <table width="96%" class="tableRegion" align="center" id="yjTable">
   <tr class="tableHeader">

    <td width="5%" ><strong>序号</strong></td>
    <td width="15%" ><strong>药具编号</strong></td>
  <td width="15%" ><strong>药具名称</strong></td>
  <td width="8%"><strong>批号</strong></td>
 <td width="10%"><strong>有效日期</strong></td>
    <td width="8%" ><strong>单价</strong></td>
    <td width="8%" ><strong>单位</strong></td>
 <td width="28%" ><strong>报损原因</strong></td>
    <td width="8%" ><strong>报损数量</strong></td>
    <td width="8%" ><strong>操作</strong></td>
  </tr>
  <s:iterator status="indexs"  value="yjbsd.yjbsdSet" id="yjbsds">
   <tr>
     <td  align="center"><input type="hidden" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].bsdh" value="<s:property value="bsdh" />"  />
     <input type="hidden" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].id"  value="<s:property value="id" />" />
     <input type="text" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].xh" value="<s:property value="xh" />"size="3"  class="text" readOnly="true"/>
     </td>
       <td  align="center"><input type="text" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].yjbmb.yjbh" size="15" value="<s:property  value="#yjbsds.yjbmb.yjbh"/>" class="text" readOnly="true"/></td>
  <td  align="center"><input type="text" size="15" value="<s:property  value="#yjbsds.yjbmb.yjmc"/>" class="text" readOnly="true"/></td>
  <td align="center"><input type="text" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].ph" value="<s:property value="ph" />" class="text" size="10" /></td>
  <td align="center"><input type="text" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].yxrq" value="<s:property value="yxrq" />" class="text" size="12" onclick='WdatePicker({dateFmt:"yyyy-MM-dd",qsEnabled:true,quickSel:["2000-10-01","%y-%M-01","%y-%M-%ld"]})'/></td>
  
     <td  align="center"><input type="text" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].dj" value="<s:property value="dj" />" class="text" size="8"/></td>
    <td  align="center"><input type="text" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].dw" value="<s:property value="dw" />" class="text" size="4"/></td>
     <td  align="center"><input type="text" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].bsyy" value="<s:property value="bsyy" />" class="text" size="30"/></td>
     <td  align="center"><input type="text" name="yjbsd.yjbsdSet.makeNew[<s:property value="#indexs.getIndex()" />].sl" value="<s:property value="sl" />" class="text" size="15"/></td>
     <td  align="center"><input type="button"   value="删除" onClick="deleteRow(this)"/></td>
   </tr>
  </s:iterator>
  </table>

原创粉丝点击