excelsetMulitRowCol.jsp 2.63 KB
<!DOCTYPE HTML>

<%@ page language="java" contentType="text/html; charset=UTF-8" %> 
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<%
String isrc = Util.null2String(request.getParameter("isrc"));
String noticeinfo = "row".equals(isrc) ? "行数量":"列数量";
%>
<html>
<head>
<title>行列数量设置</title>
<script type="text/javascript" src="/fna/js/e8Common_wev8.js?r=9"></script>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<script type="text/javascript">
    var dialog = window.top.getDialog(window);
    function set(){
        if(checkvalue()){
            var countNum = jQuery.trim($('#countNum').val());
            var djson = {count:countNum,type:'<%=isrc%>'};
            dialog.close(djson);
        }
    }
</script>
</head>
<body style='overflow: hidden'>
    	<wea:layout type="2Col" >
            <wea:group context='<%=SystemEnv.getHtmlLabelName(1361, user.getLanguage())%>'>
                <wea:item><%=noticeinfo %></wea:item>
                <wea:item>
                    <wea:required id="countNumSpan" required="false">
                        <input class="inputstyle" id="countNum" name="countNum" style="width: 300px;"
                         onmousemove="checkinput('countNum','countNumSpan')" onKeyPress="ItemCount_KeyPress()" 
                         onBlur='checknumber("countNum");checkinput("countNum","countNumSpan")' value="1" />
                    </wea:required>
                </wea:item>
            </wea:group>
        </wea:layout>
        <div id="zDialog_div_bottom" class="zDialog_div_bottom">
                <wea:layout needImportDefaultJsAndCss="false">
                    <wea:group context=""  attributes="{groupDisplay:none}">
                        <wea:item type="toolbar">
                            <input type="button" value="确定" id="nextStepBtn"  class="zd_btn_cancle" onclick="set();">
                        </wea:item>
                    </wea:group>
                </wea:layout>      
        </div>
</body>
<script type="text/javascript">
    function checkvalue() {
        var countNum=jQuery("#countNum").val();
        if(countNum.trim().length==0){
            top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(30933, user.getLanguage())%>");
            return false ;
        }

        if(countNum > 10) {
            top.Dialog.alert("数量不能大于10");
            return false;
        } else if(countNum <= 0){
            top.Dialog.alert("数量必须大于0");
            return false;
        }
        return true ;
    }
</script>
</html>