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

82 lines
2.7 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-10-17
Content: 示例详情页面
History Log:
*/
String pid = CurPage.getParameter("PartnerId");
String id = CurPage.getParameter("ID_");
if(pid == null) pid = "";
String sTempletNo = "OrgAddressInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
//doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(id);
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 returnList(){
AsDialog.ClosePage();
}
function do_save(){
var pid="<%=pid%>";
setItemValue(0, 0, "PARTNERID",pid);
setItemValue(0, 0, "ADDISAREA","CHN");
as_save(0);
}
/*~[Describe=设置证件签发城市;InputParam=无;OutPutParam=无;]~*/
function selectArea(){
var sCountry = "CHN";
if(sCountry == "CHN"){
var sCity = getItemValue(0,getRow(),"CNIDREGCITY");
AsDialog.PopView("/Common/ToolsA/AreaVFrame.jsp","AreaCode="+sCity,"dialogWidth=650px;dialogHeight=500px;center:yes;status:no;statusbar:no",function(sAreaCodeInfo){
//增加清空功能的判断
if(sAreaCodeInfo == "NO" || sAreaCodeInfo == '_CLEAR_'){
setItemValue(0,getRow(),"CNIDREGCITY","");
setItemValue(0,getRow(),"CNIDREGCITYNAME","");
}else if(sAreaCodeInfo == '_CANCEL_'){
}
else{
if(typeof(sAreaCodeInfo) != "undefined" && sAreaCodeInfo != ""){
sAreaCodeInfo = sAreaCodeInfo.split('@');
sAreaCodeValue = sAreaCodeInfo[0];//-- 行政区划代码
sAreaCodeName = sAreaCodeInfo[1];//--行政区划名称
setItemValue(0,getRow(),"ADDRESSISCITY",sAreaCodeValue);
setItemValue(0,getRow(),"ADDRESSISCITYNAME",sAreaCodeName);
}
}
},"选择签发城市");
}else{
alert(getBusinessMessage('976'));
return;
}
}
function selectCountryCode(){
var sReturn = AsDialog.SelectConfigTreeValue("CountryCode", "ItemNo@ItemName", null, false, true,"dialogWidth=650px;dialogHeight=450px",function(sReturn){
if(!sReturn||sReturn == "_CANCEL_"){
return;
}
if(sReturn=="_CLEAR_"){
sReturn=new Array('','');
}else{
sReturn = sReturn.split("@");
}
setItemValue(0,getRow(),"ADDISAREA",sReturn[0]);
setItemValue(0,getRow(),"ADDISAREANAME",sReturn[1]);
});
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>