2018-06-03 22:26:41 +08:00

50 lines
1.8 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String PG_TITLE = "汇率管理"; // 浏览器窗口标题 <title> PG_TITLE </title>
//通过显示模版产生ASObjectModel对象doTemp
ASObjectModel doTemp = new ASObjectModel("ExchangeList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
dwTemp.setPageSize(25);//25条一分页
//生成HTMLDataWindow
dwTemp.genHTMLObjectWindow("");//传入显示模板参数
String sButtons[][] = {
{"true","","Button","新增","新增","my_add()","","","",""},
{"true","","Button","删除","删除","deleteRecord()","","","",""},
{"true","","Button","查看/修改","查看/修改","viewAndEdit()","","","",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function my_add(){
OpenPage("/SystemManage/SynthesisManage/ExchangeInfo.jsp","_self","");
}
/*~[Describe=删除记录;InputParam=无;OutPutParam=无;]~*/
function deleteRecord(){
var sCurrency = getItemValue(0,getRow(),"Currency");
if (typeof(sCurrency)=="undefined" || sCurrency.length==0){
alert("请选择一条记录!");
return;
}
if(confirm("您真的想删除该信息吗?")){
as_delete("myiframe0"); //如果单个删除,则要调用此语句
}
}
/*~[Describe=查看及修改详情;InputParam=无;OutPutParam=无;]~*/
function viewAndEdit(){
var sCurrency = getItemValue(0,getRow(),"Currency");
if (typeof(sCurrency)=="undefined" || sCurrency.length==0){
alert("请选择一条记录!");
return;
}
AsControl.OpenView("/SystemManage/SynthesisManage/ExchangeInfo.jsp","Currency="+sCurrency, "_self", "");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>