138 lines
3.6 KiB
Plaintext
138 lines
3.6 KiB
Plaintext
<%@ 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("DetailTABList");
|
||
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/DetailTABInfo.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/DetailTABInfo.jsp";
|
||
var sObjectType= getItemValue(0,getRow(0),'ObjectType');
|
||
if(typeof(sObjectType)=="undefined" || sObjectType.length==0 ){
|
||
alert("请选择一条记录!");
|
||
return ;
|
||
}
|
||
AsDialog.PopView(sUrl,'ObjectType='+sObjectType,"resizable=yes;dialogWidth=1000px;dialogHeight=600px;center:yes;status:no;statusbar:no",function(){
|
||
reloadSelf();
|
||
},"修改信息");
|
||
}
|
||
|
||
|
||
/*~[Describe=删除;InputParam=无;OutPutParam=无;]~*/
|
||
function deleteRecord(){
|
||
var sObjectType = getItemValue(0,getRow(),"ObjectType");
|
||
if (typeof(sObjectType)=="undefined" || sObjectType.length==0){
|
||
alert(getHtmlMessage('1'));
|
||
return;
|
||
}else {
|
||
if(confirm("确定要删除?"))
|
||
{
|
||
as_delete('myiframe0');
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
|
||
<script type="text/javascript">
|
||
|
||
/*~[Describe=选中某笔担保合同,联动显示担保项下的抵质押物;InputParam=无;OutPutParam=无;]~*/
|
||
function mySelectRow()
|
||
{
|
||
sObjectType = getItemValue(0,getRow(),"ObjectType");//--流水号码
|
||
if(typeof(sObjectType)=="undefined" || sObjectType.length==0) {
|
||
parent.Openrightdown3();
|
||
}else
|
||
{
|
||
parent.Openrightdown(sObjectType);
|
||
}
|
||
}
|
||
|
||
</script>
|
||
<%/*~END~*/%>
|
||
|
||
|
||
|
||
|
||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
|
||
<script type="text/javascript">
|
||
|
||
</script>
|
||
<%/*~END~*/%>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |