82 lines
3.8 KiB
Plaintext
82 lines
3.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2017-10-10
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String action = CurPage.getParameter("action");
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
if(sPrevUrl == null) sPrevUrl = "";
|
|
|
|
String sTempletNo = "ChannelInfo";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
//doTemp.setColTips("", "");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
String parentid = CurPage.getParameter("ID_");
|
|
String PARTNER_NUM=CurPage.getParameter("PARTNER_NUM");
|
|
if(PARTNER_NUM==null){
|
|
PARTNER_NUM="";
|
|
}
|
|
dwTemp.genHTMLObjectWindow(parentid);
|
|
String compClientID = request.getParameter("CompClientID");
|
|
|
|
|
|
dwTemp.replaceColumn("OrgAddress", "<iframe type='iframe' name=\"frame_list_addressinfo\" width=\"100%\" height=\"200\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/ChannelManage/ChannelAddressList.jsp?CompClientID="+compClientID+"&ID_="+parentid+"\"></iframe>", CurPage.getObjectWindowOutput());
|
|
dwTemp.replaceColumn("OrgTel", "<iframe type='iframe' name=\"frame_list_addressinfo\" width=\"100%\" height=\"200\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/ChannelManage/ChannelPhoneList.jsp?CompClientID="+compClientID+"&ID_="+parentid+"\"></iframe>", CurPage.getObjectWindowOutput());
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","do_save()","","","",""},
|
|
{"true","All","Button","返回","返回列表","returnList()","","","","btn_icon_back"}
|
|
};
|
|
//sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
setItemValue(0,0,"ORGNAME","<%=PARTNER_NUM%>");
|
|
})
|
|
var sUrl = "/Tenwa/Lease/ChannelManage/ChannelOrgInfoList.jsp";
|
|
function returnList(){
|
|
AsControl.OpenView(sUrl, "","_self","");
|
|
}
|
|
function reloadPage(){
|
|
var ID= getItemValue(0,0,"ID_");
|
|
var sUrl = "/Tenwa/Lease/ChannelManage/ChannelOrgInfo.jsp";
|
|
AsControl.OpenView(sUrl,'ID_=' +ID ,'_self','');
|
|
}
|
|
function do_save(){
|
|
if("add"=="<%=action%>"){
|
|
var OrgId=getItemValue(0,getRow(),"PARTNER_TWO");
|
|
//保存一级渠道机构 ORGID
|
|
setItemValue(0,0,"PARTNER_NUM",OrgId);
|
|
var result=AsControl.RunJavaMethodTrans("com.tenwa.action.channelportal.channelsubmit.CheckChannelResign","checkChannelResignQuota","OrgId="+OrgId);
|
|
if(result.length>0){
|
|
AsDebug.showMessage('提示:',result,400,100,true);
|
|
return;
|
|
}
|
|
}
|
|
as_save('0','reloadPage()');
|
|
}
|
|
function selectEconomicType(){//选择经济类型
|
|
var sParaString = "CodeNo"+",EconomicType";
|
|
AsDialog.setObjectValue("SelectEconomicType",sParaString,"@BUSINESS_ENTERPRISE@0@BUSINESS_ENTERPRISE_NAME@1",0,0,"resizable=yes;dialogWidth=400px;dialogHeight=355px;center:yes;status:no;statusbar:no");
|
|
}
|
|
function selectOrgnature(){//选择机构类型
|
|
var INSTITUTIONAL_TYPE = getItemValue(0,getRow(),"INSTITUTIONAL_TYPE");
|
|
var INSTITUTIONAL_TYPE_NAME = getItemValue(0,getRow(),"INSTITUTIONAL_TYPE_NAME");
|
|
AsDialog.SetTreeValue("SelectOrgnature", '_0', "INSTITUTIONAL_TYPE=itemno@INSTITUTIONAL_TYPE_NAME=itemname","itemno","itemname", [INSTITUTIONAL_TYPE,INSTITUTIONAL_TYPE_NAME], false, true);
|
|
}
|
|
//定义下拉框onchange()事件
|
|
$("#PARTNER_TWO").change(function(){
|
|
var partName= $("#PARTNER_TWO").find("option:selected").text();
|
|
var OrgId=getItemValue(0,getRow(),"PARTNER_TWO");
|
|
setItemValue(0,0,"PARTNER_NAME",partName);
|
|
var result=AsControl.RunJavaMethodTrans("com.tenwa.action.channelportal.channelsubmit.CheckChannelResign","checkChannelResignQuota","OrgId="+OrgId);
|
|
if(result.length>0){
|
|
AsDebug.showMessage('提示:',result,400,100,true);
|
|
}
|
|
})
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |