下面是实现会签功能的客户端代码,现在是按会签人员的签字先后顺序来显示签名的。怎样修改才能让它反过来排列签名,也就是后面的签名显示在前 <td width="274" align="left" valign="top" rowspan="2">
<table width="98%" height="111" border="0" cellpadding="0" cellspacing="0" class="css003">
<tr>
<td height="20">会 签:</td>
</tr>
<tr>
<td height="100" align="left" valign="top">
<table>
<%
num=3;
min=0;
max=0;
qflag="0";
List togethorchecklist=(List)request.getAttribute("togethorchecklist");
for(int k=togethorchecklist.size()/num;k>=0;k--){
%>
<tr>
<%
min=num*k;
max=num*(k+1)-1;
if(max>togethorchecklist.size())
max=togethorchecklist.size();
for(int i=min;i<=max;i++){//第k行%>
<td>
<%
if(i<=togethorchecklist.size()-1){
FlowNode fn=(FlowNode)togethorchecklist.get(i);
if(fn.getUserid().equals(userid)){
qflag="1";
}%> <img src="uploaddir/signature/<%=fn.getOpinion()%>" width="90" height="40" border="0"><br />
<font color="black"><%=fn.getDealtime().substring(0,10)%></font><br /><%}else{
if(qflag.equals("0")&&"20000003".equals(flowLayer.getLayertype())){%>
<div style="display:none" id="signsrc">
<img src="uploaddir/signature/<bean:write name="usersignature" property="filepath"/>" width="90" height="40" border="0"><br />
<font color="black"><%=com.superred.util.date.DateTime.getDateYMD()%></font>
</div>
<div style="display:block" id="signbutton">
<input type="button" class="button" name="signup" value="签字" onclick="javascript:setDisplay()"/>
</div>
<%}}%>
</td>
<%}%></tr>
<%}%>
</table>
</td>
</tr>
</table>
</td>
<table width="98%" height="111" border="0" cellpadding="0" cellspacing="0" class="css003">
<tr>
<td height="20">会 签:</td>
</tr>
<tr>
<td height="100" align="left" valign="top">
<table>
<%
num=3;
min=0;
max=0;
qflag="0";
List togethorchecklist=(List)request.getAttribute("togethorchecklist");
for(int k=togethorchecklist.size()/num;k>=0;k--){
%>
<tr>
<%
min=num*k;
max=num*(k+1)-1;
if(max>togethorchecklist.size())
max=togethorchecklist.size();
for(int i=min;i<=max;i++){//第k行%>
<td>
<%
if(i<=togethorchecklist.size()-1){
FlowNode fn=(FlowNode)togethorchecklist.get(i);
if(fn.getUserid().equals(userid)){
qflag="1";
}%> <img src="uploaddir/signature/<%=fn.getOpinion()%>" width="90" height="40" border="0"><br />
<font color="black"><%=fn.getDealtime().substring(0,10)%></font><br /><%}else{
if(qflag.equals("0")&&"20000003".equals(flowLayer.getLayertype())){%>
<div style="display:none" id="signsrc">
<img src="uploaddir/signature/<bean:write name="usersignature" property="filepath"/>" width="90" height="40" border="0"><br />
<font color="black"><%=com.superred.util.date.DateTime.getDateYMD()%></font>
</div>
<div style="display:block" id="signbutton">
<input type="button" class="button" name="signup" value="签字" onclick="javascript:setDisplay()"/>
</div>
<%}}%>
</td>
<%}%></tr>
<%}%>
</table>
</td>
</tr>
</table>
</td>
楼主【speaksoftlylove】截止到2008-07-22 09:59:51的历史汇总数据(不包括此帖):
发帖的总数量:2 发帖的总分数:0 每贴平均分数:0
回帖的总数量:0 得分贴总数量:0 回帖的得分率:0%
结贴的总数量:2 结贴的总分数:0
无满意结贴数:2 无满意结贴分:30
未结的帖子数:0 未结的总分数:0
结贴的百分比:100.00% 结分的百分比:---------------------
无满意结贴率:100.00% 无满意结分率:---------------------
敬礼!
Collections.sort(togethorchecklist,new Comparator<String>(){
public int compare(String arg0, String arg1) {
return arg1.compareTo(arg0);
}
});
for(......)......