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

80 lines
3.1 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"%><%
/*
Author: undefined 2017-10-10
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("OrgTel");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
String partnerid = CurPage.getParameter("ID_");
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow(partnerid);
//1、正常 2、暂停 3、终止
//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_detail",""},
{"true","All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
{"true","All","Button","设为最新","设为最新","PhoneIsNew()","","","","btn_icon_swzx",""},
{"true","All","Button","取消最新","取消最新","PhoneCancelNew()","","","","btn_icon_xq",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/ChannelManage/ChannelPhoneInfo.jsp";
var s="<%=partnerid%>";
if(s=="null"){
alert("请先保存主页面数据后再进行操作");
}else{
AsDialog.PopView(sUrl,"PartnerId="+"<%=partnerid%>","dialogWidth=800px;dialogHeight=480px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
reloadSelf();
},"联系方式信息");
}
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/ChannelManage/ChannelPhoneInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID_');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("请选择一条数据!");
return ;
}
AsDialog.PopView(sUrl,'ID_=' +sPara+"&PartnerId="+"<%=partnerid%>","dialogWidth=800px;dialogHeight=480px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
reloadSelf();
},"联系方式信息");
}
function PhoneIsNew(){
var id = getItemValue(0,getRow(0),'ID_');
var isnew = getItemValue(0,getRow(0),'ISNEW');
if(typeof(id)=="undefined" || id.length==0 ){
alert("请选择一条数据!");
return ;
}
var result = AsControl.RunJavaMethodTrans("com.tenwa.lease.channelmanage.ChannelChangeStatus","PhoneIsNew","id="+id+",isnew="+isnew);
if(result=='success'){
alert("更新成功");
reloadSelf();
}else{
alert("已设为最新,无需重复操作");
}
}
function PhoneCancelNew(){
var id = getItemValue(0,getRow(0),'ID_');
var isnew = getItemValue(0,getRow(0),'ISNEW');
if(typeof(id)=="undefined" || id.length==0 ){
alert("请选择一条数据!");
return ;
}
var result = AsControl.RunJavaMethodTrans("com.tenwa.lease.channelmanage.ChannelChangeStatus","PhoneCancelNew","id="+id+",isnew="+isnew);
if(result=='success'){
alert("取消成功");
reloadSelf();
}else{
alert("已经取消最新,无需重复操作");
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>