35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: huangjb 2017-05-05
|
||
Content:
|
||
History Log:
|
||
*/
|
||
ASObjectModel doTemp = new ASObjectModel("proj_info_vouchercode");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "0"; //0编辑模式
|
||
dwTemp.setPageSize(12);
|
||
dwTemp.genHTMLObjectWindow("");
|
||
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"true","","Button","保存","保存","as_save(0)","","","","btn_icon_save",""},
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function newRecord(){
|
||
var sUrl = "";
|
||
AsControl.OpenView(sUrl,'','_self','');
|
||
}
|
||
function viewAndEdit(){
|
||
var sUrl = "";
|
||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||
alert("参数不能为空!");
|
||
return ;
|
||
}
|
||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |