function selectSubmit(){
//1.重新判断再生和失效班组文本域中是否有内容.没有的话则将隐藏域中的值清空
// var depname = document.getElementById("depname").value;
// var invaliddepname = document.getElementById("invaliddepname").value;
// if(depname == ""){
// document.getElementById("depid").value = "";
// }
// if(invaliddepname == ""){
// document.getElementById("invaliddepid").value = "";
// }
//1.拿到当前选中的条件各选项的值
var startDate = document.getElementById("startDate").value;
var endDate = document.getElementById("endDate").value;
var dutyid = document.getElementById("dutyid").value;
//2.确定用户至少选择一项
if(startDate == "" && endDate == "" && dutyid == ""){
alert('对不起!条件不能为空,请至少选择一项作为条件');
return;
}
//3.判断起时间和止时间的大小
if(startDate != "" && endDate != ""){
startdata = startdata.replace("-","/");
enddata = enddata.replace("-","/");
startdata = new Date(startdata);
enddata = new Date(enddata);
difference = enddata.getTime()-startdata.getTime();
if(difference < 0){
alert('请确定查询<止时间>晚于<起时间>...');
return;
}
}
//4.决定是否提交
var url = "<%=request.getContextPath()%>/runOndutyCheckinHandwordQueryList.do?startdata="+startdata+"&enddata="+enddata+"&dutyid="+dutyid;
parent. bottomFrame.location.href = url; //定位查询结果的显示位置
}
...............
<tr>
<td width="100%" colspan="3">
<iframe src="<%=request.getContextPath()%>/runOndutyCheckinList.do" id="bottomFrame" frameBorder=0 scrolling=no style="width:100%;height:600px;"></iframe>
</td>
</tr>
..............