excelsetMulitRowCol.jsp
2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!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>