- 爱易网页
-
JavaSript
- jsp 有用的事例
日期:2014-05-16 浏览次数:20322 次
jsp 有用的例子
<html><head>
<sx:head/>
<title>RRS Dashboard</title>
</head>
<body>
<input id="sDate" type="hidden" value='<s:property value="startDate"/>'>
<input id="eDate" type="hidden" value='<s:property value="endDate"/>'>
<input id="oraginalSalesCheck" type="hidden" value='<s:property value="salesCheck"/>'>
<input id="RSalesCheck" type="hidden" value='<s:property value="returnSalescheck"/>'>
<input id="ExchangeOrderNbr" type="hidden" value='<s:property value="exchangeOrderNbr"/>'>
<input id="queryType" type="hidden" value='<s:property value="queryForward"/>'>
<s:set var="idCount" value="returnAuthIdCount"></s:set>
<s:set var="limitSize" value="queryLimitSize"></s:set>
<s:set var="islistAuthId" value="flag"></s:set>
<s:if test="#idCount>#limitSize">
<script>
var bln = window.confirm("There are more than "+${queryLimitSize}+" returnAuthIds("+${returnAuthIdCount}+"), are you sure to display?");
//alert(bln);
if(bln == true){
if(document.getElementById('queryType').value == "preQueryReturnAuthId"){
window.location='viewReturnAuthId?startDate='+document.getElementById('sDate').value+'&endDate='+document.getElementById('eDate').value;
document.getElementById('sDate').value="";
document.getElementById('eDate').value="";
}else if(document.getElementById('queryType').value == "preQueryReturnAuthIdBySalesCheck"){
window.location='viewReturnAuthId!queryReturnAuthIdBySalesCheck?salesCheck=' + document.getElementById("oraginalSalesCheck").value;
document.getElementById("oraginalSalesCheck").value = "";
}else if(document.getElementById('queryType').value == "preQueryReturnAuthIdByReturnSalescheck"){
window.location='viewReturnAuthId!queryReturnAuthIdByReturnSalesCheck?returnSalescheck=' + document.getElementById("RSalesCheck").value;
document.getElementById("RSalesCheck").value = "";
}else if(document.getElementById('queryType').value == "preQueryReturnAuthIdByExchangeOrderNbr"){
window.location='viewReturnAuthId!queryReturnAuthIdByExchangeOrderNbr?exchangeOrderNbr=' + document.getElementById("ExchangeOrderNbr").value;
document.getElementById("ExchangeOrderNbr").value = "";
}else if(document.getElementById('queryType').value=="preQueryCanceledAuthIdByBatch"){
window.location='viewReturnAuthId!queryCanceledAuthIdByBatch?startDate='+document.getElementById('sDate').value+'&endDate='+document.getElementById('eDate').value;
document.getElementById('sDate').value="";
document.getElementById('eDate').value="";
}else if(document.getElementById('queryType').value == "updatePending"){
window.location='previewUpdate!listAuthId?startDate='+document.getElementById('sDate').value+'&endDate='+document.getElementById('eDate').value;;
document.getElementById('sDate').value="";
document.getElementById('eDate').value="";
}else{
window.history.back();
}
}
</script>
</s:if>
<s:elseif test="#idCount>=0 && #idCount<=#limitSize">
<script>
if(document.getElementById('queryType').value == "preQueryReturnAuthId"){
window.location='viewReturnAuthId?startDate='+document.getElementById('sDate').value+'&endDate='+document.getElementById('eDate').value;
document.getElementById('sDate').value="";
document.getElementById('eDate').value="";
}else if(document.getElementById('queryType').val
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。