81 lines
3.0 KiB
Plaintext
81 lines
3.0 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
|
|
|
ASObjectModel doTemp = new ASObjectModel("CustomerGroupRelationList");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
String group_id = CurPage.getParameter("group_no");
|
|
if(group_id == null)group_id ="";
|
|
dwTemp.Style="1"; //--设置为Grid风格--
|
|
dwTemp.ReadOnly = "1"; //只读模式
|
|
dwTemp.setPageSize(10);
|
|
dwTemp.genHTMLObjectWindow(group_id);
|
|
String sButtons[][] = {
|
|
{"true","All","Button","新增成员","新增成员","newRecord()","","","","btn_icon_add",""},
|
|
{"true","All","Button","修改","查看/修改详情","viewAndEdit()","","","","btn_icon_edit"},
|
|
{"true","","Button","详情","查看/修改详情","view()","","","","btn_icon_detail",""},
|
|
{"true","All","Button","删除","删除集团成员信息","deleteRecord()","","","",""},
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
function newgo(){
|
|
var sUrl = "/Tenwa/Customer/Group/GroupCompany/CustomerGroupCompanyList.jsp";
|
|
AsControl.OpenView(sUrl,'','_self','');
|
|
}
|
|
|
|
//新增
|
|
function newRecord(){
|
|
var sUrl = "/Tenwa/Customer/Group/Subcompany/CustomerGroupRelation.jsp";
|
|
AsDialog.PopView(sUrl,"group_id="+'<%=group_id%>',"resizable=yes;dialogWidth=600px;dialogHeight=250px;center:yes;status:no;statusbar:no",function(){
|
|
reloadSelf();
|
|
},"新增集团下属公司信息");
|
|
}
|
|
//修改
|
|
function viewAndEdit(){
|
|
var flag = "viewAndEdit";
|
|
var sUrl = "/Tenwa/Customer/Group/Subcompany/CustomerGroupRelation.jsp";
|
|
var id = getItemValue(0,getRow(0),'id');
|
|
if(typeof(id)=="undefined" || id.length==0 ){
|
|
alert("请选择一条信息!");
|
|
return ;
|
|
}
|
|
AsDialog.PopView(sUrl,"id="+id+"&flag="+flag+"&group_id="+'<%=group_id%>',"resizable=yes;dialogWidth=600px;dialogHeight=250px;center:yes;status:no;statusbar:no",function(){
|
|
reloadSelf();
|
|
},"修改集团下属公司信息");
|
|
}
|
|
//详情
|
|
function view(){
|
|
var sUrl = "/Tenwa/Customer/Group/Subcompany/CustomerGroupRelation.jsp";
|
|
var id = getItemValue(0,getRow(0),'id');
|
|
if(typeof(id)=="undefined" || id.length==0 ){
|
|
alert("请选择一条信息!");
|
|
return ;
|
|
}
|
|
AsDialog.PopView(sUrl,'id=' +id+'&rightType=ReadOnly',"resizable=yes;dialogWidth=600px;dialogHeight=250px;center:yes;status:no;statusbar:no",function(){
|
|
reloadSelf();
|
|
},"集团下属公司详细信息");
|
|
}
|
|
// 删除
|
|
function deleteRecord(){
|
|
var id = getItemValue(0,getRow(),"id");
|
|
if (typeof(id)=="undefined" || id.length==0){
|
|
alert(getHtmlMessage('1'));
|
|
return;
|
|
}else {
|
|
if(confirm("确定要删除?"))
|
|
{
|
|
as_delete('myiframe0');
|
|
}
|
|
}
|
|
}
|
|
function detail(){
|
|
var customerId=getItemValue(0, getRow(), "customer_id");
|
|
AsDialog.OpenObject("Customer",customerId,"002",null,function(){
|
|
})
|
|
}
|
|
function afterSearch(){
|
|
for(var i=0;i<getRowCount(0);i++){
|
|
getObj(0,i,"customername").innerHTML='<a onclick="javascript:detail()" style="color: blue;">'+getObj(0,i,"customername").innerHTML+'</a> ';;
|
|
}
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |