50 lines
2.4 KiB
Plaintext
50 lines
2.4 KiB
Plaintext
<%@ page import="org.apache.commons.lang3.StringUtils" %>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
|
|
String areaCode = CurPage.getParameter("areaCode");
|
|
String flowUnid = CurPage.getParameter("FlowUnid");
|
|
ASObjectModel doTemp = new ASObjectModel("HouseholdSelectAddr");
|
|
if(StringUtils.isNotBlank(areaCode)){
|
|
ASResultSet as2 = Sqlca.getASResultSet(new SqlObject("select substring_index(NATIVEPLACE,itemname,-1) as addresss ,itemname as area_name " +
|
|
" from customer_person_temp cpt join code_library cl on cpt.area_code = cl.itemno and cl.codeno = 'ZXAreaCode' where flowunid = :flowunid ").setParameter("flowunid", flowUnid));
|
|
if(as2.next()){
|
|
doTemp.setDefaultValue("provincename", as2.getString("area_name"));
|
|
doTemp.setDefaultValue("dressdetail", as2.getString("addresss"));
|
|
}
|
|
}
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
dwTemp.genHTMLObjectWindow("");
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
|
|
{"true","","Button","返回","返回列表页面","parent.AsDialog.ClosePage('cancel')","","","","btn_icon_return"}
|
|
};
|
|
sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
//省市(户籍选择)
|
|
function selectRegionCodeZX(){
|
|
AsDialog.PopView("/Common/ToolsA/AreaVFrame.jsp","sourceForm=zx&AreaCode=<%=areaCode%>","dialogWidth=850px;dialogHeight=450px;center:yes;status:no;statusbar:no",function(sAreaCodeInfo){
|
|
if( sAreaCodeInfo == '_CANCEL_'){
|
|
return;
|
|
}
|
|
//增加清空功能的判断
|
|
if( sAreaCodeInfo == '_CLEAR_'){
|
|
setItemValue(0,0,"provincename",'');
|
|
return;
|
|
}
|
|
if(sAreaCodeInfo !== ""){
|
|
setItemValue(0,0,"province",sAreaCodeInfo.split("@")[0]);
|
|
setItemValue(0,0,"provincename",sAreaCodeInfo.split("@")[1]);
|
|
}
|
|
},'选择户籍行政区划');
|
|
}
|
|
function saveRecord(){
|
|
if(!iV_all("0")) return;//先检查填写完整性
|
|
let returnVal = getItemValue(0,getRow(0),"province")+'@'+getItemValue(0,getRow(0),"provincename")+getItemValue(0,getRow(0),"dressdetail");
|
|
parent.AsDialog.ClosePage(returnVal);
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|