apzl_leasing/WebContent/ProductManage/BaseConfigurationNodeList.jsp
2018-06-03 22:26:41 +08:00

127 lines
3.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%
/*
Author:zyli 2017-05-08
Tester:
Content:
Input Param:
Output param:
History Log:
*/
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = ""; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
ASObjectModel doTemp = new ASObjectModel("BaseConfigurationNodeList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow("");
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","All","Button","修改","查看/修改详情","viewAndEdit()","","","","btn_icon_edit"},
{"true","All","Button","删除","删除信息","deleteRecord()","","","",""},
};
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newRecord(){
var sUrl = "/ProductManage/BaseConfigurationNodeInfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=1000px;dialogHeight=600px;center:yes;status:no;statusbar:no",function(){
reloadSelf();
},"新增节点信息");
}
/*~[Describe=修改;InputParam=无;OutPutParam=无;]~*/
function viewAndEdit(){
var sUrl = "/ProductManage/BaseConfigurationNodeInfo.jsp";
var sNodeID = getItemValue(0,getRow(0),'NodeID');
if(typeof(sNodeID)=="undefined" || sNodeID.length==0 ){
alert("请选择一条记录!");
return ;
}
AsDialog.PopView(sUrl,'NodeID='+sNodeID,"resizable=yes;dialogWidth=1000px;dialogHeight=600px;center:yes;status:no;statusbar:no",function(){
reloadSelf();
},"修改节点信息");
}
/*~[Describe=删除;InputParam=无;OutPutParam=无;]~*/
function deleteRecord(){
var sNodeID = getItemValue(0,getRow(),"NodeID");
if (typeof(sNodeID)=="undefined" || sNodeID.length==0){
alert(getHtmlMessage('1'));
return;
}else {
if(confirm("确定要删除?"))
{
as_delete('myiframe0');
}
}
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>