增加账户信息详情页面与只读

This commit is contained in:
liuz 2018-07-31 17:37:36 +08:00
parent edf4d4bc83
commit da69fe52a1
3 changed files with 15 additions and 3 deletions

View File

@ -47,8 +47,8 @@
}else{
sButtons=new String[][] {
{temp,"All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
//{temp,"","Button","详情","查看/修改详情","view()","","","","btn_icon_detail"},
{temp,"","Button","修改","修改","viewAndEdit()","","","","btn_icon_detail",""},
{temp,"","Button","详情","查看/修改详情","view()","","","","btn_icon_detail"},
//{"true","All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
{temp,"All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
};
@ -80,5 +80,17 @@
},"修改");
}
function view(){
var sUrl = "/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorAccountInfo.jsp";
var sPara = getItemValue(0,getRow(0),'id');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"id="+sPara+"&flowunid="+"<%=sFlowUnid%>"+"&RightType=ReadOnly","dialogWidth=900px;dialogHeight=200px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
reloadSelf();
},"详情");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -58,7 +58,7 @@
}
AsDialog.PopView(sUrl,"id="+sPara+"&flowunid="+"<%=sFlowUnid%>","dialogWidth=900px;dialogHeight=200px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
reloadSelf();
},"详情");
},"ミ゙クト");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -37,7 +37,7 @@
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"id="+sPara,"dialogWidth=900px;dialogHeight=200px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
AsDialog.PopView(sUrl,"id="+sPara+"&RightType=ReadOnly","dialogWidth=900px;dialogHeight=200px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
//reloadSelf();
},"详情");
}