40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
<script>
|
|
function setHilightRows(){
|
|
var iRows = prompt(getMessageText("AWEW1077"),getSelRows(0)); // 输入选中行,多个用逗号分隔:
|
|
selectRows(0,iRows);
|
|
}
|
|
function getChecked(){
|
|
var arr = getCheckedRows(0);
|
|
if(arr.length < 1){
|
|
alert(getMessageText("AWEW1076"));// 您没有勾选任何行!
|
|
}else{
|
|
alert(arr);
|
|
}
|
|
}
|
|
|
|
function getValueArray(){
|
|
alert(getItemValueArray(0,"SerialNO"));
|
|
}
|
|
</script>
|
|
<%
|
|
ASObjectModel doTemp = new ASObjectModel("TestCustomerList");
|
|
doTemp.setLockCount(2);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
dwTemp.setPageSize(50);
|
|
dwTemp.Style="1"; //设置为Grid风格
|
|
dwTemp.MultiSelect = true;//允许多选
|
|
dwTemp.ReadOnly = "1";//编辑模式
|
|
dwTemp.genHTMLObjectWindow("");
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","测试多选传值[注意后台打印信息]","测试多选传值","as_doAction(0,undefined,'test')","","","",""},
|
|
{"true","","Button","设置选中的行","设置选中的行","setHilightRows()","","","",""},
|
|
{"true","","Button","获得高亮行","获得高亮行","alert( getRow(0))","","","",""},
|
|
{"true","","Button","获得选中的行","获得选中行","alert(getSelRows(0))","","","",""},
|
|
{"true","","Button","获得勾选的行","获得勾选中行","getChecked()","","","",""},
|
|
{"true","","Button","获取多行的指定列值","获取多行的指定列值","getValueArray()","","","",""},
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%><%@
|
|
include file="/Frame/resources/include/include_end.jspf"%> |